From feb90d0bc614a0a913e82c4b0a7214b22149ade5 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 22 May 2026 17:00:55 +0000 Subject: [PATCH 1/3] Configurations: 'specification/cognitiveservices/CognitiveServices.Management/tspconfig.yaml', API Version: 2026-03-15-preview, SDK Release Type: beta, and CommitSHA: '182eacfaa4691f06fb161722f13f4d99e9b26a0a' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6340773 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 116 +- .../README.md | 4 +- .../SAMPLE.md | 1146 +++++++++-- .../pom.xml | 2 +- .../CognitiveServicesManager.java | 83 + .../fluent/AccountsClient.java | 33 + .../CognitiveServicesManagementClient.java | 35 + .../fluent/ComputesClient.java | 461 +++++ .../ManagedComputeCapacitiesClient.java | 47 + .../ManagedComputeDeploymentsClient.java | 275 +++ ...gedComputeUsagesOperationGroupsClient.java | 41 + .../fluent/WorkbenchesClient.java | 503 +++++ .../fluent/models/ComputeInner.java | 289 +++ ...aluateDeploymentPoliciesResponseInner.java | 80 + .../models/ManagedComputeCapacityInner.java | 146 ++ .../models/ManagedComputeDeploymentInner.java | 202 ++ .../models/ManagedComputeUsageInner.java | 196 ++ .../fluent/models/WorkbenchInner.java | 259 +++ .../implementation/AccountImpl.java | 12 + .../implementation/AccountsClientImpl.java | 102 + .../implementation/AccountsImpl.java | 22 + ...CognitiveServicesManagementClientImpl.java | 82 +- .../implementation/ComputeImpl.java | 215 +++ .../implementation/ComputesClientImpl.java | 1551 +++++++++++++++ .../implementation/ComputesImpl.java | 176 ++ ...valuateDeploymentPoliciesResponseImpl.java | 40 + .../ManagedComputeCapacitiesClientImpl.java | 307 +++ .../ManagedComputeCapacitiesImpl.java | 47 + .../ManagedComputeCapacityImpl.java | 50 + .../ManagedComputeDeploymentImpl.java | 158 ++ .../ManagedComputeDeploymentsClientImpl.java | 999 ++++++++++ .../ManagedComputeDeploymentsImpl.java | 153 ++ .../ManagedComputeUsageImpl.java | 70 + ...omputeUsagesOperationGroupsClientImpl.java | 255 +++ ...nagedComputeUsagesOperationGroupsImpl.java | 45 + .../implementation/WorkbenchImpl.java | 211 +++ .../implementation/WorkbenchesClientImpl.java | 1673 +++++++++++++++++ .../implementation/WorkbenchesImpl.java | 203 ++ .../models/ComputeListResult.java | 94 + .../ManagedComputeCapacityListResult.java | 95 + .../ManagedComputeDeploymentListResult.java | 95 + .../models/ManagedComputeUsageListResult.java | 96 + .../models/WorkbenchListResult.java | 94 + .../cognitiveservices/models/Account.java | 24 + .../cognitiveservices/models/Accounts.java | 29 + .../models/ClusterComputeProperties.java | 144 ++ .../cognitiveservices/models/Compute.java | 412 ++++ .../models/ComputeProperties.java | 190 ++ .../models/ComputeProvisioningState.java | 96 + .../cognitiveservices/models/ComputeType.java | 51 + .../cognitiveservices/models/Computes.java | 233 +++ .../models/ConnectivityEndpoints.java | 89 + .../ContainerInstanceComputeProperties.java | 220 +++ .../DeploymentPolicyEvaluationResult.java | 115 ++ .../models/DeploymentSizeCapacity.java | 108 ++ .../EvaluateDeploymentPoliciesDeployment.java | 118 ++ ...eploymentPoliciesDeploymentProperties.java | 116 ++ .../EvaluateDeploymentPoliciesRequest.java | 90 + .../EvaluateDeploymentPoliciesResponse.java | 28 + .../models/ManagedComputeCapacities.java | 42 + .../models/ManagedComputeCapacity.java | 55 + .../ManagedComputeCapacityProperties.java | 126 ++ .../models/ManagedComputeDeployment.java | 216 +++ .../models/ManagedComputeDeploymentInfo.java | 142 ++ .../ManagedComputeDeploymentProperties.java | 341 ++++ ...dComputeDeploymentProvisioningDetails.java | 100 + .../ManagedComputeDeploymentRoutes.java | 110 ++ .../models/ManagedComputeDeployments.java | 149 ++ .../models/ManagedComputeUsage.java | 76 + .../ManagedComputeUsagesOperationGroups.java | 36 + .../models/PatchResourceSku.java | 85 + .../PolicyAssignmentEvaluationDetails.java | 183 ++ .../models/PolicyEvaluationOutcome.java | 56 + .../PolicyExpressionEvaluationDetails.java | 160 ++ .../cognitiveservices/models/Pool.java | 170 ++ .../cognitiveservices/models/SshSettings.java | 113 ++ .../cognitiveservices/models/VmPriority.java | 51 + .../cognitiveservices/models/Workbench.java | 374 ++++ .../models/WorkbenchProperties.java | 287 +++ .../cognitiveservices/models/Workbenches.java | 245 +++ ...rcemanager-cognitiveservices_metadata.json | 2 +- .../proxy-config.json | 2 +- ...tCapabilityHostsCreateOrUpdateSamples.java | 2 +- .../AccountCapabilityHostsDeleteSamples.java | 2 +- .../AccountCapabilityHostsGetSamples.java | 2 +- .../AccountCapabilityHostsListSamples.java | 2 +- .../AccountConnectionsCreateSamples.java | 2 +- .../AccountConnectionsDeleteSamples.java | 2 +- .../AccountConnectionsGetSamples.java | 2 +- .../AccountConnectionsListSamples.java | 2 +- .../AccountConnectionsUpdateSamples.java | 2 +- .../generated/AccountsCreateSamples.java | 4 +- .../generated/AccountsDeleteSamples.java | 2 +- ...untsEvaluateDeploymentPoliciesSamples.java | 42 + .../AccountsGetByResourceGroupSamples.java | 2 +- .../AccountsListByResourceGroupSamples.java | 2 +- .../generated/AccountsListKeysSamples.java | 2 +- .../generated/AccountsListModelsSamples.java | 2 +- .../generated/AccountsListSamples.java | 2 +- .../generated/AccountsListSkusSamples.java | 2 +- .../generated/AccountsListUsagesSamples.java | 8 +- .../AccountsRegenerateKeySamples.java | 2 +- .../generated/AccountsUpdateSamples.java | 2 +- ...gentApplicationsCreateOrUpdateSamples.java | 2 +- .../AgentApplicationsDeleteSamples.java | 2 +- .../AgentApplicationsDisableSamples.java | 2 +- .../AgentApplicationsEnableSamples.java | 2 +- .../AgentApplicationsGetSamples.java | 2 +- .../AgentApplicationsListAgentsSamples.java | 2 +- .../AgentApplicationsListSamples.java | 2 +- ...AgentDeploymentsCreateOrUpdateSamples.java | 2 +- .../AgentDeploymentsDeleteSamples.java | 2 +- .../generated/AgentDeploymentsGetSamples.java | 2 +- .../AgentDeploymentsListSamples.java | 2 +- .../AgentDeploymentsStartSamples.java | 2 +- .../AgentDeploymentsStopSamples.java | 2 +- ...PlansCreateOrUpdateAssociationSamples.java | 2 +- ...mitmentPlansCreateOrUpdatePlanSamples.java | 2 +- .../CommitmentPlansCreateOrUpdateSamples.java | 2 +- ...mmitmentPlansDeleteAssociationSamples.java | 2 +- .../CommitmentPlansDeletePlanSamples.java | 2 +- .../CommitmentPlansDeleteSamples.java | 2 +- .../CommitmentPlansGetAssociationSamples.java | 2 +- ...mitmentPlansGetByResourceGroupSamples.java | 2 +- .../generated/CommitmentPlansGetSamples.java | 2 +- ...ommitmentPlansListAssociationsSamples.java | 2 +- ...itmentPlansListByResourceGroupSamples.java | 2 +- ...ntPlansListPlansBySubscriptionSamples.java | 2 +- .../generated/CommitmentPlansListSamples.java | 2 +- .../CommitmentPlansUpdatePlanSamples.java | 2 +- .../generated/CommitmentTiersListSamples.java | 2 +- .../ComputeOperationsGetSamples.java | 2 +- .../ComputesCreateOrUpdateSamples.java | 84 + .../generated/ComputesDeleteSamples.java | 22 + .../generated/ComputesGetSamples.java | 38 + .../generated/ComputesListSamples.java | 22 + .../generated/ComputesRestartSamples.java | 24 + .../generated/ComputesStartSamples.java | 24 + .../generated/ComputesStopSamples.java | 24 + .../generated/ComputesUpdateSamples.java | 36 + ...derForAISettingsCreateOrUpdateSamples.java | 2 +- .../DefenderForAISettingsGetSamples.java | 2 +- .../DefenderForAISettingsListSamples.java | 2 +- .../DefenderForAISettingsUpdateSamples.java | 2 +- .../generated/DeletedAccountsGetSamples.java | 2 +- .../generated/DeletedAccountsListSamples.java | 2 +- .../DeletedAccountsPurgeSamples.java | 2 +- .../DeploymentsCreateOrUpdateSamples.java | 2 +- .../generated/DeploymentsDeleteSamples.java | 2 +- .../generated/DeploymentsGetSamples.java | 2 +- .../generated/DeploymentsListSamples.java | 2 +- .../generated/DeploymentsListSkusSamples.java | 2 +- .../generated/DeploymentsPauseSamples.java | 2 +- .../generated/DeploymentsResumeSamples.java | 2 +- .../generated/DeploymentsUpdateSamples.java | 2 +- ...EncryptionScopesCreateOrUpdateSamples.java | 2 +- .../EncryptionScopesDeleteSamples.java | 2 +- .../generated/EncryptionScopesGetSamples.java | 2 +- .../EncryptionScopesListSamples.java | 2 +- ...cationBasedModelCapacitiesListSamples.java | 8 +- .../ManagedComputeCapacitiesListSamples.java | 23 + ...mputeDeploymentsCreateOrUpdateSamples.java | 60 + ...anagedComputeDeploymentsDeleteSamples.java | 24 + .../ManagedComputeDeploymentsGetSamples.java | 38 + .../ManagedComputeDeploymentsListSamples.java | 36 + ...anagedComputeDeploymentsUpdateSamples.java | 45 + ...omputeUsagesOperationGroupListSamples.java | 23 + ...visionsProvisionManagedNetworkSamples.java | 2 +- ...NetworkSettingsOperationDeleteSamples.java | 2 +- ...gedNetworkSettingsOperationGetSamples.java | 2 +- ...edNetworkSettingsOperationListSamples.java | 2 +- ...dNetworkSettingsOperationPatchSamples.java | 2 +- ...gedNetworkSettingsOperationPutSamples.java | 2 +- .../generated/ModelCapacitiesListSamples.java | 8 +- .../generated/ModelsListSamples.java | 2 +- ...rityPerimeterConfigurationsGetSamples.java | 2 +- ...ityPerimeterConfigurationsListSamples.java | 2 +- ...rimeterConfigurationsReconcileSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- .../OutboundRuleCreateOrUpdateSamples.java | 2 +- .../generated/OutboundRuleDeleteSamples.java | 2 +- .../generated/OutboundRuleGetSamples.java | 2 +- .../generated/OutboundRuleListSamples.java | 2 +- .../OutboundRulesOperationPostSamples.java | 2 +- ...pointConnectionsCreateOrUpdateSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...PrivateEndpointConnectionsListSamples.java | 2 +- .../PrivateLinkResourcesListSamples.java | 2 +- ...tCapabilityHostsCreateOrUpdateSamples.java | 2 +- .../ProjectCapabilityHostsDeleteSamples.java | 2 +- .../ProjectCapabilityHostsGetSamples.java | 2 +- .../ProjectCapabilityHostsListSamples.java | 2 +- .../ProjectConnectionsCreateSamples.java | 2 +- .../ProjectConnectionsDeleteSamples.java | 2 +- .../ProjectConnectionsGetSamples.java | 2 +- .../ProjectConnectionsListSamples.java | 2 +- .../ProjectConnectionsUpdateSamples.java | 2 +- .../generated/ProjectsCreateSamples.java | 4 +- .../generated/ProjectsDeleteSamples.java | 2 +- .../generated/ProjectsGetSamples.java | 2 +- .../generated/ProjectsListSamples.java | 2 +- .../generated/ProjectsUpdateSamples.java | 2 +- .../QuotaTiersCreateOrUpdateSamples.java | 2 +- .../generated/QuotaTiersGetSamples.java | 2 +- .../generated/QuotaTiersListSamples.java | 2 +- .../generated/QuotaTiersUpdateSamples.java | 2 +- .../RaiBlocklistItemsBatchAddSamples.java | 2 +- .../RaiBlocklistItemsBatchDeleteSamples.java | 2 +- ...aiBlocklistItemsCreateOrUpdateSamples.java | 2 +- .../RaiBlocklistItemsDeleteSamples.java | 2 +- .../RaiBlocklistItemsGetSamples.java | 2 +- .../RaiBlocklistItemsListSamples.java | 2 +- .../RaiBlocklistsCreateOrUpdateSamples.java | 2 +- .../generated/RaiBlocklistsDeleteSamples.java | 2 +- .../generated/RaiBlocklistsGetSamples.java | 2 +- .../generated/RaiBlocklistsListSamples.java | 2 +- .../RaiContentFiltersGetSamples.java | 2 +- .../RaiContentFiltersListSamples.java | 2 +- ...alSafetyProviderCreateOrUpdateSamples.java | 2 +- ...aiExternalSafetyProviderDeleteSamples.java | 2 +- .../RaiExternalSafetyProviderGetSamples.java | 2 +- ...alSafetyProvidersOperationListSamples.java | 2 +- .../RaiPoliciesCreateOrUpdateSamples.java | 2 +- .../generated/RaiPoliciesDeleteSamples.java | 2 +- .../generated/RaiPoliciesGetSamples.java | 2 +- .../generated/RaiPoliciesListSamples.java | 2 +- .../RaiToolLabelsCreateOrUpdateSamples.java | 2 +- .../generated/RaiToolLabelsDeleteSamples.java | 2 +- .../generated/RaiToolLabelsGetSamples.java | 2 +- .../generated/RaiToolLabelsListSamples.java | 2 +- .../RaiTopicsCreateOrUpdateSamples.java | 2 +- .../generated/RaiTopicsDeleteSamples.java | 2 +- .../generated/RaiTopicsGetSamples.java | 2 +- .../generated/RaiTopicsListSamples.java | 2 +- ...ProviderCalculateModelCapacitySamples.java | 2 +- ...roviderCheckDomainAvailabilitySamples.java | 2 +- ...ceProviderCheckSkuAvailabilitySamples.java | 2 +- .../generated/ResourceSkusListSamples.java | 2 +- ...riptionRaiPolicyCreateOrUpdateSamples.java | 2 +- .../SubscriptionRaiPolicyDeleteSamples.java | 2 +- .../SubscriptionRaiPolicyGetSamples.java | 2 +- ...alSafetyProviderCreateOrUpdateSamples.java | 2 +- .../generated/UsagesListSamples.java | 8 +- .../WorkbenchesCreateOrUpdateSamples.java | 56 + .../generated/WorkbenchesDeleteSamples.java | 23 + .../generated/WorkbenchesGetSamples.java | 24 + .../generated/WorkbenchesListSamples.java | 22 + .../generated/WorkbenchesRestartSamples.java | 23 + .../generated/WorkbenchesStartSamples.java | 23 + .../generated/WorkbenchesStopSamples.java | 23 + .../generated/WorkbenchesUpdateSamples.java | 52 + .../AadAuthTypeConnectionPropertiesTests.java | 50 +- ...apabilityHostsCreateOrUpdateMockTests.java | 39 +- ...pabilityHostsGetWithResponseMockTests.java | 20 +- .../AccountCapabilityHostsListMockTests.java | 20 +- ...onnectionsCreateWithResponseMockTests.java | 34 +- ...onnectionsDeleteWithResponseMockTests.java | 3 +- ...ntConnectionsGetWithResponseMockTests.java | 22 +- .../AccountConnectionsListMockTests.java | 21 +- ...onnectionsUpdateWithResponseMockTests.java | 48 +- .../generated/AccountsDeleteMockTests.java | 2 +- ...ploymentPoliciesWithResponseMockTests.java | 100 + ...AccountsListSkusWithResponseMockTests.java | 16 +- ...countsListUsagesWithResponseMockTests.java | 26 +- ...licationsDisableWithResponseMockTests.java | 3 +- ...plicationsEnableWithResponseMockTests.java | 3 +- ...ationsListAgentsWithResponseMockTests.java | 11 +- .../generated/AgentDeploymentInnerTests.java | 78 +- .../AgentDeploymentPropertiesTests.java | 62 +- ...oymentResourceArmPaginatedResultTests.java | 24 +- ...entDeploymentsCreateOrUpdateMockTests.java | 50 +- ...ntDeploymentsGetWithResponseMockTests.java | 24 +- .../AgentDeploymentsListMockTests.java | 27 +- ...DeploymentsStartWithResponseMockTests.java | 2 +- ...tDeploymentsStopWithResponseMockTests.java | 2 +- .../generated/AgentProtocolVersionTests.java | 16 +- .../AgentReferencePropertiesTests.java | 12 +- ...eResourceArmPaginatedResultInnerTests.java | 8 +- .../generated/AgentReferenceTests.java | 6 +- .../ApplicationTrafficRoutingPolicyTests.java | 46 +- .../generated/AssignedIdentityTests.java | 26 +- .../generated/CapabilityHostInnerTests.java | 54 +- .../CapabilityHostPropertiesTests.java | 51 +- ...tyHostResourceArmPaginatedResultTests.java | 20 +- .../generated/CommitmentCostTests.java | 6 +- .../generated/CommitmentPeriodTests.java | 12 +- ...tmentPlanAccountAssociationInnerTests.java | 16 +- ...PlanAccountAssociationListResultTests.java | 4 +- ...PlanAccountAssociationPropertiesTests.java | 8 +- .../generated/CommitmentPlanInnerTests.java | 88 +- .../CommitmentPlanListResultTests.java | 4 +- .../CommitmentPlanPropertiesTests.java | 40 +- ...ansCreateOrUpdateAssociationMockTests.java | 16 +- ...tmentPlansCreateOrUpdatePlanMockTests.java | 67 +- ...nsCreateOrUpdateWithResponseMockTests.java | 67 +- ...itmentPlansDeleteAssociationMockTests.java | 2 +- .../CommitmentPlansDeleteMockTests.java | 2 +- .../CommitmentPlansDeletePlanMockTests.java | 2 +- ...nsGetAssociationWithResponseMockTests.java | 8 +- ...tByResourceGroupWithResponseMockTests.java | 36 +- ...mmitmentPlansGetWithResponseMockTests.java | 32 +- ...mitmentPlansListAssociationsMockTests.java | 8 +- ...mentPlansListByResourceGroupMockTests.java | 34 +- .../CommitmentPlansListMockTests.java | 37 +- ...PlansListPlansBySubscriptionMockTests.java | 33 +- .../generated/CommitmentQuotaTests.java | 6 +- .../generated/CommitmentTierInnerTests.java | 22 +- .../CommitmentTierListResultTests.java | 4 +- .../CommitmentTiersListMockTests.java | 24 +- .../ConnectionManagedIdentityTests.java | 16 +- .../ConnectionPersonalAccessTokenTests.java | 8 +- ...2BasicResourceArmPaginatedResultTests.java | 16 +- ...onPropertiesV2BasicResourceInnerTests.java | 57 +- .../ConnectionPropertiesV2Tests.java | 55 +- .../ConnectionSharedAccessSignatureTests.java | 8 +- .../ConnectionUpdateContentTests.java | 57 +- .../generated/ConnectivityEndpointsTests.java | 17 + .../generated/CustomBlocklistConfigTests.java | 18 +- .../DefenderForAISettingInnerTests.java | 17 +- .../DefenderForAISettingResultTests.java | 8 +- ...gsCreateOrUpdateWithResponseMockTests.java | 10 +- ...ForAISettingsGetWithResponseMockTests.java | 8 +- .../DefenderForAISettingsListMockTests.java | 6 +- .../DeletedAccountsPurgeMockTests.java | 2 +- .../DeploymentCapacitySettingsTests.java | 12 +- ...DeploymentPolicyEvaluationResultTests.java | 40 + .../DeploymentScaleSettingsTests.java | 12 +- .../DeploymentSizeCapacityTests.java | 17 + .../DeploymentSkuListResultTests.java | 4 +- .../generated/DeploymentsDeleteMockTests.java | 2 +- .../DeploymentsListSkusMockTests.java | 26 +- ...valuateDeploymentPoliciesRequestTests.java | 76 + ...eDeploymentPoliciesResponseInnerTests.java | 34 + .../generated/FqdnOutboundRuleTests.java | 20 +- .../generated/HostedAgentDeploymentTests.java | 84 +- ...tionBasedModelCapacitiesListMockTests.java | 28 +- .../ManagedAgentDeploymentTests.java | 72 +- ...ManagedComputeCapacitiesListMockTests.java | 37 + .../ManagedComputeCapacityInnerTests.java | 17 + ...ManagedComputeCapacityListResultTests.java | 19 + ...ManagedComputeCapacityPropertiesTests.java | 17 + .../ManagedComputeDeploymentInfoTests.java | 23 + .../ManagedComputeDeploymentInnerTests.java | 63 + ...nagedComputeDeploymentListResultTests.java | 19 + ...nagedComputeDeploymentPropertiesTests.java | 42 + ...uteDeploymentProvisioningDetailsTests.java | 21 + .../ManagedComputeDeploymentRoutesTests.java | 21 + ...uteDeploymentsCreateOrUpdateMockTests.java | 66 + ...agedComputeDeploymentsDeleteMockTests.java | 33 + ...teDeploymentsGetWithResponseMockTests.java | 52 + ...anagedComputeDeploymentsListMockTests.java | 52 + .../ManagedComputeUsageInnerTests.java | 28 + .../ManagedComputeUsageListResultTests.java | 29 + ...uteUsagesOperationGroupsListMockTests.java | 49 + .../ManagedNetworkListResultTests.java | 10 +- ...nagedNetworkProvisionStatusInnerTests.java | 8 +- ...sionsProvisionManagedNetworkMockTests.java | 6 +- ...etworkSettingsBasicResourceInnerTests.java | 36 +- .../ManagedNetworkSettingsExTests.java | 35 +- .../ManagedNetworkSettingsInnerTests.java | 34 +- ...ngsOperationsGetWithResponseMockTests.java | 17 +- ...etworkSettingsOperationsListMockTests.java | 18 +- ...NetworkSettingsOperationsPutMockTests.java | 43 +- ...ingsPropertiesBasicResourceInnerTests.java | 50 +- ...ManagedNetworkSettingsPropertiesTests.java | 27 +- .../ModelCapacitiesListMockTests.java | 28 +- .../ModelCapacityListResultTests.java | 4 +- .../generated/ModelListResultTests.java | 66 +- ...sRulePropertiesSubscriptionsItemTests.java | 7 +- ...ityPerimeterAccessRulePropertiesTests.java | 16 +- ...tworkSecurityPerimeterAccessRuleTests.java | 18 +- ...eterConfigurationAssociationInfoTests.java | 6 +- ...urityPerimeterConfigurationInnerTests.java | 37 +- ...curityPerimeterConfigurationListTests.java | 27 +- ...PerimeterConfigurationPropertiesTests.java | 38 +- ...onfigurationsGetWithResponseMockTests.java | 37 +- ...yPerimeterConfigurationsListMockTests.java | 40 +- ...meterConfigurationsReconcileMockTests.java | 34 +- ...workSecurityPerimeterProfileInfoTests.java | 27 +- .../NetworkSecurityPerimeterTests.java | 12 +- ...NoneAuthTypeConnectionPropertiesTests.java | 57 +- .../generated/OperationsListMockTests.java | 2 +- .../OutboundRuleBasicResourceInnerTests.java | 12 +- .../OutboundRuleListResultTests.java | 8 +- .../generated/OutboundRuleTests.java | 2 +- .../OutboundRulesCreateOrUpdateMockTests.java | 13 +- ...OutboundRulesGetWithResponseMockTests.java | 7 +- .../generated/OutboundRulesListMockTests.java | 10 +- .../generated/PatchResourceSkuTests.java | 40 + .../PatchResourceTagsAndSkuTests.java | 39 +- .../generated/PatchResourceTagsTests.java | 10 +- ...olicyAssignmentEvaluationDetailsTests.java | 31 + ...olicyExpressionEvaluationDetailsTests.java | 24 + .../generated/PoolTests.java | 37 + ...ndpointConnectionListResultInnerTests.java | 10 +- ...intConnectionsCreateOrUpdateMockTests.java | 26 +- ...ateEndpointConnectionsDeleteMockTests.java | 2 +- ...ntConnectionsGetWithResponseMockTests.java | 15 +- ...tConnectionsListWithResponseMockTests.java | 14 +- ...eEndpointOutboundRuleDestinationTests.java | 14 +- .../PrivateEndpointOutboundRuleTests.java | 26 +- ...ivateLinkResourceListResultInnerTests.java | 4 +- .../PrivateLinkResourcePropertiesTests.java | 4 +- .../generated/PrivateLinkResourceTests.java | 4 +- ...inkResourcesListWithResponseMockTests.java | 6 +- .../ProjectCapabilityHostInnerTests.java | 29 +- .../ProjectCapabilityHostPropertiesTests.java | 26 +- ...tyHostResourceArmPaginatedResultTests.java | 13 +- ...apabilityHostsCreateOrUpdateMockTests.java | 22 +- ...pabilityHostsGetWithResponseMockTests.java | 12 +- .../ProjectCapabilityHostsListMockTests.java | 15 +- ...onnectionsCreateWithResponseMockTests.java | 39 +- ...onnectionsDeleteWithResponseMockTests.java | 2 +- ...ctConnectionsGetWithResponseMockTests.java | 25 +- .../ProjectConnectionsListMockTests.java | 22 +- .../generated/ProjectInnerTests.java | 33 +- .../generated/ProjectListResultTests.java | 4 +- .../generated/ProjectPropertiesTests.java | 12 +- .../generated/ProjectsCreateMockTests.java | 28 +- .../generated/ProjectsDeleteMockTests.java | 2 +- .../ProjectsGetWithResponseMockTests.java | 14 +- .../generated/ProjectsListMockTests.java | 13 +- .../ProvisioningIssuePropertiesTests.java | 26 +- .../generated/ProvisioningIssueTests.java | 20 +- .../generated/QuotaTierInnerTests.java | 10 +- .../generated/QuotaTierListResultTests.java | 4 +- .../generated/QuotaTierPropertiesTests.java | 2 +- .../QuotaTierUpgradeEligibilityInfoTests.java | 10 +- ...rsCreateOrUpdateWithResponseMockTests.java | 9 +- .../QuotaTiersGetWithResponseMockTests.java | 6 +- .../generated/QuotaTiersListMockTests.java | 2 +- .../RaiBlockListItemsResultTests.java | 10 +- .../generated/RaiBlockListResultTests.java | 8 +- .../generated/RaiBlocklistConfigTests.java | 10 +- .../generated/RaiBlocklistInnerTests.java | 14 +- .../RaiBlocklistItemBulkRequestTests.java | 15 +- .../generated/RaiBlocklistItemInnerTests.java | 14 +- .../RaiBlocklistItemPropertiesTests.java | 9 +- ...istItemsBatchAddWithResponseMockTests.java | 21 +- ...ItemsBatchDeleteWithResponseMockTests.java | 4 +- ...msCreateOrUpdateWithResponseMockTests.java | 16 +- ...locklistItemsGetWithResponseMockTests.java | 8 +- .../RaiBlocklistItemsListMockTests.java | 10 +- .../RaiBlocklistPropertiesTests.java | 8 +- ...tsCreateOrUpdateWithResponseMockTests.java | 14 +- ...RaiBlocklistsGetWithResponseMockTests.java | 8 +- .../generated/RaiBlocklistsListMockTests.java | 8 +- .../generated/RaiContentFilterInnerTests.java | 6 +- .../RaiContentFilterListResultTests.java | 10 +- .../RaiContentFilterPropertiesTests.java | 12 +- ...ontentFiltersGetWithResponseMockTests.java | 11 +- .../RaiContentFiltersListMockTests.java | 8 +- ...esCreateOrUpdateWithResponseMockTests.java | 82 +- .../RaiPoliciesGetWithResponseMockTests.java | 29 +- .../generated/RaiPoliciesListMockTests.java | 30 +- .../RaiPolicyContentFilterTests.java | 26 +- .../generated/RaiPolicyInnerTests.java | 112 +- .../generated/RaiPolicyListResultTests.java | 27 +- .../generated/RaiPolicyPropertiesTests.java | 100 +- .../RaiSafetyProviderConfigTests.java | 15 +- .../generated/RaiToolLabelInnerTests.java | 42 +- ...iToolLabelPropertiesAccountScopeTests.java | 13 +- ...LabelPropertiesProjectScopesItemTests.java | 20 +- .../RaiToolLabelPropertiesTests.java | 26 +- .../generated/RaiToolLabelResultTests.java | 16 +- ...lsCreateOrUpdateWithResponseMockTests.java | 44 +- ...RaiToolLabelsGetWithResponseMockTests.java | 15 +- .../generated/RaiToolLabelsListMockTests.java | 18 +- .../generated/RaiTopicInnerTests.java | 56 +- .../generated/RaiTopicPropertiesTests.java | 50 +- .../generated/RaiTopicResultTests.java | 22 +- ...csCreateOrUpdateWithResponseMockTests.java | 42 +- .../RaiTopicsGetWithResponseMockTests.java | 22 +- .../generated/RaiTopicsListMockTests.java | 22 +- .../generated/ResourceBaseTests.java | 14 +- ...mainAvailabilityWithResponseMockTests.java | 12 +- ...kSkuAvailabilityWithResponseMockTests.java | 20 +- .../ResourceSkuRestrictionInfoTests.java | 6 +- .../generated/SafetyProviderConfigTests.java | 14 +- ...erviceTagOutboundRuleDestinationTests.java | 32 +- .../ServiceTagOutboundRuleTests.java | 38 +- .../generated/SkuResourceInnerTests.java | 24 +- ...esCreateOrUpdateWithResponseMockTests.java | 106 +- ...onRaiPoliciesGetWithResponseMockTests.java | 30 +- .../generated/TrafficRoutingRuleTests.java | 26 +- .../generated/UsagesListMockTests.java | 23 +- .../VersionedAgentReferenceTests.java | 21 +- .../tsp-location.yaml | 2 +- 489 files changed, 20116 insertions(+), 2703 deletions(-) create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeCapacitiesClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeDeploymentsClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeUsagesOperationGroupsClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/WorkbenchesClient.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EvaluateDeploymentPoliciesResponseInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeCapacityInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeDeploymentInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeUsageInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/WorkbenchInner.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacityImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsageImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesClientImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesImpl.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ComputeListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeCapacityListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeDeploymentListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeUsageListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/WorkbenchListResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProvisioningState.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeType.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Computes.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentPolicyEvaluationResult.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSizeCapacity.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeployment.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeploymentProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesRequest.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesResponse.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacities.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacity.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacityProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployment.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentInfo.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProvisioningDetails.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentRoutes.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployments.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsage.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsagesOperationGroups.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceSku.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyAssignmentEvaluationDetails.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyEvaluationOutcome.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyExpressionEvaluationDetails.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SshSettings.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/VmPriority.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbench.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/WorkbenchProperties.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbenches.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesCreateOrUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesDeleteSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesRestartSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStartSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStopSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesCreateOrUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesDeleteSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesGetSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesListSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesRestartSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStartSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStopSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesUpdateSamples.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectivityEndpointsTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentPolicyEvaluationResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSizeCapacityTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesRequestTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesResponseInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityListResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityPropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInfoTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentListResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentPropertiesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentProvisioningDetailsTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentRoutesTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetWithResponseMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageInnerTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageListResultTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupsListMockTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceSkuTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyAssignmentEvaluationDetailsTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyExpressionEvaluationDetailsTests.java create mode 100644 sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PoolTests.java diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md index f292bfa476fb..18eaf6c86070 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md @@ -1,14 +1,122 @@ # Release History -## 1.5.0-beta.2 (Unreleased) +## 1.5.0-beta.2 (2026-05-22) + +- 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-03-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added -### Breaking Changes +* `models.ManagedComputeDeployment$Update` was added + +* `models.Compute$DefinitionStages` was added + +* `models.ManagedComputeDeploymentInfo` was added + +* `models.VmPriority` was added + +* `models.Compute$UpdateStages` was added + +* `models.Workbench$DefinitionStages` was added + +* `models.ComputeType` was added + +* `models.ManagedComputeDeployments` was added + +* `models.Workbench$Definition` was added + +* `models.ManagedComputeCapacities` was added + +* `models.EvaluateDeploymentPoliciesResponse` was added + +* `models.Compute$Definition` was added + +* `models.ManagedComputeDeployment$UpdateStages` was added + +* `models.ComputeProperties` was added + +* `models.EvaluateDeploymentPoliciesDeploymentProperties` was added + +* `models.ManagedComputeDeployment` was added + +* `models.Workbench$Update` was added + +* `models.ManagedComputeCapacity` was added + +* `models.EvaluateDeploymentPoliciesRequest` was added + +* `models.PolicyExpressionEvaluationDetails` was added + +* `models.Computes` was added + +* `models.Pool` was added + +* `models.ManagedComputeUsage` was added + +* `models.ConnectivityEndpoints` was added + +* `models.SshSettings` was added + +* `models.Compute$Update` was added + +* `models.ManagedComputeUsagesOperationGroups` was added -### Bugs Fixed +* `models.DeploymentPolicyEvaluationResult` was added + +* `models.ManagedComputeDeploymentProvisioningDetails` was added + +* `models.ManagedComputeDeployment$DefinitionStages` was added + +* `models.ManagedComputeDeploymentProperties` was added + +* `models.WorkbenchProperties` was added + +* `models.PatchResourceSku` was added + +* `models.ContainerInstanceComputeProperties` was added + +* `models.DeploymentSizeCapacity` was added + +* `models.Workbench$UpdateStages` was added + +* `models.Compute` was added + +* `models.ManagedComputeCapacityProperties` was added + +* `models.ManagedComputeDeployment$Definition` was added + +* `models.Workbenches` was added + +* `models.PolicyEvaluationOutcome` was added + +* `models.ComputeProvisioningState` was added + +* `models.ClusterComputeProperties` was added + +* `models.PolicyAssignmentEvaluationDetails` was added + +* `models.EvaluateDeploymentPoliciesDeployment` was added + +* `models.ManagedComputeDeploymentRoutes` was added + +* `models.Workbench` was added + +#### `models.Accounts` was modified + +* `evaluateDeploymentPolicies(java.lang.String,java.lang.String,models.EvaluateDeploymentPoliciesRequest)` was added +* `evaluateDeploymentPoliciesWithResponse(java.lang.String,java.lang.String,models.EvaluateDeploymentPoliciesRequest,com.azure.core.util.Context)` was added + +#### `CognitiveServicesManager` was modified + +* `managedComputeCapacities()` was added +* `managedComputeDeployments()` was added +* `computes()` was added +* `workbenches()` was added +* `managedComputeUsagesOperationGroups()` was added + +#### `models.Account` was modified -### Other Changes +* `evaluateDeploymentPolicies(models.EvaluateDeploymentPoliciesRequest)` was added +* `evaluateDeploymentPoliciesWithResponse(models.EvaluateDeploymentPoliciesRequest,com.azure.core.util.Context)` was added ## 1.5.0-beta.1 (2026-04-30) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md index 33248d47a138..bfa7b5b77ae8 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-01-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-03-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.1 + 1.5.0-beta.2 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md index e7b8ecc4774f..59aff3e5f9ff 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md @@ -20,6 +20,7 @@ - [Create](#accounts_create) - [Delete](#accounts_delete) +- [EvaluateDeploymentPolicies](#accounts_evaluatedeploymentpolicies) - [GetByResourceGroup](#accounts_getbyresourcegroup) - [List](#accounts_list) - [ListByResourceGroup](#accounts_listbyresourcegroup) @@ -74,6 +75,17 @@ - [Get](#computeoperations_get) +## Computes + +- [CreateOrUpdate](#computes_createorupdate) +- [Delete](#computes_delete) +- [Get](#computes_get) +- [List](#computes_list) +- [Restart](#computes_restart) +- [Start](#computes_start) +- [Stop](#computes_stop) +- [Update](#computes_update) + ## DefenderForAISettings - [CreateOrUpdate](#defenderforaisettings_createorupdate) @@ -109,6 +121,22 @@ - [List](#locationbasedmodelcapacities_list) +## ManagedComputeCapacities + +- [List](#managedcomputecapacities_list) + +## ManagedComputeDeployments + +- [CreateOrUpdate](#managedcomputedeployments_createorupdate) +- [Delete](#managedcomputedeployments_delete) +- [Get](#managedcomputedeployments_get) +- [List](#managedcomputedeployments_list) +- [Update](#managedcomputedeployments_update) + +## ManagedComputeUsagesOperationGroup + +- [List](#managedcomputeusagesoperationgroup_list) + ## ManagedNetworkProvisions - [ProvisionManagedNetwork](#managednetworkprovisions_provisionmanagednetwork) @@ -266,6 +294,17 @@ ## Usages - [List](#usages_list) + +## Workbenches + +- [CreateOrUpdate](#workbenches_createorupdate) +- [Delete](#workbenches_delete) +- [Get](#workbenches_get) +- [List](#workbenches_list) +- [Restart](#workbenches_restart) +- [Start](#workbenches_start) +- [Stop](#workbenches_stop) +- [Update](#workbenches_update) ### AccountCapabilityHosts_CreateOrUpdate ```java @@ -276,7 +315,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProperti */ public final class AccountCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-03-15-preview/AccountCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Account CapabilityHost. @@ -304,7 +343,7 @@ public final class AccountCapabilityHostsCreateOrUpdateSamples { */ public final class AccountCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountCapabilityHost/delete.json + * x-ms-original-file: 2026-03-15-preview/AccountCapabilityHost/delete.json */ /** * Sample code: Delete Account CapabilityHost. @@ -327,7 +366,7 @@ public final class AccountCapabilityHostsDeleteSamples { */ public final class AccountCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountCapabilityHost/get.json + * x-ms-original-file: 2026-03-15-preview/AccountCapabilityHost/get.json */ /** * Sample code: Get Account CapabilityHost. @@ -350,7 +389,7 @@ public final class AccountCapabilityHostsGetSamples { */ public final class AccountCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountCapabilityHost/list.json + * x-ms-original-file: 2026-03-15-preview/AccountCapabilityHost/list.json */ /** * Sample code: List Account CapabilityHosts. @@ -377,7 +416,7 @@ import java.time.OffsetDateTime; */ public final class AccountConnectionsCreateSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountConnection/create.json + * x-ms-original-file: 2026-03-15-preview/AccountConnection/create.json */ /** * Sample code: CreateAccountConnection. @@ -405,7 +444,7 @@ public final class AccountConnectionsCreateSamples { */ public final class AccountConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountConnection/delete.json + * x-ms-original-file: 2026-03-15-preview/AccountConnection/delete.json */ /** * Sample code: DeleteAccountConnection. @@ -428,7 +467,7 @@ public final class AccountConnectionsDeleteSamples { */ public final class AccountConnectionsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountConnection/get.json + * x-ms-original-file: 2026-03-15-preview/AccountConnection/get.json */ /** * Sample code: GetAccountConnection. @@ -451,7 +490,7 @@ public final class AccountConnectionsGetSamples { */ public final class AccountConnectionsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountConnection/list.json + * x-ms-original-file: 2026-03-15-preview/AccountConnection/list.json */ /** * Sample code: ListAccountConnections. @@ -483,7 +522,7 @@ import java.util.Map; */ public final class AccountConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountConnection/update.json + * x-ms-original-file: 2026-03-15-preview/AccountConnection/update.json */ /** * Sample code: UpdateAccountConnection. @@ -536,7 +575,7 @@ import java.util.Arrays; */ public final class AccountsCreateSamples { /* - * x-ms-original-file: 2026-01-15-preview/CreateAccountMin.json + * x-ms-original-file: 2026-03-15-preview/CreateAccountMin.json */ /** * Sample code: Create Account Min. @@ -556,7 +595,7 @@ public final class AccountsCreateSamples { } /* - * x-ms-original-file: 2026-01-15-preview/CreateAccount.json + * x-ms-original-file: 2026-03-15-preview/CreateAccount.json */ /** * Sample code: Create Account. @@ -591,7 +630,7 @@ public final class AccountsCreateSamples { */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteAccount.json + * x-ms-original-file: 2026-03-15-preview/DeleteAccount.json */ /** * Sample code: Delete Account. @@ -604,6 +643,47 @@ public final class AccountsDeleteSamples { } ``` +### Accounts_EvaluateDeploymentPolicies + +```java +import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeployment; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest; +import java.util.Arrays; + +/** + * Samples for Accounts EvaluateDeploymentPolicies. + */ +public final class AccountsEvaluateDeploymentPoliciesSamples { + /* + * x-ms-original-file: 2026-03-15-preview/EvaluateDeploymentPolicies.json + */ + /** + * Sample code: EvaluateDeploymentPolicies. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + evaluateDeploymentPolicies(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.accounts() + .evaluateDeploymentPoliciesWithResponse("resourceGroupName", "accountName", + new EvaluateDeploymentPoliciesRequest() + .withDeployments(Arrays.asList( + new EvaluateDeploymentPoliciesDeployment().withName("gpt4o-deployment") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties().withModel( + new DeploymentModel().withFormat("OpenAI").withName("gpt-4o").withVersion("2024-11-20")) + .withRaiPolicyName("Microsoft.DefaultV2")), + new EvaluateDeploymentPoliciesDeployment().withName("ada-embedding") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() + .withModel(new DeploymentModel().withFormat("OpenAI") + .withName("text-embedding-ada-002") + .withVersion("2"))))), + com.azure.core.util.Context.NONE); + } +} +``` + ### Accounts_GetByResourceGroup ```java @@ -612,7 +692,7 @@ public final class AccountsDeleteSamples { */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetAccount.json + * x-ms-original-file: 2026-03-15-preview/GetAccount.json */ /** * Sample code: Get Account. @@ -634,7 +714,7 @@ public final class AccountsGetByResourceGroupSamples { */ public final class AccountsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListAccountsBySubscription.json + * x-ms-original-file: 2026-03-15-preview/ListAccountsBySubscription.json */ /** * Sample code: List Accounts by Subscription. @@ -656,7 +736,7 @@ public final class AccountsListSamples { */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListAccountsByResourceGroup.json + * x-ms-original-file: 2026-03-15-preview/ListAccountsByResourceGroup.json */ /** * Sample code: List Accounts by Resource Group. @@ -678,7 +758,7 @@ public final class AccountsListByResourceGroupSamples { */ public final class AccountsListKeysSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListKeys.json + * x-ms-original-file: 2026-03-15-preview/ListKeys.json */ /** * Sample code: List Keys. @@ -699,7 +779,7 @@ public final class AccountsListKeysSamples { */ public final class AccountsListModelsSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListAccountModels.json + * x-ms-original-file: 2026-03-15-preview/ListAccountModels.json */ /** * Sample code: List AccountModels. @@ -720,7 +800,7 @@ public final class AccountsListModelsSamples { */ public final class AccountsListSkusSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListSkus.json + * x-ms-original-file: 2026-03-15-preview/ListSkus.json */ /** * Sample code: List SKUs. @@ -741,7 +821,7 @@ public final class AccountsListSkusSamples { */ public final class AccountsListUsagesSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetUsages.json + * x-ms-original-file: 2026-03-15-preview/GetUsages.json */ /** * Sample code: Get Usages. @@ -754,7 +834,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-01-15-preview/GetUsagesClassicScope.json + * x-ms-original-file: 2026-03-15-preview/GetUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -768,7 +848,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-01-15-preview/GetUsagesDataZoneScope.json + * x-ms-original-file: 2026-03-15-preview/GetUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -782,7 +862,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-01-15-preview/GetUsagesGlobalScope.json + * x-ms-original-file: 2026-03-15-preview/GetUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. @@ -808,7 +888,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameter */ public final class AccountsRegenerateKeySamples { /* - * x-ms-original-file: 2026-01-15-preview/RegenerateKey.json + * x-ms-original-file: 2026-03-15-preview/RegenerateKey.json */ /** * Sample code: Regenerate Keys. @@ -834,7 +914,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/UpdateAccount.json + * x-ms-original-file: 2026-03-15-preview/UpdateAccount.json */ /** * Sample code: Update Account. @@ -862,7 +942,7 @@ import java.util.Map; */ public final class AgentApplicationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentApplication/createOrUpdate.json + * x-ms-original-file: 2026-03-15-preview/AgentApplication/createOrUpdate.json */ /** * Sample code: Create or Update Account Agent Application. @@ -903,7 +983,7 @@ public final class AgentApplicationsCreateOrUpdateSamples { */ public final class AgentApplicationsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentApplication/delete.json + * x-ms-original-file: 2026-03-15-preview/AgentApplication/delete.json */ /** * Sample code: Delete Account Agent Application. @@ -927,7 +1007,7 @@ public final class AgentApplicationsDeleteSamples { */ public final class AgentApplicationsDisableSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentApplication/disable.json + * x-ms-original-file: 2026-03-15-preview/AgentApplication/disable.json */ /** * Sample code: Disable Agent Application. @@ -951,7 +1031,7 @@ public final class AgentApplicationsDisableSamples { */ public final class AgentApplicationsEnableSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentApplication/enable.json + * x-ms-original-file: 2026-03-15-preview/AgentApplication/enable.json */ /** * Sample code: Enable Agent Application. @@ -975,7 +1055,7 @@ public final class AgentApplicationsEnableSamples { */ public final class AgentApplicationsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentApplication/get.json + * x-ms-original-file: 2026-03-15-preview/AgentApplication/get.json */ /** * Sample code: Get Account Agent Application. @@ -1001,7 +1081,7 @@ import java.util.Arrays; */ public final class AgentApplicationsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentApplication/list.json + * x-ms-original-file: 2026-03-15-preview/AgentApplication/list.json */ /** * Sample code: List Account Agent Applications. @@ -1025,7 +1105,7 @@ public final class AgentApplicationsListSamples { */ public final class AgentApplicationsListAgentsSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentApplication/listAgents.json + * x-ms-original-file: 2026-03-15-preview/AgentApplication/listAgents.json */ /** * Sample code: List Agents for Agent Application. @@ -1056,7 +1136,7 @@ import java.util.Arrays; */ public final class AgentDeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentDeployment/createOrUpdate.json + * x-ms-original-file: 2026-03-15-preview/AgentDeployment/createOrUpdate.json */ /** * Sample code: Create or Update Agent Deployment. @@ -1088,7 +1168,7 @@ public final class AgentDeploymentsCreateOrUpdateSamples { */ public final class AgentDeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentDeployment/delete.json + * x-ms-original-file: 2026-03-15-preview/AgentDeployment/delete.json */ /** * Sample code: Delete Agent Deployment. @@ -1112,7 +1192,7 @@ public final class AgentDeploymentsDeleteSamples { */ public final class AgentDeploymentsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentDeployment/get.json + * x-ms-original-file: 2026-03-15-preview/AgentDeployment/get.json */ /** * Sample code: Get Agent Deployment. @@ -1137,7 +1217,7 @@ public final class AgentDeploymentsGetSamples { */ public final class AgentDeploymentsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentDeployment/list.json + * x-ms-original-file: 2026-03-15-preview/AgentDeployment/list.json */ /** * Sample code: List Agent Deployments. @@ -1161,7 +1241,7 @@ public final class AgentDeploymentsListSamples { */ public final class AgentDeploymentsStartSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentDeployment/start.json + * x-ms-original-file: 2026-03-15-preview/AgentDeployment/start.json */ /** * Sample code: Start Agent Deployment. @@ -1185,7 +1265,7 @@ public final class AgentDeploymentsStartSamples { */ public final class AgentDeploymentsStopSamples { /* - * x-ms-original-file: 2026-01-15-preview/AgentDeployment/stop.json + * x-ms-original-file: 2026-03-15-preview/AgentDeployment/stop.json */ /** * Sample code: Stop Agent Deployment. @@ -1214,7 +1294,7 @@ import com.azure.resourcemanager.cognitiveservices.models.HostingModel; */ public final class CommitmentPlansCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutCommitmentPlan.json + * x-ms-original-file: 2026-03-15-preview/PutCommitmentPlan.json */ /** * Sample code: PutCommitmentPlan. @@ -1242,7 +1322,7 @@ public final class CommitmentPlansCreateOrUpdateSamples { */ public final class CommitmentPlansCreateOrUpdateAssociationSamples { /* - * x-ms-original-file: 2026-01-15-preview/CreateSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-03-15-preview/CreateSharedCommitmentPlanAssociation.json */ /** * Sample code: PutCommitmentPlan. @@ -1273,7 +1353,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class CommitmentPlansCreateOrUpdatePlanSamples { /* - * x-ms-original-file: 2026-01-15-preview/CreateSharedCommitmentPlan.json + * x-ms-original-file: 2026-03-15-preview/CreateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. @@ -1305,7 +1385,7 @@ public final class CommitmentPlansCreateOrUpdatePlanSamples { */ public final class CommitmentPlansDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteCommitmentPlan.json + * x-ms-original-file: 2026-03-15-preview/DeleteCommitmentPlan.json */ /** * Sample code: DeleteCommitmentPlan. @@ -1328,7 +1408,7 @@ public final class CommitmentPlansDeleteSamples { */ public final class CommitmentPlansDeleteAssociationSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-03-15-preview/DeleteSharedCommitmentPlanAssociation.json */ /** * Sample code: DeleteCommitmentPlan. @@ -1352,7 +1432,7 @@ public final class CommitmentPlansDeleteAssociationSamples { */ public final class CommitmentPlansDeletePlanSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteSharedCommitmentPlan.json + * x-ms-original-file: 2026-03-15-preview/DeleteSharedCommitmentPlan.json */ /** * Sample code: Delete Commitment Plan. @@ -1375,7 +1455,7 @@ public final class CommitmentPlansDeletePlanSamples { */ public final class CommitmentPlansGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetCommitmentPlan.json + * x-ms-original-file: 2026-03-15-preview/GetCommitmentPlan.json */ /** * Sample code: GetCommitmentPlan. @@ -1398,7 +1478,7 @@ public final class CommitmentPlansGetSamples { */ public final class CommitmentPlansGetAssociationSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-03-15-preview/GetSharedCommitmentPlanAssociation.json */ /** * Sample code: GetCommitmentPlan. @@ -1421,7 +1501,7 @@ public final class CommitmentPlansGetAssociationSamples { */ public final class CommitmentPlansGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetSharedCommitmentPlan.json + * x-ms-original-file: 2026-03-15-preview/GetSharedCommitmentPlan.json */ /** * Sample code: Get Commitment Plan. @@ -1444,7 +1524,7 @@ public final class CommitmentPlansGetByResourceGroupSamples { */ public final class CommitmentPlansListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListCommitmentPlans.json + * x-ms-original-file: 2026-03-15-preview/ListCommitmentPlans.json */ /** * Sample code: ListCommitmentPlans. @@ -1466,7 +1546,7 @@ public final class CommitmentPlansListSamples { */ public final class CommitmentPlansListAssociationsSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListSharedCommitmentPlanAssociations.json + * x-ms-original-file: 2026-03-15-preview/ListSharedCommitmentPlanAssociations.json */ /** * Sample code: ListCommitmentPlans. @@ -1489,7 +1569,7 @@ public final class CommitmentPlansListAssociationsSamples { */ public final class CommitmentPlansListByResourceGroupSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListSharedCommitmentPlansByResourceGroup.json + * x-ms-original-file: 2026-03-15-preview/ListSharedCommitmentPlansByResourceGroup.json */ /** * Sample code: List Commitment Plans by Resource Group. @@ -1511,7 +1591,7 @@ public final class CommitmentPlansListByResourceGroupSamples { */ public final class CommitmentPlansListPlansBySubscriptionSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListSharedCommitmentPlansBySubscription.json + * x-ms-original-file: 2026-03-15-preview/ListSharedCommitmentPlansBySubscription.json */ /** * Sample code: List Accounts by Subscription. @@ -1537,7 +1617,7 @@ import java.util.Map; */ public final class CommitmentPlansUpdatePlanSamples { /* - * x-ms-original-file: 2026-01-15-preview/UpdateSharedCommitmentPlan.json + * x-ms-original-file: 2026-03-15-preview/UpdateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. @@ -1574,7 +1654,7 @@ public final class CommitmentPlansUpdatePlanSamples { */ public final class CommitmentTiersListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListCommitmentTiers.json + * x-ms-original-file: 2026-03-15-preview/ListCommitmentTiers.json */ /** * Sample code: ListCommitmentTiers. @@ -1596,7 +1676,7 @@ public final class CommitmentTiersListSamples { */ public final class ComputeOperationsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetComputeOperationStatus.json + * x-ms-original-file: 2026-03-15-preview/GetComputeOperationStatus.json */ /** * Sample code: GetComputeOperationStatus. @@ -1611,6 +1691,272 @@ public final class ComputeOperationsGetSamples { } ``` +### Computes_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.ClusterComputeProperties; +import com.azure.resourcemanager.cognitiveservices.models.ContainerInstanceComputeProperties; +import com.azure.resourcemanager.cognitiveservices.models.Identity; +import com.azure.resourcemanager.cognitiveservices.models.Pool; +import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; +import com.azure.resourcemanager.cognitiveservices.models.SshSettings; +import com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity; +import com.azure.resourcemanager.cognitiveservices.models.VmPriority; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Computes CreateOrUpdate. + */ +public final class ComputesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/PutContainerInstanceCompute.json + */ + /** + * Sample code: PutContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + putContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + 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") + .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", + new UserAssignedIdentity()))) + .create(); + } + + /* + * x-ms-original-file: 2026-03-15-preview/PutCompute.json + */ + /** + * Sample code: PutCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void putCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .define("myCompute") + .withExistingAccount("rgcognitiveservices", "myAccount") + .withProperties(new ClusterComputeProperties() + .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") + .withIdentity(new Identity().withType(ResourceIdentityType.NONE)) + .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; + } +} +``` + +### Computes_Delete + +```java +/** + * Samples for Computes Delete. + */ +public final class ComputesDeleteSamples { + /* + * x-ms-original-file: 2026-03-15-preview/DeleteCompute.json + */ + /** + * Sample code: DeleteCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void deleteCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes().delete("rgcognitiveservices", "myAccount", "myCompute", com.azure.core.util.Context.NONE); + } +} +``` + +### Computes_Get + +```java +/** + * Samples for Computes Get. + */ +public final class ComputesGetSamples { + /* + * x-ms-original-file: 2026-03-15-preview/GetContainerInstanceCompute.json + */ + /** + * Sample code: GetContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .getWithResponse("rgcognitiveservices", "myAccount", "myContainerInstance", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-15-preview/GetCompute.json + */ + /** + * Sample code: GetCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .getWithResponse("rgcognitiveservices", "myAccount", "myCompute", com.azure.core.util.Context.NONE); + } +} +``` + +### Computes_List + +```java +/** + * Samples for Computes List. + */ +public final class ComputesListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListComputes.json + */ + /** + * Sample code: ListComputes. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listComputes(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes().list("rgcognitiveservices", "myAccount", com.azure.core.util.Context.NONE); + } +} +``` + +### Computes_Restart + +```java +/** + * Samples for Computes Restart. + */ +public final class ComputesRestartSamples { + /* + * x-ms-original-file: 2026-03-15-preview/RestartContainerInstanceCompute.json + */ + /** + * Sample code: RestartContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + restartContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .restart("rgcognitiveservices", "myAccount", "myContainerInstance", com.azure.core.util.Context.NONE); + } +} +``` + +### Computes_Start + +```java +/** + * Samples for Computes Start. + */ +public final class ComputesStartSamples { + /* + * x-ms-original-file: 2026-03-15-preview/StartContainerInstanceCompute.json + */ + /** + * Sample code: StartContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + startContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .start("rgcognitiveservices", "myAccount", "myContainerInstance", com.azure.core.util.Context.NONE); + } +} +``` + +### Computes_Stop + +```java +/** + * Samples for Computes Stop. + */ +public final class ComputesStopSamples { + /* + * x-ms-original-file: 2026-03-15-preview/StopContainerInstanceCompute.json + */ + /** + * Sample code: StopContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + stopContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .stop("rgcognitiveservices", "myAccount", "myContainerInstance", com.azure.core.util.Context.NONE); + } +} +``` + +### 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-03-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 @@ -1621,7 +1967,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingSt */ public final class DefenderForAISettingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutDefenderForAISetting.json + * x-ms-original-file: 2026-03-15-preview/PutDefenderForAISetting.json */ /** * Sample code: PutDefenderForAISetting. @@ -1647,7 +1993,7 @@ public final class DefenderForAISettingsCreateOrUpdateSamples { */ public final class DefenderForAISettingsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetDefenderForAISetting.json + * x-ms-original-file: 2026-03-15-preview/GetDefenderForAISetting.json */ /** * Sample code: GetDefenderForAISetting. @@ -1670,7 +2016,7 @@ public final class DefenderForAISettingsGetSamples { */ public final class DefenderForAISettingsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListDefenderForAISetting.json + * x-ms-original-file: 2026-03-15-preview/ListDefenderForAISetting.json */ /** * Sample code: ListDefenderForAISetting. @@ -1695,7 +2041,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingSt */ public final class DefenderForAISettingsUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/UpdateDefenderForAISetting.json + * x-ms-original-file: 2026-03-15-preview/UpdateDefenderForAISetting.json */ /** * Sample code: UpdateDefenderForAISetting. @@ -1720,7 +2066,7 @@ public final class DefenderForAISettingsUpdateSamples { */ public final class DeletedAccountsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetDeletedAccount.json + * x-ms-original-file: 2026-03-15-preview/GetDeletedAccount.json */ /** * Sample code: Get Account. @@ -1742,7 +2088,7 @@ public final class DeletedAccountsGetSamples { */ public final class DeletedAccountsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListDeletedAccountsBySubscription.json + * x-ms-original-file: 2026-03-15-preview/ListDeletedAccountsBySubscription.json */ /** * Sample code: List Deleted Accounts by Subscription. @@ -1764,7 +2110,7 @@ public final class DeletedAccountsListSamples { */ public final class DeletedAccountsPurgeSamples { /* - * x-ms-original-file: 2026-01-15-preview/PurgeDeletedAccount.json + * x-ms-original-file: 2026-03-15-preview/PurgeDeletedAccount.json */ /** * Sample code: Delete Account. @@ -1791,7 +2137,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class DeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutDeployment.json + * x-ms-original-file: 2026-03-15-preview/PutDeployment.json */ /** * Sample code: PutDeployment. @@ -1820,7 +2166,7 @@ public final class DeploymentsCreateOrUpdateSamples { */ public final class DeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteDeployment.json + * x-ms-original-file: 2026-03-15-preview/DeleteDeployment.json */ /** * Sample code: DeleteDeployment. @@ -1842,7 +2188,7 @@ public final class DeploymentsDeleteSamples { */ public final class DeploymentsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetDeployment.json + * x-ms-original-file: 2026-03-15-preview/GetDeployment.json */ /** * Sample code: GetDeployment. @@ -1864,7 +2210,7 @@ public final class DeploymentsGetSamples { */ public final class DeploymentsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListDeployments.json + * x-ms-original-file: 2026-03-15-preview/ListDeployments.json */ /** * Sample code: ListDeployments. @@ -1885,7 +2231,7 @@ public final class DeploymentsListSamples { */ public final class DeploymentsListSkusSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListDeploymentSkus.json + * x-ms-original-file: 2026-03-15-preview/ListDeploymentSkus.json */ /** * Sample code: ListDeploymentSkus. @@ -1908,7 +2254,7 @@ public final class DeploymentsListSkusSamples { */ public final class DeploymentsPauseSamples { /* - * x-ms-original-file: 2026-01-15-preview/PauseDeployment.json + * x-ms-original-file: 2026-03-15-preview/PauseDeployment.json */ /** * Sample code: PauseDeployment. @@ -1930,7 +2276,7 @@ public final class DeploymentsPauseSamples { */ public final class DeploymentsResumeSamples { /* - * x-ms-original-file: 2026-01-15-preview/ResumeDeployment.json + * x-ms-original-file: 2026-03-15-preview/ResumeDeployment.json */ /** * Sample code: ResumeDeployment. @@ -1955,7 +2301,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class DeploymentsUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/UpdateDeployment.json + * x-ms-original-file: 2026-03-15-preview/UpdateDeployment.json */ /** * Sample code: UpdateDeployment. @@ -1984,7 +2330,7 @@ import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties; */ public final class EncryptionScopesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutEncryptionScope.json + * x-ms-original-file: 2026-03-15-preview/PutEncryptionScope.json */ /** * Sample code: PutEncryptionScope. @@ -2016,7 +2362,7 @@ public final class EncryptionScopesCreateOrUpdateSamples { */ public final class EncryptionScopesDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteEncryptionScope.json + * x-ms-original-file: 2026-03-15-preview/DeleteEncryptionScope.json */ /** * Sample code: DeleteEncryptionScope. @@ -2039,7 +2385,7 @@ public final class EncryptionScopesDeleteSamples { */ public final class EncryptionScopesGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetEncryptionScope.json + * x-ms-original-file: 2026-03-15-preview/GetEncryptionScope.json */ /** * Sample code: GetEncryptionScope. @@ -2063,7 +2409,7 @@ public final class EncryptionScopesGetSamples { */ public final class EncryptionScopesListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListEncryptionScopes.json + * x-ms-original-file: 2026-03-15-preview/ListEncryptionScopes.json */ /** * Sample code: ListEncryptionScopes. @@ -2085,7 +2431,7 @@ public final class EncryptionScopesListSamples { */ public final class LocationBasedModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-03-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json */ /** * Sample code: ListLocationBasedModelCapacities Global Scope. @@ -2098,7 +2444,7 @@ public final class LocationBasedModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListLocationBasedModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-03-15-preview/ListLocationBasedModelCapacitiesClassicScope.json */ /** * Sample code: ListLocationBasedModelCapacities Classic Scope. @@ -2111,7 +2457,7 @@ public final class LocationBasedModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-03-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json */ /** * Sample code: ListLocationBasedModelCapacities DataZone Scope. @@ -2124,7 +2470,7 @@ public final class LocationBasedModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListLocationBasedModelCapacities.json + * x-ms-original-file: 2026-03-15-preview/ListLocationBasedModelCapacities.json */ /** * Sample code: ListLocationBasedModelCapacities. @@ -2138,6 +2484,248 @@ public final class LocationBasedModelCapacitiesListSamples { } ``` +### ManagedComputeCapacities_List + +```java +/** + * Samples for ManagedComputeCapacities List. + */ +public final class ManagedComputeCapacitiesListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListManagedComputeCapacities.json + */ + /** + * Sample code: List Managed Compute Capacities. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listManagedComputeCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeCapacities().list("MaaP", null, null, com.azure.core.util.Context.NONE); + } +} +``` + +### ManagedComputeDeployments_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.DeploymentModelVersionUpgradeOption; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.Sku; + +/** + * Samples for ManagedComputeDeployments CreateOrUpdate. + */ +public final class ManagedComputeDeploymentsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/CreateOrUpdateManagedComputeDeployment.json + */ + /** + * Sample code: CreateOrUpdateManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void createOrUpdateManagedComputeDeployment( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .define("gpt-oss-120b-gpu") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new ManagedComputeDeploymentProperties() + .withModel("azureml://registries/azureml-openai-oss/models/gpt-oss-120b/versions/4") + .withDeploymentTemplate( + "azureml://registries/azureml-openai-oss/deploymenttemplates/gpt-oss-120b-short-context/versions/1") + .withAcceleratorType("H100_80GB") + .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_NEW_DEFAULT_VERSION_AVAILABLE)) + .withSku(new Sku().withName("GlobalManagedCompute").withCapacity(1)) + .create(); + } + + /* + * x-ms-original-file: 2026-03-15-preview/CreateOrUpdateVmManagedComputeDeployment.json + */ + /** + * Sample code: CreateOrUpdateVmManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void createOrUpdateVmManagedComputeDeployment( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .define("gpt-oss-120b-byoc") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new ManagedComputeDeploymentProperties() + .withModel("azureml://registries/azureml-openai-oss/models/gpt-oss-120b/versions/4") + .withDeploymentTemplate("projects/my-project/deploymentTemplates/gpt-oss-120b-vllm-tuned/versions/2") + .withComputeId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/computes/my-h100-pool") + .withPriority("High")) + .withSku(new Sku().withName("VmManagedCompute").withCapacity(2)) + .create(); + } +} +``` + +### ManagedComputeDeployments_Delete + +```java +/** + * Samples for ManagedComputeDeployments Delete. + */ +public final class ManagedComputeDeploymentsDeleteSamples { + /* + * x-ms-original-file: 2026-03-15-preview/DeleteManagedComputeDeployment.json + */ + /** + * Sample code: DeleteManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .delete("resourceGroupName", "accountName", "gpt-oss-120b-gpu", com.azure.core.util.Context.NONE); + } +} +``` + +### ManagedComputeDeployments_Get + +```java +/** + * Samples for ManagedComputeDeployments Get. + */ +public final class ManagedComputeDeploymentsGetSamples { + /* + * x-ms-original-file: 2026-03-15-preview/GetVmManagedComputeDeployment.json + */ + /** + * Sample code: GetVmManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getVmManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .getWithResponse("resourceGroupName", "accountName", "gpt-oss-120b-byoc", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-15-preview/GetManagedComputeDeployment.json + */ + /** + * Sample code: GetManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .getWithResponse("resourceGroupName", "accountName", "gpt-oss-120b-gpu", com.azure.core.util.Context.NONE); + } +} +``` + +### ManagedComputeDeployments_List + +```java +/** + * Samples for ManagedComputeDeployments List. + */ +public final class ManagedComputeDeploymentsListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListVmManagedComputeDeployments.json + */ + /** + * Sample code: ListVmManagedComputeDeployments. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listVmManagedComputeDeployments(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-15-preview/ListManagedComputeDeployments.json + */ + /** + * Sample code: ListManagedComputeDeployments. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listManagedComputeDeployments(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } +} +``` + +### ManagedComputeDeployments_Update + +```java +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployment; +import com.azure.resourcemanager.cognitiveservices.models.Sku; + +/** + * Samples for ManagedComputeDeployments Update. + */ +public final class ManagedComputeDeploymentsUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/UpdateVmManagedComputeDeployment.json + */ + /** + * Sample code: UpdateVmManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + updateVmManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + ManagedComputeDeployment resource = manager.managedComputeDeployments() + .getWithResponse("resourceGroupName", "accountName", "gpt-oss-120b-byoc", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withSku(new Sku().withName("VmManagedCompute").withCapacity(2)).apply(); + } + + /* + * x-ms-original-file: 2026-03-15-preview/UpdateManagedComputeDeployment.json + */ + /** + * Sample code: UpdateManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + updateManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + ManagedComputeDeployment resource = manager.managedComputeDeployments() + .getWithResponse("resourceGroupName", "accountName", "gpt-oss-120b-gpu", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withSku(new Sku().withName("GlobalManagedCompute").withCapacity(2)).apply(); + } +} +``` + +### ManagedComputeUsagesOperationGroup_List + +```java +/** + * Samples for ManagedComputeUsagesOperationGroup List. + */ +public final class ManagedComputeUsagesOperationGroupListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListManagedComputeUsages.json + */ + /** + * Sample code: List Managed Compute Usages. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listManagedComputeUsages(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeUsagesOperationGroups().list("eastus", com.azure.core.util.Context.NONE); + } +} +``` + ### ManagedNetworkProvisions_ProvisionManagedNetwork ```java @@ -2148,7 +2736,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisio */ public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/provisionManagedNetwork.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/provisionManagedNetwork.json */ /** * Sample code: Provision ManagedNetwork. @@ -2172,7 +2760,7 @@ public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples { */ public final class ManagedNetworkSettingsOperationDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/deleteManagedNetworkV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/deleteManagedNetworkV2.json */ /** * Sample code: Delete ManagedNetworkSettings. @@ -2195,7 +2783,7 @@ public final class ManagedNetworkSettingsOperationDeleteSamples { */ public final class ManagedNetworkSettingsOperationGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/getManagedNetworkV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/getManagedNetworkV2.json */ /** * Sample code: Get ManagedNetworkSettings. @@ -2218,7 +2806,7 @@ public final class ManagedNetworkSettingsOperationGetSamples { */ public final class ManagedNetworkSettingsOperationListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/listManagedNetworkV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/listManagedNetworkV2.json */ /** * Sample code: List ManagedNetworkSettings. @@ -2251,7 +2839,7 @@ import java.util.Map; */ public final class ManagedNetworkSettingsOperationPatchSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/patchManagedNetworkV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/patchManagedNetworkV2.json */ /** * Sample code: Patch ManagedNetworkSettings. @@ -2304,7 +2892,7 @@ import java.util.Map; */ public final class ManagedNetworkSettingsOperationPutSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json */ /** * Sample code: Put ManagedNetworkSettings. @@ -2347,7 +2935,7 @@ public final class ManagedNetworkSettingsOperationPutSamples { */ public final class ModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListModelCapacities.json + * x-ms-original-file: 2026-03-15-preview/ListModelCapacities.json */ /** * Sample code: ListModelCapacities. @@ -2360,7 +2948,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-03-15-preview/ListModelCapacitiesDataZoneScope.json */ /** * Sample code: ListModelCapacities DataZone Scope. @@ -2373,7 +2961,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-03-15-preview/ListModelCapacitiesGlobalScope.json */ /** * Sample code: ListModelCapacities Global Scope. @@ -2386,7 +2974,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-03-15-preview/ListModelCapacitiesClassicScope.json */ /** * Sample code: ListModelCapacities Classic Scope. @@ -2408,7 +2996,7 @@ public final class ModelCapacitiesListSamples { */ public final class ModelsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListLocationModels.json + * x-ms-original-file: 2026-03-15-preview/ListLocationModels.json */ /** * Sample code: ListLocationModels. @@ -2430,7 +3018,7 @@ public final class ModelsListSamples { */ public final class NetworkSecurityPerimeterConfigurationsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-03-15-preview/GetNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: GetNetworkSecurityPerimeterConfigurations. @@ -2454,7 +3042,7 @@ public final class NetworkSecurityPerimeterConfigurationsGetSamples { */ public final class NetworkSecurityPerimeterConfigurationsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-03-15-preview/ListNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ListNetworkSecurityPerimeterConfigurations. @@ -2477,7 +3065,7 @@ public final class NetworkSecurityPerimeterConfigurationsListSamples { */ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { /* - * x-ms-original-file: 2026-01-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-03-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ReconcileNetworkSecurityPerimeterConfigurations. @@ -2500,7 +3088,7 @@ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetOperations.json + * x-ms-original-file: 2026-03-15-preview/GetOperations.json */ /** * Sample code: Get Operations. @@ -2525,7 +3113,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RuleStatus; */ public final class OutboundRuleCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/createOrUpdateRuleV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/createOrUpdateRuleV2.json */ /** * Sample code: CreateOrUpdate OutboundRule. @@ -2553,7 +3141,7 @@ public final class OutboundRuleCreateOrUpdateSamples { */ public final class OutboundRuleDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/deleteRuleV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/deleteRuleV2.json */ /** * Sample code: Delete OutboundRule. @@ -2576,7 +3164,7 @@ public final class OutboundRuleDeleteSamples { */ public final class OutboundRuleGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/getRuleV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/getRuleV2.json */ /** * Sample code: Get OutboundRule. @@ -2599,7 +3187,7 @@ public final class OutboundRuleGetSamples { */ public final class OutboundRuleListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/listRuleV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/listRuleV2.json */ /** * Sample code: List OutboundRules. @@ -2629,7 +3217,7 @@ import java.util.Map; */ public final class OutboundRulesOperationPostSamples { /* - * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/postOutboundRulesV2.json + * x-ms-original-file: 2026-03-15-preview/ManagedNetwork/postOutboundRulesV2.json */ /** * Sample code: Post OutboundRules. @@ -2674,7 +3262,7 @@ import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConn */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutPrivateEndpointConnection.json + * x-ms-original-file: 2026-03-15-preview/PutPrivateEndpointConnection.json */ /** * Sample code: PutPrivateEndpointConnection. @@ -2702,7 +3290,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-03-15-preview/DeletePrivateEndpointConnection.json */ /** * Sample code: DeletePrivateEndpointConnection. @@ -2725,7 +3313,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-03-15-preview/GetPrivateEndpointConnection.json */ /** * Sample code: GetPrivateEndpointConnection. @@ -2748,7 +3336,7 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListPrivateEndpointConnections.json + * x-ms-original-file: 2026-03-15-preview/ListPrivateEndpointConnections.json */ /** * Sample code: GetPrivateEndpointConnection. @@ -2770,7 +3358,7 @@ public final class PrivateEndpointConnectionsListSamples { */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListPrivateLinkResources.json + * x-ms-original-file: 2026-03-15-preview/ListPrivateLinkResources.json */ /** * Sample code: ListPrivateLinkResources. @@ -2795,7 +3383,7 @@ import java.util.Arrays; */ public final class ProjectCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-03-15-preview/ProjectCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Project CapabilityHost. @@ -2825,7 +3413,7 @@ public final class ProjectCapabilityHostsCreateOrUpdateSamples { */ public final class ProjectCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectCapabilityHost/delete.json + * x-ms-original-file: 2026-03-15-preview/ProjectCapabilityHost/delete.json */ /** * Sample code: Delete Project CapabilityHost. @@ -2848,7 +3436,7 @@ public final class ProjectCapabilityHostsDeleteSamples { */ public final class ProjectCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectCapabilityHost/get.json + * x-ms-original-file: 2026-03-15-preview/ProjectCapabilityHost/get.json */ /** * Sample code: Get Project CapabilityHost. @@ -2872,7 +3460,7 @@ public final class ProjectCapabilityHostsGetSamples { */ public final class ProjectCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectCapabilityHost/list.json + * x-ms-original-file: 2026-03-15-preview/ProjectCapabilityHost/list.json */ /** * Sample code: List Project CapabilityHosts. @@ -2898,7 +3486,7 @@ import java.time.OffsetDateTime; */ public final class ProjectConnectionsCreateSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectConnection/create.json + * x-ms-original-file: 2026-03-15-preview/ProjectConnection/create.json */ /** * Sample code: CreateProjectConnection. @@ -2926,7 +3514,7 @@ public final class ProjectConnectionsCreateSamples { */ public final class ProjectConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectConnection/delete.json + * x-ms-original-file: 2026-03-15-preview/ProjectConnection/delete.json */ /** * Sample code: DeleteProjectConnection. @@ -2950,7 +3538,7 @@ public final class ProjectConnectionsDeleteSamples { */ public final class ProjectConnectionsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectConnection/get.json + * x-ms-original-file: 2026-03-15-preview/ProjectConnection/get.json */ /** * Sample code: GetProjectConnection. @@ -2974,7 +3562,7 @@ public final class ProjectConnectionsGetSamples { */ public final class ProjectConnectionsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectConnection/list.json + * x-ms-original-file: 2026-03-15-preview/ProjectConnection/list.json */ /** * Sample code: ListProjectConnection. @@ -3006,7 +3594,7 @@ import java.util.Map; */ public final class ProjectConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectConnection/update.json + * x-ms-original-file: 2026-03-15-preview/ProjectConnection/update.json */ /** * Sample code: UpdateProjectConnection. @@ -3054,7 +3642,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; */ public final class ProjectsCreateSamples { /* - * x-ms-original-file: 2026-01-15-preview/CreateProjectMin.json + * x-ms-original-file: 2026-03-15-preview/CreateProjectMin.json */ /** * Sample code: Create Project Min. @@ -3072,7 +3660,7 @@ public final class ProjectsCreateSamples { } /* - * x-ms-original-file: 2026-01-15-preview/CreateProject.json + * x-ms-original-file: 2026-03-15-preview/CreateProject.json */ /** * Sample code: Create Project. @@ -3100,7 +3688,7 @@ public final class ProjectsCreateSamples { */ public final class ProjectsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteProject.json + * x-ms-original-file: 2026-03-15-preview/DeleteProject.json */ /** * Sample code: Delete Project. @@ -3121,7 +3709,7 @@ public final class ProjectsDeleteSamples { */ public final class ProjectsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetProject.json + * x-ms-original-file: 2026-03-15-preview/GetProject.json */ /** * Sample code: Get Project. @@ -3143,7 +3731,7 @@ public final class ProjectsGetSamples { */ public final class ProjectsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListProjects.json + * x-ms-original-file: 2026-03-15-preview/ListProjects.json */ /** * Sample code: List Project. @@ -3167,7 +3755,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties; */ public final class ProjectsUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/UpdateProjects.json + * x-ms-original-file: 2026-03-15-preview/UpdateProjects.json */ /** * Sample code: Update Project. @@ -3194,7 +3782,7 @@ import com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy; */ public final class QuotaTiersCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/CreateOrUpdateQuotaTier.json + * x-ms-original-file: 2026-03-15-preview/CreateOrUpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. @@ -3219,7 +3807,7 @@ public final class QuotaTiersCreateOrUpdateSamples { */ public final class QuotaTiersGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetQuotaTier.json + * x-ms-original-file: 2026-03-15-preview/GetQuotaTier.json */ /** * Sample code: Get the Quota Tier information for a subscription. @@ -3241,7 +3829,7 @@ public final class QuotaTiersGetSamples { */ public final class QuotaTiersListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListQuotaTiers.json + * x-ms-original-file: 2026-03-15-preview/ListQuotaTiers.json */ /** * Sample code: List the Quota Tier for a subscription. @@ -3267,7 +3855,7 @@ import com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy; */ public final class QuotaTiersUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/UpdateQuotaTier.json + * x-ms-original-file: 2026-03-15-preview/UpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. @@ -3297,7 +3885,7 @@ import java.util.Arrays; */ public final class RaiBlocklistItemsBatchAddSamples { /* - * x-ms-original-file: 2026-01-15-preview/AddRaiBlocklistItems.json + * x-ms-original-file: 2026-03-15-preview/AddRaiBlocklistItems.json */ /** * Sample code: AddRaiBlocklistItems. @@ -3329,7 +3917,7 @@ import java.util.Arrays; */ public final class RaiBlocklistItemsBatchDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteRaiBlocklistItems.json + * x-ms-original-file: 2026-03-15-preview/DeleteRaiBlocklistItems.json */ /** * Sample code: DeleteRaiBlocklistItems. @@ -3355,7 +3943,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProper */ public final class RaiBlocklistItemsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutRaiBlocklistItem.json + * x-ms-original-file: 2026-03-15-preview/PutRaiBlocklistItem.json */ /** * Sample code: PutRaiBlocklistItem. @@ -3381,7 +3969,7 @@ public final class RaiBlocklistItemsCreateOrUpdateSamples { */ public final class RaiBlocklistItemsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteRaiBlocklistItem.json + * x-ms-original-file: 2026-03-15-preview/DeleteRaiBlocklistItem.json */ /** * Sample code: DeleteRaiBlocklistItem. @@ -3405,7 +3993,7 @@ public final class RaiBlocklistItemsDeleteSamples { */ public final class RaiBlocklistItemsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetRaiBlocklistItem.json + * x-ms-original-file: 2026-03-15-preview/GetRaiBlocklistItem.json */ /** * Sample code: GetRaiBlocklistItem. @@ -3429,7 +4017,7 @@ public final class RaiBlocklistItemsGetSamples { */ public final class RaiBlocklistItemsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListBlocklistItems.json + * x-ms-original-file: 2026-03-15-preview/ListBlocklistItems.json */ /** * Sample code: ListBlocklistItems. @@ -3454,7 +4042,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties */ public final class RaiBlocklistsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutRaiBlocklist.json + * x-ms-original-file: 2026-03-15-preview/PutRaiBlocklist.json */ /** * Sample code: PutRaiBlocklist. @@ -3479,7 +4067,7 @@ public final class RaiBlocklistsCreateOrUpdateSamples { */ public final class RaiBlocklistsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteRaiBlocklist.json + * x-ms-original-file: 2026-03-15-preview/DeleteRaiBlocklist.json */ /** * Sample code: DeleteRaiBlocklist. @@ -3502,7 +4090,7 @@ public final class RaiBlocklistsDeleteSamples { */ public final class RaiBlocklistsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetRaiBlocklist.json + * x-ms-original-file: 2026-03-15-preview/GetRaiBlocklist.json */ /** * Sample code: GetRaiBlocklist. @@ -3524,7 +4112,7 @@ public final class RaiBlocklistsGetSamples { */ public final class RaiBlocklistsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListBlocklists.json + * x-ms-original-file: 2026-03-15-preview/ListBlocklists.json */ /** * Sample code: ListBlocklists. @@ -3545,7 +4133,7 @@ public final class RaiBlocklistsListSamples { */ public final class RaiContentFiltersGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetRaiContentFilter.json + * x-ms-original-file: 2026-03-15-preview/GetRaiContentFilter.json */ /** * Sample code: GetRaiContentFilters. @@ -3567,7 +4155,7 @@ public final class RaiContentFiltersGetSamples { */ public final class RaiContentFiltersListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListRaiContentFilters.json + * x-ms-original-file: 2026-03-15-preview/ListRaiContentFilters.json */ /** * Sample code: ListRaiContentFilters. @@ -3592,7 +4180,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProvi */ public final class RaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-03-15-preview/PutRaiExternalSafetyProvider.json */ /** * Sample code: PutRaiExternalSafetyProvider. @@ -3623,7 +4211,7 @@ public final class RaiExternalSafetyProviderCreateOrUpdateSamples { */ public final class RaiExternalSafetyProviderDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-03-15-preview/DeleteRaiExternalSafetyProvider.json */ /** * Sample code: DeleteRaiTopic. @@ -3644,7 +4232,7 @@ public final class RaiExternalSafetyProviderDeleteSamples { */ public final class RaiExternalSafetyProviderGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-03-15-preview/GetRaiExternalSafetyProvider.json */ /** * Sample code: GetRaiExternalSafetyProvider. @@ -3666,7 +4254,7 @@ public final class RaiExternalSafetyProviderGetSamples { */ public final class RaiExternalSafetyProvidersOperationListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListRaiExternalSafetyProviders.json + * x-ms-original-file: 2026-03-15-preview/ListRaiExternalSafetyProviders.json */ /** * Sample code: ListRaiExternalSafetyProviders. @@ -3695,7 +4283,7 @@ import java.util.Arrays; */ public final class RaiPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutRaiPolicy.json + * x-ms-original-file: 2026-03-15-preview/PutRaiPolicy.json */ /** * Sample code: PutRaiPolicy. @@ -3778,7 +4366,7 @@ public final class RaiPoliciesCreateOrUpdateSamples { */ public final class RaiPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteRaiPolicy.json + * x-ms-original-file: 2026-03-15-preview/DeleteRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. @@ -3800,7 +4388,7 @@ public final class RaiPoliciesDeleteSamples { */ public final class RaiPoliciesGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetRaiPolicy.json + * x-ms-original-file: 2026-03-15-preview/GetRaiPolicy.json */ /** * Sample code: GetRaiPolicy. @@ -3822,7 +4410,7 @@ public final class RaiPoliciesGetSamples { */ public final class RaiPoliciesListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListRaiPolicies.json + * x-ms-original-file: 2026-03-15-preview/ListRaiPolicies.json */ /** * Sample code: ListRaiPolicies. @@ -3850,7 +4438,7 @@ import java.util.Map; */ public final class RaiToolLabelsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutRaiToolLabel.json + * x-ms-original-file: 2026-03-15-preview/PutRaiToolLabel.json */ /** * Sample code: PutRaiToolLabel. @@ -3894,7 +4482,7 @@ public final class RaiToolLabelsCreateOrUpdateSamples { */ public final class RaiToolLabelsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteRaiToolLabel.json + * x-ms-original-file: 2026-03-15-preview/DeleteRaiToolLabel.json */ /** * Sample code: DeleteRaiToolLabel. @@ -3917,7 +4505,7 @@ public final class RaiToolLabelsDeleteSamples { */ public final class RaiToolLabelsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetRaiToolLabel.json + * x-ms-original-file: 2026-03-15-preview/GetRaiToolLabel.json */ /** * Sample code: GetRaiToolLabel. @@ -3939,7 +4527,7 @@ public final class RaiToolLabelsGetSamples { */ public final class RaiToolLabelsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListRaiToolLabels.json + * x-ms-original-file: 2026-03-15-preview/ListRaiToolLabels.json */ /** * Sample code: ListRaiToolLabels. @@ -3962,7 +4550,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiTopicProperties; */ public final class RaiTopicsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutRaiTopic.json + * x-ms-original-file: 2026-03-15-preview/PutRaiTopic.json */ /** * Sample code: PutRaiTopic. @@ -3989,7 +4577,7 @@ public final class RaiTopicsCreateOrUpdateSamples { */ public final class RaiTopicsDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteRaiTopic.json + * x-ms-original-file: 2026-03-15-preview/DeleteRaiTopic.json */ /** * Sample code: DeleteRaiTopic. @@ -4011,7 +4599,7 @@ public final class RaiTopicsDeleteSamples { */ public final class RaiTopicsGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetRaiTopic.json + * x-ms-original-file: 2026-03-15-preview/GetRaiTopic.json */ /** * Sample code: GetRaiTopic. @@ -4033,7 +4621,7 @@ public final class RaiTopicsGetSamples { */ public final class RaiTopicsListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListRaiTopics.json + * x-ms-original-file: 2026-03-15-preview/ListRaiTopics.json */ /** * Sample code: ListRaiTopics. @@ -4060,7 +4648,7 @@ import java.util.Arrays; */ public final class ResourceProviderCalculateModelCapacitySamples { /* - * x-ms-original-file: 2026-01-15-preview/CalculateModelCapacity.json + * x-ms-original-file: 2026-03-15-preview/CalculateModelCapacity.json */ /** * Sample code: Calculate Model Capacity. @@ -4095,7 +4683,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilit */ public final class ResourceProviderCheckDomainAvailabilitySamples { /* - * x-ms-original-file: 2026-01-15-preview/CheckDomainAvailability.json + * x-ms-original-file: 2026-03-15-preview/CheckDomainAvailability.json */ /** * Sample code: Check SKU Availability. @@ -4124,7 +4712,7 @@ import java.util.Arrays; */ public final class ResourceProviderCheckSkuAvailabilitySamples { /* - * x-ms-original-file: 2026-01-15-preview/CheckSkuAvailability.json + * x-ms-original-file: 2026-03-15-preview/CheckSkuAvailability.json */ /** * Sample code: Check SKU Availability. @@ -4151,7 +4739,7 @@ public final class ResourceProviderCheckSkuAvailabilitySamples { */ public final class ResourceSkusListSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetSkus.json + * x-ms-original-file: 2026-03-15-preview/GetSkus.json */ /** * Sample code: Regenerate Keys. @@ -4180,7 +4768,7 @@ import java.util.Arrays; */ public final class SubscriptionRaiPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-03-15-preview/PutSubscriptionRaiPolicy.json */ /** * Sample code: PutRaiPolicy. @@ -4263,7 +4851,7 @@ public final class SubscriptionRaiPolicyCreateOrUpdateSamples { */ public final class SubscriptionRaiPolicyDeleteSamples { /* - * x-ms-original-file: 2026-01-15-preview/DeleteSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-03-15-preview/DeleteSubscriptionRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. @@ -4284,7 +4872,7 @@ public final class SubscriptionRaiPolicyDeleteSamples { */ public final class SubscriptionRaiPolicyGetSamples { /* - * x-ms-original-file: 2026-01-15-preview/GetSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-03-15-preview/GetSubscriptionRaiPolicy.json */ /** * Sample code: GetRaiPolicy. @@ -4307,7 +4895,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProvi */ public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/TestRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-03-15-preview/TestRaiExternalSafetyProvider.json */ /** * Sample code: TestRaiExternalSafetyProvider. @@ -4340,7 +4928,7 @@ public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples { */ public final class UsagesListSamples { /* - * x-ms-original-file: 2026-01-15-preview/ListUsages.json + * x-ms-original-file: 2026-03-15-preview/ListUsages.json */ /** * Sample code: Get Usages. @@ -4352,7 +4940,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListUsagesClassicScope.json + * x-ms-original-file: 2026-03-15-preview/ListUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -4365,7 +4953,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListUsagesDataZoneScope.json + * x-ms-original-file: 2026-03-15-preview/ListUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -4378,7 +4966,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListUsagesGlobalScope.json + * x-ms-original-file: 2026-03-15-preview/ListUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. @@ -4392,3 +4980,241 @@ public final class UsagesListSamples { } ``` +### Workbenches_CreateOrUpdate + +```java +import com.azure.resourcemanager.cognitiveservices.models.Identity; +import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; +import com.azure.resourcemanager.cognitiveservices.models.SshSettings; +import com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity; +import com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Workbenches CreateOrUpdate. + */ +public final class WorkbenchesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/PutWorkbench.json + */ + /** + * Sample code: PutWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void putWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .define("myWorkbench") + .withExistingProject("rgcognitiveservices", "myAccount", "myProject") + .withProperties(new WorkbenchProperties().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") + .withDatasetId("dataset-12345") + .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", + 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; + } +} +``` + +### Workbenches_Delete + +```java +/** + * Samples for Workbenches Delete. + */ +public final class WorkbenchesDeleteSamples { + /* + * x-ms-original-file: 2026-03-15-preview/DeleteWorkbench.json + */ + /** + * Sample code: DeleteWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void deleteWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .delete("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", com.azure.core.util.Context.NONE); + } +} +``` + +### Workbenches_Get + +```java +/** + * Samples for Workbenches Get. + */ +public final class WorkbenchesGetSamples { + /* + * x-ms-original-file: 2026-03-15-preview/GetWorkbench.json + */ + /** + * Sample code: GetWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .getWithResponse("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", + com.azure.core.util.Context.NONE); + } +} +``` + +### Workbenches_List + +```java +/** + * Samples for Workbenches List. + */ +public final class WorkbenchesListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListWorkbenches.json + */ + /** + * Sample code: ListWorkbenches. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listWorkbenches(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches().list("rgcognitiveservices", "myAccount", "myProject", com.azure.core.util.Context.NONE); + } +} +``` + +### Workbenches_Restart + +```java +/** + * Samples for Workbenches Restart. + */ +public final class WorkbenchesRestartSamples { + /* + * x-ms-original-file: 2026-03-15-preview/RestartWorkbench.json + */ + /** + * Sample code: RestartWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void restartWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .restart("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", com.azure.core.util.Context.NONE); + } +} +``` + +### Workbenches_Start + +```java +/** + * Samples for Workbenches Start. + */ +public final class WorkbenchesStartSamples { + /* + * x-ms-original-file: 2026-03-15-preview/StartWorkbench.json + */ + /** + * Sample code: StartWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void startWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .start("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", com.azure.core.util.Context.NONE); + } +} +``` + +### Workbenches_Stop + +```java +/** + * Samples for Workbenches Stop. + */ +public final class WorkbenchesStopSamples { + /* + * x-ms-original-file: 2026-03-15-preview/StopWorkbench.json + */ + /** + * Sample code: StopWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void stopWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .stop("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", com.azure.core.util.Context.NONE); + } +} +``` + +### Workbenches_Update + +```java +import com.azure.resourcemanager.cognitiveservices.models.SshSettings; +import com.azure.resourcemanager.cognitiveservices.models.Workbench; +import com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Workbenches Update. + */ +public final class WorkbenchesUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/UpdateWorkbench.json + */ + /** + * Sample code: UpdateWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void updateWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + Workbench resource = manager.workbenches() + .getWithResponse("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("environment", "production")) + .withProperties(new WorkbenchProperties().withTargetClusterId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.CognitiveServices/accounts/myAccount/computes/myCluster") + .withImageLink("mcr.microsoft.com/azureml/curated/pytorch-gpu:v2") + .withIdleTimeBeforeShutdown("PT1H") + .withDatasetId("dataset-67890") + .withSshSettings(new SshSettings().withSshPublicKey("fakeTokenPlaceholder").withAdminEnabled(true))) + .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/pom.xml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml index 860d05c11216..c89b21b1639c 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-01-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-03-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 250727eb5d11..43a40fd85e12 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 @@ -34,11 +34,15 @@ import com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansImpl; import com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersImpl; import com.azure.resourcemanager.cognitiveservices.implementation.ComputeOperationsImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.ComputesImpl; import com.azure.resourcemanager.cognitiveservices.implementation.DefenderForAISettingsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.DeletedAccountsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.DeploymentsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.EncryptionScopesImpl; import com.azure.resourcemanager.cognitiveservices.implementation.LocationBasedModelCapacitiesImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeCapacitiesImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeDeploymentsImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeUsagesOperationGroupsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkProvisionsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkSettingsOperationsImpl; import com.azure.resourcemanager.cognitiveservices.implementation.ModelCapacitiesImpl; @@ -66,6 +70,7 @@ import com.azure.resourcemanager.cognitiveservices.implementation.SubscriptionRaiPoliciesImpl; import com.azure.resourcemanager.cognitiveservices.implementation.TestRaiExternalSafetyProvidersImpl; import com.azure.resourcemanager.cognitiveservices.implementation.UsagesImpl; +import com.azure.resourcemanager.cognitiveservices.implementation.WorkbenchesImpl; import com.azure.resourcemanager.cognitiveservices.models.AccountCapabilityHosts; import com.azure.resourcemanager.cognitiveservices.models.AccountConnections; import com.azure.resourcemanager.cognitiveservices.models.Accounts; @@ -74,11 +79,15 @@ import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlans; import com.azure.resourcemanager.cognitiveservices.models.CommitmentTiers; import com.azure.resourcemanager.cognitiveservices.models.ComputeOperations; +import com.azure.resourcemanager.cognitiveservices.models.Computes; import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettings; import com.azure.resourcemanager.cognitiveservices.models.DeletedAccounts; import com.azure.resourcemanager.cognitiveservices.models.Deployments; import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopes; import com.azure.resourcemanager.cognitiveservices.models.LocationBasedModelCapacities; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacities; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployments; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeUsagesOperationGroups; import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisions; import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsOperations; import com.azure.resourcemanager.cognitiveservices.models.ModelCapacities; @@ -106,6 +115,7 @@ import com.azure.resourcemanager.cognitiveservices.models.SubscriptionRaiPolicies; import com.azure.resourcemanager.cognitiveservices.models.TestRaiExternalSafetyProviders; import com.azure.resourcemanager.cognitiveservices.models.Usages; +import com.azure.resourcemanager.cognitiveservices.models.Workbenches; import java.time.Duration; import java.time.temporal.ChronoUnit; import java.util.ArrayList; @@ -163,8 +173,18 @@ public final class CognitiveServicesManager { private AgentApplications agentApplications; + private ManagedComputeDeployments managedComputeDeployments; + private ComputeOperations computeOperations; + private ManagedComputeUsagesOperationGroups managedComputeUsagesOperationGroups; + + private Computes computes; + + private Workbenches workbenches; + + private ManagedComputeCapacities managedComputeCapacities; + private PrivateLinkResources privateLinkResources; private TestRaiExternalSafetyProviders testRaiExternalSafetyProviders; @@ -682,6 +702,19 @@ public AgentApplications agentApplications() { return agentApplications; } + /** + * Gets the resource collection API of ManagedComputeDeployments. It manages ManagedComputeDeployment. + * + * @return Resource collection API of ManagedComputeDeployments. + */ + public ManagedComputeDeployments managedComputeDeployments() { + if (this.managedComputeDeployments == null) { + this.managedComputeDeployments + = new ManagedComputeDeploymentsImpl(clientObject.getManagedComputeDeployments(), this); + } + return managedComputeDeployments; + } + /** * Gets the resource collection API of ComputeOperations. * @@ -694,6 +727,56 @@ public ComputeOperations computeOperations() { return computeOperations; } + /** + * Gets the resource collection API of ManagedComputeUsagesOperationGroups. + * + * @return Resource collection API of ManagedComputeUsagesOperationGroups. + */ + public ManagedComputeUsagesOperationGroups managedComputeUsagesOperationGroups() { + if (this.managedComputeUsagesOperationGroups == null) { + this.managedComputeUsagesOperationGroups = new ManagedComputeUsagesOperationGroupsImpl( + clientObject.getManagedComputeUsagesOperationGroups(), this); + } + return managedComputeUsagesOperationGroups; + } + + /** + * Gets the resource collection API of Computes. It manages Compute. + * + * @return Resource collection API of Computes. + */ + public Computes computes() { + if (this.computes == null) { + this.computes = new ComputesImpl(clientObject.getComputes(), this); + } + return computes; + } + + /** + * Gets the resource collection API of Workbenches. It manages Workbench. + * + * @return Resource collection API of Workbenches. + */ + public Workbenches workbenches() { + if (this.workbenches == null) { + this.workbenches = new WorkbenchesImpl(clientObject.getWorkbenches(), this); + } + return workbenches; + } + + /** + * Gets the resource collection API of ManagedComputeCapacities. + * + * @return Resource collection API of ManagedComputeCapacities. + */ + public ManagedComputeCapacities managedComputeCapacities() { + if (this.managedComputeCapacities == null) { + this.managedComputeCapacities + = new ManagedComputeCapacitiesImpl(clientObject.getManagedComputeCapacities(), this); + } + return managedComputeCapacities; + } + /** * Gets the resource collection API of PrivateLinkResources. * diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java index 0e89180537dc..165058be53d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java @@ -15,7 +15,9 @@ import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountModelInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountSkuListResultInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.ApiKeysInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest; import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameters; /** @@ -430,4 +432,35 @@ Response listUsagesWithResponse(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listModels(String resourceGroupName, String accountName, Context context); + + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param body The content of the action request. + * @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 response body for the evaluateDeploymentPolicies action along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response evaluateDeploymentPoliciesWithResponse(String resourceGroupName, + String accountName, EvaluateDeploymentPoliciesRequest body, Context context); + + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 response body for the evaluateDeploymentPolicies action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EvaluateDeploymentPoliciesResponseInner evaluateDeploymentPolicies(String resourceGroupName, String accountName, + EvaluateDeploymentPoliciesRequest body); } 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 61ed2e9750b4..a4627997b782 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 @@ -200,6 +200,13 @@ public interface CognitiveServicesManagementClient { */ AgentApplicationsClient getAgentApplications(); + /** + * Gets the ManagedComputeDeploymentsClient object to access its operations. + * + * @return the ManagedComputeDeploymentsClient object. + */ + ManagedComputeDeploymentsClient getManagedComputeDeployments(); + /** * Gets the ComputeOperationsClient object to access its operations. * @@ -207,6 +214,34 @@ public interface CognitiveServicesManagementClient { */ ComputeOperationsClient getComputeOperations(); + /** + * Gets the ManagedComputeUsagesOperationGroupsClient object to access its operations. + * + * @return the ManagedComputeUsagesOperationGroupsClient object. + */ + ManagedComputeUsagesOperationGroupsClient getManagedComputeUsagesOperationGroups(); + + /** + * Gets the ComputesClient object to access its operations. + * + * @return the ComputesClient object. + */ + ComputesClient getComputes(); + + /** + * Gets the WorkbenchesClient object to access its operations. + * + * @return the WorkbenchesClient object. + */ + WorkbenchesClient getWorkbenches(); + + /** + * Gets the ManagedComputeCapacitiesClient object to access its operations. + * + * @return the ManagedComputeCapacitiesClient object. + */ + ManagedComputeCapacitiesClient getManagedComputeCapacities(); + /** * Gets the PrivateLinkResourcesClient 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 new file mode 100644 index 000000000000..f10d17f244bc --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java @@ -0,0 +1,461 @@ +// 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.ComputeInner; + +/** + * An instance of this class provides access to all the operations defined in ComputesClient. + */ +public interface ComputesClient { + /** + * Gets the specified 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 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 compute associated with the Cognitive Services account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, String computeName, + Context context); + + /** + * Gets the specified 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 compute associated with the Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ComputeInner get(String resourceGroupName, String accountName, String computeName); + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ComputeInner> beginCreateOrUpdate(String resourceGroupName, String accountName, + String computeName, ComputeInner resource); + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ComputeInner> beginCreateOrUpdate(String resourceGroupName, String accountName, + String computeName, ComputeInner resource, Context context); + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ComputeInner createOrUpdate(String resourceGroupName, String accountName, String computeName, + ComputeInner resource); + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @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. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 computeName); + + /** + * Deletes the specified 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 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 computeName, + Context context); + + /** + * Deletes the specified 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 computeName); + + /** + * Deletes the specified 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 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 computeName, Context context); + + /** + * Gets the computes 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 computes associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the computes 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 computes associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginStart(String resourceGroupName, String accountName, String computeName); + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginStart(String resourceGroupName, String accountName, String computeName, + Context context); + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void start(String resourceGroupName, String accountName, String computeName); + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void start(String resourceGroupName, String accountName, String computeName, Context context); + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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> beginStop(String resourceGroupName, String accountName, String computeName); + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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> beginStop(String resourceGroupName, String accountName, String computeName, + Context context); + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void stop(String resourceGroupName, String accountName, String computeName); + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 stop(String resourceGroupName, String accountName, String computeName, Context context); + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRestart(String resourceGroupName, String accountName, String computeName); + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRestart(String resourceGroupName, String accountName, String computeName, + Context context); + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void restart(String resourceGroupName, String accountName, String computeName); + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void restart(String resourceGroupName, String accountName, String computeName, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeCapacitiesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeCapacitiesClient.java new file mode 100644 index 000000000000..34d323f9432a --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeCapacitiesClient.java @@ -0,0 +1,47 @@ +// 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.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner; + +/** + * An instance of this class provides access to all the operations defined in ManagedComputeCapacitiesClient. + */ +public interface ManagedComputeCapacitiesClient { + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 managed compute capacities for a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String offer); + + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @param acceleratorType Optional accelerator type filter to narrow results to a specific accelerator type. + * @param deploymentId Optional deployment resource ID. When provided, returns capacity for the specific region + * where the deployment is hosted rather than the best available region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the managed compute capacities for a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String offer, String acceleratorType, String deploymentId, + Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeDeploymentsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeDeploymentsClient.java new file mode 100644 index 000000000000..f64588c2a057 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeDeploymentsClient.java @@ -0,0 +1,275 @@ +// 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.ManagedComputeDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.models.PatchResourceSku; + +/** + * An instance of this class provides access to all the operations defined in ManagedComputeDeploymentsClient. + */ +public interface ManagedComputeDeploymentsClient { + /** + * Gets the specified managed compute 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 managed compute deployment associated with the 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 specified managed compute 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 managed compute 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 managed compute deployment associated with the 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 specified managed compute deployment associated with the Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedComputeDeploymentInner get(String resourceGroupName, String accountName, String deploymentName); + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ManagedComputeDeploymentInner> beginCreateOrUpdate( + String resourceGroupName, String accountName, String deploymentName, ManagedComputeDeploymentInner resource); + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ManagedComputeDeploymentInner> beginCreateOrUpdate( + String resourceGroupName, String accountName, String deploymentName, ManagedComputeDeploymentInner resource, + Context context); + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedComputeDeploymentInner createOrUpdate(String resourceGroupName, String accountName, String deploymentName, + ManagedComputeDeploymentInner resource); + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedComputeDeploymentInner createOrUpdate(String resourceGroupName, String accountName, String deploymentName, + ManagedComputeDeploymentInner resource, Context context); + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ManagedComputeDeploymentInner> + beginUpdate(String resourceGroupName, String accountName, String deploymentName, PatchResourceSku properties); + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ManagedComputeDeploymentInner> beginUpdate( + String resourceGroupName, String accountName, String deploymentName, PatchResourceSku properties, + Context context); + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedComputeDeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + PatchResourceSku properties); + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedComputeDeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + PatchResourceSku properties, Context context); + + /** + * Deletes the specified managed compute 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 managed compute deployment associated with the 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 {@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 managed compute 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 managed compute deployment associated with the 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 {@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 managed compute 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 managed compute deployment associated with the 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String deploymentName); + + /** + * Deletes the specified managed compute 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 managed compute deployment associated with the 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String deploymentName, Context context); + + /** + * Gets the managed compute 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 managed compute 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 managed compute 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 managed compute 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/ManagedComputeUsagesOperationGroupsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeUsagesOperationGroupsClient.java new file mode 100644 index 000000000000..3ca36d9a9727 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeUsagesOperationGroupsClient.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.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.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner; + +/** + * An instance of this class provides access to all the operations defined in ManagedComputeUsagesOperationGroupsClient. + */ +public interface ManagedComputeUsagesOperationGroupsClient { + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of managed compute quota entries as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location); + + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of managed compute quota entries as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/WorkbenchesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/WorkbenchesClient.java new file mode 100644 index 000000000000..ada1d7322cf3 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/WorkbenchesClient.java @@ -0,0 +1,503 @@ +// 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.WorkbenchInner; + +/** + * An instance of this class provides access to all the operations defined in WorkbenchesClient. + */ +public interface WorkbenchesClient { + /** + * Gets the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 workbench associated with the project along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context); + + /** + * Gets the specified workbench associated with the 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 workbenchName The name of the workbench associated with the 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 specified workbench associated with the project. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkbenchInner get(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkbenchInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner resource); + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkbenchInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner resource, Context context); + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkbenchInner createOrUpdate(String resourceGroupName, String accountName, String projectName, + String workbenchName, WorkbenchInner resource); + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkbenchInner createOrUpdate(String resourceGroupName, String accountName, String projectName, + String workbenchName, WorkbenchInner resource, Context context); + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkbenchInner> beginUpdate(String resourceGroupName, String accountName, + String projectName, String workbenchName, WorkbenchInner properties); + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, WorkbenchInner> beginUpdate(String resourceGroupName, String accountName, + String projectName, String workbenchName, WorkbenchInner properties, Context context); + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkbenchInner update(String resourceGroupName, String accountName, String projectName, String workbenchName, + WorkbenchInner properties); + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + WorkbenchInner update(String resourceGroupName, String accountName, String projectName, String workbenchName, + WorkbenchInner properties, Context context); + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the 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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String projectName, + String workbenchName); + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, + String workbenchName, Context context); + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, String workbenchName, + Context context); + + /** + * Gets the workbenches associated with the 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 workbenches associated with the project as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String projectName); + + /** + * Gets the workbenches associated with the 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 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 workbenches associated with the project as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String accountName, String projectName, + Context context); + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginStart(String resourceGroupName, String accountName, String projectName, + String workbenchName); + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginStart(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context); + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void start(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void start(String resourceGroupName, String accountName, String projectName, String workbenchName, Context context); + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginStop(String resourceGroupName, String accountName, String projectName, + String workbenchName); + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginStop(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context); + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void stop(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 stop(String resourceGroupName, String accountName, String projectName, String workbenchName, Context context); + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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 {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRestart(String resourceGroupName, String accountName, String projectName, + String workbenchName); + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginRestart(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context); + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void restart(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void restart(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context); +} 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 new file mode 100644 index 000000000000..6bdd7649390d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java @@ -0,0 +1,289 @@ +// 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.ComputeProperties; +import com.azure.resourcemanager.cognitiveservices.models.Identity; +import java.io.IOException; +import java.util.Map; + +/** + * Cognitive Services compute resource. Supports polymorphic compute types + * (Cluster, ContainerInstance) via the computeType discriminator in properties. + */ +@Fluent +public final class ComputeInner extends ProxyResource { + /* + * Polymorphic properties of the compute resource. Use computeType to select Cluster or ContainerInstance. + */ + private ComputeProperties properties; + + /* + * Resource Etag. + */ + private String etag; + + /* + * The location of the compute resource. + */ + private String location; + + /* + * Resource tags. + */ + private Map tags; + + /* + * The kind (type) of compute resource. + */ + private String kind; + + /* + * Identity for the resource. + */ + private Identity identity; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ComputeInner class. + */ + public ComputeInner() { + } + + /** + * Get the properties property: Polymorphic properties of the compute resource. Use computeType to select Cluster or + * ContainerInstance. + * + * @return the properties value. + */ + public ComputeProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Polymorphic properties of the compute resource. Use computeType to select Cluster or + * ContainerInstance. + * + * @param properties the properties value to set. + * @return the ComputeInner object itself. + */ + public ComputeInner withProperties(ComputeProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the etag property: Resource Etag. + * + * @return the etag value. + */ + 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. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the ComputeInner object itself. + */ + public ComputeInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the kind property: The kind (type) of compute resource. + * + * @return the kind value. + */ + public String kind() { + return this.kind; + } + + /** + * Set the kind property: The kind (type) of compute resource. + * + * @param kind the kind value to set. + * @return the ComputeInner object itself. + */ + public ComputeInner withKind(String kind) { + this.kind = kind; + return this; + } + + /** + * Get the identity property: Identity for the resource. + * + * @return the identity value. + */ + public Identity identity() { + return this.identity; + } + + /** + * Set the identity property: Identity for the resource. + * + * @param identity the identity value to set. + * @return the ComputeInner object itself. + */ + public ComputeInner withIdentity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public 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); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ComputeInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ComputeInner 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 ComputeInner. + */ + public static ComputeInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ComputeInner deserializedComputeInner = new ComputeInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedComputeInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedComputeInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedComputeInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + 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; + } else if ("kind".equals(fieldName)) { + deserializedComputeInner.kind = reader.getString(); + } else if ("identity".equals(fieldName)) { + deserializedComputeInner.identity = Identity.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedComputeInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedComputeInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EvaluateDeploymentPoliciesResponseInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EvaluateDeploymentPoliciesResponseInner.java new file mode 100644 index 000000000000..3c4a513b409c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EvaluateDeploymentPoliciesResponseInner.java @@ -0,0 +1,80 @@ +// 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.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.models.DeploymentPolicyEvaluationResult; +import java.io.IOException; +import java.util.Map; + +/** + * Response body for the evaluateDeploymentPolicies action. + */ +@Immutable +public final class EvaluateDeploymentPoliciesResponseInner + implements JsonSerializable { + /* + * Per-deployment policy evaluation results, keyed by deployment name. + */ + private Map results; + + /** + * Creates an instance of EvaluateDeploymentPoliciesResponseInner class. + */ + private EvaluateDeploymentPoliciesResponseInner() { + } + + /** + * Get the results property: Per-deployment policy evaluation results, keyed by deployment name. + * + * @return the results value. + */ + public Map results() { + return this.results; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("results", this.results, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluateDeploymentPoliciesResponseInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluateDeploymentPoliciesResponseInner 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 EvaluateDeploymentPoliciesResponseInner. + */ + public static EvaluateDeploymentPoliciesResponseInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EvaluateDeploymentPoliciesResponseInner deserializedEvaluateDeploymentPoliciesResponseInner + = new EvaluateDeploymentPoliciesResponseInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("results".equals(fieldName)) { + Map results + = reader.readMap(reader1 -> DeploymentPolicyEvaluationResult.fromJson(reader1)); + deserializedEvaluateDeploymentPoliciesResponseInner.results = results; + } else { + reader.skipChildren(); + } + } + + return deserializedEvaluateDeploymentPoliciesResponseInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeCapacityInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeCapacityInner.java new file mode 100644 index 000000000000..8b3b052e9080 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeCapacityInner.java @@ -0,0 +1,146 @@ +// 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.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacityProperties; +import java.io.IOException; + +/** + * Managed compute capacity information for Cognitive Services managed compute deployments. + * Provides available accelerator capacity per type and region at the subscription level. + */ +@Immutable +public final class ManagedComputeCapacityInner extends ProxyResource { + /* + * Properties of the managed compute capacity resource. + */ + private ManagedComputeCapacityProperties properties; + + /* + * 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 ManagedComputeCapacityInner class. + */ + private ManagedComputeCapacityInner() { + } + + /** + * Get the properties property: Properties of the managed compute capacity resource. + * + * @return the properties value. + */ + public ManagedComputeCapacityProperties properties() { + return this.properties; + } + + /** + * 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); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedComputeCapacityInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeCapacityInner 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 ManagedComputeCapacityInner. + */ + public static ManagedComputeCapacityInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeCapacityInner deserializedManagedComputeCapacityInner = new ManagedComputeCapacityInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedManagedComputeCapacityInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedManagedComputeCapacityInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedManagedComputeCapacityInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedManagedComputeCapacityInner.properties + = ManagedComputeCapacityProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedManagedComputeCapacityInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeCapacityInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeDeploymentInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeDeploymentInner.java new file mode 100644 index 000000000000..7d4d1d866f78 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeDeploymentInner.java @@ -0,0 +1,202 @@ +// 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.ManagedComputeDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.Sku; +import java.io.IOException; + +/** + * Cognitive Services account managed compute deployment, backed by managed compute (GPU) resources. + */ +@Fluent +public final class ManagedComputeDeploymentInner extends ProxyResource { + /* + * Properties of the Cognitive Services managed compute deployment. + */ + private ManagedComputeDeploymentProperties properties; + + /* + * The resource model definition representing SKU + */ + private Sku 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 ManagedComputeDeploymentInner class. + */ + public ManagedComputeDeploymentInner() { + } + + /** + * Get the properties property: Properties of the Cognitive Services managed compute deployment. + * + * @return the properties value. + */ + public ManagedComputeDeploymentProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of the Cognitive Services managed compute deployment. + * + * @param properties the properties value to set. + * @return the ManagedComputeDeploymentInner object itself. + */ + public ManagedComputeDeploymentInner withProperties(ManagedComputeDeploymentProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the sku property: The resource model definition representing SKU. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku property: The resource model definition representing SKU. + * + * @param sku the sku value to set. + * @return the ManagedComputeDeploymentInner object itself. + */ + public ManagedComputeDeploymentInner withSku(Sku 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 ManagedComputeDeploymentInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeDeploymentInner 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 ManagedComputeDeploymentInner. + */ + public static ManagedComputeDeploymentInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeDeploymentInner deserializedManagedComputeDeploymentInner + = new ManagedComputeDeploymentInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedManagedComputeDeploymentInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedManagedComputeDeploymentInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedManagedComputeDeploymentInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedManagedComputeDeploymentInner.properties + = ManagedComputeDeploymentProperties.fromJson(reader); + } else if ("sku".equals(fieldName)) { + deserializedManagedComputeDeploymentInner.sku = Sku.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedManagedComputeDeploymentInner.etag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedManagedComputeDeploymentInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeDeploymentInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeUsageInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeUsageInner.java new file mode 100644 index 000000000000..feadb95cca84 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeUsageInner.java @@ -0,0 +1,196 @@ +// 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.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.models.ManagedComputeDeploymentInfo; +import com.azure.resourcemanager.cognitiveservices.models.MetricName; +import com.azure.resourcemanager.cognitiveservices.models.UnitType; +import java.io.IOException; +import java.util.List; + +/** + * Managed compute quota usage for a specific SKU. + */ +@Immutable +public final class ManagedComputeUsageInner implements JsonSerializable { + /* + * Fully qualified resource ID for the managed compute usage. + */ + private String id; + + /* + * The name information for the metric. + */ + private MetricName name; + + /* + * The resource type. + */ + private String type; + + /* + * The unit of the metric. + */ + private UnitType unit; + + /* + * Maximum value for this metric. + */ + private Double limit; + + /* + * Current value for this metric. + */ + private Double currentValue; + + /* + * Offer scope (e.g., 'Global', 'Datazone-US'). + */ + private String offerScope; + + /* + * Deployments consuming this managed compute quota. + */ + private List deployments; + + /** + * Creates an instance of ManagedComputeUsageInner class. + */ + private ManagedComputeUsageInner() { + } + + /** + * Get the id property: Fully qualified resource ID for the managed compute usage. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Get the name property: The name information for the metric. + * + * @return the name value. + */ + public MetricName name() { + return this.name; + } + + /** + * Get the type property: The resource type. + * + * @return the type value. + */ + public String type() { + return this.type; + } + + /** + * Get the unit property: The unit of the metric. + * + * @return the unit value. + */ + public UnitType unit() { + return this.unit; + } + + /** + * Get the limit property: Maximum value for this metric. + * + * @return the limit value. + */ + public Double limit() { + return this.limit; + } + + /** + * Get the currentValue property: Current value for this metric. + * + * @return the currentValue value. + */ + public Double currentValue() { + return this.currentValue; + } + + /** + * Get the offerScope property: Offer scope (e.g., 'Global', 'Datazone-US'). + * + * @return the offerScope value. + */ + public String offerScope() { + return this.offerScope; + } + + /** + * Get the deployments property: Deployments consuming this managed compute quota. + * + * @return the deployments value. + */ + public List deployments() { + return this.deployments; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("unit", this.unit == null ? null : this.unit.toString()); + jsonWriter.writeNumberField("limit", this.limit); + jsonWriter.writeNumberField("currentValue", this.currentValue); + jsonWriter.writeStringField("offerScope", this.offerScope); + jsonWriter.writeArrayField("deployments", this.deployments, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedComputeUsageInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeUsageInner 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 ManagedComputeUsageInner. + */ + public static ManagedComputeUsageInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeUsageInner deserializedManagedComputeUsageInner = new ManagedComputeUsageInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedManagedComputeUsageInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedManagedComputeUsageInner.name = MetricName.fromJson(reader); + } else if ("type".equals(fieldName)) { + deserializedManagedComputeUsageInner.type = reader.getString(); + } else if ("unit".equals(fieldName)) { + deserializedManagedComputeUsageInner.unit = UnitType.fromString(reader.getString()); + } else if ("limit".equals(fieldName)) { + deserializedManagedComputeUsageInner.limit = reader.getNullable(JsonReader::getDouble); + } else if ("currentValue".equals(fieldName)) { + deserializedManagedComputeUsageInner.currentValue = reader.getNullable(JsonReader::getDouble); + } else if ("offerScope".equals(fieldName)) { + deserializedManagedComputeUsageInner.offerScope = reader.getString(); + } else if ("deployments".equals(fieldName)) { + List deployments + = reader.readArray(reader1 -> ManagedComputeDeploymentInfo.fromJson(reader1)); + deserializedManagedComputeUsageInner.deployments = deployments; + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeUsageInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/WorkbenchInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/WorkbenchInner.java new file mode 100644 index 000000000000..861a72603d33 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/WorkbenchInner.java @@ -0,0 +1,259 @@ +// 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.Identity; +import com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ +@Fluent +public final class WorkbenchInner extends ProxyResource { + /* + * Properties of the workbench resource. + */ + private WorkbenchProperties properties; + + /* + * Resource Etag. + */ + private String etag; + + /* + * The location of the workbench resource. + */ + private String location; + + /* + * Resource tags. + */ + private Map tags; + + /* + * Identity for the resource. + */ + private Identity identity; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of WorkbenchInner class. + */ + public WorkbenchInner() { + } + + /** + * Get the properties property: Properties of the workbench resource. + * + * @return the properties value. + */ + public WorkbenchProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of the workbench resource. + * + * @param properties the properties value to set. + * @return the WorkbenchInner object itself. + */ + public WorkbenchInner withProperties(WorkbenchProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the etag property: Resource Etag. + * + * @return the etag value. + */ + public String etag() { + return this.etag; + } + + /** + * Get the location property: The location of the workbench resource. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: The location of the workbench resource. + * + * @param location the location value to set. + * @return the WorkbenchInner object itself. + */ + public WorkbenchInner withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the WorkbenchInner object itself. + */ + public WorkbenchInner withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the identity property: Identity for the resource. + * + * @return the identity value. + */ + public Identity identity() { + return this.identity; + } + + /** + * Set the identity property: Identity for the resource. + * + * @param identity the identity value to set. + * @return the WorkbenchInner object itself. + */ + public WorkbenchInner withIdentity(Identity identity) { + this.identity = identity; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public 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.writeJsonField("identity", this.identity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of WorkbenchInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of WorkbenchInner 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 WorkbenchInner. + */ + public static WorkbenchInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + WorkbenchInner deserializedWorkbenchInner = new WorkbenchInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedWorkbenchInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedWorkbenchInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedWorkbenchInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedWorkbenchInner.properties = WorkbenchProperties.fromJson(reader); + } else if ("etag".equals(fieldName)) { + deserializedWorkbenchInner.etag = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedWorkbenchInner.location = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedWorkbenchInner.tags = tags; + } else if ("identity".equals(fieldName)) { + deserializedWorkbenchInner.identity = Identity.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedWorkbenchInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedWorkbenchInner; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java index a5df28d63d4c..de2703cce5b3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java @@ -12,6 +12,8 @@ import com.azure.resourcemanager.cognitiveservices.models.Account; import com.azure.resourcemanager.cognitiveservices.models.AccountProperties; import com.azure.resourcemanager.cognitiveservices.models.ApiKeys; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesResponse; import com.azure.resourcemanager.cognitiveservices.models.Identity; import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameters; import com.azure.resourcemanager.cognitiveservices.models.Sku; @@ -179,6 +181,16 @@ public ApiKeys regenerateKey(RegenerateKeyParameters parameters) { return serviceManager.accounts().regenerateKey(resourceGroupName, accountName, parameters); } + public Response + evaluateDeploymentPoliciesWithResponse(EvaluateDeploymentPoliciesRequest body, Context context) { + return serviceManager.accounts() + .evaluateDeploymentPoliciesWithResponse(resourceGroupName, accountName, body, context); + } + + public EvaluateDeploymentPoliciesResponse evaluateDeploymentPolicies(EvaluateDeploymentPoliciesRequest body) { + return serviceManager.accounts().evaluateDeploymentPolicies(resourceGroupName, accountName, body); + } + public AccountImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsClientImpl.java index ea31c10b88d5..bd9096ebc0db 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsClientImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsClientImpl.java @@ -39,9 +39,11 @@ import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountModelInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountSkuListResultInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.ApiKeysInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner; import com.azure.resourcemanager.cognitiveservices.implementation.models.AccountListResult; import com.azure.resourcemanager.cognitiveservices.implementation.models.AccountModelListResult; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest; import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameters; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; @@ -274,6 +276,26 @@ Response listModelsSync(@HostParam("endpoint") String en @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, @HeaderParam("Accept") String accept, Context context); + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/evaluateDeploymentPolicies") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> evaluateDeploymentPolicies( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") EvaluateDeploymentPoliciesRequest body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/evaluateDeploymentPolicies") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response evaluateDeploymentPoliciesSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") EvaluateDeploymentPoliciesRequest body, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -1524,6 +1546,86 @@ public PagedIterable listModels(String resourceGroupName, Str nextLink -> listModelsNextSinglePage(nextLink, context)); } + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param body The content of the action request. + * @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 response body for the evaluateDeploymentPolicies action along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> evaluateDeploymentPoliciesWithResponseAsync( + String resourceGroupName, String accountName, EvaluateDeploymentPoliciesRequest body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.evaluateDeploymentPolicies(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, + contentType, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param body The content of the action request. + * @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 response body for the evaluateDeploymentPolicies action on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono evaluateDeploymentPoliciesAsync(String resourceGroupName, + String accountName, EvaluateDeploymentPoliciesRequest body) { + return evaluateDeploymentPoliciesWithResponseAsync(resourceGroupName, accountName, body) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param body The content of the action request. + * @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 response body for the evaluateDeploymentPolicies action along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response evaluateDeploymentPoliciesWithResponse( + String resourceGroupName, String accountName, EvaluateDeploymentPoliciesRequest body, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.evaluateDeploymentPoliciesSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context); + } + + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param body The content of the action request. + * @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 response body for the evaluateDeploymentPolicies action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EvaluateDeploymentPoliciesResponseInner evaluateDeploymentPolicies(String resourceGroupName, + String accountName, EvaluateDeploymentPoliciesRequest body) { + return evaluateDeploymentPoliciesWithResponse(resourceGroupName, accountName, body, Context.NONE).getValue(); + } + /** * Get the next page of items. * diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsImpl.java index 1a5e65814871..625765956fe8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsImpl.java @@ -14,12 +14,15 @@ import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountModelInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.AccountSkuListResultInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.ApiKeysInner; +import com.azure.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner; import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner; import com.azure.resourcemanager.cognitiveservices.models.Account; import com.azure.resourcemanager.cognitiveservices.models.AccountModel; import com.azure.resourcemanager.cognitiveservices.models.AccountSkuListResult; import com.azure.resourcemanager.cognitiveservices.models.Accounts; import com.azure.resourcemanager.cognitiveservices.models.ApiKeys; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesResponse; import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameters; import com.azure.resourcemanager.cognitiveservices.models.UsageListResult; @@ -159,6 +162,25 @@ public PagedIterable listModels(String resourceGroupName, String a return ResourceManagerUtils.mapPage(inner, inner1 -> new AccountModelImpl(inner1, this.manager())); } + public Response evaluateDeploymentPoliciesWithResponse(String resourceGroupName, + String accountName, EvaluateDeploymentPoliciesRequest body, Context context) { + Response inner = this.serviceClient() + .evaluateDeploymentPoliciesWithResponse(resourceGroupName, accountName, body, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new EvaluateDeploymentPoliciesResponseImpl(inner.getValue(), this.manager())); + } + + public EvaluateDeploymentPoliciesResponse evaluateDeploymentPolicies(String resourceGroupName, String accountName, + EvaluateDeploymentPoliciesRequest body) { + EvaluateDeploymentPoliciesResponseInner inner + = this.serviceClient().evaluateDeploymentPolicies(resourceGroupName, accountName, body); + if (inner != null) { + return new EvaluateDeploymentPoliciesResponseImpl(inner, this.manager()); + } else { + return null; + } + } + public Account getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { 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 cdb25e0df05c..f4f6c9d04938 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 @@ -35,11 +35,15 @@ import com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient; import com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient; import com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient; import com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient; import com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient; import com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient; import com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient; import com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient; import com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient; import com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient; import com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient; @@ -67,6 +71,7 @@ import com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient; import com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient; import com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient; import java.io.IOException; import java.lang.reflect.Type; import java.nio.ByteBuffer; @@ -473,6 +478,20 @@ public AgentApplicationsClient getAgentApplications() { return this.agentApplications; } + /** + * The ManagedComputeDeploymentsClient object to access its operations. + */ + private final ManagedComputeDeploymentsClient managedComputeDeployments; + + /** + * Gets the ManagedComputeDeploymentsClient object to access its operations. + * + * @return the ManagedComputeDeploymentsClient object. + */ + public ManagedComputeDeploymentsClient getManagedComputeDeployments() { + return this.managedComputeDeployments; + } + /** * The ComputeOperationsClient object to access its operations. */ @@ -487,6 +506,62 @@ public ComputeOperationsClient getComputeOperations() { return this.computeOperations; } + /** + * The ManagedComputeUsagesOperationGroupsClient object to access its operations. + */ + private final ManagedComputeUsagesOperationGroupsClient managedComputeUsagesOperationGroups; + + /** + * Gets the ManagedComputeUsagesOperationGroupsClient object to access its operations. + * + * @return the ManagedComputeUsagesOperationGroupsClient object. + */ + public ManagedComputeUsagesOperationGroupsClient getManagedComputeUsagesOperationGroups() { + return this.managedComputeUsagesOperationGroups; + } + + /** + * The ComputesClient object to access its operations. + */ + private final ComputesClient computes; + + /** + * Gets the ComputesClient object to access its operations. + * + * @return the ComputesClient object. + */ + public ComputesClient getComputes() { + return this.computes; + } + + /** + * The WorkbenchesClient object to access its operations. + */ + private final WorkbenchesClient workbenches; + + /** + * Gets the WorkbenchesClient object to access its operations. + * + * @return the WorkbenchesClient object. + */ + public WorkbenchesClient getWorkbenches() { + return this.workbenches; + } + + /** + * The ManagedComputeCapacitiesClient object to access its operations. + */ + private final ManagedComputeCapacitiesClient managedComputeCapacities; + + /** + * Gets the ManagedComputeCapacitiesClient object to access its operations. + * + * @return the ManagedComputeCapacitiesClient object. + */ + public ManagedComputeCapacitiesClient getManagedComputeCapacities() { + return this.managedComputeCapacities; + } + /** * The PrivateLinkResourcesClient object to access its operations. */ @@ -742,7 +817,7 @@ public ModelCapacitiesClient getModelCapacities() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-01-15-preview"; + this.apiVersion = "2026-03-15-preview"; this.resourceProviders = new ResourceProvidersClientImpl(this); this.operations = new OperationsClientImpl(this); this.accounts = new AccountsClientImpl(this); @@ -765,7 +840,12 @@ public ModelCapacitiesClient getModelCapacities() { this.projectCapabilityHosts = new ProjectCapabilityHostsClientImpl(this); this.quotaTiers = new QuotaTiersClientImpl(this); this.agentApplications = new AgentApplicationsClientImpl(this); + this.managedComputeDeployments = new ManagedComputeDeploymentsClientImpl(this); this.computeOperations = new ComputeOperationsClientImpl(this); + this.managedComputeUsagesOperationGroups = new ManagedComputeUsagesOperationGroupsClientImpl(this); + this.computes = new ComputesClientImpl(this); + this.workbenches = new WorkbenchesClientImpl(this); + this.managedComputeCapacities = new ManagedComputeCapacitiesClientImpl(this); this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); this.testRaiExternalSafetyProviders = new TestRaiExternalSafetyProvidersClientImpl(this); this.raiExternalSafetyProviders = new RaiExternalSafetyProvidersClientImpl(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 new file mode 100644 index 000000000000..61838cb3cfe8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java @@ -0,0 +1,215 @@ +// 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.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner; +import com.azure.resourcemanager.cognitiveservices.models.Compute; +import com.azure.resourcemanager.cognitiveservices.models.ComputeProperties; +import com.azure.resourcemanager.cognitiveservices.models.Identity; +import java.util.Collections; +import java.util.Map; + +public final class ComputeImpl implements Compute, Compute.Definition, Compute.Update { + private ComputeInner 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 ComputeProperties properties() { + return this.innerModel().properties(); + } + + 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) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public String kind() { + return this.innerModel().kind(); + } + + public Identity identity() { + return this.innerModel().identity(); + } + + 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; + } + + public ComputeInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String computeName; + + public ComputeImpl withExistingAccount(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + + public Compute create() { + this.innerObject = serviceManager.serviceClient() + .getComputes() + .createOrUpdate(resourceGroupName, accountName, computeName, this.innerModel(), Context.NONE); + return this; + } + + public Compute create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getComputes() + .createOrUpdate(resourceGroupName, accountName, computeName, this.innerModel(), context); + return this; + } + + ComputeImpl(String name, com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new ComputeInner(); + this.serviceManager = serviceManager; + this.computeName = name; + } + + public ComputeImpl update() { + return this; + } + + public Compute apply() { + this.innerObject = serviceManager.serviceClient() + .getComputes() + .update(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); + return this; + } + + ComputeImpl(ComputeInner 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.computeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "computes"); + } + + public Compute refresh() { + this.innerObject = serviceManager.serviceClient() + .getComputes() + .getWithResponse(resourceGroupName, accountName, computeName, Context.NONE) + .getValue(); + return this; + } + + public Compute refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getComputes() + .getWithResponse(resourceGroupName, accountName, computeName, context) + .getValue(); + return this; + } + + public void start() { + serviceManager.computes().start(resourceGroupName, accountName, computeName); + } + + public void start(Context context) { + serviceManager.computes().start(resourceGroupName, accountName, computeName, context); + } + + public void stop() { + serviceManager.computes().stop(resourceGroupName, accountName, computeName); + } + + public void stop(Context context) { + serviceManager.computes().stop(resourceGroupName, accountName, computeName, context); + } + + public void restart() { + serviceManager.computes().restart(resourceGroupName, accountName, computeName); + } + + public void restart(Context context) { + serviceManager.computes().restart(resourceGroupName, accountName, computeName, context); + } + + public ComputeImpl withProperties(ComputeProperties properties) { + this.innerModel().withProperties(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; + } + + public ComputeImpl withKind(String kind) { + this.innerModel().withKind(kind); + return this; + } + + public ComputeImpl withIdentity(Identity identity) { + this.innerModel().withIdentity(identity); + 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 new file mode 100644 index 000000000000..7561c16b0aaf --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java @@ -0,0 +1,1551 @@ +// 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.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.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.ComputesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner; +import com.azure.resourcemanager.cognitiveservices.implementation.models.ComputeListResult; +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 ComputesClient. + */ +public final class ComputesClientImpl implements ComputesClient { + /** + * The proxy service used to perform REST calls. + */ + private final ComputesService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of ComputesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ComputesClientImpl(CognitiveServicesManagementClientImpl client) { + this.service = RestProxy.create(ComputesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientComputes to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "CognitiveServicesManagementClientComputes") + public interface ComputesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") + @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("computeName") String computeName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") + @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("computeName") String computeName, @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") + @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("computeName") String computeName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ComputeInner resource, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") + @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("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); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}") + @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("computeName") String computeName, 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}") + @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("computeName") String computeName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes") + @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}/computes") + @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({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/start") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> start(@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, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/start") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response startSync(@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, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/stop") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> stop(@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, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/stop") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response stopSync(@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, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/restart") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> restart(@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, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/computes/{computeName}/restart") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response restartSync(@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, 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 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. + * @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 compute 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 computeName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified 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. + * @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 compute associated with the Cognitive Services account on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String computeName) { + return getWithResponseAsync(resourceGroupName, accountName, computeName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified 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 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 compute associated with the Cognitive Services account along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, String computeName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, computeName, accept, context); + } + + /** + * Gets the specified 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. + * @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 compute associated with the Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ComputeInner get(String resourceGroupName, String accountName, String computeName) { + return getWithResponse(resourceGroupName, accountName, computeName, Context.NONE).getValue(); + } + + /** + * Creates or 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 resource The compute 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 compute resource along with {@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)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or 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 resource The compute 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 compute resource 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, + Context.NONE); + } + + /** + * Creates or 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 resource The compute 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 compute resource 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, + context); + } + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ComputeInner> beginCreateOrUpdateAsync(String resourceGroupName, + String accountName, String computeName, ComputeInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, computeName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ComputeInner.class, ComputeInner.class, this.client.getContext()); + } + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ComputeInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String computeName, ComputeInner resource) { + Response response + = createOrUpdateWithResponse(resourceGroupName, accountName, computeName, resource); + return this.client.getLroResult(response, ComputeInner.class, ComputeInner.class, + Context.NONE); + } + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ComputeInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String computeName, ComputeInner resource, Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, accountName, computeName, resource, context); + return this.client.getLroResult(response, ComputeInner.class, ComputeInner.class, + context); + } + + /** + * Creates or 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 resource The compute 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 compute resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String computeName, + ComputeInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, computeName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ComputeInner createOrUpdate(String resourceGroupName, String accountName, String computeName, + ComputeInner resource) { + return beginCreateOrUpdate(resourceGroupName, accountName, computeName, resource).getFinalResult(); + } + + /** + * Creates or 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 resource The compute 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 compute resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ComputeInner createOrUpdate(String resourceGroupName, String accountName, String computeName, + ComputeInner resource, Context context) { + 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. + * + * @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. + * @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 computeName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified 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. + * @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 computeName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, Context.NONE); + } + + /** + * Deletes the specified 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 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 computeName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, context); + } + + /** + * Deletes the specified 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. + * @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 computeName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, computeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified 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. + * @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 computeName) { + Response response = deleteWithResponse(resourceGroupName, accountName, computeName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Deletes the specified 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 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 computeName, Context context) { + Response response = deleteWithResponse(resourceGroupName, accountName, computeName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Deletes the specified 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. + * @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 computeName) { + return beginDeleteAsync(resourceGroupName, accountName, computeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified 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. + * @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 computeName) { + beginDelete(resourceGroupName, accountName, computeName).getFinalResult(); + } + + /** + * Deletes the specified 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 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 computeName, Context context) { + beginDelete(resourceGroupName, accountName, computeName, context).getFinalResult(); + } + + /** + * Gets the computes 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 computes 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 computes 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 computes 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 computes 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 computes 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 computes 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 computes 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 computes 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 computes 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 computes 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 computes 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)); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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>> startWithResponseAsync(String resourceGroupName, String accountName, + String computeName) { + return FluxUtil + .withContext(context -> service.start(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 startWithResponse(String resourceGroupName, String accountName, String computeName) { + return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, Context.NONE); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 startWithResponse(String resourceGroupName, String accountName, String computeName, + Context context) { + return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, context); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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> beginStartAsync(String resourceGroupName, String accountName, + String computeName) { + Mono>> mono = startWithResponseAsync(resourceGroupName, accountName, computeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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> beginStart(String resourceGroupName, String accountName, + String computeName) { + Response response = startWithResponse(resourceGroupName, accountName, computeName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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> beginStart(String resourceGroupName, String accountName, + String computeName, Context context) { + Response response = startWithResponse(resourceGroupName, accountName, computeName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 startAsync(String resourceGroupName, String accountName, String computeName) { + return beginStartAsync(resourceGroupName, accountName, computeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 start(String resourceGroupName, String accountName, String computeName) { + beginStart(resourceGroupName, accountName, computeName).getFinalResult(); + } + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 start(String resourceGroupName, String accountName, String computeName, Context context) { + beginStart(resourceGroupName, accountName, computeName, context).getFinalResult(); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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>> stopWithResponseAsync(String resourceGroupName, String accountName, + String computeName) { + return FluxUtil + .withContext(context -> service.stop(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 stopWithResponse(String resourceGroupName, String accountName, String computeName) { + return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, computeName, Context.NONE); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 stopWithResponse(String resourceGroupName, String accountName, String computeName, + Context context) { + return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, computeName, context); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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> beginStopAsync(String resourceGroupName, String accountName, + String computeName) { + Mono>> mono = stopWithResponseAsync(resourceGroupName, accountName, computeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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> beginStop(String resourceGroupName, String accountName, + String computeName) { + Response response = stopWithResponse(resourceGroupName, accountName, computeName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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> beginStop(String resourceGroupName, String accountName, + String computeName, Context context) { + Response response = stopWithResponse(resourceGroupName, accountName, computeName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 stopAsync(String resourceGroupName, String accountName, String computeName) { + return beginStopAsync(resourceGroupName, accountName, computeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 stop(String resourceGroupName, String accountName, String computeName) { + beginStop(resourceGroupName, accountName, computeName).getFinalResult(); + } + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 stop(String resourceGroupName, String accountName, String computeName, Context context) { + beginStop(resourceGroupName, accountName, computeName, context).getFinalResult(); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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>> restartWithResponseAsync(String resourceGroupName, String accountName, + String computeName) { + return FluxUtil + .withContext(context -> service.restart(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 restartWithResponse(String resourceGroupName, String accountName, String computeName) { + return service.restartSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, Context.NONE); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 restartWithResponse(String resourceGroupName, String accountName, String computeName, + Context context) { + return service.restartSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, computeName, context); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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> beginRestartAsync(String resourceGroupName, String accountName, + String computeName) { + Mono>> mono = restartWithResponseAsync(resourceGroupName, accountName, computeName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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> beginRestart(String resourceGroupName, String accountName, + String computeName) { + Response response = restartWithResponse(resourceGroupName, accountName, computeName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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> beginRestart(String resourceGroupName, String accountName, + String computeName, Context context) { + Response response = restartWithResponse(resourceGroupName, accountName, computeName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 restartAsync(String resourceGroupName, String accountName, String computeName) { + return beginRestartAsync(resourceGroupName, accountName, computeName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @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 restart(String resourceGroupName, String accountName, String computeName) { + beginRestart(resourceGroupName, accountName, computeName).getFinalResult(); + } + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 restart(String resourceGroupName, String accountName, String computeName, Context context) { + beginRestart(resourceGroupName, accountName, computeName, context).getFinalResult(); + } + + /** + * 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 computes 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 computes 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 computes 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/ComputesImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesImpl.java new file mode 100644 index 000000000000..4ba56e8e424e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesImpl.java @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.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.ComputesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner; +import com.azure.resourcemanager.cognitiveservices.models.Compute; +import com.azure.resourcemanager.cognitiveservices.models.Computes; + +public final class ComputesImpl implements Computes { + private static final ClientLogger LOGGER = new ClientLogger(ComputesImpl.class); + + private final ComputesClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public ComputesImpl(ComputesClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String accountName, String computeName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, computeName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ComputeImpl(inner.getValue(), this.manager())); + } + + public Compute get(String resourceGroupName, String accountName, String computeName) { + ComputeInner inner = this.serviceClient().get(resourceGroupName, accountName, computeName); + if (inner != null) { + return new ComputeImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String computeName) { + this.serviceClient().delete(resourceGroupName, accountName, computeName); + } + + public void delete(String resourceGroupName, String accountName, String computeName, Context context) { + this.serviceClient().delete(resourceGroupName, accountName, computeName, context); + } + + public PagedIterable list(String resourceGroupName, String accountName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ComputeImpl(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 ComputeImpl(inner1, this.manager())); + } + + public void start(String resourceGroupName, String accountName, String computeName) { + this.serviceClient().start(resourceGroupName, accountName, computeName); + } + + public void start(String resourceGroupName, String accountName, String computeName, Context context) { + this.serviceClient().start(resourceGroupName, accountName, computeName, context); + } + + public void stop(String resourceGroupName, String accountName, String computeName) { + this.serviceClient().stop(resourceGroupName, accountName, computeName); + } + + public void stop(String resourceGroupName, String accountName, String computeName, Context context) { + this.serviceClient().stop(resourceGroupName, accountName, computeName, context); + } + + public void restart(String resourceGroupName, String accountName, String computeName) { + this.serviceClient().restart(resourceGroupName, accountName, computeName); + } + + public void restart(String resourceGroupName, String accountName, String computeName, Context context) { + this.serviceClient().restart(resourceGroupName, accountName, computeName, context); + } + + public Compute 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 computeName = ResourceManagerUtils.getValueFromIdByName(id, "computes"); + if (computeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'computes'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, computeName, 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 computeName = ResourceManagerUtils.getValueFromIdByName(id, "computes"); + if (computeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'computes'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, computeName, 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 computeName = ResourceManagerUtils.getValueFromIdByName(id, "computes"); + if (computeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'computes'.", id))); + } + this.delete(resourceGroupName, accountName, computeName, 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 computeName = ResourceManagerUtils.getValueFromIdByName(id, "computes"); + if (computeName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'computes'.", id))); + } + this.delete(resourceGroupName, accountName, computeName, context); + } + + private ComputesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public ComputeImpl define(String name) { + return new ComputeImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java new file mode 100644 index 000000000000..7e0fd4377f0e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.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.implementation; + +import com.azure.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentPolicyEvaluationResult; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesResponse; +import java.util.Collections; +import java.util.Map; + +public final class EvaluateDeploymentPoliciesResponseImpl implements EvaluateDeploymentPoliciesResponse { + private EvaluateDeploymentPoliciesResponseInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + EvaluateDeploymentPoliciesResponseImpl(EvaluateDeploymentPoliciesResponseInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public Map results() { + Map inner = this.innerModel().results(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public EvaluateDeploymentPoliciesResponseInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesClientImpl.java new file mode 100644 index 000000000000..c27e8b813013 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesClientImpl.java @@ -0,0 +1,307 @@ +// 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.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner; +import com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeCapacityListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ManagedComputeCapacitiesClient. + */ +public final class ManagedComputeCapacitiesClientImpl implements ManagedComputeCapacitiesClient { + /** + * The proxy service used to perform REST calls. + */ + private final ManagedComputeCapacitiesService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of ManagedComputeCapacitiesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ManagedComputeCapacitiesClientImpl(CognitiveServicesManagementClientImpl client) { + this.service = RestProxy.create(ManagedComputeCapacitiesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientManagedComputeCapacities to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "CognitiveServicesManagementClientManagedComputeCapacities") + public interface ManagedComputeCapacitiesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/managedComputeCapacities") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("offer") String offer, @QueryParam("acceleratorType") String acceleratorType, + @QueryParam("deploymentId") String deploymentId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/managedComputeCapacities") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @QueryParam("offer") String offer, @QueryParam("acceleratorType") String acceleratorType, + @QueryParam("deploymentId") String deploymentId, @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 managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @param acceleratorType Optional accelerator type filter to narrow results to a specific accelerator type. + * @param deploymentId Optional deployment resource ID. When provided, returns capacity for the specific region + * where the deployment is hosted rather than the best available region. + * @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 managed compute capacities for a subscription along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String offer, String acceleratorType, + String deploymentId) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), offer, acceleratorType, deploymentId, 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 managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @param acceleratorType Optional accelerator type filter to narrow results to a specific accelerator type. + * @param deploymentId Optional deployment resource ID. When provided, returns capacity for the specific region + * where the deployment is hosted rather than the best available region. + * @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 managed compute capacities for a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String offer, String acceleratorType, + String deploymentId) { + return new PagedFlux<>(() -> listSinglePageAsync(offer, acceleratorType, deploymentId), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @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 managed compute capacities for a subscription as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String offer) { + final String acceleratorType = null; + final String deploymentId = null; + return new PagedFlux<>(() -> listSinglePageAsync(offer, acceleratorType, deploymentId), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @param acceleratorType Optional accelerator type filter to narrow results to a specific accelerator type. + * @param deploymentId Optional deployment resource ID. When provided, returns capacity for the specific region + * where the deployment is hosted rather than the best available region. + * @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 managed compute capacities for a subscription along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String offer, String acceleratorType, + String deploymentId) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + offer, acceleratorType, deploymentId, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @param acceleratorType Optional accelerator type filter to narrow results to a specific accelerator type. + * @param deploymentId Optional deployment resource ID. When provided, returns capacity for the specific region + * where the deployment is hosted rather than the best available region. + * @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 managed compute capacities for a subscription along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String offer, String acceleratorType, + String deploymentId, Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + offer, acceleratorType, deploymentId, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @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 managed compute capacities for a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String offer) { + final String acceleratorType = null; + final String deploymentId = null; + return new PagedIterable<>(() -> listSinglePage(offer, acceleratorType, deploymentId), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @param acceleratorType Optional accelerator type filter to narrow results to a specific accelerator type. + * @param deploymentId Optional deployment resource ID. When provided, returns capacity for the specific region + * where the deployment is hosted rather than the best available region. + * @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 managed compute capacities for a subscription as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String offer, String acceleratorType, String deploymentId, + Context context) { + return new PagedIterable<>(() -> listSinglePage(offer, acceleratorType, deploymentId, 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 managed compute capacities for a subscription 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 managed compute capacities for a subscription 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 managed compute capacities for a subscription 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/ManagedComputeCapacitiesImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesImpl.java new file mode 100644 index 000000000000..30fb72330d9e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesImpl.java @@ -0,0 +1,47 @@ +// 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.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacities; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacity; + +public final class ManagedComputeCapacitiesImpl implements ManagedComputeCapacities { + private static final ClientLogger LOGGER = new ClientLogger(ManagedComputeCapacitiesImpl.class); + + private final ManagedComputeCapacitiesClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public ManagedComputeCapacitiesImpl(ManagedComputeCapacitiesClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String offer) { + PagedIterable inner = this.serviceClient().list(offer); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ManagedComputeCapacityImpl(inner1, this.manager())); + } + + public PagedIterable list(String offer, String acceleratorType, String deploymentId, + Context context) { + PagedIterable inner + = this.serviceClient().list(offer, acceleratorType, deploymentId, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ManagedComputeCapacityImpl(inner1, this.manager())); + } + + private ManagedComputeCapacitiesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacityImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacityImpl.java new file mode 100644 index 000000000000..55f46e65428e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacityImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacity; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacityProperties; + +public final class ManagedComputeCapacityImpl implements ManagedComputeCapacity { + private ManagedComputeCapacityInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + ManagedComputeCapacityImpl(ManagedComputeCapacityInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ManagedComputeCapacityProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public ManagedComputeCapacityInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentImpl.java new file mode 100644 index 000000000000..f144373f890e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentImpl.java @@ -0,0 +1,158 @@ +// 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.ManagedComputeDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.PatchResourceSku; +import com.azure.resourcemanager.cognitiveservices.models.Sku; + +public final class ManagedComputeDeploymentImpl + implements ManagedComputeDeployment, ManagedComputeDeployment.Definition, ManagedComputeDeployment.Update { + private ManagedComputeDeploymentInner 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 ManagedComputeDeploymentProperties properties() { + return this.innerModel().properties(); + } + + public Sku 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 ManagedComputeDeploymentInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String deploymentName; + + private PatchResourceSku updateProperties; + + public ManagedComputeDeploymentImpl withExistingAccount(String resourceGroupName, String accountName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + return this; + } + + public ManagedComputeDeployment create() { + this.innerObject = serviceManager.serviceClient() + .getManagedComputeDeployments() + .createOrUpdate(resourceGroupName, accountName, deploymentName, this.innerModel(), Context.NONE); + return this; + } + + public ManagedComputeDeployment create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getManagedComputeDeployments() + .createOrUpdate(resourceGroupName, accountName, deploymentName, this.innerModel(), context); + return this; + } + + ManagedComputeDeploymentImpl(String name, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new ManagedComputeDeploymentInner(); + this.serviceManager = serviceManager; + this.deploymentName = name; + } + + public ManagedComputeDeploymentImpl update() { + this.updateProperties = new PatchResourceSku(); + return this; + } + + public ManagedComputeDeployment apply() { + this.innerObject = serviceManager.serviceClient() + .getManagedComputeDeployments() + .update(resourceGroupName, accountName, deploymentName, updateProperties, Context.NONE); + return this; + } + + public ManagedComputeDeployment apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getManagedComputeDeployments() + .update(resourceGroupName, accountName, deploymentName, updateProperties, context); + return this; + } + + ManagedComputeDeploymentImpl(ManagedComputeDeploymentInner 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(), "managedComputeDeployments"); + } + + public ManagedComputeDeployment refresh() { + this.innerObject = serviceManager.serviceClient() + .getManagedComputeDeployments() + .getWithResponse(resourceGroupName, accountName, deploymentName, Context.NONE) + .getValue(); + return this; + } + + public ManagedComputeDeployment refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getManagedComputeDeployments() + .getWithResponse(resourceGroupName, accountName, deploymentName, context) + .getValue(); + return this; + } + + public ManagedComputeDeploymentImpl withProperties(ManagedComputeDeploymentProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public ManagedComputeDeploymentImpl withSku(Sku sku) { + if (isInCreateMode()) { + this.innerModel().withSku(sku); + return this; + } else { + this.updateProperties.withSku(sku); + return this; + } + } + + private boolean isInCreateMode() { + return this.innerModel() == null || this.innerModel().id() == null; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsClientImpl.java new file mode 100644 index 000000000000..e62a84240b77 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsClientImpl.java @@ -0,0 +1,999 @@ +// 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.ManagedComputeDeploymentsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeDeploymentListResult; +import com.azure.resourcemanager.cognitiveservices.models.PatchResourceSku; +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 ManagedComputeDeploymentsClient. + */ +public final class ManagedComputeDeploymentsClientImpl implements ManagedComputeDeploymentsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ManagedComputeDeploymentsService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of ManagedComputeDeploymentsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ManagedComputeDeploymentsClientImpl(CognitiveServicesManagementClientImpl client) { + this.service = RestProxy.create(ManagedComputeDeploymentsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientManagedComputeDeployments to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "CognitiveServicesManagementClientManagedComputeDeployments") + public interface ManagedComputeDeploymentsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedComputeDeployments/{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}/managedComputeDeployments/{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}/managedComputeDeployments/{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") ManagedComputeDeploymentInner resource, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedComputeDeployments/{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") ManagedComputeDeploymentInner resource, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedComputeDeployments/{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") PatchResourceSku properties, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedComputeDeployments/{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") PatchResourceSku properties, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/managedComputeDeployments/{deploymentName}") + @ExpectedResponses({ 200, 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}/managedComputeDeployments/{deploymentName}") + @ExpectedResponses({ 200, 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}/managedComputeDeployments") + @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}/managedComputeDeployments") + @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 managed compute 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 managed compute deployment associated with the 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 specified managed compute 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 managed compute 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 managed compute deployment associated with the 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 specified managed compute 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 managed compute 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 managed compute deployment associated with the 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 specified managed compute 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 managed compute 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 managed compute deployment associated with the 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 specified managed compute deployment associated with the Cognitive Services account. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedComputeDeploymentInner get(String resourceGroupName, String accountName, String deploymentName) { + return getWithResponse(resourceGroupName, accountName, deploymentName, Context.NONE).getValue(); + } + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by managed compute (GPU) resources along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String deploymentName, ManagedComputeDeploymentInner 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 a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by managed compute (GPU) resources along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String deploymentName, ManagedComputeDeploymentInner 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 a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by managed compute (GPU) resources along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String deploymentName, ManagedComputeDeploymentInner 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 a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ManagedComputeDeploymentInner> + beginCreateOrUpdateAsync(String resourceGroupName, String accountName, String deploymentName, + ManagedComputeDeploymentInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, deploymentName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ManagedComputeDeploymentInner.class, ManagedComputeDeploymentInner.class, + this.client.getContext()); + } + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ManagedComputeDeploymentInner> beginCreateOrUpdate( + String resourceGroupName, String accountName, String deploymentName, ManagedComputeDeploymentInner resource) { + Response response + = createOrUpdateWithResponse(resourceGroupName, accountName, deploymentName, resource); + return this.client.getLroResult(response, + ManagedComputeDeploymentInner.class, ManagedComputeDeploymentInner.class, Context.NONE); + } + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ManagedComputeDeploymentInner> beginCreateOrUpdate( + String resourceGroupName, String accountName, String deploymentName, ManagedComputeDeploymentInner resource, + Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, accountName, deploymentName, resource, context); + return this.client.getLroResult(response, + ManagedComputeDeploymentInner.class, ManagedComputeDeploymentInner.class, context); + } + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by managed compute (GPU) resources on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, + String deploymentName, ManagedComputeDeploymentInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, deploymentName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedComputeDeploymentInner createOrUpdate(String resourceGroupName, String accountName, + String deploymentName, ManagedComputeDeploymentInner resource) { + return beginCreateOrUpdate(resourceGroupName, accountName, deploymentName, resource).getFinalResult(); + } + + /** + * Creates or updates a managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param resource The managed compute 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 managed compute deployment, backed by managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedComputeDeploymentInner createOrUpdate(String resourceGroupName, String accountName, + String deploymentName, ManagedComputeDeploymentInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, accountName, deploymentName, resource, context).getFinalResult(); + } + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by managed compute (GPU) resources along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String deploymentName, PatchResourceSku 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 managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by managed compute (GPU) resources along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String accountName, String deploymentName, + PatchResourceSku 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 managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by managed compute (GPU) resources along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String accountName, String deploymentName, + PatchResourceSku 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 managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, ManagedComputeDeploymentInner> beginUpdateAsync( + String resourceGroupName, String accountName, String deploymentName, PatchResourceSku properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, deploymentName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ManagedComputeDeploymentInner.class, ManagedComputeDeploymentInner.class, + this.client.getContext()); + } + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ManagedComputeDeploymentInner> + beginUpdate(String resourceGroupName, String accountName, String deploymentName, PatchResourceSku properties) { + Response response = updateWithResponse(resourceGroupName, accountName, deploymentName, properties); + return this.client.getLroResult(response, + ManagedComputeDeploymentInner.class, ManagedComputeDeploymentInner.class, Context.NONE); + } + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by + * managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ManagedComputeDeploymentInner> beginUpdate( + String resourceGroupName, String accountName, String deploymentName, PatchResourceSku properties, + Context context) { + Response response + = updateWithResponse(resourceGroupName, accountName, deploymentName, properties, context); + return this.client.getLroResult(response, + ManagedComputeDeploymentInner.class, ManagedComputeDeploymentInner.class, context); + } + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by managed compute (GPU) resources on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, + String deploymentName, PatchResourceSku properties) { + return beginUpdateAsync(resourceGroupName, accountName, deploymentName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedComputeDeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + PatchResourceSku properties) { + return beginUpdate(resourceGroupName, accountName, deploymentName, properties).getFinalResult(); + } + + /** + * Updates the specified managed compute 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 managed compute deployment associated with the Cognitive Services Account. + * @param properties The managed compute deployment patch 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 managed compute deployment, backed by managed compute (GPU) resources. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedComputeDeploymentInner update(String resourceGroupName, String accountName, String deploymentName, + PatchResourceSku properties, Context context) { + return beginUpdate(resourceGroupName, accountName, deploymentName, properties, context).getFinalResult(); + } + + /** + * Deletes the specified managed compute 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 managed compute deployment associated with the 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 {@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 managed compute 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 managed compute deployment associated with the 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 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 managed compute 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 managed compute deployment associated with the 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 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 managed compute 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 managed compute deployment associated with the 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 {@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 managed compute 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 managed compute deployment associated with the 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 {@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 managed compute 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 managed compute deployment associated with the 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 {@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 managed compute 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 managed compute deployment associated with the 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 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 managed compute 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 managed compute deployment associated with the 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String deploymentName) { + beginDelete(resourceGroupName, accountName, deploymentName).getFinalResult(); + } + + /** + * Deletes the specified managed compute 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 managed compute deployment associated with the 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. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String accountName, String deploymentName, Context context) { + beginDelete(resourceGroupName, accountName, deploymentName, context).getFinalResult(); + } + + /** + * Gets the managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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 managed compute 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/ManagedComputeDeploymentsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsImpl.java new file mode 100644 index 000000000000..abad03806b74 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsImpl.java @@ -0,0 +1,153 @@ +// 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.ManagedComputeDeploymentsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployments; + +public final class ManagedComputeDeploymentsImpl implements ManagedComputeDeployments { + private static final ClientLogger LOGGER = new ClientLogger(ManagedComputeDeploymentsImpl.class); + + private final ManagedComputeDeploymentsClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public ManagedComputeDeploymentsImpl(ManagedComputeDeploymentsClient 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 ManagedComputeDeploymentImpl(inner.getValue(), this.manager())); + } + + public ManagedComputeDeployment get(String resourceGroupName, String accountName, String deploymentName) { + ManagedComputeDeploymentInner inner = this.serviceClient().get(resourceGroupName, accountName, deploymentName); + if (inner != null) { + return new ManagedComputeDeploymentImpl(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 ManagedComputeDeploymentImpl(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 ManagedComputeDeploymentImpl(inner1, this.manager())); + } + + public ManagedComputeDeployment 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, "managedComputeDeployments"); + if (deploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'managedComputeDeployments'.", 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, "managedComputeDeployments"); + if (deploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'managedComputeDeployments'.", 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, "managedComputeDeployments"); + if (deploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'managedComputeDeployments'.", 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, "managedComputeDeployments"); + if (deploymentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'managedComputeDeployments'.", id))); + } + this.delete(resourceGroupName, accountName, deploymentName, context); + } + + private ManagedComputeDeploymentsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public ManagedComputeDeploymentImpl define(String name) { + return new ManagedComputeDeploymentImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsageImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsageImpl.java new file mode 100644 index 000000000000..66a017172610 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsageImpl.java @@ -0,0 +1,70 @@ +// 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.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentInfo; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeUsage; +import com.azure.resourcemanager.cognitiveservices.models.MetricName; +import com.azure.resourcemanager.cognitiveservices.models.UnitType; +import java.util.Collections; +import java.util.List; + +public final class ManagedComputeUsageImpl implements ManagedComputeUsage { + private ManagedComputeUsageInner innerObject; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + ManagedComputeUsageImpl(ManagedComputeUsageInner innerObject, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public MetricName name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public UnitType unit() { + return this.innerModel().unit(); + } + + public Double limit() { + return this.innerModel().limit(); + } + + public Double currentValue() { + return this.innerModel().currentValue(); + } + + public String offerScope() { + return this.innerModel().offerScope(); + } + + public List deployments() { + List inner = this.innerModel().deployments(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public ManagedComputeUsageInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsClientImpl.java new file mode 100644 index 000000000000..4fc86e1b0f42 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsClientImpl.java @@ -0,0 +1,255 @@ +// 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.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner; +import com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeUsageListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ManagedComputeUsagesOperationGroupsClient. + */ +public final class ManagedComputeUsagesOperationGroupsClientImpl implements ManagedComputeUsagesOperationGroupsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ManagedComputeUsagesOperationGroupsService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of ManagedComputeUsagesOperationGroupsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ManagedComputeUsagesOperationGroupsClientImpl(CognitiveServicesManagementClientImpl client) { + this.service = RestProxy.create(ManagedComputeUsagesOperationGroupsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientManagedComputeUsagesOperationGroups + * to be used by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "CognitiveServicesManagementClientManagedComputeUsagesOperationGroups") + public interface ManagedComputeUsagesOperationGroupsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/managedComputeUsages") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/managedComputeUsages") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @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); + } + + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @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 list of managed compute quota entries along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @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 list of managed compute quota entries as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location) { + return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @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 list of managed compute quota entries along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String location) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @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 list of managed compute quota entries along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String location, Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @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 list of managed compute quota entries as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location) { + return new PagedIterable<>(() -> listSinglePage(location), nextLink -> listNextSinglePage(nextLink)); + } + + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @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 list of managed compute quota entries as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, Context context) { + return new PagedIterable<>(() -> listSinglePage(location, 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 list of managed compute quota entries 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 list of managed compute quota entries 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 list of managed compute quota entries 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/ManagedComputeUsagesOperationGroupsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsImpl.java new file mode 100644 index 000000000000..3d567db02332 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsImpl.java @@ -0,0 +1,45 @@ +// 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.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeUsage; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeUsagesOperationGroups; + +public final class ManagedComputeUsagesOperationGroupsImpl implements ManagedComputeUsagesOperationGroups { + private static final ClientLogger LOGGER = new ClientLogger(ManagedComputeUsagesOperationGroupsImpl.class); + + private final ManagedComputeUsagesOperationGroupsClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public ManagedComputeUsagesOperationGroupsImpl(ManagedComputeUsagesOperationGroupsClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String location) { + PagedIterable inner = this.serviceClient().list(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ManagedComputeUsageImpl(inner1, this.manager())); + } + + public PagedIterable list(String location, Context context) { + PagedIterable inner = this.serviceClient().list(location, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ManagedComputeUsageImpl(inner1, this.manager())); + } + + private ManagedComputeUsagesOperationGroupsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java new file mode 100644 index 000000000000..3763baf1c763 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java @@ -0,0 +1,211 @@ +// 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.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.WorkbenchInner; +import com.azure.resourcemanager.cognitiveservices.models.Identity; +import com.azure.resourcemanager.cognitiveservices.models.Workbench; +import com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties; +import java.util.Collections; +import java.util.Map; + +public final class WorkbenchImpl implements Workbench, Workbench.Definition, Workbench.Update { + private WorkbenchInner 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 WorkbenchProperties properties() { + return this.innerModel().properties(); + } + + 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) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public Identity identity() { + return this.innerModel().identity(); + } + + 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; + } + + public WorkbenchInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String accountName; + + private String projectName; + + private String workbenchName; + + public WorkbenchImpl withExistingProject(String resourceGroupName, String accountName, String projectName) { + this.resourceGroupName = resourceGroupName; + this.accountName = accountName; + this.projectName = projectName; + return this; + } + + public Workbench create() { + this.innerObject = serviceManager.serviceClient() + .getWorkbenches() + .createOrUpdate(resourceGroupName, accountName, projectName, workbenchName, this.innerModel(), + Context.NONE); + return this; + } + + public Workbench create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getWorkbenches() + .createOrUpdate(resourceGroupName, accountName, projectName, workbenchName, this.innerModel(), context); + return this; + } + + WorkbenchImpl(String name, com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerObject = new WorkbenchInner(); + this.serviceManager = serviceManager; + this.workbenchName = name; + } + + public WorkbenchImpl update() { + return this; + } + + public Workbench apply() { + this.innerObject = serviceManager.serviceClient() + .getWorkbenches() + .update(resourceGroupName, accountName, projectName, workbenchName, this.innerModel(), Context.NONE); + return this; + } + + public Workbench apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getWorkbenches() + .update(resourceGroupName, accountName, projectName, workbenchName, this.innerModel(), context); + return this; + } + + WorkbenchImpl(WorkbenchInner 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.projectName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "projects"); + this.workbenchName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workbenches"); + } + + public Workbench refresh() { + this.innerObject = serviceManager.serviceClient() + .getWorkbenches() + .getWithResponse(resourceGroupName, accountName, projectName, workbenchName, Context.NONE) + .getValue(); + return this; + } + + public Workbench refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getWorkbenches() + .getWithResponse(resourceGroupName, accountName, projectName, workbenchName, context) + .getValue(); + return this; + } + + public void start() { + serviceManager.workbenches().start(resourceGroupName, accountName, projectName, workbenchName); + } + + public void start(Context context) { + serviceManager.workbenches().start(resourceGroupName, accountName, projectName, workbenchName, context); + } + + public void stop() { + serviceManager.workbenches().stop(resourceGroupName, accountName, projectName, workbenchName); + } + + public void stop(Context context) { + serviceManager.workbenches().stop(resourceGroupName, accountName, projectName, workbenchName, context); + } + + public void restart() { + serviceManager.workbenches().restart(resourceGroupName, accountName, projectName, workbenchName); + } + + public void restart(Context context) { + serviceManager.workbenches().restart(resourceGroupName, accountName, projectName, workbenchName, context); + } + + public WorkbenchImpl withProperties(WorkbenchProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public WorkbenchImpl withRegion(Region location) { + this.innerModel().withLocation(location.toString()); + return this; + } + + public WorkbenchImpl withRegion(String location) { + this.innerModel().withLocation(location); + return this; + } + + public WorkbenchImpl withTags(Map tags) { + this.innerModel().withTags(tags); + return this; + } + + public WorkbenchImpl withIdentity(Identity identity) { + this.innerModel().withIdentity(identity); + return this; + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesClientImpl.java new file mode 100644 index 000000000000..8f7f63f65fd4 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesClientImpl.java @@ -0,0 +1,1673 @@ +// 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.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.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.WorkbenchesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.WorkbenchInner; +import com.azure.resourcemanager.cognitiveservices.implementation.models.WorkbenchListResult; +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 WorkbenchesClient. + */ +public final class WorkbenchesClientImpl implements WorkbenchesClient { + /** + * The proxy service used to perform REST calls. + */ + private final WorkbenchesService service; + + /** + * The service client containing this operation class. + */ + private final CognitiveServicesManagementClientImpl client; + + /** + * Initializes an instance of WorkbenchesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + WorkbenchesClientImpl(CognitiveServicesManagementClientImpl client) { + this.service + = RestProxy.create(WorkbenchesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for CognitiveServicesManagementClientWorkbenches to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "CognitiveServicesManagementClientWorkbenches") + public interface WorkbenchesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}") + @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("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}") + @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("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}") + @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("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkbenchInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}") + @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("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkbenchInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}") + @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("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkbenchInner properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}") + @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("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") WorkbenchInner properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}") + @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("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}") + @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("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches") + @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, + @PathParam("projectName") String projectName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches") + @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, + @PathParam("projectName") String projectName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/start") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> start(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/start") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response startSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/stop") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> stop(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/stop") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response stopSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/restart") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> restart(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/projects/{projectName}/workbenches/{workbenchName}/restart") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response restartSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, + @PathParam("projectName") String projectName, @PathParam("workbenchName") String workbenchName, + 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 workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 workbench associated with the project along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 workbench associated with the project on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String accountName, String projectName, + String workbenchName) { + return getWithResponseAsync(resourceGroupName, accountName, projectName, workbenchName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 workbench associated with the project along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, projectName, workbenchName, accept, context); + } + + /** + * Gets the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 workbench associated with the project. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkbenchInner get(String resourceGroupName, String accountName, String projectName, String workbenchName) { + return getWithResponse(resourceGroupName, accountName, projectName, workbenchName, Context.NONE).getValue(); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner 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, projectName, workbenchName, + contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String projectName, String workbenchName, WorkbenchInner 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, projectName, workbenchName, contentType, + accept, resource, Context.NONE); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, + String projectName, String workbenchName, WorkbenchInner 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, projectName, workbenchName, contentType, + accept, resource, context); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, WorkbenchInner> beginCreateOrUpdateAsync(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, accountName, projectName, workbenchName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkbenchInner.class, WorkbenchInner.class, this.client.getContext()); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkbenchInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner resource) { + Response response + = createOrUpdateWithResponse(resourceGroupName, accountName, projectName, workbenchName, resource); + return this.client.getLroResult(response, WorkbenchInner.class, + WorkbenchInner.class, Context.NONE); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkbenchInner> beginCreateOrUpdate(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner resource, Context context) { + Response response + = createOrUpdateWithResponse(resourceGroupName, accountName, projectName, workbenchName, resource, context); + return this.client.getLroResult(response, WorkbenchInner.class, + WorkbenchInner.class, context); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String projectName, + String workbenchName, WorkbenchInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, accountName, projectName, workbenchName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkbenchInner createOrUpdate(String resourceGroupName, String accountName, String projectName, + String workbenchName, WorkbenchInner resource) { + return beginCreateOrUpdate(resourceGroupName, accountName, projectName, workbenchName, resource) + .getFinalResult(); + } + + /** + * Creates or updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param resource The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkbenchInner createOrUpdate(String resourceGroupName, String accountName, String projectName, + String workbenchName, WorkbenchInner resource, Context context) { + return beginCreateOrUpdate(resourceGroupName, accountName, projectName, workbenchName, resource, context) + .getFinalResult(); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, + String projectName, String workbenchName, WorkbenchInner 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, projectName, workbenchName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, WorkbenchInner 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, projectName, workbenchName, contentType, + accept, properties, Context.NONE); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, WorkbenchInner 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, projectName, workbenchName, contentType, + accept, properties, context); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, WorkbenchInner> beginUpdateAsync(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, accountName, projectName, workbenchName, properties); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + WorkbenchInner.class, WorkbenchInner.class, this.client.getContext()); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkbenchInner> beginUpdate(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner properties) { + Response response + = updateWithResponse(resourceGroupName, accountName, projectName, workbenchName, properties); + return this.client.getLroResult(response, WorkbenchInner.class, + WorkbenchInner.class, Context.NONE); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, WorkbenchInner> beginUpdate(String resourceGroupName, + String accountName, String projectName, String workbenchName, WorkbenchInner properties, Context context) { + Response response + = updateWithResponse(resourceGroupName, accountName, projectName, workbenchName, properties, context); + return this.client.getLroResult(response, WorkbenchInner.class, + WorkbenchInner.class, context); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String accountName, String projectName, + String workbenchName, WorkbenchInner properties) { + return beginUpdateAsync(resourceGroupName, accountName, projectName, workbenchName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkbenchInner update(String resourceGroupName, String accountName, String projectName, String workbenchName, + WorkbenchInner properties) { + return beginUpdate(resourceGroupName, accountName, projectName, workbenchName, properties).getFinalResult(); + } + + /** + * Updates a workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @param properties The workbench 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 workbench resource under a Cognitive Services project. + * Provides interactive compute with data access for AI development. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public WorkbenchInner update(String resourceGroupName, String accountName, String projectName, String workbenchName, + WorkbenchInner properties, Context context) { + return beginUpdate(resourceGroupName, accountName, projectName, workbenchName, properties, context) + .getFinalResult(); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, String workbenchName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, + String workbenchName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, Context.NONE); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, + String workbenchName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, context); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, String workbenchName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, accountName, projectName, workbenchName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, String workbenchName) { + Response response = deleteWithResponse(resourceGroupName, accountName, projectName, workbenchName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, String workbenchName, Context context) { + Response response + = deleteWithResponse(resourceGroupName, accountName, projectName, workbenchName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, + String workbenchName) { + return beginDeleteAsync(resourceGroupName, accountName, projectName, workbenchName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, String workbenchName) { + beginDelete(resourceGroupName, accountName, projectName, workbenchName).getFinalResult(); + } + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, String workbenchName, + Context context) { + beginDelete(resourceGroupName, accountName, projectName, workbenchName, context).getFinalResult(); + } + + /** + * Gets the workbenches associated with the 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. + * @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 workbenches associated with the project along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String accountName, + String projectName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, 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 workbenches associated with the 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. + * @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 workbenches associated with the project as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String accountName, String projectName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, accountName, projectName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the workbenches associated with the 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. + * @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 workbenches associated with the project along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName, + String projectName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Gets the workbenches associated with the 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 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 workbenches associated with the project along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String accountName, + String projectName, Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Gets the workbenches associated with the 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. + * @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 workbenches associated with the project as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, String projectName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, projectName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Gets the workbenches associated with the 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 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 workbenches associated with the project as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String accountName, String projectName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, accountName, projectName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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>> startWithResponseAsync(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + return FluxUtil + .withContext(context -> service.start(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 startWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName) { + return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, Context.NONE); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 startWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context) { + return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, context); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginStartAsync(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + Mono>> mono + = startWithResponseAsync(resourceGroupName, accountName, projectName, workbenchName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginStart(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + Response response = startWithResponse(resourceGroupName, accountName, projectName, workbenchName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginStart(String resourceGroupName, String accountName, + String projectName, String workbenchName, Context context) { + Response response + = startWithResponse(resourceGroupName, accountName, projectName, workbenchName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 startAsync(String resourceGroupName, String accountName, String projectName, + String workbenchName) { + return beginStartAsync(resourceGroupName, accountName, projectName, workbenchName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 start(String resourceGroupName, String accountName, String projectName, String workbenchName) { + beginStart(resourceGroupName, accountName, projectName, workbenchName).getFinalResult(); + } + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 start(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context) { + beginStart(resourceGroupName, accountName, projectName, workbenchName, context).getFinalResult(); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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>> stopWithResponseAsync(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + return FluxUtil + .withContext(context -> service.stop(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 stopWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName) { + return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, projectName, workbenchName, Context.NONE); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 stopWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context) { + return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, accountName, projectName, workbenchName, context); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginStopAsync(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + Mono>> mono + = stopWithResponseAsync(resourceGroupName, accountName, projectName, workbenchName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginStop(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + Response response = stopWithResponse(resourceGroupName, accountName, projectName, workbenchName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginStop(String resourceGroupName, String accountName, + String projectName, String workbenchName, Context context) { + Response response + = stopWithResponse(resourceGroupName, accountName, projectName, workbenchName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 stopAsync(String resourceGroupName, String accountName, String projectName, + String workbenchName) { + return beginStopAsync(resourceGroupName, accountName, projectName, workbenchName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 stop(String resourceGroupName, String accountName, String projectName, String workbenchName) { + beginStop(resourceGroupName, accountName, projectName, workbenchName).getFinalResult(); + } + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 stop(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context) { + beginStop(resourceGroupName, accountName, projectName, workbenchName, context).getFinalResult(); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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>> restartWithResponseAsync(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + return FluxUtil + .withContext(context -> service.restart(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 restartWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName) { + return service.restartSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, Context.NONE); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 restartWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context) { + return service.restartSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accountName, projectName, workbenchName, context); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginRestartAsync(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + Mono>> mono + = restartWithResponseAsync(resourceGroupName, accountName, projectName, workbenchName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginRestart(String resourceGroupName, String accountName, + String projectName, String workbenchName) { + Response response = restartWithResponse(resourceGroupName, accountName, projectName, workbenchName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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> beginRestart(String resourceGroupName, String accountName, + String projectName, String workbenchName, Context context) { + Response response + = restartWithResponse(resourceGroupName, accountName, projectName, workbenchName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 restartAsync(String resourceGroupName, String accountName, String projectName, + String workbenchName) { + return beginRestartAsync(resourceGroupName, accountName, projectName, workbenchName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 restart(String resourceGroupName, String accountName, String projectName, String workbenchName) { + beginRestart(resourceGroupName, accountName, projectName, workbenchName).getFinalResult(); + } + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 restart(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context) { + beginRestart(resourceGroupName, accountName, projectName, workbenchName, context).getFinalResult(); + } + + /** + * 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 workbenches associated with the project 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 workbenches associated with the project 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 workbenches associated with the project 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/WorkbenchesImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesImpl.java new file mode 100644 index 000000000000..c82440a60924 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesImpl.java @@ -0,0 +1,203 @@ +// 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.WorkbenchesClient; +import com.azure.resourcemanager.cognitiveservices.fluent.models.WorkbenchInner; +import com.azure.resourcemanager.cognitiveservices.models.Workbench; +import com.azure.resourcemanager.cognitiveservices.models.Workbenches; + +public final class WorkbenchesImpl implements Workbenches { + private static final ClientLogger LOGGER = new ClientLogger(WorkbenchesImpl.class); + + private final WorkbenchesClient innerClient; + + private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; + + public WorkbenchesImpl(WorkbenchesClient innerClient, + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, accountName, projectName, workbenchName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new WorkbenchImpl(inner.getValue(), this.manager())); + } + + public Workbench get(String resourceGroupName, String accountName, String projectName, String workbenchName) { + WorkbenchInner inner = this.serviceClient().get(resourceGroupName, accountName, projectName, workbenchName); + if (inner != null) { + return new WorkbenchImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String accountName, String projectName, String workbenchName) { + this.serviceClient().delete(resourceGroupName, accountName, projectName, workbenchName); + } + + public void delete(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context) { + this.serviceClient().delete(resourceGroupName, accountName, projectName, workbenchName, context); + } + + public PagedIterable list(String resourceGroupName, String accountName, String projectName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, accountName, projectName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkbenchImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String accountName, String projectName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, accountName, projectName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new WorkbenchImpl(inner1, this.manager())); + } + + public void start(String resourceGroupName, String accountName, String projectName, String workbenchName) { + this.serviceClient().start(resourceGroupName, accountName, projectName, workbenchName); + } + + public void start(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context) { + this.serviceClient().start(resourceGroupName, accountName, projectName, workbenchName, context); + } + + public void stop(String resourceGroupName, String accountName, String projectName, String workbenchName) { + this.serviceClient().stop(resourceGroupName, accountName, projectName, workbenchName); + } + + public void stop(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context) { + this.serviceClient().stop(resourceGroupName, accountName, projectName, workbenchName, context); + } + + public void restart(String resourceGroupName, String accountName, String projectName, String workbenchName) { + this.serviceClient().restart(resourceGroupName, accountName, projectName, workbenchName); + } + + public void restart(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context) { + this.serviceClient().restart(resourceGroupName, accountName, projectName, workbenchName, context); + } + + public Workbench 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 workbenchName = ResourceManagerUtils.getValueFromIdByName(id, "workbenches"); + if (workbenchName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workbenches'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, projectName, workbenchName, 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 workbenchName = ResourceManagerUtils.getValueFromIdByName(id, "workbenches"); + if (workbenchName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workbenches'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, projectName, workbenchName, 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 workbenchName = ResourceManagerUtils.getValueFromIdByName(id, "workbenches"); + if (workbenchName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workbenches'.", id))); + } + this.delete(resourceGroupName, accountName, projectName, workbenchName, 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 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 workbenchName = ResourceManagerUtils.getValueFromIdByName(id, "workbenches"); + if (workbenchName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'workbenches'.", id))); + } + this.delete(resourceGroupName, accountName, projectName, workbenchName, context); + } + + private WorkbenchesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { + return this.serviceManager; + } + + public WorkbenchImpl define(String name) { + return new WorkbenchImpl(name, this.manager()); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ComputeListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ComputeListResult.java new file mode 100644 index 000000000000..e4769b66cda0 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ComputeListResult.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.ComputeInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of cognitive services computes operation response. + */ +@Immutable +public final class ComputeListResult implements JsonSerializable { + /* + * The link used to get the next page of compute list. + */ + private String nextLink; + + /* + * Gets the list of computes. + */ + private List value; + + /** + * Creates an instance of ComputeListResult class. + */ + private ComputeListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of compute list. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Get the value property: Gets the list of computes. + * + * @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); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ComputeListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ComputeListResult 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 ComputeListResult. + */ + public static ComputeListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ComputeListResult deserializedComputeListResult = new ComputeListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedComputeListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ComputeInner.fromJson(reader1)); + deserializedComputeListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedComputeListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeCapacityListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeCapacityListResult.java new file mode 100644 index 000000000000..5bcd04585019 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeCapacityListResult.java @@ -0,0 +1,95 @@ +// 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.ManagedComputeCapacityInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of managed compute capacities response. + */ +@Immutable +public final class ManagedComputeCapacityListResult implements JsonSerializable { + /* + * The link used to get the next page of managed compute capacities. + */ + private String nextLink; + + /* + * Gets the list of managed compute capacities. + */ + private List value; + + /** + * Creates an instance of ManagedComputeCapacityListResult class. + */ + private ManagedComputeCapacityListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of managed compute capacities. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Get the value property: Gets the list of managed compute capacities. + * + * @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 ManagedComputeCapacityListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeCapacityListResult 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 ManagedComputeCapacityListResult. + */ + public static ManagedComputeCapacityListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeCapacityListResult deserializedManagedComputeCapacityListResult + = new ManagedComputeCapacityListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedManagedComputeCapacityListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ManagedComputeCapacityInner.fromJson(reader1)); + deserializedManagedComputeCapacityListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeCapacityListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeDeploymentListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeDeploymentListResult.java new file mode 100644 index 000000000000..c073cd2ee830 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeDeploymentListResult.java @@ -0,0 +1,95 @@ +// 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.ManagedComputeDeploymentInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of managed compute deployments. + */ +@Immutable +public final class ManagedComputeDeploymentListResult implements JsonSerializable { + /* + * The link used to get the next page of managed compute deployments. + */ + private String nextLink; + + /* + * Gets the list of managed compute deployments and their properties. + */ + private List value; + + /** + * Creates an instance of ManagedComputeDeploymentListResult class. + */ + private ManagedComputeDeploymentListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of managed compute deployments. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Get the value property: Gets the list of managed compute 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 ManagedComputeDeploymentListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeDeploymentListResult 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 ManagedComputeDeploymentListResult. + */ + public static ManagedComputeDeploymentListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeDeploymentListResult deserializedManagedComputeDeploymentListResult + = new ManagedComputeDeploymentListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedManagedComputeDeploymentListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ManagedComputeDeploymentInner.fromJson(reader1)); + deserializedManagedComputeDeploymentListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeDeploymentListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeUsageListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeUsageListResult.java new file mode 100644 index 000000000000..d560e9ecbeee --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeUsageListResult.java @@ -0,0 +1,96 @@ +// 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.ManagedComputeUsageInner; +import java.io.IOException; +import java.util.List; + +/** + * List of managed compute quota entries. + */ +@Immutable +public final class ManagedComputeUsageListResult implements JsonSerializable { + /* + * The link used to get the next page of managed compute usages. + */ + private String nextLink; + + /* + * Per-SKU managed compute quota usage entries. + */ + private List value; + + /** + * Creates an instance of ManagedComputeUsageListResult class. + */ + private ManagedComputeUsageListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of managed compute usages. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Get the value property: Per-SKU managed compute quota usage entries. + * + * @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); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedComputeUsageListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeUsageListResult 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 ManagedComputeUsageListResult. + */ + public static ManagedComputeUsageListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeUsageListResult deserializedManagedComputeUsageListResult + = new ManagedComputeUsageListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedManagedComputeUsageListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ManagedComputeUsageInner.fromJson(reader1)); + deserializedManagedComputeUsageListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeUsageListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/WorkbenchListResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/WorkbenchListResult.java new file mode 100644 index 000000000000..036412151742 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/WorkbenchListResult.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.WorkbenchInner; +import java.io.IOException; +import java.util.List; + +/** + * The list of workbenches operation response. + */ +@Immutable +public final class WorkbenchListResult implements JsonSerializable { + /* + * The link used to get the next page of workbench list. + */ + private String nextLink; + + /* + * Gets the list of workbenches. + */ + private List value; + + /** + * Creates an instance of WorkbenchListResult class. + */ + private WorkbenchListResult() { + } + + /** + * Get the nextLink property: The link used to get the next page of workbench list. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Get the value property: Gets the list of workbenches. + * + * @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); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of WorkbenchListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of WorkbenchListResult 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 WorkbenchListResult. + */ + public static WorkbenchListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + WorkbenchListResult deserializedWorkbenchListResult = new WorkbenchListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedWorkbenchListResult.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> WorkbenchInner.fromJson(reader1)); + deserializedWorkbenchListResult.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedWorkbenchListResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Account.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Account.java index 1e5f47e59ca7..3cbde0e79e98 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Account.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Account.java @@ -415,4 +415,28 @@ interface WithIdentity { * @return the access keys for the cognitive services account. */ ApiKeys regenerateKey(RegenerateKeyParameters parameters); + + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param body The content of the action request. + * @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 response body for the evaluateDeploymentPolicies action along with {@link Response}. + */ + Response + evaluateDeploymentPoliciesWithResponse(EvaluateDeploymentPoliciesRequest body, Context context); + + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 response body for the evaluateDeploymentPolicies action. + */ + EvaluateDeploymentPoliciesResponse evaluateDeploymentPolicies(EvaluateDeploymentPoliciesRequest body); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Accounts.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Accounts.java index ab6b88335502..1952da4b0fd3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Accounts.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Accounts.java @@ -242,6 +242,35 @@ Response listUsagesWithResponse(String resourceGroupName, Strin */ PagedIterable listModels(String resourceGroupName, String accountName, Context context); + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param body The content of the action request. + * @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 response body for the evaluateDeploymentPolicies action along with {@link Response}. + */ + Response evaluateDeploymentPoliciesWithResponse(String resourceGroupName, + String accountName, EvaluateDeploymentPoliciesRequest body, Context context); + + /** + * Evaluate Azure Policy compliance for a set of hypothetical deployments without creating them. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 response body for the evaluateDeploymentPolicies action. + */ + EvaluateDeploymentPoliciesResponse evaluateDeploymentPolicies(String resourceGroupName, String accountName, + EvaluateDeploymentPoliciesRequest body); + /** * Returns a Cognitive Services account specified by the parameters. * 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 new file mode 100644 index 000000000000..03b0c92039b8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java @@ -0,0 +1,144 @@ +// 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.core.management.exception.ManagementError; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Properties for a Cluster (AKS-backed) compute resource. + */ +@Fluent +public final class ClusterComputeProperties extends ComputeProperties { + /* + * The type of compute resource. + */ + private ComputeType computeType = ComputeType.CLUSTER; + + /* + * Pools attached to this compute cluster. + */ + private List pools; + + /* + * ARM ID of the subnet used for compute. + */ + private String subnetArmId; + + /** + * Creates an instance of ClusterComputeProperties class. + */ + public ClusterComputeProperties() { + } + + /** + * Get the computeType property: The type of compute resource. + * + * @return the computeType value. + */ + @Override + public ComputeType computeType() { + return this.computeType; + } + + /** + * Get the pools property: Pools attached to this compute cluster. + * + * @return the pools value. + */ + public List pools() { + return this.pools; + } + + /** + * Set the pools property: Pools attached to this compute cluster. + * + * @param pools the pools value to set. + * @return the ClusterComputeProperties object itself. + */ + public ClusterComputeProperties withPools(List pools) { + this.pools = pools; + return this; + } + + /** + * Get the subnetArmId property: ARM ID of the subnet used for compute. + * + * @return the subnetArmId value. + */ + public String subnetArmId() { + return this.subnetArmId; + } + + /** + * Set the subnetArmId property: ARM ID of the subnet used for compute. + * + * @param subnetArmId the subnetArmId value to set. + * @return the ClusterComputeProperties object itself. + */ + public ClusterComputeProperties withSubnetArmId(String subnetArmId) { + this.subnetArmId = subnetArmId; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + 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); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterComputeProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterComputeProperties 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 ClusterComputeProperties. + */ + public static ClusterComputeProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterComputeProperties deserializedClusterComputeProperties = new ClusterComputeProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedClusterComputeProperties + .withProvisioningState(ComputeProvisioningState.fromString(reader.getString())); + } else if ("errors".equals(fieldName)) { + List errors = reader.readArray(reader1 -> ManagementError.fromJson(reader1)); + deserializedClusterComputeProperties.withErrors(errors); + } else if ("creationTime".equals(fieldName)) { + deserializedClusterComputeProperties.withCreationTime(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("pools".equals(fieldName)) { + List pools = reader.readArray(reader1 -> Pool.fromJson(reader1)); + deserializedClusterComputeProperties.pools = pools; + } else if ("computeType".equals(fieldName)) { + deserializedClusterComputeProperties.computeType = ComputeType.fromString(reader.getString()); + } else if ("subnetArmId".equals(fieldName)) { + deserializedClusterComputeProperties.subnetArmId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterComputeProperties; + }); + } +} 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 new file mode 100644 index 000000000000..2c59af7f72d9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java @@ -0,0 +1,412 @@ +// 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.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner; +import java.util.Map; + +/** + * An immutable client-side representation of Compute. + */ +public interface Compute { + /** + * 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: Polymorphic properties of the compute resource. Use computeType to select Cluster + * or ContainerInstance. + * + * @return the properties value. + */ + ComputeProperties properties(); + + /** + * Gets the etag property: Resource Etag. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the location property: The location of the compute resource. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the kind property: The kind (type) of compute resource. + * + * @return the kind value. + */ + String kind(); + + /** + * Gets the identity property: Identity for the resource. + * + * @return the identity value. + */ + Identity identity(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + 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. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner object. + * + * @return the inner object. + */ + ComputeInner innerModel(); + + /** + * The entirety of the Compute definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, + DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * The Compute definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the Compute definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the Compute 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 Compute definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Polymorphic properties of the compute resource. Use computeType to + * select Cluster or ContainerInstance.. + * + * @param properties Polymorphic properties of the compute resource. Use computeType to select Cluster or + * ContainerInstance. + * @return the next definition stage. + */ + WithCreate withProperties(ComputeProperties properties); + } + + /** + * 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 { + /** + * Executes the create request. + * + * @return the created resource. + */ + Compute create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + 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. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the Compute definition allowing to specify kind. + */ + interface WithKind { + /** + * Specifies the kind property: The kind (type) of compute resource.. + * + * @param kind The kind (type) of compute resource. + * @return the next definition stage. + */ + WithCreate withKind(String kind); + } + + /** + * The stage of the Compute definition allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: Identity for the resource.. + * + * @param identity Identity for the resource. + * @return the next definition stage. + */ + WithCreate withIdentity(Identity identity); + } + } + + /** + * Begins update for the Compute resource. + * + * @return the stage of resource update. + */ + Compute.Update update(); + + /** + * The template for Compute update. + */ + interface Update + extends UpdateStages.WithTags, UpdateStages.WithProperties, UpdateStages.WithKind, UpdateStages.WithIdentity { + /** + * Executes the update request. + * + * @return the updated resource. + */ + Compute apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + Compute apply(Context context); + } + + /** + * The Compute update stages. + */ + interface UpdateStages { + /** + * The stage of the Compute update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the Compute update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Polymorphic properties of the compute resource. Use computeType to + * select Cluster or ContainerInstance.. + * + * @param properties Polymorphic properties of the compute resource. Use computeType to select Cluster or + * ContainerInstance. + * @return the next definition stage. + */ + Update withProperties(ComputeProperties properties); + } + + /** + * The stage of the Compute update allowing to specify kind. + */ + interface WithKind { + /** + * Specifies the kind property: The kind (type) of compute resource.. + * + * @param kind The kind (type) of compute resource. + * @return the next definition stage. + */ + Update withKind(String kind); + } + + /** + * The stage of the Compute update allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: Identity for the resource.. + * + * @param identity Identity for the resource. + * @return the next definition stage. + */ + Update withIdentity(Identity identity); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + Compute refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + Compute refresh(Context context); + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @throws com.azure.core.management.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 start(); + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 start(Context context); + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @throws com.azure.core.management.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 stop(); + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 stop(Context context); + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @throws com.azure.core.management.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 restart(); + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 restart(Context context); +} 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 new file mode 100644 index 000000000000..c46ae8d05b79 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java @@ -0,0 +1,190 @@ +// 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.management.exception.ManagementError; +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.util.List; + +/** + * Base properties for all compute resource types. + * The computeType discriminator determines the concrete property shape. + */ +@Immutable +public class ComputeProperties implements JsonSerializable { + /* + * The type of compute resource. + */ + private ComputeType computeType = ComputeType.fromString("ComputeProperties"); + + /* + * Provisioning state of the compute resource. + */ + private ComputeProvisioningState provisioningState; + + /* + * Error details for the compute resource. + */ + private List errors; + + /* + * Creation time of the compute resource. + */ + private OffsetDateTime creationTime; + + /** + * Creates an instance of ComputeProperties class. + */ + public ComputeProperties() { + } + + /** + * Get the computeType property: The type of compute resource. + * + * @return the computeType value. + */ + public ComputeType computeType() { + return this.computeType; + } + + /** + * Get the provisioningState property: Provisioning state of the compute resource. + * + * @return the provisioningState value. + */ + public ComputeProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioningState property: Provisioning state of the compute resource. + * + * @param provisioningState the provisioningState value to set. + * @return the ComputeProperties object itself. + */ + ComputeProperties withProvisioningState(ComputeProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get the errors property: Error details for the compute resource. + * + * @return the errors value. + */ + public List errors() { + return this.errors; + } + + /** + * Set the errors property: Error details for the compute resource. + * + * @param errors the errors value to set. + * @return the ComputeProperties object itself. + */ + ComputeProperties withErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the creationTime property: Creation time of the compute resource. + * + * @return the creationTime value. + */ + public OffsetDateTime creationTime() { + return this.creationTime; + } + + /** + * Set the creationTime property: Creation time of the compute resource. + * + * @param creationTime the creationTime value to set. + * @return the ComputeProperties object itself. + */ + ComputeProperties withCreationTime(OffsetDateTime creationTime) { + this.creationTime = creationTime; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("computeType", this.computeType == null ? null : this.computeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ComputeProperties from the JsonReader. + * + * @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 IOException If an error occurs while reading the ComputeProperties. + */ + public static ComputeProperties 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 ("computeType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("Cluster".equals(discriminatorValue)) { + return ClusterComputeProperties.fromJson(readerToUse.reset()); + } else if ("ContainerInstance".equals(discriminatorValue)) { + return ContainerInstanceComputeProperties.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ComputeProperties fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ComputeProperties deserializedComputeProperties = new ComputeProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("computeType".equals(fieldName)) { + deserializedComputeProperties.computeType = ComputeType.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedComputeProperties.provisioningState + = ComputeProvisioningState.fromString(reader.getString()); + } else if ("errors".equals(fieldName)) { + List errors = reader.readArray(reader1 -> ManagementError.fromJson(reader1)); + deserializedComputeProperties.errors = errors; + } else if ("creationTime".equals(fieldName)) { + deserializedComputeProperties.creationTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedComputeProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProvisioningState.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProvisioningState.java new file mode 100644 index 000000000000..56c2bc341c68 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProvisioningState.java @@ -0,0 +1,96 @@ +// 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; + +/** + * The provisioning state of a compute resource. + */ +public final class ComputeProvisioningState extends ExpandableStringEnum { + /** + * The resource provisioning request has been accepted. + */ + public static final ComputeProvisioningState ACCEPTED = fromString("Accepted"); + + /** + * The resource has been fully provisioned. + */ + public static final ComputeProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * The resource provisioning has failed. + */ + public static final ComputeProvisioningState FAILED = fromString("Failed"); + + /** + * The resource provisioning was canceled. + */ + public static final ComputeProvisioningState CANCELED = fromString("Canceled"); + + /** + * The resource is being deleted. + */ + public static final ComputeProvisioningState DELETING = fromString("Deleting"); + + /** + * The resource is scaling. + */ + public static final ComputeProvisioningState SCALING = fromString("Scaling"); + + /** + * The resource is disabled. + */ + public static final ComputeProvisioningState DISABLED = fromString("Disabled"); + + /** + * The compute resource is starting. + */ + public static final ComputeProvisioningState STARTING = fromString("Starting"); + + /** + * The compute resource is stopping. + */ + public static final ComputeProvisioningState STOPPING = fromString("Stopping"); + + /** + * The compute resource is restarting. + */ + public static final ComputeProvisioningState RESTARTING = fromString("Restarting"); + + /** + * The compute resource is stopped. + */ + public static final ComputeProvisioningState STOPPED = fromString("Stopped"); + + /** + * Creates a new instance of ComputeProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ComputeProvisioningState() { + } + + /** + * Creates or finds a ComputeProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ComputeProvisioningState. + */ + public static ComputeProvisioningState fromString(String name) { + return fromString(name, ComputeProvisioningState.class); + } + + /** + * Gets known ComputeProvisioningState values. + * + * @return known ComputeProvisioningState values. + */ + public static Collection values() { + return values(ComputeProvisioningState.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeType.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeType.java new file mode 100644 index 000000000000..eddcf0e1ff35 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeType.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; + +/** + * The type of compute resource. + */ +public final class ComputeType extends ExpandableStringEnum { + /** + * Cluster (AKS-backed) compute type. + */ + public static final ComputeType CLUSTER = fromString("Cluster"); + + /** + * Container Instance compute type. + */ + public static final ComputeType CONTAINER_INSTANCE = fromString("ContainerInstance"); + + /** + * Creates a new instance of ComputeType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ComputeType() { + } + + /** + * Creates or finds a ComputeType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ComputeType. + */ + public static ComputeType fromString(String name) { + return fromString(name, ComputeType.class); + } + + /** + * Gets known ComputeType values. + * + * @return known ComputeType values. + */ + public static Collection values() { + return values(ComputeType.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Computes.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Computes.java new file mode 100644 index 000000000000..4bba20888d7c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Computes.java @@ -0,0 +1,233 @@ +// 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 Computes. + */ +public interface Computes { + /** + * Gets the specified 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 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 compute associated with the Cognitive Services account along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String computeName, + Context context); + + /** + * Gets the specified 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 compute associated with the Cognitive Services account. + */ + Compute get(String resourceGroupName, String accountName, String computeName); + + /** + * Deletes the specified 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 computeName); + + /** + * Deletes the specified 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 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 computeName, Context context); + + /** + * Gets the computes 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 computes associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the computes 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 computes associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 start(String resourceGroupName, String accountName, String computeName); + + /** + * Starts a stopped ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 start(String resourceGroupName, String accountName, String computeName, Context context); + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 stop(String resourceGroupName, String accountName, String computeName); + + /** + * Stops a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 stop(String resourceGroupName, String accountName, String computeName, Context context); + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 restart(String resourceGroupName, String accountName, String computeName); + + /** + * Restarts a running ContainerInstance compute resource. + * This is a long-running operation that returns 202 Accepted. + * Only applicable when computeType is ContainerInstance. + * + * @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 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 restart(String resourceGroupName, String accountName, String computeName, Context context); + + /** + * Gets the specified compute 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 compute associated with the Cognitive Services account along with {@link Response}. + */ + Compute getById(String id); + + /** + * Gets the specified compute 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 compute associated with the Cognitive Services account along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified compute 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 compute 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 Compute resource. + * + * @param name resource name. + * @return the first stage of the new Compute definition. + */ + Compute.DefinitionStages.Blank define(String name); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java new file mode 100644 index 000000000000..50fb842564de --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java @@ -0,0 +1,89 @@ +// 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; + +/** + * Network connectivity endpoints for a Container Instance compute. + */ +@Immutable +public final class ConnectivityEndpoints implements JsonSerializable { + /* + * The public IP address of the compute instance. + */ + private String publicIpAddress; + + /* + * The SSH port for the compute instance. + */ + private Integer sshPort; + + /** + * Creates an instance of ConnectivityEndpoints class. + */ + private ConnectivityEndpoints() { + } + + /** + * Get the publicIpAddress property: The public IP address of the compute instance. + * + * @return the publicIpAddress value. + */ + public String publicIpAddress() { + return this.publicIpAddress; + } + + /** + * Get the sshPort property: The SSH port for the compute instance. + * + * @return the sshPort value. + */ + public Integer sshPort() { + return this.sshPort; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ConnectivityEndpoints from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ConnectivityEndpoints 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 ConnectivityEndpoints. + */ + public static ConnectivityEndpoints fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ConnectivityEndpoints deserializedConnectivityEndpoints = new ConnectivityEndpoints(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("publicIpAddress".equals(fieldName)) { + deserializedConnectivityEndpoints.publicIpAddress = reader.getString(); + } else if ("sshPort".equals(fieldName)) { + deserializedConnectivityEndpoints.sshPort = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedConnectivityEndpoints; + }); + } +} 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 new file mode 100644 index 000000000000..387288c4690d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java @@ -0,0 +1,220 @@ +// 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.core.management.exception.ManagementError; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Properties for a Container Instance compute resource. + */ +@Fluent +public final class ContainerInstanceComputeProperties extends ComputeProperties { + /* + * The type of compute resource. + */ + private ComputeType computeType = ComputeType.CONTAINER_INSTANCE; + + /* + * ARM resource ID of the parent cluster that hosts this container instance. + */ + private String targetClusterId; + + /* + * Container image URI (e.g., MCR or ACR image path) for the container instance. + */ + private String imageLink; + + /* + * ISO 8601 duration before the idle instance is automatically shut down (e.g., 'PT30M'). + */ + private String idleTimeBeforeShutdown; + + /* + * SSH configuration for remote access to the container instance. + */ + private SshSettings sshSettings; + + /* + * Network connectivity endpoints assigned to the container instance. + */ + private ConnectivityEndpoints connectivityEndpoints; + + /** + * Creates an instance of ContainerInstanceComputeProperties class. + */ + public ContainerInstanceComputeProperties() { + } + + /** + * Get the computeType property: The type of compute resource. + * + * @return the computeType value. + */ + @Override + public ComputeType computeType() { + return this.computeType; + } + + /** + * Get the targetClusterId property: ARM resource ID of the parent cluster that hosts this container instance. + * + * @return the targetClusterId value. + */ + public String targetClusterId() { + return this.targetClusterId; + } + + /** + * Set the targetClusterId property: ARM resource ID of the parent cluster that hosts this container instance. + * + * @param targetClusterId the targetClusterId value to set. + * @return the ContainerInstanceComputeProperties object itself. + */ + public ContainerInstanceComputeProperties withTargetClusterId(String targetClusterId) { + this.targetClusterId = targetClusterId; + return this; + } + + /** + * Get the imageLink property: Container image URI (e.g., MCR or ACR image path) for the container instance. + * + * @return the imageLink value. + */ + public String imageLink() { + return this.imageLink; + } + + /** + * Set the imageLink property: Container image URI (e.g., MCR or ACR image path) for the container instance. + * + * @param imageLink the imageLink value to set. + * @return the ContainerInstanceComputeProperties object itself. + */ + public ContainerInstanceComputeProperties withImageLink(String imageLink) { + this.imageLink = imageLink; + return this; + } + + /** + * Get the idleTimeBeforeShutdown property: ISO 8601 duration before the idle instance is automatically shut down + * (e.g., 'PT30M'). + * + * @return the idleTimeBeforeShutdown value. + */ + public String idleTimeBeforeShutdown() { + return this.idleTimeBeforeShutdown; + } + + /** + * Set the idleTimeBeforeShutdown property: ISO 8601 duration before the idle instance is automatically shut down + * (e.g., 'PT30M'). + * + * @param idleTimeBeforeShutdown the idleTimeBeforeShutdown value to set. + * @return the ContainerInstanceComputeProperties object itself. + */ + public ContainerInstanceComputeProperties withIdleTimeBeforeShutdown(String idleTimeBeforeShutdown) { + this.idleTimeBeforeShutdown = idleTimeBeforeShutdown; + return this; + } + + /** + * Get the sshSettings property: SSH configuration for remote access to the container instance. + * + * @return the sshSettings value. + */ + public SshSettings sshSettings() { + return this.sshSettings; + } + + /** + * Set the sshSettings property: SSH configuration for remote access to the container instance. + * + * @param sshSettings the sshSettings value to set. + * @return the ContainerInstanceComputeProperties object itself. + */ + public ContainerInstanceComputeProperties withSshSettings(SshSettings sshSettings) { + this.sshSettings = sshSettings; + return this; + } + + /** + * Get the connectivityEndpoints property: Network connectivity endpoints assigned to the container instance. + * + * @return the connectivityEndpoints value. + */ + public ConnectivityEndpoints connectivityEndpoints() { + return this.connectivityEndpoints; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetClusterId", this.targetClusterId); + jsonWriter.writeStringField("imageLink", this.imageLink); + jsonWriter.writeStringField("computeType", this.computeType == null ? null : this.computeType.toString()); + jsonWriter.writeStringField("idleTimeBeforeShutdown", this.idleTimeBeforeShutdown); + jsonWriter.writeJsonField("sshSettings", this.sshSettings); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ContainerInstanceComputeProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ContainerInstanceComputeProperties 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 ContainerInstanceComputeProperties. + */ + public static ContainerInstanceComputeProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ContainerInstanceComputeProperties deserializedContainerInstanceComputeProperties + = new ContainerInstanceComputeProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedContainerInstanceComputeProperties + .withProvisioningState(ComputeProvisioningState.fromString(reader.getString())); + } else if ("errors".equals(fieldName)) { + List errors = reader.readArray(reader1 -> ManagementError.fromJson(reader1)); + deserializedContainerInstanceComputeProperties.withErrors(errors); + } else if ("creationTime".equals(fieldName)) { + deserializedContainerInstanceComputeProperties.withCreationTime(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("targetClusterId".equals(fieldName)) { + deserializedContainerInstanceComputeProperties.targetClusterId = reader.getString(); + } else if ("imageLink".equals(fieldName)) { + deserializedContainerInstanceComputeProperties.imageLink = reader.getString(); + } else if ("computeType".equals(fieldName)) { + deserializedContainerInstanceComputeProperties.computeType + = ComputeType.fromString(reader.getString()); + } else if ("idleTimeBeforeShutdown".equals(fieldName)) { + deserializedContainerInstanceComputeProperties.idleTimeBeforeShutdown = reader.getString(); + } else if ("sshSettings".equals(fieldName)) { + deserializedContainerInstanceComputeProperties.sshSettings = SshSettings.fromJson(reader); + } else if ("connectivityEndpoints".equals(fieldName)) { + deserializedContainerInstanceComputeProperties.connectivityEndpoints + = ConnectivityEndpoints.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedContainerInstanceComputeProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentPolicyEvaluationResult.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentPolicyEvaluationResult.java new file mode 100644 index 000000000000..74bf72bf119c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentPolicyEvaluationResult.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.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; +import java.util.List; + +/** + * Policy evaluation result for a single deployment. + */ +@Immutable +public final class DeploymentPolicyEvaluationResult implements JsonSerializable { + /* + * The evaluation outcome. + */ + private PolicyEvaluationOutcome evaluationOutcome; + + /* + * Error message if the evaluation outcome is Error. + */ + private String errorMessage; + + /* + * Details of non-compliant policy assignments. + */ + private List nonCompliantAssignments; + + /** + * Creates an instance of DeploymentPolicyEvaluationResult class. + */ + private DeploymentPolicyEvaluationResult() { + } + + /** + * Get the evaluationOutcome property: The evaluation outcome. + * + * @return the evaluationOutcome value. + */ + public PolicyEvaluationOutcome evaluationOutcome() { + return this.evaluationOutcome; + } + + /** + * Get the errorMessage property: Error message if the evaluation outcome is Error. + * + * @return the errorMessage value. + */ + public String errorMessage() { + return this.errorMessage; + } + + /** + * Get the nonCompliantAssignments property: Details of non-compliant policy assignments. + * + * @return the nonCompliantAssignments value. + */ + public List nonCompliantAssignments() { + return this.nonCompliantAssignments; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("evaluationOutcome", + this.evaluationOutcome == null ? null : this.evaluationOutcome.toString()); + jsonWriter.writeStringField("errorMessage", this.errorMessage); + jsonWriter.writeArrayField("nonCompliantAssignments", this.nonCompliantAssignments, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeploymentPolicyEvaluationResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeploymentPolicyEvaluationResult 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 DeploymentPolicyEvaluationResult. + */ + public static DeploymentPolicyEvaluationResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeploymentPolicyEvaluationResult deserializedDeploymentPolicyEvaluationResult + = new DeploymentPolicyEvaluationResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("evaluationOutcome".equals(fieldName)) { + deserializedDeploymentPolicyEvaluationResult.evaluationOutcome + = PolicyEvaluationOutcome.fromString(reader.getString()); + } else if ("errorMessage".equals(fieldName)) { + deserializedDeploymentPolicyEvaluationResult.errorMessage = reader.getString(); + } else if ("nonCompliantAssignments".equals(fieldName)) { + List nonCompliantAssignments + = reader.readArray(reader1 -> PolicyAssignmentEvaluationDetails.fromJson(reader1)); + deserializedDeploymentPolicyEvaluationResult.nonCompliantAssignments = nonCompliantAssignments; + } else { + reader.skipChildren(); + } + } + + return deserializedDeploymentPolicyEvaluationResult; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSizeCapacity.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSizeCapacity.java new file mode 100644 index 000000000000..253b87892d29 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSizeCapacity.java @@ -0,0 +1,108 @@ +// 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; + +/** + * Capacity information for a specific deployment size. + */ +@Immutable +public final class DeploymentSizeCapacity implements JsonSerializable { + /* + * The number of accelerators required per model instance. + */ + private Integer modelInstanceAcceleratorCount; + + /* + * The total available capacity for this deployment size. + */ + private Integer totalAvailableCapacity; + + /* + * The largest contiguous deployment capacity available for this deployment size. + */ + private Integer largestDeploymentCapacity; + + /** + * Creates an instance of DeploymentSizeCapacity class. + */ + private DeploymentSizeCapacity() { + } + + /** + * Get the modelInstanceAcceleratorCount property: The number of accelerators required per model instance. + * + * @return the modelInstanceAcceleratorCount value. + */ + public Integer modelInstanceAcceleratorCount() { + return this.modelInstanceAcceleratorCount; + } + + /** + * Get the totalAvailableCapacity property: The total available capacity for this deployment size. + * + * @return the totalAvailableCapacity value. + */ + public Integer totalAvailableCapacity() { + return this.totalAvailableCapacity; + } + + /** + * Get the largestDeploymentCapacity property: The largest contiguous deployment capacity available for this + * deployment size. + * + * @return the largestDeploymentCapacity value. + */ + public Integer largestDeploymentCapacity() { + return this.largestDeploymentCapacity; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DeploymentSizeCapacity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DeploymentSizeCapacity 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 DeploymentSizeCapacity. + */ + public static DeploymentSizeCapacity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DeploymentSizeCapacity deserializedDeploymentSizeCapacity = new DeploymentSizeCapacity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("modelInstanceAcceleratorCount".equals(fieldName)) { + deserializedDeploymentSizeCapacity.modelInstanceAcceleratorCount + = reader.getNullable(JsonReader::getInt); + } else if ("totalAvailableCapacity".equals(fieldName)) { + deserializedDeploymentSizeCapacity.totalAvailableCapacity = reader.getNullable(JsonReader::getInt); + } else if ("largestDeploymentCapacity".equals(fieldName)) { + deserializedDeploymentSizeCapacity.largestDeploymentCapacity + = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedDeploymentSizeCapacity; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeployment.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeployment.java new file mode 100644 index 000000000000..cbc82ee50b99 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeployment.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; + +/** + * A hypothetical deployment definition used for policy dry-run evaluation. + */ +@Fluent +public final class EvaluateDeploymentPoliciesDeployment + implements JsonSerializable { + /* + * The name of the hypothetical deployment. + */ + private String name; + + /* + * Properties of the hypothetical deployment. + */ + private EvaluateDeploymentPoliciesDeploymentProperties properties; + + /** + * Creates an instance of EvaluateDeploymentPoliciesDeployment class. + */ + public EvaluateDeploymentPoliciesDeployment() { + } + + /** + * Get the name property: The name of the hypothetical deployment. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the hypothetical deployment. + * + * @param name the name value to set. + * @return the EvaluateDeploymentPoliciesDeployment object itself. + */ + public EvaluateDeploymentPoliciesDeployment withName(String name) { + this.name = name; + return this; + } + + /** + * Get the properties property: Properties of the hypothetical deployment. + * + * @return the properties value. + */ + public EvaluateDeploymentPoliciesDeploymentProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of the hypothetical deployment. + * + * @param properties the properties value to set. + * @return the EvaluateDeploymentPoliciesDeployment object itself. + */ + public EvaluateDeploymentPoliciesDeployment + withProperties(EvaluateDeploymentPoliciesDeploymentProperties properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluateDeploymentPoliciesDeployment from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluateDeploymentPoliciesDeployment 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 EvaluateDeploymentPoliciesDeployment. + */ + public static EvaluateDeploymentPoliciesDeployment fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EvaluateDeploymentPoliciesDeployment deserializedEvaluateDeploymentPoliciesDeployment + = new EvaluateDeploymentPoliciesDeployment(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedEvaluateDeploymentPoliciesDeployment.name = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedEvaluateDeploymentPoliciesDeployment.properties + = EvaluateDeploymentPoliciesDeploymentProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedEvaluateDeploymentPoliciesDeployment; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeploymentProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeploymentProperties.java new file mode 100644 index 000000000000..2a0769827337 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeploymentProperties.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; + +/** + * Properties of a hypothetical deployment for policy evaluation. + */ +@Fluent +public final class EvaluateDeploymentPoliciesDeploymentProperties + implements JsonSerializable { + /* + * The model to evaluate. + */ + private DeploymentModel model; + + /* + * The name of the RAI policy to evaluate. + */ + private String raiPolicyName; + + /** + * Creates an instance of EvaluateDeploymentPoliciesDeploymentProperties class. + */ + public EvaluateDeploymentPoliciesDeploymentProperties() { + } + + /** + * Get the model property: The model to evaluate. + * + * @return the model value. + */ + public DeploymentModel model() { + return this.model; + } + + /** + * Set the model property: The model to evaluate. + * + * @param model the model value to set. + * @return the EvaluateDeploymentPoliciesDeploymentProperties object itself. + */ + public EvaluateDeploymentPoliciesDeploymentProperties withModel(DeploymentModel model) { + this.model = model; + return this; + } + + /** + * Get the raiPolicyName property: The name of the RAI policy to evaluate. + * + * @return the raiPolicyName value. + */ + public String raiPolicyName() { + return this.raiPolicyName; + } + + /** + * Set the raiPolicyName property: The name of the RAI policy to evaluate. + * + * @param raiPolicyName the raiPolicyName value to set. + * @return the EvaluateDeploymentPoliciesDeploymentProperties object itself. + */ + public EvaluateDeploymentPoliciesDeploymentProperties withRaiPolicyName(String raiPolicyName) { + this.raiPolicyName = raiPolicyName; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("model", this.model); + jsonWriter.writeStringField("raiPolicyName", this.raiPolicyName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluateDeploymentPoliciesDeploymentProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluateDeploymentPoliciesDeploymentProperties 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 EvaluateDeploymentPoliciesDeploymentProperties. + */ + public static EvaluateDeploymentPoliciesDeploymentProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EvaluateDeploymentPoliciesDeploymentProperties deserializedEvaluateDeploymentPoliciesDeploymentProperties + = new EvaluateDeploymentPoliciesDeploymentProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("model".equals(fieldName)) { + deserializedEvaluateDeploymentPoliciesDeploymentProperties.model = DeploymentModel.fromJson(reader); + } else if ("raiPolicyName".equals(fieldName)) { + deserializedEvaluateDeploymentPoliciesDeploymentProperties.raiPolicyName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedEvaluateDeploymentPoliciesDeploymentProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesRequest.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesRequest.java new file mode 100644 index 000000000000..4c1bbebcb377 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesRequest.java @@ -0,0 +1,90 @@ +// 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.List; + +/** + * Request body for the evaluateDeploymentPolicies action. + */ +@Fluent +public final class EvaluateDeploymentPoliciesRequest implements JsonSerializable { + /* + * The list of hypothetical deployments to evaluate against Azure Policy. + */ + private List deployments; + + /** + * Creates an instance of EvaluateDeploymentPoliciesRequest class. + */ + public EvaluateDeploymentPoliciesRequest() { + } + + /** + * Get the deployments property: The list of hypothetical deployments to evaluate against Azure Policy. + * + * @return the deployments value. + */ + public List deployments() { + return this.deployments; + } + + /** + * Set the deployments property: The list of hypothetical deployments to evaluate against Azure Policy. + * + * @param deployments the deployments value to set. + * @return the EvaluateDeploymentPoliciesRequest object itself. + */ + public EvaluateDeploymentPoliciesRequest withDeployments(List deployments) { + this.deployments = deployments; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("deployments", this.deployments, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EvaluateDeploymentPoliciesRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EvaluateDeploymentPoliciesRequest 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 EvaluateDeploymentPoliciesRequest. + */ + public static EvaluateDeploymentPoliciesRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EvaluateDeploymentPoliciesRequest deserializedEvaluateDeploymentPoliciesRequest + = new EvaluateDeploymentPoliciesRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("deployments".equals(fieldName)) { + List deployments + = reader.readArray(reader1 -> EvaluateDeploymentPoliciesDeployment.fromJson(reader1)); + deserializedEvaluateDeploymentPoliciesRequest.deployments = deployments; + } else { + reader.skipChildren(); + } + } + + return deserializedEvaluateDeploymentPoliciesRequest; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesResponse.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesResponse.java new file mode 100644 index 000000000000..ce7894dabeef --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesResponse.java @@ -0,0 +1,28 @@ +// 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.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner; +import java.util.Map; + +/** + * An immutable client-side representation of EvaluateDeploymentPoliciesResponse. + */ +public interface EvaluateDeploymentPoliciesResponse { + /** + * Gets the results property: Per-deployment policy evaluation results, keyed by deployment name. + * + * @return the results value. + */ + Map results(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner + * object. + * + * @return the inner object. + */ + EvaluateDeploymentPoliciesResponseInner innerModel(); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacities.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacities.java new file mode 100644 index 000000000000..655305f53df3 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacities.java @@ -0,0 +1,42 @@ +// 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.util.Context; + +/** + * Resource collection API of ManagedComputeCapacities. + */ +public interface ManagedComputeCapacities { + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 managed compute capacities for a subscription as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String offer); + + /** + * Gets the managed compute capacities for a subscription. Returns available capacity + * per accelerator type, including deployment size information. + * + * @param offer The offer name to query capacity for (required). + * @param acceleratorType Optional accelerator type filter to narrow results to a specific accelerator type. + * @param deploymentId Optional deployment resource ID. When provided, returns capacity for the specific region + * where the deployment is hosted rather than the best available region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the managed compute capacities for a subscription as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String offer, String acceleratorType, String deploymentId, + Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacity.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacity.java new file mode 100644 index 000000000000..8b4918f667c2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacity.java @@ -0,0 +1,55 @@ +// 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.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner; + +/** + * An immutable client-side representation of ManagedComputeCapacity. + */ +public interface ManagedComputeCapacity { + /** + * 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 managed compute capacity resource. + * + * @return the properties value. + */ + ManagedComputeCapacityProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner object. + * + * @return the inner object. + */ + ManagedComputeCapacityInner innerModel(); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacityProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacityProperties.java new file mode 100644 index 000000000000..52be7fb007e1 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacityProperties.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; +import java.util.List; + +/** + * Properties of a managed compute capacity resource. + */ +@Immutable +public final class ManagedComputeCapacityProperties implements JsonSerializable { + /* + * The type of accelerator (e.g., Azure.A100, Azure.H100). + */ + private String acceleratorType; + + /* + * The Azure region where the capacity is available. + */ + private String location; + + /* + * The number of available accelerators in the region. + */ + private Integer availableAccelerators; + + /* + * Capacity information broken down by deployment size. + */ + private List deploymentSizeCapacities; + + /** + * Creates an instance of ManagedComputeCapacityProperties class. + */ + private ManagedComputeCapacityProperties() { + } + + /** + * Get the acceleratorType property: The type of accelerator (e.g., Azure.A100, Azure.H100). + * + * @return the acceleratorType value. + */ + public String acceleratorType() { + return this.acceleratorType; + } + + /** + * Get the location property: The Azure region where the capacity is available. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Get the availableAccelerators property: The number of available accelerators in the region. + * + * @return the availableAccelerators value. + */ + public Integer availableAccelerators() { + return this.availableAccelerators; + } + + /** + * Get the deploymentSizeCapacities property: Capacity information broken down by deployment size. + * + * @return the deploymentSizeCapacities value. + */ + public List deploymentSizeCapacities() { + return this.deploymentSizeCapacities; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedComputeCapacityProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeCapacityProperties 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 ManagedComputeCapacityProperties. + */ + public static ManagedComputeCapacityProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeCapacityProperties deserializedManagedComputeCapacityProperties + = new ManagedComputeCapacityProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("acceleratorType".equals(fieldName)) { + deserializedManagedComputeCapacityProperties.acceleratorType = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedManagedComputeCapacityProperties.location = reader.getString(); + } else if ("availableAccelerators".equals(fieldName)) { + deserializedManagedComputeCapacityProperties.availableAccelerators + = reader.getNullable(JsonReader::getInt); + } else if ("deploymentSizeCapacities".equals(fieldName)) { + List deploymentSizeCapacities + = reader.readArray(reader1 -> DeploymentSizeCapacity.fromJson(reader1)); + deserializedManagedComputeCapacityProperties.deploymentSizeCapacities = deploymentSizeCapacities; + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeCapacityProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployment.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployment.java new file mode 100644 index 000000000000..a4a9e3338fcd --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployment.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.ManagedComputeDeploymentInner; + +/** + * An immutable client-side representation of ManagedComputeDeployment. + */ +public interface ManagedComputeDeployment { + /** + * 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 managed compute deployment. + * + * @return the properties value. + */ + ManagedComputeDeploymentProperties properties(); + + /** + * Gets the sku property: The resource model definition representing SKU. + * + * @return the sku value. + */ + Sku 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.ManagedComputeDeploymentInner object. + * + * @return the inner object. + */ + ManagedComputeDeploymentInner innerModel(); + + /** + * The entirety of the ManagedComputeDeployment definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The ManagedComputeDeployment definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the ManagedComputeDeployment definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the ManagedComputeDeployment 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. + */ + WithCreate withExistingAccount(String resourceGroupName, String accountName); + } + + /** + * The stage of the ManagedComputeDeployment 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.WithProperties, DefinitionStages.WithSku { + /** + * Executes the create request. + * + * @return the created resource. + */ + ManagedComputeDeployment create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + ManagedComputeDeployment create(Context context); + } + + /** + * The stage of the ManagedComputeDeployment definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of the Cognitive Services managed compute deployment.. + * + * @param properties Properties of the Cognitive Services managed compute deployment. + * @return the next definition stage. + */ + WithCreate withProperties(ManagedComputeDeploymentProperties properties); + } + + /** + * The stage of the ManagedComputeDeployment definition allowing to specify sku. + */ + interface WithSku { + /** + * Specifies the sku property: The resource model definition representing SKU. + * + * @param sku The resource model definition representing SKU. + * @return the next definition stage. + */ + WithCreate withSku(Sku sku); + } + } + + /** + * Begins update for the ManagedComputeDeployment resource. + * + * @return the stage of resource update. + */ + ManagedComputeDeployment.Update update(); + + /** + * The template for ManagedComputeDeployment update. + */ + interface Update extends UpdateStages.WithSku { + /** + * Executes the update request. + * + * @return the updated resource. + */ + ManagedComputeDeployment apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + ManagedComputeDeployment apply(Context context); + } + + /** + * The ManagedComputeDeployment update stages. + */ + interface UpdateStages { + /** + * The stage of the ManagedComputeDeployment update allowing to specify sku. + */ + interface WithSku { + /** + * Specifies the sku property: The resource model definition representing SKU. + * + * @param sku The resource model definition representing SKU. + * @return the next definition stage. + */ + Update withSku(Sku sku); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + ManagedComputeDeployment refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + ManagedComputeDeployment refresh(Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentInfo.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentInfo.java new file mode 100644 index 000000000000..f82e5c45bcc5 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentInfo.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.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; + +/** + * Deployment detail within a managed compute usage entry. + */ +@Immutable +public final class ManagedComputeDeploymentInfo implements JsonSerializable { + /* + * Full ARM resource ID of the deployment. + */ + private String deploymentId; + + /* + * Full ARM resource ID of the account/project. + */ + private String projectId; + + /* + * Model name (e.g., 'azureml://registries//models//versions/gpt-4o'). + */ + private String modelId; + + /* + * Number of GPUs consumed by this deployment. + */ + private Long acceleratorCount; + + /* + * Number of instances for this deployment. + */ + private Integer instanceCount; + + /** + * Creates an instance of ManagedComputeDeploymentInfo class. + */ + private ManagedComputeDeploymentInfo() { + } + + /** + * Get the deploymentId property: Full ARM resource ID of the deployment. + * + * @return the deploymentId value. + */ + public String deploymentId() { + return this.deploymentId; + } + + /** + * Get the projectId property: Full ARM resource ID of the account/project. + * + * @return the projectId value. + */ + public String projectId() { + return this.projectId; + } + + /** + * Get the modelId property: Model name (e.g., 'azureml://registries//models//versions/gpt-4o'). + * + * @return the modelId value. + */ + public String modelId() { + return this.modelId; + } + + /** + * Get the acceleratorCount property: Number of GPUs consumed by this deployment. + * + * @return the acceleratorCount value. + */ + public Long acceleratorCount() { + return this.acceleratorCount; + } + + /** + * Get the instanceCount property: Number of instances for this deployment. + * + * @return the instanceCount value. + */ + public Integer instanceCount() { + return this.instanceCount; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("deploymentId", this.deploymentId); + jsonWriter.writeStringField("projectId", this.projectId); + jsonWriter.writeStringField("modelId", this.modelId); + jsonWriter.writeNumberField("acceleratorCount", this.acceleratorCount); + jsonWriter.writeNumberField("instanceCount", this.instanceCount); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedComputeDeploymentInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeDeploymentInfo 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 ManagedComputeDeploymentInfo. + */ + public static ManagedComputeDeploymentInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeDeploymentInfo deserializedManagedComputeDeploymentInfo = new ManagedComputeDeploymentInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("deploymentId".equals(fieldName)) { + deserializedManagedComputeDeploymentInfo.deploymentId = reader.getString(); + } else if ("projectId".equals(fieldName)) { + deserializedManagedComputeDeploymentInfo.projectId = reader.getString(); + } else if ("modelId".equals(fieldName)) { + deserializedManagedComputeDeploymentInfo.modelId = reader.getString(); + } else if ("acceleratorCount".equals(fieldName)) { + deserializedManagedComputeDeploymentInfo.acceleratorCount = reader.getNullable(JsonReader::getLong); + } else if ("instanceCount".equals(fieldName)) { + deserializedManagedComputeDeploymentInfo.instanceCount = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeDeploymentInfo; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProperties.java new file mode 100644 index 000000000000..92444e1c76d8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProperties.java @@ -0,0 +1,341 @@ +// 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; + +/** + * Properties of a Cognitive Services managed compute deployment. + */ +@Fluent +public final class ManagedComputeDeploymentProperties implements JsonSerializable { + /* + * AzureML Registry model asset URI. Required on creation; immutable after creation. + * Example: azureml://registries/{registry}/models/{model}/versions/{version} + */ + private String model; + + /* + * Deployment template identifier. Optional on creation. + * Accepts an AzureML Registry deployment template URI or a project-scoped deployment template path for + * VmManagedCompute. + * Examples: azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}, + * projects/{project}/deploymentTemplates/{template}/versions/{version} + */ + private String deploymentTemplate; + + /* + * Accelerator type (e.g., H100_80GB). Optional on creation; immutable after creation. + */ + private String acceleratorType; + + /* + * Template auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable. + */ + private DeploymentModelVersionUpgradeOption versionUpgradeOption; + + /* + * Foundry compute ARM resource ID for VM-backed managed compute deployments. Required when sku.name is + * VmManagedCompute; immutable after creation. + */ + private String computeId; + + /* + * Scheduling priority for VM-backed managed compute deployments. Immutable after creation. + */ + private String priority; + + /* + * Read-only. Number of accelerators (GPUs) consumed by each model instance, sourced from the deployment template. + */ + private Integer acceleratorsPerInstance; + + /* + * Read-only. Total accelerators allocated: sku.capacity (instances) x acceleratorsPerInstance. + */ + private Integer totalAccelerators; + + /* + * Read-only. Current provisioning state. + */ + private ProvisioningState provisioningState; + + /* + * Read-only. Status message and timestamp from the last provisioning operation. + */ + private ManagedComputeDeploymentProvisioningDetails provisioningDetails; + + /* + * Read-only. Inference route paths relative to the account endpoint. Populated when provisioningState is Succeeded. + */ + private ManagedComputeDeploymentRoutes routes; + + /** + * Creates an instance of ManagedComputeDeploymentProperties class. + */ + public ManagedComputeDeploymentProperties() { + } + + /** + * Get the model property: AzureML Registry model asset URI. Required on creation; immutable after creation. + * Example: azureml://registries/{registry}/models/{model}/versions/{version}. + * + * @return the model value. + */ + public String model() { + return this.model; + } + + /** + * Set the model property: AzureML Registry model asset URI. Required on creation; immutable after creation. + * Example: azureml://registries/{registry}/models/{model}/versions/{version}. + * + * @param model the model value to set. + * @return the ManagedComputeDeploymentProperties object itself. + */ + public ManagedComputeDeploymentProperties withModel(String model) { + this.model = model; + return this; + } + + /** + * Get the deploymentTemplate property: Deployment template identifier. Optional on creation. + * Accepts an AzureML Registry deployment template URI or a project-scoped deployment template path for + * VmManagedCompute. + * Examples: azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}, + * projects/{project}/deploymentTemplates/{template}/versions/{version}. + * + * @return the deploymentTemplate value. + */ + public String deploymentTemplate() { + return this.deploymentTemplate; + } + + /** + * Set the deploymentTemplate property: Deployment template identifier. Optional on creation. + * Accepts an AzureML Registry deployment template URI or a project-scoped deployment template path for + * VmManagedCompute. + * Examples: azureml://registries/{registry}/deploymenttemplates/{template}/versions/{version}, + * projects/{project}/deploymentTemplates/{template}/versions/{version}. + * + * @param deploymentTemplate the deploymentTemplate value to set. + * @return the ManagedComputeDeploymentProperties object itself. + */ + public ManagedComputeDeploymentProperties withDeploymentTemplate(String deploymentTemplate) { + this.deploymentTemplate = deploymentTemplate; + return this; + } + + /** + * Get the acceleratorType property: Accelerator type (e.g., H100_80GB). Optional on creation; immutable after + * creation. + * + * @return the acceleratorType value. + */ + public String acceleratorType() { + return this.acceleratorType; + } + + /** + * Set the acceleratorType property: Accelerator type (e.g., H100_80GB). Optional on creation; immutable after + * creation. + * + * @param acceleratorType the acceleratorType value to set. + * @return the ManagedComputeDeploymentProperties object itself. + */ + public ManagedComputeDeploymentProperties withAcceleratorType(String acceleratorType) { + this.acceleratorType = acceleratorType; + return this; + } + + /** + * Get the versionUpgradeOption property: Template auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable. + * + * @return the versionUpgradeOption value. + */ + public DeploymentModelVersionUpgradeOption versionUpgradeOption() { + return this.versionUpgradeOption; + } + + /** + * Set the versionUpgradeOption property: Template auto-upgrade policy. Defaults to OnceNewDefaultVersionAvailable. + * + * @param versionUpgradeOption the versionUpgradeOption value to set. + * @return the ManagedComputeDeploymentProperties object itself. + */ + public ManagedComputeDeploymentProperties + withVersionUpgradeOption(DeploymentModelVersionUpgradeOption versionUpgradeOption) { + this.versionUpgradeOption = versionUpgradeOption; + return this; + } + + /** + * Get the computeId property: Foundry compute ARM resource ID for VM-backed managed compute deployments. Required + * when sku.name is VmManagedCompute; immutable after creation. + * + * @return the computeId value. + */ + public String computeId() { + return this.computeId; + } + + /** + * Set the computeId property: Foundry compute ARM resource ID for VM-backed managed compute deployments. Required + * when sku.name is VmManagedCompute; immutable after creation. + * + * @param computeId the computeId value to set. + * @return the ManagedComputeDeploymentProperties object itself. + */ + public ManagedComputeDeploymentProperties withComputeId(String computeId) { + this.computeId = computeId; + return this; + } + + /** + * Get the priority property: Scheduling priority for VM-backed managed compute deployments. Immutable after + * creation. + * + * @return the priority value. + */ + public String priority() { + return this.priority; + } + + /** + * Set the priority property: Scheduling priority for VM-backed managed compute deployments. Immutable after + * creation. + * + * @param priority the priority value to set. + * @return the ManagedComputeDeploymentProperties object itself. + */ + public ManagedComputeDeploymentProperties withPriority(String priority) { + this.priority = priority; + return this; + } + + /** + * Get the acceleratorsPerInstance property: Read-only. Number of accelerators (GPUs) consumed by each model + * instance, sourced from the deployment template. + * + * @return the acceleratorsPerInstance value. + */ + public Integer acceleratorsPerInstance() { + return this.acceleratorsPerInstance; + } + + /** + * Get the totalAccelerators property: Read-only. Total accelerators allocated: sku.capacity (instances) x + * acceleratorsPerInstance. + * + * @return the totalAccelerators value. + */ + public Integer totalAccelerators() { + return this.totalAccelerators; + } + + /** + * 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 ManagedComputeDeploymentProvisioningDetails provisioningDetails() { + return this.provisioningDetails; + } + + /** + * Get the routes property: Read-only. Inference route paths relative to the account endpoint. Populated when + * provisioningState is Succeeded. + * + * @return the routes value. + */ + public ManagedComputeDeploymentRoutes routes() { + return this.routes; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("model", this.model); + jsonWriter.writeStringField("deploymentTemplate", this.deploymentTemplate); + jsonWriter.writeStringField("acceleratorType", this.acceleratorType); + jsonWriter.writeStringField("versionUpgradeOption", + this.versionUpgradeOption == null ? null : this.versionUpgradeOption.toString()); + jsonWriter.writeStringField("computeId", this.computeId); + jsonWriter.writeStringField("priority", this.priority); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedComputeDeploymentProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeDeploymentProperties 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 ManagedComputeDeploymentProperties. + */ + public static ManagedComputeDeploymentProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeDeploymentProperties deserializedManagedComputeDeploymentProperties + = new ManagedComputeDeploymentProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("model".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.model = reader.getString(); + } else if ("deploymentTemplate".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.deploymentTemplate = reader.getString(); + } else if ("acceleratorType".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.acceleratorType = reader.getString(); + } else if ("versionUpgradeOption".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.versionUpgradeOption + = DeploymentModelVersionUpgradeOption.fromString(reader.getString()); + } else if ("computeId".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.computeId = reader.getString(); + } else if ("priority".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.priority = reader.getString(); + } else if ("acceleratorsPerInstance".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.acceleratorsPerInstance + = reader.getNullable(JsonReader::getInt); + } else if ("totalAccelerators".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.totalAccelerators + = reader.getNullable(JsonReader::getInt); + } else if ("provisioningState".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else if ("provisioningDetails".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.provisioningDetails + = ManagedComputeDeploymentProvisioningDetails.fromJson(reader); + } else if ("routes".equals(fieldName)) { + deserializedManagedComputeDeploymentProperties.routes + = ManagedComputeDeploymentRoutes.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeDeploymentProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProvisioningDetails.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProvisioningDetails.java new file mode 100644 index 000000000000..7da878c5d6a6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProvisioningDetails.java @@ -0,0 +1,100 @@ +// 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 a managed compute deployment. + */ +@Immutable +public final class ManagedComputeDeploymentProvisioningDetails + 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 ManagedComputeDeploymentProvisioningDetails class. + */ + private ManagedComputeDeploymentProvisioningDetails() { + } + + /** + * 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 ManagedComputeDeploymentProvisioningDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeDeploymentProvisioningDetails 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 ManagedComputeDeploymentProvisioningDetails. + */ + public static ManagedComputeDeploymentProvisioningDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeDeploymentProvisioningDetails deserializedManagedComputeDeploymentProvisioningDetails + = new ManagedComputeDeploymentProvisioningDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("message".equals(fieldName)) { + deserializedManagedComputeDeploymentProvisioningDetails.message = reader.getString(); + } else if ("lastOperationTimestamp".equals(fieldName)) { + deserializedManagedComputeDeploymentProvisioningDetails.lastOperationTimestamp = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeDeploymentProvisioningDetails; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentRoutes.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentRoutes.java new file mode 100644 index 000000000000..e6d208af10ff --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentRoutes.java @@ -0,0 +1,110 @@ +// 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; + +/** + * Inference route paths for a managed compute deployment, relative to the account endpoint. + * Populated when provisioningState is Succeeded. + */ +@Immutable +public final class ManagedComputeDeploymentRoutes implements JsonSerializable { + /* + * Relative path to the chat completions scoring endpoint. + */ + private String chatCompletionsScoringPath; + + /* + * Relative path to the Swagger/OpenAPI endpoint. + */ + private String swagger; + + /* + * Relative path to the messages API scoring endpoint. + */ + private String messagesApiScoringPath; + + /** + * Creates an instance of ManagedComputeDeploymentRoutes class. + */ + private ManagedComputeDeploymentRoutes() { + } + + /** + * Get the chatCompletionsScoringPath property: Relative path to the chat completions scoring endpoint. + * + * @return the chatCompletionsScoringPath value. + */ + public String chatCompletionsScoringPath() { + return this.chatCompletionsScoringPath; + } + + /** + * Get the swagger property: Relative path to the Swagger/OpenAPI endpoint. + * + * @return the swagger value. + */ + public String swagger() { + return this.swagger; + } + + /** + * Get the messagesApiScoringPath property: Relative path to the messages API scoring endpoint. + * + * @return the messagesApiScoringPath value. + */ + public String messagesApiScoringPath() { + return this.messagesApiScoringPath; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("chatCompletionsScoringPath", this.chatCompletionsScoringPath); + jsonWriter.writeStringField("swagger", this.swagger); + jsonWriter.writeStringField("messagesApiScoringPath", this.messagesApiScoringPath); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedComputeDeploymentRoutes from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedComputeDeploymentRoutes 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 ManagedComputeDeploymentRoutes. + */ + public static ManagedComputeDeploymentRoutes fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedComputeDeploymentRoutes deserializedManagedComputeDeploymentRoutes + = new ManagedComputeDeploymentRoutes(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("chatCompletionsScoringPath".equals(fieldName)) { + deserializedManagedComputeDeploymentRoutes.chatCompletionsScoringPath = reader.getString(); + } else if ("swagger".equals(fieldName)) { + deserializedManagedComputeDeploymentRoutes.swagger = reader.getString(); + } else if ("messagesApiScoringPath".equals(fieldName)) { + deserializedManagedComputeDeploymentRoutes.messagesApiScoringPath = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedComputeDeploymentRoutes; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployments.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployments.java new file mode 100644 index 000000000000..eaecec8a1174 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployments.java @@ -0,0 +1,149 @@ +// 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 ManagedComputeDeployments. + */ +public interface ManagedComputeDeployments { + /** + * Gets the specified managed compute 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 managed compute deployment associated with the 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 specified managed compute deployment associated with the Cognitive Services account along with + * {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, + String deploymentName, Context context); + + /** + * Gets the specified managed compute 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 managed compute deployment associated with the 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 specified managed compute deployment associated with the Cognitive Services account. + */ + ManagedComputeDeployment get(String resourceGroupName, String accountName, String deploymentName); + + /** + * Deletes the specified managed compute 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 managed compute deployment associated with the 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. + */ + void delete(String resourceGroupName, String accountName, String deploymentName); + + /** + * Deletes the specified managed compute 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 managed compute deployment associated with the 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. + */ + void delete(String resourceGroupName, String accountName, String deploymentName, Context context); + + /** + * Gets the managed compute 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 managed compute deployments associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName); + + /** + * Gets the managed compute 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 managed compute deployments associated with the Cognitive Services account as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, Context context); + + /** + * Gets the specified managed compute 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 managed compute deployment associated with the Cognitive Services account along with + * {@link Response}. + */ + ManagedComputeDeployment getById(String id); + + /** + * Gets the specified managed compute 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 managed compute deployment associated with the Cognitive Services account along with + * {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified managed compute 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 managed compute 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 ManagedComputeDeployment resource. + * + * @param name resource name. + * @return the first stage of the new ManagedComputeDeployment definition. + */ + ManagedComputeDeployment.DefinitionStages.Blank define(String name); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsage.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsage.java new file mode 100644 index 000000000000..a5fba93e09de --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsage.java @@ -0,0 +1,76 @@ +// 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.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner; +import java.util.List; + +/** + * An immutable client-side representation of ManagedComputeUsage. + */ +public interface ManagedComputeUsage { + /** + * Gets the id property: Fully qualified resource ID for the managed compute usage. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name information for the metric. + * + * @return the name value. + */ + MetricName name(); + + /** + * Gets the type property: The resource type. + * + * @return the type value. + */ + String type(); + + /** + * Gets the unit property: The unit of the metric. + * + * @return the unit value. + */ + UnitType unit(); + + /** + * Gets the limit property: Maximum value for this metric. + * + * @return the limit value. + */ + Double limit(); + + /** + * Gets the currentValue property: Current value for this metric. + * + * @return the currentValue value. + */ + Double currentValue(); + + /** + * Gets the offerScope property: Offer scope (e.g., 'Global', 'Datazone-US'). + * + * @return the offerScope value. + */ + String offerScope(); + + /** + * Gets the deployments property: Deployments consuming this managed compute quota. + * + * @return the deployments value. + */ + List deployments(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner object. + * + * @return the inner object. + */ + ManagedComputeUsageInner innerModel(); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsagesOperationGroups.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsagesOperationGroups.java new file mode 100644 index 000000000000..e5af71c3cb9e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsagesOperationGroups.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; + +/** + * Resource collection API of ManagedComputeUsagesOperationGroups. + */ +public interface ManagedComputeUsagesOperationGroups { + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of managed compute quota entries as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String location); + + /** + * List managed compute quota usages for a subscription and location. + * + * @param location The location name. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of managed compute quota entries as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String location, Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceSku.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceSku.java new file mode 100644 index 000000000000..33fbeb8242db --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceSku.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 being used to update sku of a resource, in general used for PATCH operations. + */ +@Fluent +public final class PatchResourceSku implements JsonSerializable { + /* + * The resource model definition representing SKU + */ + private Sku sku; + + /** + * Creates an instance of PatchResourceSku class. + */ + public PatchResourceSku() { + } + + /** + * Get the sku property: The resource model definition representing SKU. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku property: The resource model definition representing SKU. + * + * @param sku the sku value to set. + * @return the PatchResourceSku object itself. + */ + public PatchResourceSku withSku(Sku sku) { + this.sku = sku; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("sku", this.sku); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PatchResourceSku from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PatchResourceSku 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 PatchResourceSku. + */ + public static PatchResourceSku fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PatchResourceSku deserializedPatchResourceSku = new PatchResourceSku(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("sku".equals(fieldName)) { + deserializedPatchResourceSku.sku = Sku.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPatchResourceSku; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyAssignmentEvaluationDetails.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyAssignmentEvaluationDetails.java new file mode 100644 index 000000000000..1613c45cb531 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyAssignmentEvaluationDetails.java @@ -0,0 +1,183 @@ +// 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; +import java.util.List; + +/** + * Details of a non-compliant policy assignment. + */ +@Immutable +public final class PolicyAssignmentEvaluationDetails implements JsonSerializable { + /* + * The policy assignment ID. + */ + private String assignmentId; + + /* + * The policy definition ID. + */ + private String policyDefinitionId; + + /* + * The policy set definition ID. + */ + private String policySetDefinitionId; + + /* + * The evaluation outcome for this assignment. + */ + private PolicyEvaluationOutcome evaluationOutcome; + + /* + * The reason for non-compliance. + */ + private String nonComplianceReason; + + /* + * The policy effect (e.g., Deny, Audit). + */ + private String effect; + + /* + * Expression-level evaluation details. + */ + private List expressionEvaluations; + + /** + * Creates an instance of PolicyAssignmentEvaluationDetails class. + */ + private PolicyAssignmentEvaluationDetails() { + } + + /** + * Get the assignmentId property: The policy assignment ID. + * + * @return the assignmentId value. + */ + public String assignmentId() { + return this.assignmentId; + } + + /** + * Get the policyDefinitionId property: The policy definition ID. + * + * @return the policyDefinitionId value. + */ + public String policyDefinitionId() { + return this.policyDefinitionId; + } + + /** + * Get the policySetDefinitionId property: The policy set definition ID. + * + * @return the policySetDefinitionId value. + */ + public String policySetDefinitionId() { + return this.policySetDefinitionId; + } + + /** + * Get the evaluationOutcome property: The evaluation outcome for this assignment. + * + * @return the evaluationOutcome value. + */ + public PolicyEvaluationOutcome evaluationOutcome() { + return this.evaluationOutcome; + } + + /** + * Get the nonComplianceReason property: The reason for non-compliance. + * + * @return the nonComplianceReason value. + */ + public String nonComplianceReason() { + return this.nonComplianceReason; + } + + /** + * Get the effect property: The policy effect (e.g., Deny, Audit). + * + * @return the effect value. + */ + public String effect() { + return this.effect; + } + + /** + * Get the expressionEvaluations property: Expression-level evaluation details. + * + * @return the expressionEvaluations value. + */ + public List expressionEvaluations() { + return this.expressionEvaluations; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("assignmentId", this.assignmentId); + jsonWriter.writeStringField("policyDefinitionId", this.policyDefinitionId); + jsonWriter.writeStringField("policySetDefinitionId", this.policySetDefinitionId); + jsonWriter.writeStringField("evaluationOutcome", + this.evaluationOutcome == null ? null : this.evaluationOutcome.toString()); + jsonWriter.writeStringField("nonComplianceReason", this.nonComplianceReason); + jsonWriter.writeStringField("effect", this.effect); + jsonWriter.writeArrayField("expressionEvaluations", this.expressionEvaluations, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PolicyAssignmentEvaluationDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PolicyAssignmentEvaluationDetails 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 PolicyAssignmentEvaluationDetails. + */ + public static PolicyAssignmentEvaluationDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PolicyAssignmentEvaluationDetails deserializedPolicyAssignmentEvaluationDetails + = new PolicyAssignmentEvaluationDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("assignmentId".equals(fieldName)) { + deserializedPolicyAssignmentEvaluationDetails.assignmentId = reader.getString(); + } else if ("policyDefinitionId".equals(fieldName)) { + deserializedPolicyAssignmentEvaluationDetails.policyDefinitionId = reader.getString(); + } else if ("policySetDefinitionId".equals(fieldName)) { + deserializedPolicyAssignmentEvaluationDetails.policySetDefinitionId = reader.getString(); + } else if ("evaluationOutcome".equals(fieldName)) { + deserializedPolicyAssignmentEvaluationDetails.evaluationOutcome + = PolicyEvaluationOutcome.fromString(reader.getString()); + } else if ("nonComplianceReason".equals(fieldName)) { + deserializedPolicyAssignmentEvaluationDetails.nonComplianceReason = reader.getString(); + } else if ("effect".equals(fieldName)) { + deserializedPolicyAssignmentEvaluationDetails.effect = reader.getString(); + } else if ("expressionEvaluations".equals(fieldName)) { + List expressionEvaluations + = reader.readArray(reader1 -> PolicyExpressionEvaluationDetails.fromJson(reader1)); + deserializedPolicyAssignmentEvaluationDetails.expressionEvaluations = expressionEvaluations; + } else { + reader.skipChildren(); + } + } + + return deserializedPolicyAssignmentEvaluationDetails; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyEvaluationOutcome.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyEvaluationOutcome.java new file mode 100644 index 000000000000..c55849b38796 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyEvaluationOutcome.java @@ -0,0 +1,56 @@ +// 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; + +/** + * The outcome of a policy evaluation. + */ +public final class PolicyEvaluationOutcome extends ExpandableStringEnum { + /** + * The deployment is compliant with all policies. + */ + public static final PolicyEvaluationOutcome COMPLIANT = fromString("Compliant"); + + /** + * The deployment violates one or more policies. + */ + public static final PolicyEvaluationOutcome NON_COMPLIANT = fromString("NonCompliant"); + + /** + * An error occurred during evaluation. + */ + public static final PolicyEvaluationOutcome ERROR = fromString("Error"); + + /** + * Creates a new instance of PolicyEvaluationOutcome value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PolicyEvaluationOutcome() { + } + + /** + * Creates or finds a PolicyEvaluationOutcome from its string representation. + * + * @param name a name to look for. + * @return the corresponding PolicyEvaluationOutcome. + */ + public static PolicyEvaluationOutcome fromString(String name) { + return fromString(name, PolicyEvaluationOutcome.class); + } + + /** + * Gets known PolicyEvaluationOutcome values. + * + * @return known PolicyEvaluationOutcome values. + */ + public static Collection values() { + return values(PolicyEvaluationOutcome.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyExpressionEvaluationDetails.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyExpressionEvaluationDetails.java new file mode 100644 index 000000000000..4b303be83294 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyExpressionEvaluationDetails.java @@ -0,0 +1,160 @@ +// 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; + +/** + * Details of a policy expression evaluation. + */ +@Immutable +public final class PolicyExpressionEvaluationDetails implements JsonSerializable { + /* + * The policy expression. + */ + private String expression; + + /* + * The kind of expression. + */ + private String expressionKind; + + /* + * The operator used in evaluation. + */ + private String operator; + + /* + * The evaluation result. + */ + private String result; + + /* + * The target value of the expression. + */ + private String targetValue; + + /* + * The actual value of the expression. + */ + private String expressionValue; + + /** + * Creates an instance of PolicyExpressionEvaluationDetails class. + */ + private PolicyExpressionEvaluationDetails() { + } + + /** + * Get the expression property: The policy expression. + * + * @return the expression value. + */ + public String expression() { + return this.expression; + } + + /** + * Get the expressionKind property: The kind of expression. + * + * @return the expressionKind value. + */ + public String expressionKind() { + return this.expressionKind; + } + + /** + * Get the operator property: The operator used in evaluation. + * + * @return the operator value. + */ + public String operator() { + return this.operator; + } + + /** + * Get the result property: The evaluation result. + * + * @return the result value. + */ + public String result() { + return this.result; + } + + /** + * Get the targetValue property: The target value of the expression. + * + * @return the targetValue value. + */ + public String targetValue() { + return this.targetValue; + } + + /** + * Get the expressionValue property: The actual value of the expression. + * + * @return the expressionValue value. + */ + public String expressionValue() { + return this.expressionValue; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("expression", this.expression); + jsonWriter.writeStringField("expressionKind", this.expressionKind); + jsonWriter.writeStringField("operator", this.operator); + jsonWriter.writeStringField("result", this.result); + jsonWriter.writeStringField("targetValue", this.targetValue); + jsonWriter.writeStringField("expressionValue", this.expressionValue); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PolicyExpressionEvaluationDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PolicyExpressionEvaluationDetails 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 PolicyExpressionEvaluationDetails. + */ + public static PolicyExpressionEvaluationDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PolicyExpressionEvaluationDetails deserializedPolicyExpressionEvaluationDetails + = new PolicyExpressionEvaluationDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("expression".equals(fieldName)) { + deserializedPolicyExpressionEvaluationDetails.expression = reader.getString(); + } else if ("expressionKind".equals(fieldName)) { + deserializedPolicyExpressionEvaluationDetails.expressionKind = reader.getString(); + } else if ("operator".equals(fieldName)) { + deserializedPolicyExpressionEvaluationDetails.operator = reader.getString(); + } else if ("result".equals(fieldName)) { + deserializedPolicyExpressionEvaluationDetails.result = reader.getString(); + } else if ("targetValue".equals(fieldName)) { + deserializedPolicyExpressionEvaluationDetails.targetValue = reader.getString(); + } else if ("expressionValue".equals(fieldName)) { + deserializedPolicyExpressionEvaluationDetails.expressionValue = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPolicyExpressionEvaluationDetails; + }); + } +} 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 new file mode 100644 index 000000000000..f9142ab01827 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java @@ -0,0 +1,170 @@ +// 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; + +/** + * A compute pool configuration. + */ +@Fluent +public final class Pool implements JsonSerializable { + /* + * The name of the pool. + */ + private String name; + + /* + * The VM priority of the pool. + */ + private VmPriority vmPriority; + + /* + * The instance type (VM SKU) used in the pool. + */ + private String instanceType; + + /* + * The number of nodes in the pool. + */ + private int nodeCount; + + /** + * Creates an instance of Pool class. + */ + public Pool() { + } + + /** + * Get the name property: The name of the pool. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Set the name property: The name of the pool. + * + * @param name the name value to set. + * @return the Pool object itself. + */ + public Pool withName(String name) { + this.name = name; + return this; + } + + /** + * Get the vmPriority property: The VM priority of the pool. + * + * @return the vmPriority value. + */ + public VmPriority vmPriority() { + return this.vmPriority; + } + + /** + * Set the vmPriority property: The VM priority of the pool. + * + * @param vmPriority the vmPriority value to set. + * @return the Pool object itself. + */ + public Pool withVmPriority(VmPriority vmPriority) { + this.vmPriority = vmPriority; + return this; + } + + /** + * Get the instanceType property: The instance type (VM SKU) used in the pool. + * + * @return the instanceType value. + */ + public String instanceType() { + return this.instanceType; + } + + /** + * Set the instanceType property: The instance type (VM SKU) used in the pool. + * + * @param instanceType the instanceType value to set. + * @return the Pool object itself. + */ + public Pool withInstanceType(String instanceType) { + this.instanceType = instanceType; + return this; + } + + /** + * Get the nodeCount property: The number of nodes in the pool. + * + * @return the nodeCount value. + */ + public int nodeCount() { + return this.nodeCount; + } + + /** + * Set the nodeCount property: The number of nodes in the pool. + * + * @param nodeCount the nodeCount value to set. + * @return the Pool object itself. + */ + public Pool withNodeCount(int nodeCount) { + this.nodeCount = nodeCount; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + 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); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Pool from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Pool 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 Pool. + */ + public static Pool fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Pool deserializedPool = new Pool(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + 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 { + reader.skipChildren(); + } + } + + return deserializedPool; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SshSettings.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SshSettings.java new file mode 100644 index 000000000000..4380a3e42cfc --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SshSettings.java @@ -0,0 +1,113 @@ +// 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; + +/** + * SSH configuration for a Container Instance compute. + */ +@Fluent +public final class SshSettings implements JsonSerializable { + /* + * The SSH public key for authenticating to the compute instance. + */ + private String sshPublicKey; + + /* + * Whether SSH admin access is enabled. + */ + private Boolean adminEnabled; + + /** + * Creates an instance of SshSettings class. + */ + public SshSettings() { + } + + /** + * Get the sshPublicKey property: The SSH public key for authenticating to the compute instance. + * + * @return the sshPublicKey value. + */ + public String sshPublicKey() { + return this.sshPublicKey; + } + + /** + * Set the sshPublicKey property: The SSH public key for authenticating to the compute instance. + * + * @param sshPublicKey the sshPublicKey value to set. + * @return the SshSettings object itself. + */ + public SshSettings withSshPublicKey(String sshPublicKey) { + this.sshPublicKey = sshPublicKey; + return this; + } + + /** + * Get the adminEnabled property: Whether SSH admin access is enabled. + * + * @return the adminEnabled value. + */ + public Boolean adminEnabled() { + return this.adminEnabled; + } + + /** + * Set the adminEnabled property: Whether SSH admin access is enabled. + * + * @param adminEnabled the adminEnabled value to set. + * @return the SshSettings object itself. + */ + public SshSettings withAdminEnabled(Boolean adminEnabled) { + this.adminEnabled = adminEnabled; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("sshPublicKey", this.sshPublicKey); + jsonWriter.writeBooleanField("adminEnabled", this.adminEnabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SshSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SshSettings 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 SshSettings. + */ + public static SshSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SshSettings deserializedSshSettings = new SshSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("sshPublicKey".equals(fieldName)) { + deserializedSshSettings.sshPublicKey = reader.getString(); + } else if ("adminEnabled".equals(fieldName)) { + deserializedSshSettings.adminEnabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedSshSettings; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/VmPriority.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/VmPriority.java new file mode 100644 index 000000000000..892c2da6fdbd --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/VmPriority.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; + +/** + * VM priority for a compute pool. + */ +public final class VmPriority extends ExpandableStringEnum { + /** + * Regular VM priority. + */ + public static final VmPriority REGULAR = fromString("Regular"); + + /** + * Low-priority VM. + */ + public static final VmPriority LOW_PRIORITY = fromString("LowPriority"); + + /** + * Creates a new instance of VmPriority value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VmPriority() { + } + + /** + * Creates or finds a VmPriority from its string representation. + * + * @param name a name to look for. + * @return the corresponding VmPriority. + */ + public static VmPriority fromString(String name) { + return fromString(name, VmPriority.class); + } + + /** + * Gets known VmPriority values. + * + * @return known VmPriority values. + */ + public static Collection values() { + return values(VmPriority.class); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbench.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbench.java new file mode 100644 index 000000000000..812d823b0eea --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbench.java @@ -0,0 +1,374 @@ +// 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.Region; +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.WorkbenchInner; +import java.util.Map; + +/** + * An immutable client-side representation of Workbench. + */ +public interface Workbench { + /** + * 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 workbench resource. + * + * @return the properties value. + */ + WorkbenchProperties properties(); + + /** + * Gets the etag property: Resource Etag. + * + * @return the etag value. + */ + String etag(); + + /** + * Gets the location property: The location of the workbench resource. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the identity property: Identity for the resource. + * + * @return the identity value. + */ + Identity identity(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + 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. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.cognitiveservices.fluent.models.WorkbenchInner object. + * + * @return the inner object. + */ + WorkbenchInner innerModel(); + + /** + * The entirety of the Workbench definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, + DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * The Workbench definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the Workbench definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the Workbench definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, accountName, projectName. + * + * @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); + } + + /** + * The stage of the Workbench definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of the workbench resource.. + * + * @param properties Properties of the workbench resource. + * @return the next definition stage. + */ + WithCreate withProperties(WorkbenchProperties properties); + } + + /** + * The stage of the Workbench 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.WithIdentity { + /** + * Executes the create request. + * + * @return the created resource. + */ + Workbench create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + Workbench create(Context context); + } + + /** + * The stage of the Workbench definition allowing to specify location. + */ + interface WithLocation { + /** + * Specifies the region for the resource. + * + * @param location The location of the workbench resource. + * @return the next definition stage. + */ + WithCreate withRegion(Region location); + + /** + * Specifies the region for the resource. + * + * @param location The location of the workbench resource. + * @return the next definition stage. + */ + WithCreate withRegion(String location); + } + + /** + * The stage of the Workbench definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the Workbench definition allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: Identity for the resource.. + * + * @param identity Identity for the resource. + * @return the next definition stage. + */ + WithCreate withIdentity(Identity identity); + } + } + + /** + * Begins update for the Workbench resource. + * + * @return the stage of resource update. + */ + Workbench.Update update(); + + /** + * The template for Workbench update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties, UpdateStages.WithIdentity { + /** + * Executes the update request. + * + * @return the updated resource. + */ + Workbench apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + Workbench apply(Context context); + } + + /** + * The Workbench update stages. + */ + interface UpdateStages { + /** + * The stage of the Workbench update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the Workbench update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: Properties of the workbench resource.. + * + * @param properties Properties of the workbench resource. + * @return the next definition stage. + */ + Update withProperties(WorkbenchProperties properties); + } + + /** + * The stage of the Workbench update allowing to specify identity. + */ + interface WithIdentity { + /** + * Specifies the identity property: Identity for the resource.. + * + * @param identity Identity for the resource. + * @return the next definition stage. + */ + Update withIdentity(Identity identity); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + Workbench refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + Workbench refresh(Context context); + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @throws com.azure.core.management.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 start(); + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 start(Context context); + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @throws com.azure.core.management.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 stop(); + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 stop(Context context); + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @throws com.azure.core.management.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 restart(); + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 restart(Context context); +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/WorkbenchProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/WorkbenchProperties.java new file mode 100644 index 000000000000..f654dd8acd71 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/WorkbenchProperties.java @@ -0,0 +1,287 @@ +// 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.core.management.exception.ManagementError; +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.util.List; + +/** + * Properties for a Workbench resource. + */ +@Fluent +public final class WorkbenchProperties implements JsonSerializable { + /* + * ARM resource ID of the parent cluster that hosts this workbench. + */ + private String targetClusterId; + + /* + * Container image URI (e.g., MCR or ACR image path) for the workbench. + */ + private String imageLink; + + /* + * ISO 8601 duration before the idle workbench is automatically shut down (e.g., 'PT30M'). + */ + private String idleTimeBeforeShutdown; + + /* + * The dataset ID to mount for the workbench. + */ + private String datasetId; + + /* + * SSH configuration for remote access to the workbench. + */ + private SshSettings sshSettings; + + /* + * Network connectivity endpoints assigned to the workbench. + */ + private ConnectivityEndpoints connectivityEndpoints; + + /* + * The web endpoint URL for accessing the workbench. + */ + private String webEndpoint; + + /* + * Provisioning state of the workbench resource. + */ + private ComputeProvisioningState provisioningState; + + /* + * Error details for the workbench resource. + */ + private List errors; + + /* + * Creation time of the workbench resource. + */ + private OffsetDateTime creationTime; + + /** + * Creates an instance of WorkbenchProperties class. + */ + public WorkbenchProperties() { + } + + /** + * Get the targetClusterId property: ARM resource ID of the parent cluster that hosts this workbench. + * + * @return the targetClusterId value. + */ + public String targetClusterId() { + return this.targetClusterId; + } + + /** + * Set the targetClusterId property: ARM resource ID of the parent cluster that hosts this workbench. + * + * @param targetClusterId the targetClusterId value to set. + * @return the WorkbenchProperties object itself. + */ + public WorkbenchProperties withTargetClusterId(String targetClusterId) { + this.targetClusterId = targetClusterId; + return this; + } + + /** + * Get the imageLink property: Container image URI (e.g., MCR or ACR image path) for the workbench. + * + * @return the imageLink value. + */ + public String imageLink() { + return this.imageLink; + } + + /** + * Set the imageLink property: Container image URI (e.g., MCR or ACR image path) for the workbench. + * + * @param imageLink the imageLink value to set. + * @return the WorkbenchProperties object itself. + */ + public WorkbenchProperties withImageLink(String imageLink) { + this.imageLink = imageLink; + return this; + } + + /** + * Get the idleTimeBeforeShutdown property: ISO 8601 duration before the idle workbench is automatically shut down + * (e.g., 'PT30M'). + * + * @return the idleTimeBeforeShutdown value. + */ + public String idleTimeBeforeShutdown() { + return this.idleTimeBeforeShutdown; + } + + /** + * Set the idleTimeBeforeShutdown property: ISO 8601 duration before the idle workbench is automatically shut down + * (e.g., 'PT30M'). + * + * @param idleTimeBeforeShutdown the idleTimeBeforeShutdown value to set. + * @return the WorkbenchProperties object itself. + */ + public WorkbenchProperties withIdleTimeBeforeShutdown(String idleTimeBeforeShutdown) { + this.idleTimeBeforeShutdown = idleTimeBeforeShutdown; + return this; + } + + /** + * Get the datasetId property: The dataset ID to mount for the workbench. + * + * @return the datasetId value. + */ + public String datasetId() { + return this.datasetId; + } + + /** + * Set the datasetId property: The dataset ID to mount for the workbench. + * + * @param datasetId the datasetId value to set. + * @return the WorkbenchProperties object itself. + */ + public WorkbenchProperties withDatasetId(String datasetId) { + this.datasetId = datasetId; + return this; + } + + /** + * Get the sshSettings property: SSH configuration for remote access to the workbench. + * + * @return the sshSettings value. + */ + public SshSettings sshSettings() { + return this.sshSettings; + } + + /** + * Set the sshSettings property: SSH configuration for remote access to the workbench. + * + * @param sshSettings the sshSettings value to set. + * @return the WorkbenchProperties object itself. + */ + public WorkbenchProperties withSshSettings(SshSettings sshSettings) { + this.sshSettings = sshSettings; + return this; + } + + /** + * Get the connectivityEndpoints property: Network connectivity endpoints assigned to the workbench. + * + * @return the connectivityEndpoints value. + */ + public ConnectivityEndpoints connectivityEndpoints() { + return this.connectivityEndpoints; + } + + /** + * Get the webEndpoint property: The web endpoint URL for accessing the workbench. + * + * @return the webEndpoint value. + */ + public String webEndpoint() { + return this.webEndpoint; + } + + /** + * Get the provisioningState property: Provisioning state of the workbench resource. + * + * @return the provisioningState value. + */ + public ComputeProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the errors property: Error details for the workbench resource. + * + * @return the errors value. + */ + public List errors() { + return this.errors; + } + + /** + * Get the creationTime property: Creation time of the workbench resource. + * + * @return the creationTime value. + */ + public OffsetDateTime creationTime() { + return this.creationTime; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetClusterId", this.targetClusterId); + jsonWriter.writeStringField("imageLink", this.imageLink); + jsonWriter.writeStringField("idleTimeBeforeShutdown", this.idleTimeBeforeShutdown); + jsonWriter.writeStringField("datasetId", this.datasetId); + jsonWriter.writeJsonField("sshSettings", this.sshSettings); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of WorkbenchProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of WorkbenchProperties 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 WorkbenchProperties. + */ + public static WorkbenchProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + WorkbenchProperties deserializedWorkbenchProperties = new WorkbenchProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetClusterId".equals(fieldName)) { + deserializedWorkbenchProperties.targetClusterId = reader.getString(); + } else if ("imageLink".equals(fieldName)) { + deserializedWorkbenchProperties.imageLink = reader.getString(); + } else if ("idleTimeBeforeShutdown".equals(fieldName)) { + deserializedWorkbenchProperties.idleTimeBeforeShutdown = reader.getString(); + } else if ("datasetId".equals(fieldName)) { + deserializedWorkbenchProperties.datasetId = reader.getString(); + } else if ("sshSettings".equals(fieldName)) { + deserializedWorkbenchProperties.sshSettings = SshSettings.fromJson(reader); + } else if ("connectivityEndpoints".equals(fieldName)) { + deserializedWorkbenchProperties.connectivityEndpoints = ConnectivityEndpoints.fromJson(reader); + } else if ("webEndpoint".equals(fieldName)) { + deserializedWorkbenchProperties.webEndpoint = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedWorkbenchProperties.provisioningState + = ComputeProvisioningState.fromString(reader.getString()); + } else if ("errors".equals(fieldName)) { + List errors = reader.readArray(reader1 -> ManagementError.fromJson(reader1)); + deserializedWorkbenchProperties.errors = errors; + } else if ("creationTime".equals(fieldName)) { + deserializedWorkbenchProperties.creationTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedWorkbenchProperties; + }); + } +} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbenches.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbenches.java new file mode 100644 index 000000000000..4ca872bf9a71 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbenches.java @@ -0,0 +1,245 @@ +// 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 Workbenches. + */ +public interface Workbenches { + /** + * Gets the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 workbench associated with the project along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String accountName, String projectName, + String workbenchName, Context context); + + /** + * Gets the specified workbench associated with the 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 workbenchName The name of the workbench associated with the 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 specified workbench associated with the project. + */ + Workbench get(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the 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. + */ + void delete(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Deletes the specified workbench associated with the 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 workbenchName The name of the workbench associated with the project. + * @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 projectName, String workbenchName, + Context context); + + /** + * Gets the workbenches associated with the 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. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.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 workbenches associated with the project as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, String projectName); + + /** + * Gets the workbenches associated with the 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 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 workbenches associated with the project as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String accountName, String projectName, Context context); + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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. + */ + void start(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Starts a stopped workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 start(String resourceGroupName, String accountName, String projectName, String workbenchName, Context context); + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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. + */ + void stop(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Stops a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 stop(String resourceGroupName, String accountName, String projectName, String workbenchName, Context context); + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the 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. + */ + void restart(String resourceGroupName, String accountName, String projectName, String workbenchName); + + /** + * Restarts a running workbench resource. + * This is a long-running operation that returns 202 Accepted. + * Returns 204 if the workbench is already in the target state. + * + * @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 workbenchName The name of the workbench associated with the project. + * @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 restart(String resourceGroupName, String accountName, String projectName, String workbenchName, + Context context); + + /** + * Gets the specified workbench associated with the project. + * + * @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 workbench associated with the project along with {@link Response}. + */ + Workbench getById(String id); + + /** + * Gets the specified workbench associated with the project. + * + * @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 workbench associated with the project along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes the specified workbench associated with the project. + * + * @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 workbench associated with the project. + * + * @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 Workbench resource. + * + * @param name resource name. + * @return the first stage of the new Workbench definition. + */ + Workbench.DefinitionStages.Blank define(String name); +} 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 391673db9217..9368549cd63d 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-01-15-preview"},"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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.PatchResourceTags":"Microsoft.CognitiveServices.PatchResourceTags","com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku":"Microsoft.CognitiveServices.PatchResourceTagsAndSku","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.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.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"},"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/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/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/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/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/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/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/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/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/LocationBasedModelCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesImpl.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/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/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/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/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/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/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/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/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/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/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/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/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/PatchResourceTags.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceTagsAndSku.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/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/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/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-03-15-preview"},"crossLanguagePackageId":"Microsoft.CognitiveServices","crossLanguageVersion":"63628aaa781f","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.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.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/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/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 2fb345002b5a..7434ab0c14a8 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.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.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"]] \ 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.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 bde9ed898a36..e20e1df775ad 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-01-15-preview/AccountCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-03-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 dac1b11569ee..4b3350373b3b 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-01-15-preview/AccountCapabilityHost/delete.json + * x-ms-original-file: 2026-03-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 b9bde272dbee..5843e3467f8b 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-01-15-preview/AccountCapabilityHost/get.json + * x-ms-original-file: 2026-03-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 7aeeea75a69a..2b5c9c3b4565 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-01-15-preview/AccountCapabilityHost/list.json + * x-ms-original-file: 2026-03-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 22a096078cb7..6cbe9e0e83a3 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 @@ -14,7 +14,7 @@ */ public final class AccountConnectionsCreateSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountConnection/create.json + * x-ms-original-file: 2026-03-15-preview/AccountConnection/create.json */ /** * Sample code: CreateAccountConnection. 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 0a3be2e44014..4c909c54ed1b 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-01-15-preview/AccountConnection/delete.json + * x-ms-original-file: 2026-03-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 67da15c90ad9..a7c130624d50 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-01-15-preview/AccountConnection/get.json + * x-ms-original-file: 2026-03-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 ec12cce99565..b367ab207188 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-01-15-preview/AccountConnection/list.json + * x-ms-original-file: 2026-03-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 014e5cdccbfd..33ee6c008b02 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 @@ -17,7 +17,7 @@ */ public final class AccountConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/AccountConnection/update.json + * x-ms-original-file: 2026-03-15-preview/AccountConnection/update.json */ /** * Sample code: UpdateAccountConnection. 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 6f126015592d..6d6cdbe8853c 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 @@ -19,7 +19,7 @@ */ public final class AccountsCreateSamples { /* - * x-ms-original-file: 2026-01-15-preview/CreateAccountMin.json + * x-ms-original-file: 2026-03-15-preview/CreateAccountMin.json */ /** * Sample code: Create Account Min. @@ -39,7 +39,7 @@ public static void createAccountMin(com.azure.resourcemanager.cognitiveservices. } /* - * x-ms-original-file: 2026-01-15-preview/CreateAccount.json + * x-ms-original-file: 2026-03-15-preview/CreateAccount.json */ /** * Sample code: Create Account. 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 34df66fa135c..e99475c91894 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-01-15-preview/DeleteAccount.json + * x-ms-original-file: 2026-03-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 new file mode 100644 index 000000000000..1e5753abbad4 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesSamples.java @@ -0,0 +1,42 @@ +// 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.DeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeployment; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest; +import java.util.Arrays; + +/** + * Samples for Accounts EvaluateDeploymentPolicies. + */ +public final class AccountsEvaluateDeploymentPoliciesSamples { + /* + * x-ms-original-file: 2026-03-15-preview/EvaluateDeploymentPolicies.json + */ + /** + * Sample code: EvaluateDeploymentPolicies. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + evaluateDeploymentPolicies(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.accounts() + .evaluateDeploymentPoliciesWithResponse("resourceGroupName", "accountName", + new EvaluateDeploymentPoliciesRequest() + .withDeployments(Arrays.asList( + new EvaluateDeploymentPoliciesDeployment().withName("gpt4o-deployment") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties().withModel( + new DeploymentModel().withFormat("OpenAI").withName("gpt-4o").withVersion("2024-11-20")) + .withRaiPolicyName("Microsoft.DefaultV2")), + new EvaluateDeploymentPoliciesDeployment().withName("ada-embedding") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() + .withModel(new DeploymentModel().withFormat("OpenAI") + .withName("text-embedding-ada-002") + .withVersion("2"))))), + com.azure.core.util.Context.NONE); + } +} 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 924f56c806e5..94524ed412b3 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-01-15-preview/GetAccount.json + * x-ms-original-file: 2026-03-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 e158af59a299..bd3050b5cb4f 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-01-15-preview/ListAccountsByResourceGroup.json + * x-ms-original-file: 2026-03-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 1d077a1177a1..ff5fe375a261 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-01-15-preview/ListKeys.json + * x-ms-original-file: 2026-03-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 57cc71a2e9f3..f8fd25855c7a 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-01-15-preview/ListAccountModels.json + * x-ms-original-file: 2026-03-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 eac03d97434b..df9076f6cde1 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-01-15-preview/ListAccountsBySubscription.json + * x-ms-original-file: 2026-03-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 ffcd25d455be..a28cf4950a97 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-01-15-preview/ListSkus.json + * x-ms-original-file: 2026-03-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 65757c3b8ef4..7d3d4b698822 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-01-15-preview/GetUsages.json + * x-ms-original-file: 2026-03-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-01-15-preview/GetUsagesClassicScope.json + * x-ms-original-file: 2026-03-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-01-15-preview/GetUsagesDataZoneScope.json + * x-ms-original-file: 2026-03-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-01-15-preview/GetUsagesGlobalScope.json + * x-ms-original-file: 2026-03-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 7db917862220..7aac21ecd42b 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-01-15-preview/RegenerateKey.json + * x-ms-original-file: 2026-03-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 3b9e279904d6..77d994c03e1c 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-01-15-preview/UpdateAccount.json + * x-ms-original-file: 2026-03-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 15e43d9bd040..0556a56dea65 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-01-15-preview/AgentApplication/createOrUpdate.json + * x-ms-original-file: 2026-03-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 b762a4fb1375..e1a72fa353f7 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-01-15-preview/AgentApplication/delete.json + * x-ms-original-file: 2026-03-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 6ea7ea76dac0..afcfa5c7f74c 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-01-15-preview/AgentApplication/disable.json + * x-ms-original-file: 2026-03-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 58c4ed77c8ad..0077801f009f 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-01-15-preview/AgentApplication/enable.json + * x-ms-original-file: 2026-03-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 a7a6b47340fb..7af8a7f17182 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-01-15-preview/AgentApplication/get.json + * x-ms-original-file: 2026-03-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 9537c720a0ec..68f6aabf5f06 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-01-15-preview/AgentApplication/listAgents.json + * x-ms-original-file: 2026-03-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 cca51e47301b..2f1b3992e93e 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-01-15-preview/AgentApplication/list.json + * x-ms-original-file: 2026-03-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 8cb41f9931a2..e9da80746772 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-01-15-preview/AgentDeployment/createOrUpdate.json + * x-ms-original-file: 2026-03-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 4de25a38dafa..68574856990c 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-01-15-preview/AgentDeployment/delete.json + * x-ms-original-file: 2026-03-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 ea54d16e6099..e85c826f8db0 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-01-15-preview/AgentDeployment/get.json + * x-ms-original-file: 2026-03-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 610d7c6bde7e..f9ed2f67e979 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-01-15-preview/AgentDeployment/list.json + * x-ms-original-file: 2026-03-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 1536d1e1c83e..52e86a2ae720 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-01-15-preview/AgentDeployment/start.json + * x-ms-original-file: 2026-03-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 c030e21e8511..ed02f475d3d4 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-01-15-preview/AgentDeployment/stop.json + * x-ms-original-file: 2026-03-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/CommitmentPlansCreateOrUpdateAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java index 06b9e3290d15..7b4ec9da6701 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-01-15-preview/CreateSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-03-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 1fe87fcb7b48..751624a3bf83 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-01-15-preview/CreateSharedCommitmentPlan.json + * x-ms-original-file: 2026-03-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 8a8da0749fb3..8659e8038447 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-01-15-preview/PutCommitmentPlan.json + * x-ms-original-file: 2026-03-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 3fa824ab2a9b..11efd599f6b1 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-01-15-preview/DeleteSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-03-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 17cebe1ce05f..2304a55a38be 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-01-15-preview/DeleteSharedCommitmentPlan.json + * x-ms-original-file: 2026-03-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 b76efef292d8..bae753042e32 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-01-15-preview/DeleteCommitmentPlan.json + * x-ms-original-file: 2026-03-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 bcdd0ad95604..95f6a715651b 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-01-15-preview/GetSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-03-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 001093c1efb6..c2070d5c9edd 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-01-15-preview/GetSharedCommitmentPlan.json + * x-ms-original-file: 2026-03-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 cea5515c0d82..ffa5363cf410 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-01-15-preview/GetCommitmentPlan.json + * x-ms-original-file: 2026-03-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 59512cbd41c4..adce50124915 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-01-15-preview/ListSharedCommitmentPlanAssociations.json + * x-ms-original-file: 2026-03-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 f73e9fc1b65f..c9f1c2ff7293 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-01-15-preview/ListSharedCommitmentPlansByResourceGroup.json + * x-ms-original-file: 2026-03-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 09f8354fbbe8..ea7e33c945ce 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-01-15-preview/ListSharedCommitmentPlansBySubscription.json + * x-ms-original-file: 2026-03-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 48e563ce0377..7bbb74fdf5bd 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-01-15-preview/ListCommitmentPlans.json + * x-ms-original-file: 2026-03-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 0c6d557df4bc..d60c8694bc18 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-01-15-preview/UpdateSharedCommitmentPlan.json + * x-ms-original-file: 2026-03-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 8a32242e05ae..bd116a1092a0 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-01-15-preview/ListCommitmentTiers.json + * x-ms-original-file: 2026-03-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 e928505f5e1c..0028dbfaac32 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-01-15-preview/GetComputeOperationStatus.json + * x-ms-original-file: 2026-03-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 new file mode 100644 index 000000000000..bd42f5a68019 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesCreateOrUpdateSamples.java @@ -0,0 +1,84 @@ +// 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.ContainerInstanceComputeProperties; +import com.azure.resourcemanager.cognitiveservices.models.Identity; +import com.azure.resourcemanager.cognitiveservices.models.Pool; +import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; +import com.azure.resourcemanager.cognitiveservices.models.SshSettings; +import com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity; +import com.azure.resourcemanager.cognitiveservices.models.VmPriority; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Computes CreateOrUpdate. + */ +public final class ComputesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/PutContainerInstanceCompute.json + */ + /** + * Sample code: PutContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + putContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + 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") + .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", + new UserAssignedIdentity()))) + .create(); + } + + /* + * x-ms-original-file: 2026-03-15-preview/PutCompute.json + */ + /** + * Sample code: PutCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void putCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .define("myCompute") + .withExistingAccount("rgcognitiveservices", "myAccount") + .withProperties(new ClusterComputeProperties() + .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") + .withIdentity(new Identity().withType(ResourceIdentityType.NONE)) + .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/ComputesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesDeleteSamples.java new file mode 100644 index 000000000000..e933065efaf6 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesDeleteSamples.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; + +/** + * Samples for Computes Delete. + */ +public final class ComputesDeleteSamples { + /* + * x-ms-original-file: 2026-03-15-preview/DeleteCompute.json + */ + /** + * Sample code: DeleteCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void deleteCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes().delete("rgcognitiveservices", "myAccount", "myCompute", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..dd95cece208d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesGetSamples.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; + +/** + * Samples for Computes Get. + */ +public final class ComputesGetSamples { + /* + * x-ms-original-file: 2026-03-15-preview/GetContainerInstanceCompute.json + */ + /** + * Sample code: GetContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .getWithResponse("rgcognitiveservices", "myAccount", "myContainerInstance", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-15-preview/GetCompute.json + */ + /** + * Sample code: GetCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .getWithResponse("rgcognitiveservices", "myAccount", "myCompute", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..4d9c84f5f21d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesListSamples.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; + +/** + * Samples for Computes List. + */ +public final class ComputesListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListComputes.json + */ + /** + * Sample code: ListComputes. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listComputes(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes().list("rgcognitiveservices", "myAccount", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..8089e4c82651 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesRestartSamples.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 Computes Restart. + */ +public final class ComputesRestartSamples { + /* + * x-ms-original-file: 2026-03-15-preview/RestartContainerInstanceCompute.json + */ + /** + * Sample code: RestartContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + restartContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .restart("rgcognitiveservices", "myAccount", "myContainerInstance", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..98851dc047b8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStartSamples.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 Computes Start. + */ +public final class ComputesStartSamples { + /* + * x-ms-original-file: 2026-03-15-preview/StartContainerInstanceCompute.json + */ + /** + * Sample code: StartContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + startContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .start("rgcognitiveservices", "myAccount", "myContainerInstance", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..327fa2273b34 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStopSamples.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 Computes Stop. + */ +public final class ComputesStopSamples { + /* + * x-ms-original-file: 2026-03-15-preview/StopContainerInstanceCompute.json + */ + /** + * Sample code: StopContainerInstanceCompute. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + stopContainerInstanceCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.computes() + .stop("rgcognitiveservices", "myAccount", "myContainerInstance", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..d35e23c39d74 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesUpdateSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.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-03-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 5b904f963a4f..5e4b872dec46 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-01-15-preview/PutDefenderForAISetting.json + * x-ms-original-file: 2026-03-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 1ee010c45b07..16410d6c605a 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-01-15-preview/GetDefenderForAISetting.json + * x-ms-original-file: 2026-03-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 982cf05de5fc..64a13f8a0ba8 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-01-15-preview/ListDefenderForAISetting.json + * x-ms-original-file: 2026-03-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 08046fa80f8b..95a4ce8e0ccf 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-01-15-preview/UpdateDefenderForAISetting.json + * x-ms-original-file: 2026-03-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 7ce33ba2f6b3..7828844c4b2f 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-01-15-preview/GetDeletedAccount.json + * x-ms-original-file: 2026-03-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 83f0cf491162..d3c2ef690205 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-01-15-preview/ListDeletedAccountsBySubscription.json + * x-ms-original-file: 2026-03-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 6354c30d9e3e..68dd22d46e19 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-01-15-preview/PurgeDeletedAccount.json + * x-ms-original-file: 2026-03-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 c81c9db6579b..9b196ba9d74c 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 @@ -15,7 +15,7 @@ */ public final class DeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutDeployment.json + * x-ms-original-file: 2026-03-15-preview/PutDeployment.json */ /** * Sample code: PutDeployment. 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 763d67854164..8eb7d2af2745 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-01-15-preview/DeleteDeployment.json + * x-ms-original-file: 2026-03-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 8a478b2eabc5..c01eb71e9e03 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-01-15-preview/GetDeployment.json + * x-ms-original-file: 2026-03-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 a9a2c2cd9362..9b6541b8b8d3 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-01-15-preview/ListDeployments.json + * x-ms-original-file: 2026-03-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 8337c26e7001..c49007511e74 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-01-15-preview/ListDeploymentSkus.json + * x-ms-original-file: 2026-03-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 1ad71fcb9b58..a60c465a4255 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-01-15-preview/PauseDeployment.json + * x-ms-original-file: 2026-03-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 8f60467a166e..da78342ce642 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-01-15-preview/ResumeDeployment.json + * x-ms-original-file: 2026-03-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 0a27ee282707..1b7e7584cf7e 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-01-15-preview/UpdateDeployment.json + * x-ms-original-file: 2026-03-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 cd3033f222e9..ff4c40278739 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-01-15-preview/PutEncryptionScope.json + * x-ms-original-file: 2026-03-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 53958f9bcfa5..1545d5ae2aaf 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-01-15-preview/DeleteEncryptionScope.json + * x-ms-original-file: 2026-03-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 709a9abd9768..c21f3917bba8 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-01-15-preview/GetEncryptionScope.json + * x-ms-original-file: 2026-03-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 a30e0ad98f77..939020cb4947 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-01-15-preview/ListEncryptionScopes.json + * x-ms-original-file: 2026-03-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 5c4186a8ca2c..cc73282661c2 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-01-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-03-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json */ /** * Sample code: ListLocationBasedModelCapacities Global Scope. @@ -22,7 +22,7 @@ public static void listLocationBasedModelCapacitiesGlobalScope( } /* - * x-ms-original-file: 2026-01-15-preview/ListLocationBasedModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-03-15-preview/ListLocationBasedModelCapacitiesClassicScope.json */ /** * Sample code: ListLocationBasedModelCapacities Classic Scope. @@ -35,7 +35,7 @@ public static void listLocationBasedModelCapacitiesClassicScope( } /* - * x-ms-original-file: 2026-01-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-03-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json */ /** * Sample code: ListLocationBasedModelCapacities DataZone Scope. @@ -48,7 +48,7 @@ public static void listLocationBasedModelCapacitiesDataZoneScope( } /* - * x-ms-original-file: 2026-01-15-preview/ListLocationBasedModelCapacities.json + * x-ms-original-file: 2026-03-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 new file mode 100644 index 000000000000..7728acea2e37 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListSamples.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 ManagedComputeCapacities List. + */ +public final class ManagedComputeCapacitiesListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListManagedComputeCapacities.json + */ + /** + * Sample code: List Managed Compute Capacities. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listManagedComputeCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeCapacities().list("MaaP", null, null, com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..73450e7ddcf9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateSamples.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.resourcemanager.cognitiveservices.models.DeploymentModelVersionUpgradeOption; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.Sku; + +/** + * Samples for ManagedComputeDeployments CreateOrUpdate. + */ +public final class ManagedComputeDeploymentsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/CreateOrUpdateManagedComputeDeployment.json + */ + /** + * Sample code: CreateOrUpdateManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void createOrUpdateManagedComputeDeployment( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .define("gpt-oss-120b-gpu") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new ManagedComputeDeploymentProperties() + .withModel("azureml://registries/azureml-openai-oss/models/gpt-oss-120b/versions/4") + .withDeploymentTemplate( + "azureml://registries/azureml-openai-oss/deploymenttemplates/gpt-oss-120b-short-context/versions/1") + .withAcceleratorType("H100_80GB") + .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_NEW_DEFAULT_VERSION_AVAILABLE)) + .withSku(new Sku().withName("GlobalManagedCompute").withCapacity(1)) + .create(); + } + + /* + * x-ms-original-file: 2026-03-15-preview/CreateOrUpdateVmManagedComputeDeployment.json + */ + /** + * Sample code: CreateOrUpdateVmManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void createOrUpdateVmManagedComputeDeployment( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .define("gpt-oss-120b-byoc") + .withExistingAccount("resourceGroupName", "accountName") + .withProperties(new ManagedComputeDeploymentProperties() + .withModel("azureml://registries/azureml-openai-oss/models/gpt-oss-120b/versions/4") + .withDeploymentTemplate("projects/my-project/deploymentTemplates/gpt-oss-120b-vllm-tuned/versions/2") + .withComputeId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/computes/my-h100-pool") + .withPriority("High")) + .withSku(new Sku().withName("VmManagedCompute").withCapacity(2)) + .create(); + } +} 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 new file mode 100644 index 000000000000..8097dbedc033 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteSamples.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 ManagedComputeDeployments Delete. + */ +public final class ManagedComputeDeploymentsDeleteSamples { + /* + * x-ms-original-file: 2026-03-15-preview/DeleteManagedComputeDeployment.json + */ + /** + * Sample code: DeleteManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + deleteManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .delete("resourceGroupName", "accountName", "gpt-oss-120b-gpu", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..48e2e1d766a3 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetSamples.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; + +/** + * Samples for ManagedComputeDeployments Get. + */ +public final class ManagedComputeDeploymentsGetSamples { + /* + * x-ms-original-file: 2026-03-15-preview/GetVmManagedComputeDeployment.json + */ + /** + * Sample code: GetVmManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getVmManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .getWithResponse("resourceGroupName", "accountName", "gpt-oss-120b-byoc", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-15-preview/GetManagedComputeDeployment.json + */ + /** + * Sample code: GetManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + getManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments() + .getWithResponse("resourceGroupName", "accountName", "gpt-oss-120b-gpu", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..2c298e3ce902 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.cognitiveservices.generated; + +/** + * Samples for ManagedComputeDeployments List. + */ +public final class ManagedComputeDeploymentsListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListVmManagedComputeDeployments.json + */ + /** + * Sample code: ListVmManagedComputeDeployments. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listVmManagedComputeDeployments(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-15-preview/ListManagedComputeDeployments.json + */ + /** + * Sample code: ListManagedComputeDeployments. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listManagedComputeDeployments(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeDeployments().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/ManagedComputeDeploymentsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsUpdateSamples.java new file mode 100644 index 000000000000..87e4a837de03 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsUpdateSamples.java @@ -0,0 +1,45 @@ +// 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.ManagedComputeDeployment; +import com.azure.resourcemanager.cognitiveservices.models.Sku; + +/** + * Samples for ManagedComputeDeployments Update. + */ +public final class ManagedComputeDeploymentsUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/UpdateVmManagedComputeDeployment.json + */ + /** + * Sample code: UpdateVmManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + updateVmManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + ManagedComputeDeployment resource = manager.managedComputeDeployments() + .getWithResponse("resourceGroupName", "accountName", "gpt-oss-120b-byoc", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withSku(new Sku().withName("VmManagedCompute").withCapacity(2)).apply(); + } + + /* + * x-ms-original-file: 2026-03-15-preview/UpdateManagedComputeDeployment.json + */ + /** + * Sample code: UpdateManagedComputeDeployment. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + updateManagedComputeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + ManagedComputeDeployment resource = manager.managedComputeDeployments() + .getWithResponse("resourceGroupName", "accountName", "gpt-oss-120b-gpu", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withSku(new Sku().withName("GlobalManagedCompute").withCapacity(2)).apply(); + } +} 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 new file mode 100644 index 000000000000..cdd9a0e8dfff --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupListSamples.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 ManagedComputeUsagesOperationGroup List. + */ +public final class ManagedComputeUsagesOperationGroupListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListManagedComputeUsages.json + */ + /** + * Sample code: List Managed Compute Usages. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void + listManagedComputeUsages(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.managedComputeUsagesOperationGroups().list("eastus", com.azure.core.util.Context.NONE); + } +} 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 02f83a4b5f57..c0385d69765a 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-01-15-preview/ManagedNetwork/provisionManagedNetwork.json + * x-ms-original-file: 2026-03-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 b140a3ee6895..e54aa8056c5f 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-01-15-preview/ManagedNetwork/deleteManagedNetworkV2.json + * x-ms-original-file: 2026-03-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 d2a48645f879..26eb454154c8 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-01-15-preview/ManagedNetwork/getManagedNetworkV2.json + * x-ms-original-file: 2026-03-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 e59b8e492f5b..009005a91a25 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-01-15-preview/ManagedNetwork/listManagedNetworkV2.json + * x-ms-original-file: 2026-03-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 32f34ddfdd06..fbed4d678660 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-01-15-preview/ManagedNetwork/patchManagedNetworkV2.json + * x-ms-original-file: 2026-03-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 52190a05178e..9d577334a8b8 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-01-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json + * x-ms-original-file: 2026-03-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 a66ce313fdb0..6271980e43ee 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-01-15-preview/ListModelCapacities.json + * x-ms-original-file: 2026-03-15-preview/ListModelCapacities.json */ /** * Sample code: ListModelCapacities. @@ -22,7 +22,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-03-15-preview/ListModelCapacitiesDataZoneScope.json */ /** * Sample code: ListModelCapacities DataZone Scope. @@ -35,7 +35,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-03-15-preview/ListModelCapacitiesGlobalScope.json */ /** * Sample code: ListModelCapacities Global Scope. @@ -48,7 +48,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-03-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 9432e676e9a0..cb7230b36a20 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-01-15-preview/ListLocationModels.json + * x-ms-original-file: 2026-03-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 3a68a548c5a7..ad82b0d62974 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-01-15-preview/GetNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-03-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 0ead2d42a215..912369ece078 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-01-15-preview/ListNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-03-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 a361562402b2..29e70dc3943f 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-01-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-03-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 75c05f0d5fff..6b33d52284df 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-01-15-preview/GetOperations.json + * x-ms-original-file: 2026-03-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 50205a3f0336..91b4da795784 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-01-15-preview/ManagedNetwork/createOrUpdateRuleV2.json + * x-ms-original-file: 2026-03-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 e01bb2c4226e..5a1535ad1546 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-01-15-preview/ManagedNetwork/deleteRuleV2.json + * x-ms-original-file: 2026-03-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 cc07015fa54d..16d7f7b637f6 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-01-15-preview/ManagedNetwork/getRuleV2.json + * x-ms-original-file: 2026-03-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 c045c744b3c4..e9bb99d37c23 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-01-15-preview/ManagedNetwork/listRuleV2.json + * x-ms-original-file: 2026-03-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 feb829a004f5..d7dd8a8ee740 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-01-15-preview/ManagedNetwork/postOutboundRulesV2.json + * x-ms-original-file: 2026-03-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 2824447e7c32..1c1c086dffeb 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-01-15-preview/PutPrivateEndpointConnection.json + * x-ms-original-file: 2026-03-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 02dcfb385ddc..a2cfbd70e60a 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-01-15-preview/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-03-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 1f4e2f6bc28c..dc09243d3cb4 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-01-15-preview/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-03-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 d1de03a41256..643580aeea89 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-01-15-preview/ListPrivateEndpointConnections.json + * x-ms-original-file: 2026-03-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 f49ba0ea7bd1..80452ed5d87a 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-01-15-preview/ListPrivateLinkResources.json + * x-ms-original-file: 2026-03-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 3c4272e28c7f..405e4d69f61c 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-01-15-preview/ProjectCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-03-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 295230c2460c..082190927881 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-01-15-preview/ProjectCapabilityHost/delete.json + * x-ms-original-file: 2026-03-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 ddffcc8c0b16..26366b1e5399 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-01-15-preview/ProjectCapabilityHost/get.json + * x-ms-original-file: 2026-03-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 e45788a3ee09..4c86e18d23f5 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-01-15-preview/ProjectCapabilityHost/list.json + * x-ms-original-file: 2026-03-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 067e660d965d..140c0922af19 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 @@ -13,7 +13,7 @@ */ public final class ProjectConnectionsCreateSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectConnection/create.json + * x-ms-original-file: 2026-03-15-preview/ProjectConnection/create.json */ /** * Sample code: CreateProjectConnection. 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 6c392ef1a052..3e930e85fb26 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-01-15-preview/ProjectConnection/delete.json + * x-ms-original-file: 2026-03-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 c69e3005754c..ea584fa5d8c4 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-01-15-preview/ProjectConnection/get.json + * x-ms-original-file: 2026-03-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 2ff41cac87a0..b79c0f199781 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-01-15-preview/ProjectConnection/list.json + * x-ms-original-file: 2026-03-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 91d9d35957f9..1792386c2595 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 @@ -17,7 +17,7 @@ */ public final class ProjectConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/ProjectConnection/update.json + * x-ms-original-file: 2026-03-15-preview/ProjectConnection/update.json */ /** * Sample code: UpdateProjectConnection. 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 60ebf69bcab3..fb06844547cf 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 @@ -13,7 +13,7 @@ */ public final class ProjectsCreateSamples { /* - * x-ms-original-file: 2026-01-15-preview/CreateProjectMin.json + * x-ms-original-file: 2026-03-15-preview/CreateProjectMin.json */ /** * Sample code: Create Project Min. @@ -31,7 +31,7 @@ public static void createProjectMin(com.azure.resourcemanager.cognitiveservices. } /* - * x-ms-original-file: 2026-01-15-preview/CreateProject.json + * x-ms-original-file: 2026-03-15-preview/CreateProject.json */ /** * Sample code: Create Project. 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 e6212c070bbe..39d964b5588d 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-01-15-preview/DeleteProject.json + * x-ms-original-file: 2026-03-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 ea16edb22c37..b6d40a242e44 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-01-15-preview/GetProject.json + * x-ms-original-file: 2026-03-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 95d490442b3f..7c6cac1e9be9 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-01-15-preview/ListProjects.json + * x-ms-original-file: 2026-03-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 808f511def3b..8648d1a4fa9d 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-01-15-preview/UpdateProjects.json + * x-ms-original-file: 2026-03-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 5f5485849639..d662e465b670 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-01-15-preview/CreateOrUpdateQuotaTier.json + * x-ms-original-file: 2026-03-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 7c0518f29cbd..c1328ac90116 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-01-15-preview/GetQuotaTier.json + * x-ms-original-file: 2026-03-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 f12a3ca4373b..becda3b4321d 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-01-15-preview/ListQuotaTiers.json + * x-ms-original-file: 2026-03-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 2e390d253c85..a7d0856ba573 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-01-15-preview/UpdateQuotaTier.json + * x-ms-original-file: 2026-03-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 11b14486cc2b..f9ff7e5c68d1 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-01-15-preview/AddRaiBlocklistItems.json + * x-ms-original-file: 2026-03-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 dbe1c9114f30..52a39ffbc793 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-01-15-preview/DeleteRaiBlocklistItems.json + * x-ms-original-file: 2026-03-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 3e8ddd5d6d12..a54560a5d19e 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-01-15-preview/PutRaiBlocklistItem.json + * x-ms-original-file: 2026-03-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 56ee3bc81b2d..2a9a72c2a79c 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-01-15-preview/DeleteRaiBlocklistItem.json + * x-ms-original-file: 2026-03-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 c63e37ca90f4..eb7694739402 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-01-15-preview/GetRaiBlocklistItem.json + * x-ms-original-file: 2026-03-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 f9a33af4729f..e5060cb1bff2 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-01-15-preview/ListBlocklistItems.json + * x-ms-original-file: 2026-03-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 d4cc25b3d581..2e7036112c87 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-01-15-preview/PutRaiBlocklist.json + * x-ms-original-file: 2026-03-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 5b318c6a9c54..948d3cdbd277 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-01-15-preview/DeleteRaiBlocklist.json + * x-ms-original-file: 2026-03-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 818e72087040..87819b13e0e0 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-01-15-preview/GetRaiBlocklist.json + * x-ms-original-file: 2026-03-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 5b8505fdf345..0a241a4dee5f 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-01-15-preview/ListBlocklists.json + * x-ms-original-file: 2026-03-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 535487dc6e29..cc052223dc7c 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-01-15-preview/GetRaiContentFilter.json + * x-ms-original-file: 2026-03-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 7d32fcb2711b..41f722b614fb 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-01-15-preview/ListRaiContentFilters.json + * x-ms-original-file: 2026-03-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 80026dd928b5..898fcd6e9d66 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-01-15-preview/PutRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-03-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 8c38b62d6092..318727ed83d2 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-01-15-preview/DeleteRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-03-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 46e253f4b936..1c7d518709f9 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-01-15-preview/GetRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-03-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 e966944351ad..d14cd6123bce 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-01-15-preview/ListRaiExternalSafetyProviders.json + * x-ms-original-file: 2026-03-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 73c53ac7866c..6196a46133af 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 @@ -16,7 +16,7 @@ */ public final class RaiPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-01-15-preview/PutRaiPolicy.json + * x-ms-original-file: 2026-03-15-preview/PutRaiPolicy.json */ /** * Sample code: PutRaiPolicy. 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 ec19731b5acf..abeb71de1abf 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-01-15-preview/DeleteRaiPolicy.json + * x-ms-original-file: 2026-03-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 7ad6d67e98d8..6c784b1e4e82 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-01-15-preview/GetRaiPolicy.json + * x-ms-original-file: 2026-03-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 04d977b2cbd5..d6426deaa66f 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-01-15-preview/ListRaiPolicies.json + * x-ms-original-file: 2026-03-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 b41fc7f4533a..75395f58b40f 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-01-15-preview/PutRaiToolLabel.json + * x-ms-original-file: 2026-03-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 4da695f395a7..ec6fc03e8c32 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-01-15-preview/DeleteRaiToolLabel.json + * x-ms-original-file: 2026-03-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 8112ad619b29..2af006aa0b61 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-01-15-preview/GetRaiToolLabel.json + * x-ms-original-file: 2026-03-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 e163469c1eb0..7d61abc2923c 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-01-15-preview/ListRaiToolLabels.json + * x-ms-original-file: 2026-03-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 5384e80cf3d0..31a0d506506d 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-01-15-preview/PutRaiTopic.json + * x-ms-original-file: 2026-03-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 fdf7ba205843..b9c01fee0998 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-01-15-preview/DeleteRaiTopic.json + * x-ms-original-file: 2026-03-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 b01e7c133f36..570b91f378a4 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-01-15-preview/GetRaiTopic.json + * x-ms-original-file: 2026-03-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 4a08b245d9c3..b189bd15f052 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-01-15-preview/ListRaiTopics.json + * x-ms-original-file: 2026-03-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 f831def021a3..1e147d416a9f 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-01-15-preview/CalculateModelCapacity.json + * x-ms-original-file: 2026-03-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 4f9cfcb80778..6d8dd4105280 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-01-15-preview/CheckDomainAvailability.json + * x-ms-original-file: 2026-03-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 a51f0e47422e..7231491adec9 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-01-15-preview/CheckSkuAvailability.json + * x-ms-original-file: 2026-03-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 88bef5248258..15fd79aff1fc 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-01-15-preview/GetSkus.json + * x-ms-original-file: 2026-03-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 dbc94b939ac5..3e3ec59da8ed 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-01-15-preview/PutSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-03-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 183f4a17abdd..f28998c1ad91 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-01-15-preview/DeleteSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-03-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 81246aa9f229..a0206403b634 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-01-15-preview/GetSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-03-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 1bb83a77322c..056f1992f1ec 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-01-15-preview/TestRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-03-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 6eb9d6ce3a50..f42a66833921 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-01-15-preview/ListUsages.json + * x-ms-original-file: 2026-03-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-01-15-preview/ListUsagesClassicScope.json + * x-ms-original-file: 2026-03-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-01-15-preview/ListUsagesDataZoneScope.json + * x-ms-original-file: 2026-03-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-01-15-preview/ListUsagesGlobalScope.json + * x-ms-original-file: 2026-03-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 new file mode 100644 index 000000000000..a75c41b96cf9 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesCreateOrUpdateSamples.java @@ -0,0 +1,56 @@ +// 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.Identity; +import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; +import com.azure.resourcemanager.cognitiveservices.models.SshSettings; +import com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity; +import com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Workbenches CreateOrUpdate. + */ +public final class WorkbenchesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/PutWorkbench.json + */ + /** + * Sample code: PutWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void putWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .define("myWorkbench") + .withExistingProject("rgcognitiveservices", "myAccount", "myProject") + .withProperties(new WorkbenchProperties().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") + .withDatasetId("dataset-12345") + .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", + 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/WorkbenchesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesDeleteSamples.java new file mode 100644 index 000000000000..e430c1406bfb --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesDeleteSamples.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 Workbenches Delete. + */ +public final class WorkbenchesDeleteSamples { + /* + * x-ms-original-file: 2026-03-15-preview/DeleteWorkbench.json + */ + /** + * Sample code: DeleteWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void deleteWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .delete("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..698509dc3ae3 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesGetSamples.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 Workbenches Get. + */ +public final class WorkbenchesGetSamples { + /* + * x-ms-original-file: 2026-03-15-preview/GetWorkbench.json + */ + /** + * Sample code: GetWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void getWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .getWithResponse("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", + com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..0ff0bc855bba --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesListSamples.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; + +/** + * Samples for Workbenches List. + */ +public final class WorkbenchesListSamples { + /* + * x-ms-original-file: 2026-03-15-preview/ListWorkbenches.json + */ + /** + * Sample code: ListWorkbenches. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listWorkbenches(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches().list("rgcognitiveservices", "myAccount", "myProject", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..3eb4488acac3 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesRestartSamples.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 Workbenches Restart. + */ +public final class WorkbenchesRestartSamples { + /* + * x-ms-original-file: 2026-03-15-preview/RestartWorkbench.json + */ + /** + * Sample code: RestartWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void restartWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .restart("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..0cd6ce96bff2 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStartSamples.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 Workbenches Start. + */ +public final class WorkbenchesStartSamples { + /* + * x-ms-original-file: 2026-03-15-preview/StartWorkbench.json + */ + /** + * Sample code: StartWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void startWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .start("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..5d0f7f2c8897 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStopSamples.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 Workbenches Stop. + */ +public final class WorkbenchesStopSamples { + /* + * x-ms-original-file: 2026-03-15-preview/StopWorkbench.json + */ + /** + * Sample code: StopWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void stopWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.workbenches() + .stop("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", com.azure.core.util.Context.NONE); + } +} 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 new file mode 100644 index 000000000000..8804d532f306 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesUpdateSamples.java @@ -0,0 +1,52 @@ +// 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.SshSettings; +import com.azure.resourcemanager.cognitiveservices.models.Workbench; +import com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Workbenches Update. + */ +public final class WorkbenchesUpdateSamples { + /* + * x-ms-original-file: 2026-03-15-preview/UpdateWorkbench.json + */ + /** + * Sample code: UpdateWorkbench. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void updateWorkbench(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + Workbench resource = manager.workbenches() + .getWithResponse("rgcognitiveservices", "myAccount", "myProject", "myWorkbench", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("environment", "production")) + .withProperties(new WorkbenchProperties().withTargetClusterId( + "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rgcognitiveservices/providers/Microsoft.CognitiveServices/accounts/myAccount/computes/myCluster") + .withImageLink("mcr.microsoft.com/azureml/curated/pytorch-gpu:v2") + .withIdleTimeBeforeShutdown("PT1H") + .withDatasetId("dataset-67890") + .withSshSettings(new SshSettings().withSshPublicKey("fakeTokenPlaceholder").withAdminEnabled(true))) + .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/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 a7a5462096d5..f44e8964d4ca 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,44 @@ public final class AadAuthTypeConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AadAuthTypeConnectionProperties model = BinaryData.fromString( - "{\"authType\":\"AAD\",\"category\":\"Spark\",\"createdByWorkspaceArmId\":\"lmljhlnymzotq\",\"error\":\"yuzcbmqqvxmvw\",\"expiryTime\":\"2021-07-14T04:41:04Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"tnzoibgsxgnxfy\":\"upeujlzqnhcvsq\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"xwdofdb\"],\"target\":\"qxeiiqbimhtmwwi\",\"useWorkspaceManagedIdentity\":true}") + "{\"authType\":\"AAD\",\"category\":\"Databricks\",\"createdByWorkspaceArmId\":\"tjewlpxuzzj\",\"error\":\"refqy\",\"expiryTime\":\"2021-10-18T06:07:10Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"qtvhcspodaqax\":\"akydiwfbrkwpz\",\"jfulbmoic\":\"ipietgbe\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"ubntnbatzviqsow\",\"aaelcattc\",\"uhplrvkmjcwmjv\"],\"target\":\"fggc\",\"useWorkspaceManagedIdentity\":false}") .toObject(AadAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.SPARK, model.category()); - Assertions.assertEquals("yuzcbmqqvxmvw", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-14T04:41:04Z"), model.expiryTime()); + Assertions.assertEquals(ConnectionCategory.DATABRICKS, model.category()); + Assertions.assertEquals("refqy", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-18T06:07:10Z"), model.expiryTime()); Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("upeujlzqnhcvsq", model.metadata().get("tnzoibgsxgnxfy")); + Assertions.assertEquals("akydiwfbrkwpz", model.metadata().get("qtvhcspodaqax")); Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); - Assertions.assertEquals("xwdofdb", model.sharedUserList().get(0)); - Assertions.assertEquals("qxeiiqbimhtmwwi", model.target()); - Assertions.assertTrue(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.peStatus()); + Assertions.assertEquals("ubntnbatzviqsow", model.sharedUserList().get(0)); + Assertions.assertEquals("fggc", model.target()); + Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AadAuthTypeConnectionProperties model - = new AadAuthTypeConnectionProperties().withCategory(ConnectionCategory.SPARK) - .withError("yuzcbmqqvxmvw") - .withExpiryTime(OffsetDateTime.parse("2021-07-14T04:41:04Z")) + = new AadAuthTypeConnectionProperties().withCategory(ConnectionCategory.DATABRICKS) + .withError("refqy") + .withExpiryTime(OffsetDateTime.parse("2021-10-18T06:07:10Z")) .withIsSharedToAll(true) - .withMetadata(mapOf("tnzoibgsxgnxfy", "upeujlzqnhcvsq")) + .withMetadata(mapOf("qtvhcspodaqax", "akydiwfbrkwpz", "jfulbmoic", "ipietgbe")) .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) - .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) - .withSharedUserList(Arrays.asList("xwdofdb")) - .withTarget("qxeiiqbimhtmwwi") - .withUseWorkspaceManagedIdentity(true); + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("ubntnbatzviqsow", "aaelcattc", "uhplrvkmjcwmjv")) + .withTarget("fggc") + .withUseWorkspaceManagedIdentity(false); model = BinaryData.fromObject(model).toObject(AadAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.SPARK, model.category()); - Assertions.assertEquals("yuzcbmqqvxmvw", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-14T04:41:04Z"), model.expiryTime()); + Assertions.assertEquals(ConnectionCategory.DATABRICKS, model.category()); + Assertions.assertEquals("refqy", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-18T06:07:10Z"), model.expiryTime()); Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("upeujlzqnhcvsq", model.metadata().get("tnzoibgsxgnxfy")); + Assertions.assertEquals("akydiwfbrkwpz", model.metadata().get("qtvhcspodaqax")); Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); - Assertions.assertEquals("xwdofdb", model.sharedUserList().get(0)); - Assertions.assertEquals("qxeiiqbimhtmwwi", model.target()); - Assertions.assertTrue(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.peStatus()); + Assertions.assertEquals("ubntnbatzviqsow", model.sharedUserList().get(0)); + Assertions.assertEquals("fggc", model.target()); + Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } // Use "Map.of" if available 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 bf711c124a03..bc4f46aacf98 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\":[\"bosjjfd\",\"zhrjqfyaytvsly\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"niuarlcjiwgsxfai\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"ujjgnfgrzxbarc\",\"paefzqsy\"],\"threadStorageConnections\":[\"enjc\"],\"vectorStoreConnections\":[\"smfucrtfodqh\",\"auzmzivrtrfzhhe\",\"vhjudxdyyrudmahs\"],\"enablePublicHostingEnvironment\":false,\"description\":\"kxbqssgfenffd\",\"tags\":{\"vdrijanxndm\":\"wfqjch\",\"hcuhtuzlxiw\":\"vardlmzjotprrm\"}},\"id\":\"pgarpfctw\",\"name\":\"apczdojqyv\",\"type\":\"esipiysnjq\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"whiieyozv\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"puc\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"qefgzjvbx\",\"cbgoarxtuuciagv\",\"dlhuduklbjo\",\"fmjfexulv\"],\"threadStorageConnections\":[\"kna\",\"seiancsqoac\"],\"vectorStoreConnections\":[\"dgsapleqfg\",\"xenvszgl\",\"yakeszsu\",\"vulaqcwggc\"],\"enablePublicHostingEnvironment\":true,\"description\":\"qgfb\",\"tags\":{\"iunnep\":\"cicaovphirlzbi\",\"zkueruwcjomipvw\":\"wz\",\"jttwykoxv\":\"a\"}},\"id\":\"ofxxdplrelfk\",\"name\":\"gahcbt\",\"type\":\"xlbpxrhrfjenrazw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,28 +36,29 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapabilityHost response = manager.accountCapabilityHosts() - .define("cysje") - .withExistingAccount("bzkgtz", "nwqsttewu") - .withProperties(new CapabilityHostProperties().withDescription("gckncjmg") - .withTags(mapOf("dxfmjymjn", "vbt")) - .withAiServicesConnections(Arrays.asList("x")) + .define("daevhgsulwvg") + .withExistingAccount("v", "xtcwgh") + .withProperties(new CapabilityHostProperties().withDescription("melycpg") + .withTags(mapOf("vybnzbnvmshfuzz", "th", "yixlv", "a", "uq", "cgulaebxi", "pv", "uptessjlwjta")) + .withAiServicesConnections(Arrays.asList("figvfjjuzkil", "ciwuhyzekypy", "vljlbzdlby")) .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("itfnonp") - .withStorageConnections(Arrays.asList("vrhprrvbwonleqf", "vtlrvbstph", "ykunin", "tlnrj")) - .withThreadStorageConnections(Arrays.asList("dbuziciqppoqvg", "newuhwfw")) - .withVectorStoreConnections(Arrays.asList("xuoxtfnres")) - .withEnablePublicHostingEnvironment(false)) + .withCustomerSubnet("hpzysovsnw") + .withStorageConnections(Arrays.asList("gesfhshagpahn")) + .withThreadStorageConnections( + Arrays.asList("byfyvy", "pmggqgagenvqbug", "hcdvfoizorb", "oejzsaxzgkqwvdep")) + .withVectorStoreConnections(Arrays.asList("aphifkfrpm", "lubpebrmjjnfpght", "ttpkims", "hnkkhbykrs")) + .withEnablePublicHostingEnvironment(true)) .create(); - Assertions.assertEquals("kxbqssgfenffd", response.properties().description()); - Assertions.assertEquals("wfqjch", response.properties().tags().get("vdrijanxndm")); - Assertions.assertEquals("bosjjfd", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("qgfb", response.properties().description()); + Assertions.assertEquals("cicaovphirlzbi", response.properties().tags().get("iunnep")); + Assertions.assertEquals("whiieyozv", response.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.properties().capabilityHostKind()); - Assertions.assertEquals("niuarlcjiwgsxfai", response.properties().customerSubnet()); - Assertions.assertEquals("ujjgnfgrzxbarc", response.properties().storageConnections().get(0)); - Assertions.assertEquals("enjc", response.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("smfucrtfodqh", response.properties().vectorStoreConnections().get(0)); - Assertions.assertFalse(response.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("puc", response.properties().customerSubnet()); + Assertions.assertEquals("qefgzjvbx", response.properties().storageConnections().get(0)); + Assertions.assertEquals("kna", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("dgsapleqfg", response.properties().vectorStoreConnections().get(0)); + Assertions.assertTrue(response.properties().enablePublicHostingEnvironment()); } // Use "Map.of" if available 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 327735df1146..c18e3c70dea0 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\":[\"noqayrehjuqwvap\",\"rlzh\",\"zihacen\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"xnq\",\"provisioningState\":\"Canceled\",\"storageConnections\":[\"nfdbgmkfwmjcwt\",\"wfhxwyrkbre\",\"zl\",\"ynjpchamkaepl\"],\"threadStorageConnections\":[\"ubowuywevtj\"],\"vectorStoreConnections\":[\"ikmwlaok\",\"fnisyxgu\",\"bmtredscnns\",\"jcyyuvtzrxzhcle\"],\"enablePublicHostingEnvironment\":true,\"description\":\"zqzcloyhyupgi\",\"tags\":{\"mwb\":\"gyresgzsd\",\"lb\":\"orj\",\"xqjsiuepm\":\"hychakvyrfbqvum\"}},\"id\":\"fnzlpqmp\",\"name\":\"t\",\"type\":\"efvulblmr\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"iuvjplosebmhhtuq\",\"txynoflqobfixngx\",\"bihex\",\"nk\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"qcdol\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"sjlbsmndaf\",\"ncuyjeykcnhppl\"],\"threadStorageConnections\":[\"fzxjzi\",\"ucrln\"],\"vectorStoreConnections\":[\"uwkkfzzetlvhdy\",\"zlvwyw\"],\"enablePublicHostingEnvironment\":false,\"description\":\"gqp\",\"tags\":{\"xeba\":\"zpddarcbcdwhs\",\"oprwkampyh\":\"adknmstb\",\"iudrcycmwhuzym\":\"pbldz\"}},\"id\":\"hihqknlvkmnbzko\",\"name\":\"aiildcpud\",\"type\":\"hquxsyjofpgv\"}"; 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("ppfzsclef", "rletndqlmf", "ggnbbuypwovvvsfl", com.azure.core.util.Context.NONE) + .getWithResponse("awkmibu", "dwiu", "nicupdyt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zqzcloyhyupgi", response.properties().description()); - Assertions.assertEquals("gyresgzsd", response.properties().tags().get("mwb")); - Assertions.assertEquals("noqayrehjuqwvap", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("gqp", response.properties().description()); + Assertions.assertEquals("zpddarcbcdwhs", response.properties().tags().get("xeba")); + Assertions.assertEquals("iuvjplosebmhhtuq", response.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.properties().capabilityHostKind()); - Assertions.assertEquals("xnq", response.properties().customerSubnet()); - Assertions.assertEquals("nfdbgmkfwmjcwt", response.properties().storageConnections().get(0)); - Assertions.assertEquals("ubowuywevtj", response.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("ikmwlaok", response.properties().vectorStoreConnections().get(0)); - Assertions.assertTrue(response.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("qcdol", response.properties().customerSubnet()); + Assertions.assertEquals("sjlbsmndaf", response.properties().storageConnections().get(0)); + Assertions.assertEquals("fzxjzi", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("uwkkfzzetlvhdy", 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 0f985f0b0aeb..815e304258a9 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\":[\"momfecorkfroc\",\"bmx\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"zezbjes\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"rbq\",\"ygpnyhgdzuqsca\",\"qyvoupr\"],\"threadStorageConnections\":[\"qzssl\",\"mgw\",\"nivrxpfduio\",\"hgyqvpbfj\"],\"vectorStoreConnections\":[\"z\",\"cfzlu\",\"zdquurbo\",\"mvhvz\"],\"enablePublicHostingEnvironment\":false,\"description\":\"prnquj\",\"tags\":{\"mnwsvh\":\"cqyg\",\"ejto\":\"ngqiw\"}},\"id\":\"r\",\"name\":\"pnrehkunsb\",\"type\":\"jhhlwtpkvegeat\"}]}"; + = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"gcps\",\"grh\",\"ytslg\",\"az\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"ghxhkyqzjsdkpvn\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"ffxsfybntmveh\",\"hflyuvbgtz\"],\"threadStorageConnections\":[\"weuydyb\",\"airvhpqsv\"],\"vectorStoreConnections\":[\"ogeatrcnqnvn\"],\"enablePublicHostingEnvironment\":false,\"description\":\"csjvjnkoiznzsqbi\",\"tags\":{\"jtmvwrmjxyvuo\":\"ugico\",\"wppeygk\":\"nxczbassqfyy\",\"mhttuvsqjsrvj\":\"zbloasybxhqvovd\",\"gxqbfkce\":\"qta\"}},\"id\":\"cnrec\",\"name\":\"biywevs\",\"type\":\"gdrmnszdosmjsqsv\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,18 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.accountCapabilityHosts().list("uxyprhfcaeooifqd", "wjflobh", com.azure.core.util.Context.NONE); + = manager.accountCapabilityHosts().list("drobujnjgy", "uxmqxigidul", com.azure.core.util.Context.NONE); - Assertions.assertEquals("prnquj", response.iterator().next().properties().description()); - Assertions.assertEquals("cqyg", response.iterator().next().properties().tags().get("mnwsvh")); - Assertions.assertEquals("momfecorkfroc", - response.iterator().next().properties().aiServicesConnections().get(0)); + Assertions.assertEquals("csjvjnkoiznzsqbi", response.iterator().next().properties().description()); + Assertions.assertEquals("ugico", response.iterator().next().properties().tags().get("jtmvwrmjxyvuo")); + Assertions.assertEquals("gcps", response.iterator().next().properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.iterator().next().properties().capabilityHostKind()); - Assertions.assertEquals("zezbjes", response.iterator().next().properties().customerSubnet()); - Assertions.assertEquals("rbq", response.iterator().next().properties().storageConnections().get(0)); - Assertions.assertEquals("qzssl", response.iterator().next().properties().threadStorageConnections().get(0)); - Assertions.assertEquals("z", response.iterator().next().properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("ghxhkyqzjsdkpvn", response.iterator().next().properties().customerSubnet()); + Assertions.assertEquals("ffxsfybntmveh", response.iterator().next().properties().storageConnections().get(0)); + Assertions.assertEquals("weuydyb", response.iterator().next().properties().threadStorageConnections().get(0)); + Assertions.assertEquals("ogeatrcnqnvn", + response.iterator().next().properties().vectorStoreConnections().get(0)); Assertions.assertFalse(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 756cae50374b..070d828ca19d 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 @@ -29,7 +29,7 @@ public final class AccountConnectionsCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"SapEcc\",\"createdByWorkspaceArmId\":\"mdsesbrujbjpp\",\"error\":\"tlpd\",\"expiryTime\":\"2021-05-03T18:26:25Z\",\"group\":\"Database\",\"isSharedToAll\":false,\"metadata\":{\"gtkihonikzsr\":\"tnejrnminzqp\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"z\",\"bpntogkensckhb\",\"carmoyfx\"],\"target\":\"wykuqdnd\",\"useWorkspaceManagedIdentity\":false},\"id\":\"h\",\"name\":\"gga\",\"type\":\"vdgtfpeer\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"ModelGateway\",\"createdByWorkspaceArmId\":\"vad\",\"error\":\"mjxmwqpdk\",\"expiryTime\":\"2021-05-01T10:00:38Z\",\"group\":\"NoSQL\",\"isSharedToAll\":false,\"metadata\":{\"ijtspzjnrrhikwsb\":\"xvporiwbwg\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"uhtr\",\"zfrunjfhrjhiycba\"],\"target\":\"eqnczkvihvtuwy\",\"useWorkspaceManagedIdentity\":true},\"id\":\"zszoszjgzunkfnys\",\"name\":\"wwunqhc\",\"type\":\"avoj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,31 +39,31 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.accountConnections() - .createWithResponse("n", "kakzwhpjlwy", "edznmxrfomckewv", + .createWithResponse("owewjskr", "eedddrftfquu", "p", new ConnectionPropertiesV2BasicResourceInner() - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.API_MANAGEMENT) - .withError("xfptofh") - .withExpiryTime(OffsetDateTime.parse("2021-09-27T02:31:35Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("qwvkgjpytpmpv", "vadga")) + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.TERADATA) + .withError("rn") + .withExpiryTime(OffsetDateTime.parse("2021-08-05T22:55:16Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("gvbzpg", "tdqwynxo")) .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) .withPeStatus(ManagedPEStatus.INACTIVE) - .withSharedUserList(Arrays.asList("ufb", "rtbnu")) - .withTarget("faxzsvbxxyjissk") + .withSharedUserList(Arrays.asList("bqajejir", "a", "rvkgpogplbjuvl")) + .withTarget("xnrnjh") .withUseWorkspaceManagedIdentity(false)), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.SAP_ECC, response.properties().category()); - Assertions.assertEquals("tlpd", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-03T18:26:25Z"), response.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.MODEL_GATEWAY, response.properties().category()); + Assertions.assertEquals("mjxmwqpdk", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-01T10:00:38Z"), response.properties().expiryTime()); Assertions.assertFalse(response.properties().isSharedToAll()); - Assertions.assertEquals("tnejrnminzqp", response.properties().metadata().get("gtkihonikzsr")); + Assertions.assertEquals("xvporiwbwg", response.properties().metadata().get("ijtspzjnrrhikwsb")); Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); - Assertions.assertEquals("z", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("wykuqdnd", response.properties().target()); - Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); + Assertions.assertEquals("uhtr", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("eqnczkvihvtuwy", response.properties().target()); + Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); } // Use "Map.of" if available 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 b92f107b321b..57705f09fd0c 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("yuskwgqrntaumdr", "jlvkrkegtyczupp", "yxlz", com.azure.core.util.Context.NONE); + manager.accountConnections().deleteWithResponse("kwwnq", "qlq", "pwxtvc", 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 ec1be3a3f30d..078a0a36fdf8 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\":\"CognitiveService\",\"createdByWorkspaceArmId\":\"fhkqytkzta\",\"error\":\"pgfzdgjfcyc\",\"expiryTime\":\"2021-10-09T12:01:28Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"ajquzxpixhyoi\":\"gqkzjuqw\",\"bennmfkbp\":\"nfdbgsoscienezf\",\"nthropmdudsyiu\":\"nrtekw\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"hf\"],\"target\":\"cqkoqyouerg\",\"useWorkspaceManagedIdentity\":true},\"id\":\"uzxk\",\"name\":\"yehhfdyldhg\",\"type\":\"edzfzqiyuqhtdere\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"ModelGateway\",\"createdByWorkspaceArmId\":\"im\",\"error\":\"ieqamcthtpqgf\",\"expiryTime\":\"2021-09-07T21:29:03Z\",\"group\":\"File\",\"isSharedToAll\":false,\"metadata\":{\"flgzh\":\"u\",\"ahcrxofgrutv\":\"wjg\",\"pmhz\":\"pccxziv\",\"kvnnjdtujq\":\"hh\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"mxnhtm\",\"stqlfxolrwv\"],\"target\":\"gxyfjsweq\",\"useWorkspaceManagedIdentity\":true},\"id\":\"yyopoaytwwgw\",\"name\":\"ubotbvufrkw\",\"type\":\"iemimdtn\"}"; 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("nxjkhtupsvyouw", "uiyxfwkztsmsfb", "vy", com.azure.core.util.Context.NONE) + .getWithResponse("llcshjuci", "bymjjvtpne", "xvjeazrah", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.COGNITIVE_SERVICE, response.properties().category()); - Assertions.assertEquals("pgfzdgjfcyc", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-09T12:01:28Z"), response.properties().expiryTime()); - Assertions.assertTrue(response.properties().isSharedToAll()); - Assertions.assertEquals("gqkzjuqw", response.properties().metadata().get("ajquzxpixhyoi")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.properties().peStatus()); - Assertions.assertEquals("hf", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("cqkoqyouerg", response.properties().target()); + Assertions.assertEquals(ConnectionCategory.MODEL_GATEWAY, response.properties().category()); + Assertions.assertEquals("ieqamcthtpqgf", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-07T21:29:03Z"), response.properties().expiryTime()); + Assertions.assertFalse(response.properties().isSharedToAll()); + Assertions.assertEquals("u", response.properties().metadata().get("flgzh")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, response.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); + Assertions.assertEquals("mxnhtm", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("gxyfjsweq", response.properties().target()); Assertions.assertTrue(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 92b4d242bc30..db44cfc2eb1d 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\":\"Square\",\"createdByWorkspaceArmId\":\"a\",\"error\":\"jpir\",\"expiryTime\":\"2021-10-30T16:52:15Z\",\"group\":\"AzureAI\",\"isSharedToAll\":false,\"metadata\":{\"i\":\"yegbthms\",\"ozfvualjt\":\"jbuiggru\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"sngkrfihscjvak\"],\"target\":\"zbhwahfb\",\"useWorkspaceManagedIdentity\":false},\"id\":\"nnx\",\"name\":\"mvynuqqko\",\"type\":\"auratni\"}]}"; + = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"AppInsights\",\"createdByWorkspaceArmId\":\"zcdeto\",\"error\":\"ezhyf\",\"expiryTime\":\"2021-10-20T10:02:39Z\",\"group\":\"Database\",\"isSharedToAll\":false,\"metadata\":{\"tyb\":\"acsfqbi\",\"n\":\"elf\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"zfaxskdvu\",\"lumodpegqxsorc\",\"azrqoxz\"],\"target\":\"lbeqvh\",\"useWorkspaceManagedIdentity\":false},\"id\":\"pwxslaj\",\"name\":\"gf\",\"type\":\"gaef\"}]}"; 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("iydd", "eqzqvabmhvs", "xduetbapfc", "ewxtrl", false, com.azure.core.util.Context.NONE); + .list("bav", "bvxwvegenlrjcsmw", "vguy", "lnxe", false, com.azure.core.util.Context.NONE); - Assertions.assertEquals(ConnectionCategory.SQUARE, response.iterator().next().properties().category()); - Assertions.assertEquals("jpir", response.iterator().next().properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-30T16:52:15Z"), + Assertions.assertEquals(ConnectionCategory.APP_INSIGHTS, response.iterator().next().properties().category()); + Assertions.assertEquals("ezhyf", response.iterator().next().properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T10:02:39Z"), response.iterator().next().properties().expiryTime()); Assertions.assertFalse(response.iterator().next().properties().isSharedToAll()); - Assertions.assertEquals("yegbthms", response.iterator().next().properties().metadata().get("i")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.iterator().next().properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.iterator().next().properties().peStatus()); - Assertions.assertEquals("sngkrfihscjvak", response.iterator().next().properties().sharedUserList().get(0)); - Assertions.assertEquals("zbhwahfb", response.iterator().next().properties().target()); + Assertions.assertEquals("acsfqbi", response.iterator().next().properties().metadata().get("tyb")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, + response.iterator().next().properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.iterator().next().properties().peStatus()); + Assertions.assertEquals("zfaxskdvu", response.iterator().next().properties().sharedUserList().get(0)); + Assertions.assertEquals("lbeqvh", 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/AccountConnectionsUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateWithResponseMockTests.java index e5cca15366a5..ad5f7e12dabc 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/AccountConnectionsUpdateWithResponseMockTests.java @@ -29,7 +29,7 @@ public final class AccountConnectionsUpdateWithResponseMockTests { @Test public void testUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"AzureContainerAppEnvironment\",\"createdByWorkspaceArmId\":\"hvwlv\",\"error\":\"jmxmlitqdsj\",\"expiryTime\":\"2021-03-30T21:03:37Z\",\"group\":\"AzureAI\",\"isSharedToAll\":false,\"metadata\":{\"riifefn\":\"yx\",\"vrqoemwsi\":\"s\",\"deotmfx\":\"eailwdqmqf\",\"g\":\"kd\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"u\",\"i\"],\"target\":\"uafixlxicwgp\",\"useWorkspaceManagedIdentity\":false},\"id\":\"fmfzcfasfodropa\",\"name\":\"v\",\"type\":\"gt\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Odbc\",\"createdByWorkspaceArmId\":\"veomkhfeqc\",\"error\":\"plfpohimgckycjp\",\"expiryTime\":\"2021-04-11T19:01:34Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"npbmxoo\":\"sulou\",\"d\":\"ohgpncdmwkhupfhs\",\"yzdsytcikswhcam\":\"dzauiunyev\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"cgsfcmvh\",\"drp\",\"atvyrkljqkqws\"],\"target\":\"tvjkowggxawwdm\",\"useWorkspaceManagedIdentity\":true},\"id\":\"kteiidlbovwbclpr\",\"name\":\"eganihk\",\"type\":\"cnerekyjul\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,32 +39,32 @@ public void testUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.accountConnections() - .updateWithResponse("cd", "rnrnjrcufmbgacnr", "fdtncmspsanma", - new ConnectionUpdateContent().withProperties( - new ConnectionPropertiesV2().withCategory(ConnectionCategory.POWER_PLATFORM_ENVIRONMENT) - .withError("kkqjmxptueipuug") - .withExpiryTime(OffsetDateTime.parse("2021-07-23T09:23:12Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("e", "huuonjkkxukg", "jojlle", "vvpxjoeg", "hgnhtmeplhbpjba", "idpmton", - "kvavucgj", "mumm")) - .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) - .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) - .withSharedUserList(Arrays.asList("n")) - .withTarget("zhrchx") - .withUseWorkspaceManagedIdentity(false)), + .updateWithResponse("slhip", "ukvbljpxpr", "vchyluqalpcufj", + new ConnectionUpdateContent().withProperties(new ConnectionPropertiesV2() + .withCategory(ConnectionCategory.PINECONE) + .withError("axxsritr") + .withExpiryTime(OffsetDateTime.parse("2021-04-11T15:20:30Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("xwoqotiiqbgpasr", "ef", "xkpypkennycntrq", "rmtistyikjhor", "oxtdyqavfx", + "xwtdmbqjtsuhqh")) + .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("aksinpaamihwbg", "vwtg", "bgchcgsfzhbjkiy", "qbjsdjpgxeysgw")) + .withTarget("fferzn") + .withUseWorkspaceManagedIdentity(true)), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.AZURE_CONTAINER_APP_ENVIRONMENT, response.properties().category()); - Assertions.assertEquals("jmxmlitqdsj", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-30T21:03:37Z"), response.properties().expiryTime()); - Assertions.assertFalse(response.properties().isSharedToAll()); - Assertions.assertEquals("yx", response.properties().metadata().get("riifefn")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.properties().peStatus()); - Assertions.assertEquals("u", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("uafixlxicwgp", response.properties().target()); - Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ConnectionCategory.ODBC, response.properties().category()); + Assertions.assertEquals("plfpohimgckycjp", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-11T19:01:34Z"), response.properties().expiryTime()); + Assertions.assertTrue(response.properties().isSharedToAll()); + Assertions.assertEquals("sulou", response.properties().metadata().get("npbmxoo")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, response.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); + Assertions.assertEquals("cgsfcmvh", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("tvjkowggxawwdm", response.properties().target()); + Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); } // Use "Map.of" if available 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 c62d3ed806c2..47013c24ebf1 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("caszk", "xk", com.azure.core.util.Context.NONE); + manager.accounts().delete("orbjg", "nzjotvmr", 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 new file mode 100644 index 000000000000..21089e6f992d --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesWithResponseMockTests.java @@ -0,0 +1,100 @@ +// 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.DeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeployment; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesResponse; +import com.azure.resourcemanager.cognitiveservices.models.PolicyEvaluationOutcome; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class AccountsEvaluateDeploymentPoliciesWithResponseMockTests { + @Test + public void testEvaluateDeploymentPoliciesWithResponse() throws Exception { + String responseStr + = "{\"results\":{\"hammgmqfmefgv\":{\"evaluationOutcome\":\"Compliant\",\"errorMessage\":\"k\",\"nonCompliantAssignments\":[{\"assignmentId\":\"joezlqxrkdknkobe\",\"policyDefinitionId\":\"mbozom\",\"policySetDefinitionId\":\"amicbigwcdgz\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"uxk\",\"effect\":\"ai\",\"expressionEvaluations\":[{},{}]},{\"assignmentId\":\"m\",\"policyDefinitionId\":\"qjbedpfix\",\"policySetDefinitionId\":\"upmomihzbd\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"kcdpreyxelyi\",\"effect\":\"hflrufssjyghsfx\",\"expressionEvaluations\":[{}]}]},\"wyj\":{\"evaluationOutcome\":\"Compliant\",\"errorMessage\":\"wjgquxweyslandkd\",\"nonCompliantAssignments\":[{\"assignmentId\":\"unhghcgawnr\",\"policyDefinitionId\":\"quox\",\"policySetDefinitionId\":\"tireimse\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"xstcyilbvzm\",\"effect\":\"cjzlquzexokjxebj\",\"expressionEvaluations\":[{},{},{},{}]},{\"assignmentId\":\"n\",\"policyDefinitionId\":\"bwmvogljsvl\",\"policySetDefinitionId\":\"idnwceha\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"yzltgiomqo\",\"effect\":\"epiaeapfsergd\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"nacyheqwb\",\"policyDefinitionId\":\"qncjubkhjozfymcw\",\"policySetDefinitionId\":\"upyvqyvliq\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"ejbsvsiaies\",\"effect\":\"ddzydisnu\",\"expressionEvaluations\":[{},{},{}]}]},\"omzczfkiceevsa\":{\"evaluationOutcome\":\"Error\",\"errorMessage\":\"pxottd\",\"nonCompliantAssignments\":[{\"assignmentId\":\"cqibzj\",\"policyDefinitionId\":\"weebiphryv\",\"policySetDefinitionId\":\"wqwoqsratjhdhzyb\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"hfrzgdkkagvwukhs\",\"effect\":\"mm\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"zhwilzzh\",\"policyDefinitionId\":\"jmriprlkdneyttlr\",\"policySetDefinitionId\":\"ivcbkutpumltwj\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"ynbpvzlqywauy\",\"effect\":\"jckhmocgj\",\"expressionEvaluations\":[{},{},{}]},{\"assignmentId\":\"u\",\"policyDefinitionId\":\"hwvixqqggljkybsj\",\"policySetDefinitionId\":\"lrvtz\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"ctbhpjhxpcvrd\",\"effect\":\"eitaneqadynzjahw\",\"expressionEvaluations\":[{},{},{}]}]}}}"; + + 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)); + + EvaluateDeploymentPoliciesResponse response + = manager.accounts() + .evaluateDeploymentPoliciesWithResponse("wmpinmzv", "kneerzztrknsj", + new EvaluateDeploymentPoliciesRequest() + .withDeployments( + Arrays.asList( + new EvaluateDeploymentPoliciesDeployment().withName("ugdybnhrxlel") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() + .withModel(new DeploymentModel().withPublisher("hkeizcp") + .withFormat("tdmiwjekptyca") + .withName("bjzcqymlcfnzhm") + .withVersion("urlgwqkpmmzps") + .withSource("u") + .withSourceAccount("awi")) + .withRaiPolicyName("oms")), + new EvaluateDeploymentPoliciesDeployment().withName("vvjhvvlrlohewjj") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties().withModel( + new DeploymentModel().withPublisher("jnkdflqion") + .withFormat("aeqkzfzqxjoshoh") + .withName("tryegpkh") + .withVersion("mexznlwkb") + .withSource("kxkhupzerufgj") + .withSourceAccount("cdr")) + .withRaiPolicyName("cemftzgyykyalu")), + new EvaluateDeploymentPoliciesDeployment().withName("ekdfqnhttwd") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() + .withModel(new DeploymentModel().withPublisher("rczfjjnnuxxr") + .withFormat("mhmnulwemp") + .withName("ifrhjulrsul") + .withVersion("pflu") + .withSource("awmhh") + .withSourceAccount("ot")) + .withRaiPolicyName("yrgkoekv")), + new EvaluateDeploymentPoliciesDeployment().withName("wxxyxhighctx") + .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() + .withModel(new DeploymentModel().withPublisher("molpcqyde") + .withFormat("vskiczd") + .withName("jei") + .withVersion("kgqaboo") + .withSource("bmsgycqsxrmdv") + .withSourceAccount("uyqaeohpj")) + .withRaiPolicyName("jkbvhhdaurgho")))), + com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals(PolicyEvaluationOutcome.COMPLIANT, + response.results().get("hammgmqfmefgv").evaluationOutcome()); + Assertions.assertEquals("k", response.results().get("hammgmqfmefgv").errorMessage()); + Assertions.assertEquals("joezlqxrkdknkobe", + response.results().get("hammgmqfmefgv").nonCompliantAssignments().get(0).assignmentId()); + Assertions.assertEquals("mbozom", + response.results().get("hammgmqfmefgv").nonCompliantAssignments().get(0).policyDefinitionId()); + Assertions.assertEquals("amicbigwcdgz", + response.results().get("hammgmqfmefgv").nonCompliantAssignments().get(0).policySetDefinitionId()); + Assertions.assertEquals(PolicyEvaluationOutcome.NON_COMPLIANT, + response.results().get("hammgmqfmefgv").nonCompliantAssignments().get(0).evaluationOutcome()); + Assertions.assertEquals("uxk", + response.results().get("hammgmqfmefgv").nonCompliantAssignments().get(0).nonComplianceReason()); + Assertions.assertEquals("ai", + response.results().get("hammgmqfmefgv").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 39fe951a809a..61cd9b48e9d8 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\":\"avn\",\"sku\":{\"name\":\"flqqbtnyjpylxd\",\"tier\":\"Premium\",\"size\":\"bmvmsxba\",\"family\":\"wjcnkottl\",\"capacity\":2059385500}}]}"; + = "{\"value\":[{\"resourceType\":\"wrasekw\",\"sku\":{\"name\":\"cvo\",\"tier\":\"Basic\",\"size\":\"qartwy\",\"family\":\"i\",\"capacity\":1274728467}},{\"resourceType\":\"vatdavuqmcbymsf\",\"sku\":{\"name\":\"jlquvjez\",\"tier\":\"Premium\",\"size\":\"v\",\"family\":\"imioyo\",\"capacity\":207651145}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testListSkusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AccountSkuListResult response = manager.accounts() - .listSkusWithResponse("eebgvopemtuoqu", "l", com.azure.core.util.Context.NONE) + .listSkusWithResponse("mpepkldmaxxijv", "kwsdgkj", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("avn", response.value().get(0).resourceType()); - Assertions.assertEquals("flqqbtnyjpylxd", response.value().get(0).sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.value().get(0).sku().tier()); - Assertions.assertEquals("bmvmsxba", response.value().get(0).sku().size()); - Assertions.assertEquals("wjcnkottl", response.value().get(0).sku().family()); - Assertions.assertEquals(2059385500, response.value().get(0).sku().capacity()); + Assertions.assertEquals("wrasekw", response.value().get(0).resourceType()); + Assertions.assertEquals("cvo", response.value().get(0).sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.value().get(0).sku().tier()); + Assertions.assertEquals("qartwy", response.value().get(0).sku().size()); + Assertions.assertEquals("i", response.value().get(0).sku().family()); + Assertions.assertEquals(1274728467, 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 0d9e068f2881..79d2a9eaa1da 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\":\"nyeofltfnnxrk\",\"value\":[{\"unit\":\"Seconds\",\"name\":{\"value\":\"fmu\",\"localizedValue\":\"iripfohyk\"},\"quotaPeriod\":\"xbbcbrw\",\"limit\":0.2025469318898132,\"currentValue\":26.415490189151026,\"nextResetTime\":\"zbeewoiymrvzbju\",\"status\":\"Blocked\",\"scopeType\":\"Global\",\"scopeId\":\"uctixgbdsui\"},{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"aapezkiswqjmdghs\",\"localizedValue\":\"arybjufptbjc\"},\"quotaPeriod\":\"nciuiyqvldaswvpp\",\"limit\":58.75710691783412,\"currentValue\":97.07361868687615,\"nextResetTime\":\"ndhzx\",\"status\":\"InOverage\",\"scopeType\":\"DataZone\",\"scopeId\":\"r\"},{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"nxu\",\"localizedValue\":\"kpphefsbzx\"},\"quotaPeriod\":\"zxomeikjclwz\",\"limit\":29.032336560601667,\"currentValue\":52.0250585261819,\"nextResetTime\":\"uqtaazyqbxyxoyf\",\"status\":\"Included\",\"scopeType\":\"DataZone\",\"scopeId\":\"ezxlhdjzqdca\"},{\"unit\":\"CountPerSecond\",\"name\":{\"value\":\"ozjiihj\",\"localizedValue\":\"ybmrzoepnxwd\"},\"quotaPeriod\":\"njkgvfnmx\",\"limit\":38.19206627923554,\"currentValue\":95.69530684060187,\"nextResetTime\":\"btyi\",\"status\":\"Included\",\"scopeType\":\"Regional\",\"scopeId\":\"rfqjpnqnoo\"}]}"; + = "{\"nextLink\":\"spkladydgnhau\",\"value\":[{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"gpmnmabe\",\"localizedValue\":\"qilwgdfpfqfpcvs\"},\"quotaPeriod\":\"l\",\"limit\":78.12429323242544,\"currentValue\":28.685630340870205,\"nextResetTime\":\"wxbsmtbl\",\"status\":\"InOverage\",\"scopeType\":\"Regional\",\"scopeId\":\"ifkwdvbtbrekqhs\"},{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"wpq\",\"localizedValue\":\"ejuwyqwdqigmghgi\"},\"quotaPeriod\":\"txlujkhnjcmr\",\"limit\":97.19060237494223,\"currentValue\":5.319027231728701,\"nextResetTime\":\"twmlmhjnqtqeah\",\"status\":\"Unknown\",\"scopeType\":\"Regional\",\"scopeId\":\"gpokddxejhhkvgu\"}]}"; 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("vajmailfem", "jzakzwjiqull", "xbdmvrscmqernd", com.azure.core.util.Context.NONE) + .listUsagesWithResponse("kmi", "wnnra", "libbf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nyeofltfnnxrk", response.nextLink()); - Assertions.assertEquals(UnitType.SECONDS, response.value().get(0).unit()); - Assertions.assertEquals("fmu", response.value().get(0).name().value()); - Assertions.assertEquals("iripfohyk", response.value().get(0).name().localizedValue()); - Assertions.assertEquals("xbbcbrw", response.value().get(0).quotaPeriod()); - Assertions.assertEquals(0.2025469318898132D, response.value().get(0).limit()); - Assertions.assertEquals(26.415490189151026D, response.value().get(0).currentValue()); - Assertions.assertEquals("zbeewoiymrvzbju", response.value().get(0).nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.BLOCKED, response.value().get(0).status()); - Assertions.assertEquals(QuotaScopeType.GLOBAL, response.value().get(0).scopeType()); - Assertions.assertEquals("uctixgbdsui", response.value().get(0).scopeId()); + Assertions.assertEquals("spkladydgnhau", response.nextLink()); + Assertions.assertEquals(UnitType.BYTES_PER_SECOND, response.value().get(0).unit()); + Assertions.assertEquals("gpmnmabe", response.value().get(0).name().value()); + Assertions.assertEquals("qilwgdfpfqfpcvs", response.value().get(0).name().localizedValue()); + Assertions.assertEquals("l", response.value().get(0).quotaPeriod()); + Assertions.assertEquals(78.12429323242544D, response.value().get(0).limit()); + Assertions.assertEquals(28.685630340870205D, response.value().get(0).currentValue()); + Assertions.assertEquals("wxbsmtbl", response.value().get(0).nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.IN_OVERAGE, response.value().get(0).status()); + Assertions.assertEquals(QuotaScopeType.REGIONAL, response.value().get(0).scopeType()); + Assertions.assertEquals("ifkwdvbtbrekqhs", 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 bb536375164b..31d45d126604 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,8 +28,7 @@ public void testDisableWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentApplications() - .disableWithResponse("pspfeylqlo", "vvujex", "yglxrkgjnm", "paslavxjfiuofpi", - com.azure.core.util.Context.NONE); + .disableWithResponse("ruccwmecbtxsytr", "exe", "wmrqjyw", "whvycfjncin", 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 e46a8a77e848..c30b645efea9 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,8 +28,7 @@ public void testEnableWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentApplications() - .enableWithResponse("dsdlzmk", "erxxxoteehkhowgo", "vvh", "owpcbapnpxraqawb", - com.azure.core.util.Context.NONE); + .enableWithResponse("ugeerclbltbhpwac", "yeurjwmv", "r", "vdifkiikg", 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 b7687b459b21..d7c150f42c2c 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\":\"kd\",\"value\":[{\"properties\":{\"agentId\":\"dwdbvxvzal\",\"agentName\":\"oyqxlunkf\"},\"id\":\"mcxqqxmyzklao\",\"name\":\"n\",\"type\":\"ohrvmz\"},{\"properties\":{\"agentId\":\"razadivznllaslks\",\"agentName\":\"jqjpv\"},\"id\":\"ihxjtgzgtai\",\"name\":\"wbqgroigbsfsgsa\",\"type\":\"nwldfmhljq\"},{\"properties\":{\"agentId\":\"spmrjct\",\"agentName\":\"ldsxebuhsxrz\"},\"id\":\"gsdaluyckh\",\"name\":\"frbhseuerbg\",\"type\":\"xebjl\"},{\"properties\":{\"agentId\":\"caytujraxdtpryj\",\"agentName\":\"tnsewou\"},\"id\":\"yms\",\"name\":\"vyljurkeposehqq\",\"type\":\"lmpctwj\"}]}"; + = "{\"nextLink\":\"xpcbwkdwjyjizn\",\"value\":[{\"properties\":{\"agentId\":\"ofmftasp\",\"agentName\":\"reihuftrnigh\"},\"id\":\"nuwqxungro\",\"name\":\"gwfmsxjwdylwxm\",\"type\":\"zjow\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,11 @@ public void testListAgentsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AgentReferenceResourceArmPaginatedResult response = manager.agentApplications() - .listAgentsWithResponse("hnoyrzaaoeeh", "mjenvjeatea", "xc", "xoxdjxldnaryyi", - com.azure.core.util.Context.NONE) + .listAgentsWithResponse("zgottaksadzighmm", "b", "dvucfvvra", "beurdeewl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("kd", response.nextLink()); - Assertions.assertEquals("dwdbvxvzal", response.value().get(0).properties().agentId()); - Assertions.assertEquals("oyqxlunkf", response.value().get(0).properties().agentName()); + Assertions.assertEquals("xpcbwkdwjyjizn", response.nextLink()); + Assertions.assertEquals("ofmftasp", response.value().get(0).properties().agentId()); + Assertions.assertEquals("reihuftrnigh", 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 6f92bddea5bf..9c1386296ade 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,52 +20,50 @@ public final class AgentDeploymentInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentDeploymentInner model = BinaryData.fromString( - "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"zijiufehgmv\",\"deploymentId\":\"nwyvq\",\"state\":\"Stopped\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"ylyl\"},{\"protocol\":\"Responses\",\"version\":\"zutgqztwhghmupg\"}],\"agents\":[{\"agentVersion\":\"cdxa\",\"agentId\":\"u\",\"agentName\":\"tabenbbk\"},{\"agentVersion\":\"pxzuca\",\"agentId\":\"ddwwnlzafwxudgnh\",\"agentName\":\"okrtalvnb\"},{\"agentVersion\":\"pbeme\",\"agentId\":\"clvdjjukyrdnqod\",\"agentName\":\"hhxhq\"},{\"agentVersion\":\"qnvzoqgyipemch\",\"agentId\":\"v\",\"agentName\":\"zuejd\"}],\"provisioningState\":\"Creating\",\"description\":\"lghwzhome\",\"tags\":{\"liuhqawmoaiancz\":\"s\"}},\"id\":\"odrrslblxyd\",\"name\":\"xrx\",\"type\":\"vbxiwkgfbqlj\"}") + "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"ftsjcwj\",\"deploymentId\":\"sgmbawvif\",\"state\":\"Deleted\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"ocjxw\"},{\"protocol\":\"Responses\",\"version\":\"zrvtx\"},{\"protocol\":\"Agent\",\"version\":\"funlcpxxvi\"}],\"agents\":[{\"agentVersion\":\"ngjgvrquvpyg\",\"agentId\":\"pmcrdcuelj\",\"agentName\":\"ahxm\"},{\"agentVersion\":\"ryarvsxzqb\",\"agentId\":\"cjkay\",\"agentName\":\"thzodubtlmjtgbl\"}],\"provisioningState\":\"Canceled\",\"description\":\"kfmkmfdjxyxgbk\",\"tags\":{\"kk\":\"jcteoedlrsl\",\"vocoj\":\"pxvjnzd\",\"zf\":\"pcnab\",\"e\":\"nggy\"}},\"id\":\"zilmhivzkww\",\"name\":\"ncknrzdajlsk\",\"type\":\"ptjxulweuc\"}") .toObject(AgentDeploymentInner.class); - Assertions.assertEquals("lghwzhome", model.properties().description()); - Assertions.assertEquals("s", model.properties().tags().get("liuhqawmoaiancz")); - Assertions.assertEquals("zijiufehgmv", model.properties().displayName()); - Assertions.assertEquals("nwyvq", model.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPED, model.properties().state()); - Assertions.assertEquals(AgentProtocol.A2A, model.properties().protocols().get(0).protocol()); - Assertions.assertEquals("ylyl", model.properties().protocols().get(0).version()); - Assertions.assertEquals("u", model.properties().agents().get(0).agentId()); - Assertions.assertEquals("tabenbbk", model.properties().agents().get(0).agentName()); - Assertions.assertEquals("cdxa", model.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("kfmkmfdjxyxgbk", model.properties().description()); + Assertions.assertEquals("jcteoedlrsl", model.properties().tags().get("kk")); + Assertions.assertEquals("ftsjcwj", model.properties().displayName()); + Assertions.assertEquals("sgmbawvif", model.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETED, model.properties().state()); + Assertions.assertEquals(AgentProtocol.AGENT, model.properties().protocols().get(0).protocol()); + Assertions.assertEquals("ocjxw", model.properties().protocols().get(0).version()); + Assertions.assertEquals("pmcrdcuelj", model.properties().agents().get(0).agentId()); + Assertions.assertEquals("ahxm", model.properties().agents().get(0).agentName()); + Assertions.assertEquals("ngjgvrquvpyg", model.properties().agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AgentDeploymentInner model = new AgentDeploymentInner().withProperties(new AgentDeploymentProperties() - .withDescription("lghwzhome") - .withTags(mapOf("liuhqawmoaiancz", "s")) - .withDisplayName("zijiufehgmv") - .withDeploymentId("nwyvq") - .withState(AgentDeploymentState.STOPPED) - .withProtocols(Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("ylyl"), - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("zutgqztwhghmupg"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("u").withAgentName("tabenbbk").withAgentVersion("cdxa"), - new VersionedAgentReference().withAgentId("ddwwnlzafwxudgnh") - .withAgentName("okrtalvnb") - .withAgentVersion("pxzuca"), - new VersionedAgentReference().withAgentId("clvdjjukyrdnqod") - .withAgentName("hhxhq") - .withAgentVersion("pbeme"), - new VersionedAgentReference().withAgentId("v") - .withAgentName("zuejd") - .withAgentVersion("qnvzoqgyipemch")))); + AgentDeploymentInner model = new AgentDeploymentInner() + .withProperties(new AgentDeploymentProperties().withDescription("kfmkmfdjxyxgbk") + .withTags(mapOf("kk", "jcteoedlrsl", "vocoj", "pxvjnzd", "zf", "pcnab", "e", "nggy")) + .withDisplayName("ftsjcwj") + .withDeploymentId("sgmbawvif") + .withState(AgentDeploymentState.DELETED) + .withProtocols( + Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("ocjxw"), + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("zrvtx"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("funlcpxxvi"))) + .withAgents(Arrays.asList( + new VersionedAgentReference().withAgentId("pmcrdcuelj") + .withAgentName("ahxm") + .withAgentVersion("ngjgvrquvpyg"), + new VersionedAgentReference().withAgentId("cjkay") + .withAgentName("thzodubtlmjtgbl") + .withAgentVersion("ryarvsxzqb")))); model = BinaryData.fromObject(model).toObject(AgentDeploymentInner.class); - Assertions.assertEquals("lghwzhome", model.properties().description()); - Assertions.assertEquals("s", model.properties().tags().get("liuhqawmoaiancz")); - Assertions.assertEquals("zijiufehgmv", model.properties().displayName()); - Assertions.assertEquals("nwyvq", model.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPED, model.properties().state()); - Assertions.assertEquals(AgentProtocol.A2A, model.properties().protocols().get(0).protocol()); - Assertions.assertEquals("ylyl", model.properties().protocols().get(0).version()); - Assertions.assertEquals("u", model.properties().agents().get(0).agentId()); - Assertions.assertEquals("tabenbbk", model.properties().agents().get(0).agentName()); - Assertions.assertEquals("cdxa", model.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("kfmkmfdjxyxgbk", model.properties().description()); + Assertions.assertEquals("jcteoedlrsl", model.properties().tags().get("kk")); + Assertions.assertEquals("ftsjcwj", model.properties().displayName()); + Assertions.assertEquals("sgmbawvif", model.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETED, model.properties().state()); + Assertions.assertEquals(AgentProtocol.AGENT, model.properties().protocols().get(0).protocol()); + Assertions.assertEquals("ocjxw", model.properties().protocols().get(0).version()); + Assertions.assertEquals("pmcrdcuelj", model.properties().agents().get(0).agentId()); + Assertions.assertEquals("ahxm", model.properties().agents().get(0).agentName()); + Assertions.assertEquals("ngjgvrquvpyg", 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 844d290c74c3..5dd12f62c695 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,43 +19,43 @@ public final class AgentDeploymentPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentDeploymentProperties model = BinaryData.fromString( - "{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"khychocokulehur\",\"deploymentId\":\"rqffaweyurk\",\"state\":\"Starting\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"vjuqdbrxmrgchb\"},{\"protocol\":\"A2A\",\"version\":\"iyfjjkbajbuscg\"}],\"agents\":[{\"agentVersion\":\"ioycbl\",\"agentId\":\"p\",\"agentName\":\"lujyxkyxl\"}],\"provisioningState\":\"Updating\",\"description\":\"gkzz\",\"tags\":{\"czpgvdwnapfdq\":\"fhbzffovwmbjlzq\",\"h\":\"owftptnuwjtks\"}}") + "{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"t\",\"deploymentId\":\"qlehmcgcjeinu\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"ejvqnt\"}],\"agents\":[{\"agentVersion\":\"dab\",\"agentId\":\"ivfokpysthhzagj\",\"agentName\":\"yyrlhgenu\"}],\"provisioningState\":\"Updating\",\"description\":\"vkvebaqsz\",\"tags\":{\"qrhnxtminkl\":\"zlsmmdqgmihzpim\"}}") .toObject(AgentDeploymentProperties.class); - Assertions.assertEquals("gkzz", model.description()); - Assertions.assertEquals("fhbzffovwmbjlzq", model.tags().get("czpgvdwnapfdq")); - Assertions.assertEquals("khychocokulehur", model.displayName()); - Assertions.assertEquals("rqffaweyurk", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("vjuqdbrxmrgchb", model.protocols().get(0).version()); - Assertions.assertEquals("p", model.agents().get(0).agentId()); - Assertions.assertEquals("lujyxkyxl", model.agents().get(0).agentName()); - Assertions.assertEquals("ioycbl", model.agents().get(0).agentVersion()); + Assertions.assertEquals("vkvebaqsz", model.description()); + Assertions.assertEquals("zlsmmdqgmihzpim", model.tags().get("qrhnxtminkl")); + Assertions.assertEquals("t", model.displayName()); + Assertions.assertEquals("qlehmcgcjeinu", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); + Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); + Assertions.assertEquals("ejvqnt", model.protocols().get(0).version()); + Assertions.assertEquals("ivfokpysthhzagj", model.agents().get(0).agentId()); + Assertions.assertEquals("yyrlhgenu", model.agents().get(0).agentName()); + Assertions.assertEquals("dab", model.agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AgentDeploymentProperties model = new AgentDeploymentProperties().withDescription("gkzz") - .withTags(mapOf("czpgvdwnapfdq", "fhbzffovwmbjlzq", "h", "owftptnuwjtks")) - .withDisplayName("khychocokulehur") - .withDeploymentId("rqffaweyurk") - .withState(AgentDeploymentState.STARTING) - .withProtocols(Arrays.asList( - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("vjuqdbrxmrgchb"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("iyfjjkbajbuscg"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("p").withAgentName("lujyxkyxl").withAgentVersion("ioycbl"))); + AgentDeploymentProperties model = new AgentDeploymentProperties().withDescription("vkvebaqsz") + .withTags(mapOf("qrhnxtminkl", "zlsmmdqgmihzpim")) + .withDisplayName("t") + .withDeploymentId("qlehmcgcjeinu") + .withState(AgentDeploymentState.RUNNING) + .withProtocols( + Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("ejvqnt"))) + .withAgents(Arrays.asList(new VersionedAgentReference().withAgentId("ivfokpysthhzagj") + .withAgentName("yyrlhgenu") + .withAgentVersion("dab"))); model = BinaryData.fromObject(model).toObject(AgentDeploymentProperties.class); - Assertions.assertEquals("gkzz", model.description()); - Assertions.assertEquals("fhbzffovwmbjlzq", model.tags().get("czpgvdwnapfdq")); - Assertions.assertEquals("khychocokulehur", model.displayName()); - Assertions.assertEquals("rqffaweyurk", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("vjuqdbrxmrgchb", model.protocols().get(0).version()); - Assertions.assertEquals("p", model.agents().get(0).agentId()); - Assertions.assertEquals("lujyxkyxl", model.agents().get(0).agentName()); - Assertions.assertEquals("ioycbl", model.agents().get(0).agentVersion()); + Assertions.assertEquals("vkvebaqsz", model.description()); + Assertions.assertEquals("zlsmmdqgmihzpim", model.tags().get("qrhnxtminkl")); + Assertions.assertEquals("t", model.displayName()); + Assertions.assertEquals("qlehmcgcjeinu", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); + Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); + Assertions.assertEquals("ejvqnt", model.protocols().get(0).version()); + Assertions.assertEquals("ivfokpysthhzagj", model.agents().get(0).agentId()); + Assertions.assertEquals("yyrlhgenu", model.agents().get(0).agentName()); + Assertions.assertEquals("dab", 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 8ff6e713c686..c3b9f502996b 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\":\"wotmmwllcolsrsxa\",\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"hexcgjokj\",\"deploymentId\":\"nhvlqjbekp\",\"state\":\"Deleting\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"dqhjvyklxeslkhhu\"},{\"protocol\":\"Agent\",\"version\":\"oqmavnwqjwgo\"}],\"agents\":[{\"agentVersion\":\"jjjkxybwfdbk\",\"agentId\":\"ztensvkzykjtj\",\"agentName\":\"sxfwushcdp\"},{\"agentVersion\":\"pn\",\"agentId\":\"mgjfbpkuwxeoio\",\"agentName\":\"izfavkjzwf\"}],\"provisioningState\":\"Canceled\",\"description\":\"y\",\"tags\":{\"bfw\":\"fz\",\"dew\":\"rzx\"}},\"id\":\"sxkrpl\",\"name\":\"jazejwwviyoyp\",\"type\":\"uhbrnnhjxsq\"}]}") + "{\"nextLink\":\"fbbmtlp\",\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"noiprnzcali\",\"deploymentId\":\"ryqxzxa\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"iymqr\"},{\"protocol\":\"Agent\",\"version\":\"hfupetasvvoqsbpk\"},{\"protocol\":\"Agent\",\"version\":\"fkg\"}],\"agents\":[{\"agentVersion\":\"owuz\",\"agentId\":\"puohdkcprgukxrz\",\"agentName\":\"ochlu\"}],\"provisioningState\":\"Succeeded\",\"description\":\"qrudjizcbfzmcr\",\"tags\":{\"tk\":\"hiucnmfbcpaq\"}},\"id\":\"mzuedkyzbfvxovq\",\"name\":\"xiuxqggvqrnhy\",\"type\":\"lwcjsqggjhffb\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"qrkijpeuq\",\"deploymentId\":\"dxeqztvxw\",\"state\":\"Failed\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"na\"},{\"protocol\":\"Responses\",\"version\":\"ecleqioulndhzyo\"}],\"agents\":[{\"agentVersion\":\"tollh\",\"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\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"smmpathubt\",\"deploymentId\":\"deani\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"zsffte\"},{\"protocol\":\"Responses\",\"version\":\"nktjtgr\"}],\"agents\":[{\"agentVersion\":\"ogfkbebauzlqb\",\"agentId\":\"xwpfhnjzud\",\"agentName\":\"pzkg\"}],\"provisioningState\":\"Succeeded\",\"description\":\"ywhczzq\",\"tags\":{\"qbedygisrzwn\":\"n\",\"lrmpwctofldse\":\"kdidjc\"}},\"id\":\"dhztxkbr\",\"name\":\"g\",\"type\":\"rwjiyew\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"jsrwqrxetf\",\"deploymentId\":\"wvrrmdqn\",\"state\":\"Stopping\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"vmaxgnuyea\"},{\"protocol\":\"Responses\",\"version\":\"udf\"},{\"protocol\":\"Responses\",\"version\":\"h\"}],\"agents\":[{\"agentVersion\":\"pqtwloesqrggvrb\",\"agentId\":\"rukoi\",\"agentName\":\"ciduwjle\"},{\"agentVersion\":\"jlhwyxpzruzyt\",\"agentId\":\"kkwhbgxvellvulnx\",\"agentName\":\"nitmujdtvmclyymf\"}],\"provisioningState\":\"Creating\",\"description\":\"pddny\",\"tags\":{\"pv\":\"uvrzmzqmzjqrb\",\"pglaoh\":\"mdyfoebojtj\",\"jtnqjil\":\"qk\"}},\"id\":\"wkdcwmqs\",\"name\":\"ri\",\"type\":\"mhxdqaolfy\"}]}") .toObject(AgentDeploymentResourceArmPaginatedResult.class); - Assertions.assertEquals("wotmmwllcolsrsxa", model.nextLink()); - Assertions.assertEquals("y", model.value().get(0).properties().description()); - Assertions.assertEquals("fz", model.value().get(0).properties().tags().get("bfw")); - Assertions.assertEquals("hexcgjokj", model.value().get(0).properties().displayName()); - Assertions.assertEquals("nhvlqjbekp", model.value().get(0).properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.DELETING, model.value().get(0).properties().state()); - Assertions.assertEquals(AgentProtocol.A2A, model.value().get(0).properties().protocols().get(0).protocol()); - Assertions.assertEquals("dqhjvyklxeslkhhu", model.value().get(0).properties().protocols().get(0).version()); - Assertions.assertEquals("ztensvkzykjtj", model.value().get(0).properties().agents().get(0).agentId()); - Assertions.assertEquals("sxfwushcdp", model.value().get(0).properties().agents().get(0).agentName()); - Assertions.assertEquals("jjjkxybwfdbk", model.value().get(0).properties().agents().get(0).agentVersion()); + Assertions.assertEquals("fbbmtlp", model.nextLink()); + Assertions.assertEquals("qrudjizcbfzmcr", model.value().get(0).properties().description()); + Assertions.assertEquals("hiucnmfbcpaq", model.value().get(0).properties().tags().get("tk")); + Assertions.assertEquals("noiprnzcali", model.value().get(0).properties().displayName()); + Assertions.assertEquals("ryqxzxa", model.value().get(0).properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.RUNNING, model.value().get(0).properties().state()); + Assertions.assertEquals(AgentProtocol.AGENT, model.value().get(0).properties().protocols().get(0).protocol()); + Assertions.assertEquals("iymqr", model.value().get(0).properties().protocols().get(0).version()); + Assertions.assertEquals("puohdkcprgukxrz", model.value().get(0).properties().agents().get(0).agentId()); + Assertions.assertEquals("ochlu", model.value().get(0).properties().agents().get(0).agentName()); + Assertions.assertEquals("owuz", 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 bef09d395e76..d5a5ec169e35 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\":\"ara\",\"deploymentId\":\"wuasnjeglhtrx\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"wjzb\"},{\"protocol\":\"Responses\",\"version\":\"rnwv\"}],\"agents\":[{\"agentVersion\":\"qizawwsds\",\"agentId\":\"gfhjxsawoo\",\"agentName\":\"ffhx\"},{\"agentVersion\":\"kmwzrdqyoy\",\"agentId\":\"rn\",\"agentName\":\"ocjnzdaiovrbhr\"},{\"agentVersion\":\"phkvyyz\",\"agentId\":\"crxylaypdt\",\"agentName\":\"velffohuriw\"}],\"provisioningState\":\"Succeeded\",\"description\":\"rwpsshrmnkcclp\",\"tags\":{\"s\":\"ogkscxj\",\"nxs\":\"mospoe\",\"bqhsujkafu\":\"cowscuyfqlam\"}},\"id\":\"nxqpwnikxkcajgrb\",\"name\":\"ct\",\"type\":\"vgoo\"}"; + = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"nefnoafp\",\"deploymentId\":\"rx\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"ufcmuajwblxp\"}],\"agents\":[{\"agentVersion\":\"frfa\",\"agentId\":\"nnsvrfajynihti\",\"agentName\":\"fgzqzhl\"},{\"agentVersion\":\"tb\",\"agentId\":\"ehbgcgyohrcmeqlj\",\"agentName\":\"umhycxonebld\"},{\"agentVersion\":\"gmdfjwc\",\"agentId\":\"kwx\",\"agentName\":\"jq\"}],\"provisioningState\":\"Succeeded\",\"description\":\"ufzdtsrpju\",\"tags\":{\"huqczouanbfulv\":\"acrzhnsbylgmg\",\"bzbwbgwzhbhfljey\":\"xglxoqwbztil\",\"lhrwyakzuafapwx\":\"dpiov\",\"extqd\":\"vdeatjiobnirg\"}},\"id\":\"tg\",\"name\":\"timznupbmt\",\"type\":\"setk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,35 +39,37 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AgentDeployment response = manager.agentDeployments() - .define("mw") - .withExistingApplication("xxicee", "vjwyuveox", "pzzwahdrdvhaztk", "bivzfgxmbry") - .withProperties(new AgentDeploymentProperties().withDescription("nstp") - .withTags(mapOf("vswmehfxrtt", "ibjg", "ectcxsfmbzdx", "bmsennqfabqcama")) - .withDisplayName("iosiqsy") - .withDeploymentId("f") + .define("ycudus") + .withExistingApplication("nsbqoitwhmuc", "iuh", "xy", "ehyklelyqdvpqfbx") + .withProperties(new AgentDeploymentProperties().withDescription("wbywaazba") + .withTags(mapOf("vnabfbbt", "kfz")) + .withDisplayName("tx") + .withDeploymentId("ef") .withState(AgentDeploymentState.UPDATING) - .withProtocols(Arrays.asList( - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("fdaglmrcokzzert"), - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("zsi"))) + .withProtocols(Arrays + .asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("opkyllreyenjpw"))) .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("opikzebqnnfywtkq") - .withAgentName("sdlkhcz") - .withAgentVersion("bym"), - new VersionedAgentReference().withAgentId("vfiyymot") - .withAgentName("bybwjmtftcvelnir") - .withAgentVersion("pmgfjculojhhylx")))) + new VersionedAgentReference().withAgentId("rsvevcneqswxhqh") + .withAgentName("htbzvulqevvj") + .withAgentVersion("w"), + new VersionedAgentReference().withAgentId("vghcmi") + .withAgentName("lwkfef") + .withAgentVersion("pmyhtxg"), + new VersionedAgentReference().withAgentId("yimooaezkto") + .withAgentName("go") + .withAgentVersion("yjrtalqeebu")))) .create(); - Assertions.assertEquals("rwpsshrmnkcclp", response.properties().description()); - Assertions.assertEquals("ogkscxj", response.properties().tags().get("s")); - Assertions.assertEquals("ara", response.properties().displayName()); - Assertions.assertEquals("wuasnjeglhtrx", response.properties().deploymentId()); + Assertions.assertEquals("ufzdtsrpju", response.properties().description()); + Assertions.assertEquals("acrzhnsbylgmg", response.properties().tags().get("huqczouanbfulv")); + Assertions.assertEquals("nefnoafp", response.properties().displayName()); + Assertions.assertEquals("rx", response.properties().deploymentId()); Assertions.assertEquals(AgentDeploymentState.UPDATING, response.properties().state()); Assertions.assertEquals(AgentProtocol.A2A, response.properties().protocols().get(0).protocol()); - Assertions.assertEquals("wjzb", response.properties().protocols().get(0).version()); - Assertions.assertEquals("gfhjxsawoo", response.properties().agents().get(0).agentId()); - Assertions.assertEquals("ffhx", response.properties().agents().get(0).agentName()); - Assertions.assertEquals("qizawwsds", response.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("ufcmuajwblxp", response.properties().protocols().get(0).version()); + Assertions.assertEquals("nnsvrfajynihti", response.properties().agents().get(0).agentId()); + Assertions.assertEquals("fgzqzhl", response.properties().agents().get(0).agentName()); + Assertions.assertEquals("frfa", 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 dfdab9e08523..4a644ca89b9a 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\":\"ioqemqwtqszzg\",\"deploymentId\":\"sikawanvmwd\",\"state\":\"Stopping\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"ompnbnfgyweojbep\"},{\"protocol\":\"Responses\",\"version\":\"hiwfryawkchk\"},{\"protocol\":\"A2A\",\"version\":\"skshfyfttibje\"},{\"protocol\":\"Responses\",\"version\":\"junfdgbg\"}],\"agents\":[{\"agentVersion\":\"zhblivw\",\"agentId\":\"sudy\",\"agentName\":\"mbhdo\"},{\"agentVersion\":\"bng\",\"agentId\":\"lgxz\",\"agentName\":\"vxd\"}],\"provisioningState\":\"Deleting\",\"description\":\"atmdmn\",\"tags\":{\"dmiplois\":\"nxoirxy\",\"ntwgkvyo\":\"kzsoxz\",\"zwwy\":\"psapzu\"}},\"id\":\"djzghximkg\",\"name\":\"mxpqkjnpyriwn\",\"type\":\"ot\"}"; + = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"wfwlrfdjwlzse\",\"deploymentId\":\"tqfdr\",\"state\":\"Starting\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"erwycuhytjwgetfi\"}],\"agents\":[{\"agentVersion\":\"qjxzi\",\"agentId\":\"bjrahgdstubw\",\"agentName\":\"xzsshxliqmsckwh\"}],\"provisioningState\":\"Succeeded\",\"description\":\"iiy\",\"tags\":{\"alw\":\"zw\",\"crmvjfmr\":\"sofxc\",\"elsxfkzr\":\"uydldp\"}},\"id\":\"irjvqxvwkiocxo\",\"name\":\"rjwbuocqflm\",\"type\":\"lrlqxbctatezyozd\"}"; 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("bgngcrusxhirc", "gcvsvkkjbjolpy", "klkvuznadvh", "lieo", "gowxxbhtp", + .getWithResponse("cypm", "evspsaney", "aerpiobn", "rfbrjokjwqdmr", "qnilppqcaig", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("atmdmn", response.properties().description()); - Assertions.assertEquals("nxoirxy", response.properties().tags().get("dmiplois")); - Assertions.assertEquals("ioqemqwtqszzg", response.properties().displayName()); - Assertions.assertEquals("sikawanvmwd", response.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPING, response.properties().state()); - Assertions.assertEquals(AgentProtocol.RESPONSES, response.properties().protocols().get(0).protocol()); - Assertions.assertEquals("ompnbnfgyweojbep", response.properties().protocols().get(0).version()); - Assertions.assertEquals("sudy", response.properties().agents().get(0).agentId()); - Assertions.assertEquals("mbhdo", response.properties().agents().get(0).agentName()); - Assertions.assertEquals("zhblivw", response.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("iiy", response.properties().description()); + Assertions.assertEquals("zw", response.properties().tags().get("alw")); + Assertions.assertEquals("wfwlrfdjwlzse", response.properties().displayName()); + Assertions.assertEquals("tqfdr", response.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STARTING, response.properties().state()); + Assertions.assertEquals(AgentProtocol.AGENT, response.properties().protocols().get(0).protocol()); + Assertions.assertEquals("erwycuhytjwgetfi", response.properties().protocols().get(0).version()); + Assertions.assertEquals("bjrahgdstubw", response.properties().agents().get(0).agentId()); + Assertions.assertEquals("xzsshxliqmsckwh", response.properties().agents().get(0).agentName()); + Assertions.assertEquals("qjxzi", 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 551e0e042b83..07d6151957a8 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\":\"xvtemaspm\",\"deploymentId\":\"ydscdkxwd\",\"state\":\"Failed\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"hntofe\"},{\"protocol\":\"Responses\",\"version\":\"fixoskk\"}],\"agents\":[{\"agentVersion\":\"vsujybsrwz\",\"agentId\":\"rgt\",\"agentName\":\"hmfppinmgi\"},{\"agentVersion\":\"smkw\",\"agentId\":\"gfragjhxerxlobkd\",\"agentName\":\"qhvmmniiqy\"},{\"agentVersion\":\"lhjnskbggicnqwl\",\"agentId\":\"m\",\"agentName\":\"blxk\"}],\"provisioningState\":\"Canceled\",\"description\":\"vxrktjcjigcwtsp\",\"tags\":{\"vchefpgeedyy\":\"qxas\",\"wcgi\":\"ruholae\",\"nbzaowcahdkmb\":\"mrimaabsqql\",\"glkvbgukbsv\":\"smihrijezbfsjwfc\"}},\"id\":\"yotygnb\",\"name\":\"nhjgclxaxwcffasp\",\"type\":\"dzkucszghdoaqip\"}]}"; + = "{\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"xmpeszamad\",\"deploymentId\":\"rzinfuivczktll\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"mirmnrijefmrt\"},{\"protocol\":\"Responses\",\"version\":\"vdsp\"}],\"agents\":[{\"agentVersion\":\"fmwtblgm\",\"agentId\":\"kqoikxiefwln\",\"agentName\":\"kffcnuestbsl\"},{\"agentVersion\":\"jdnccote\",\"agentId\":\"kjiytehh\",\"agentName\":\"zxqdwbymu\"},{\"agentVersion\":\"n\",\"agentId\":\"crdorctysecpekh\",\"agentName\":\"byh\"},{\"agentVersion\":\"zcvimmwcko\",\"agentId\":\"lfymtrts\",\"agentName\":\"upqtzckj\"}],\"provisioningState\":\"Canceled\",\"description\":\"gnr\",\"tags\":{\"tvbgdobi\":\"schjxncqzah\"}},\"id\":\"rzol\",\"name\":\"osgihtrxueqbm\",\"type\":\"qfgvznjqswshe\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,19 +35,20 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.agentDeployments() - .list("xmmqmt", "jkyjrexw", "onbexft", "daubheeggzgr", 1562048047, "tlfozuumrtgjqgac", - Arrays.asList("tnsyxzxjm"), "anbclazo", true, com.azure.core.util.Context.NONE); + .list("cqqnlsjxcsc", "it", "dmra", "jjidodnvltcvmah", 1261355866, "wkupbbnhic", + Arrays.asList("yzhrcqdfwbifnn", "lsfo", "simtfcqmmy", "brpelpf"), "jt", true, + com.azure.core.util.Context.NONE); - Assertions.assertEquals("vxrktjcjigcwtsp", response.iterator().next().properties().description()); - Assertions.assertEquals("qxas", response.iterator().next().properties().tags().get("vchefpgeedyy")); - Assertions.assertEquals("xvtemaspm", response.iterator().next().properties().displayName()); - Assertions.assertEquals("ydscdkxwd", response.iterator().next().properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.FAILED, response.iterator().next().properties().state()); - Assertions.assertEquals(AgentProtocol.AGENT, + Assertions.assertEquals("gnr", response.iterator().next().properties().description()); + Assertions.assertEquals("schjxncqzah", response.iterator().next().properties().tags().get("tvbgdobi")); + Assertions.assertEquals("xmpeszamad", response.iterator().next().properties().displayName()); + Assertions.assertEquals("rzinfuivczktll", response.iterator().next().properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.UPDATING, response.iterator().next().properties().state()); + Assertions.assertEquals(AgentProtocol.A2A, response.iterator().next().properties().protocols().get(0).protocol()); - Assertions.assertEquals("hntofe", response.iterator().next().properties().protocols().get(0).version()); - Assertions.assertEquals("rgt", response.iterator().next().properties().agents().get(0).agentId()); - Assertions.assertEquals("hmfppinmgi", response.iterator().next().properties().agents().get(0).agentName()); - Assertions.assertEquals("vsujybsrwz", response.iterator().next().properties().agents().get(0).agentVersion()); + Assertions.assertEquals("mirmnrijefmrt", response.iterator().next().properties().protocols().get(0).version()); + Assertions.assertEquals("kqoikxiefwln", response.iterator().next().properties().agents().get(0).agentId()); + Assertions.assertEquals("kffcnuestbsl", response.iterator().next().properties().agents().get(0).agentName()); + Assertions.assertEquals("fmwtblgm", 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 5fa718324d68..e75a280f05e9 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("nxclfrsbzrnmuv", "vp", "ofddtbfmek", "cnginxdvm", "oyqxfvgyxz", + .startWithResponse("gcsqosecxlngou", "pizpbm", "xzspfy", "slazipplxgtdu", "jtyc", 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 5e0540a0a95b..b59a953ebbcc 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("xynofxlttxoqxtd", "zujsjirkrp", "kcjhmmofbnivd", "tkykpaxnlsfgnys", "accptbzetxy", + .stopWithResponse("ldrznlaxo", "qthkwxfugfz", "zy", "duyjnqzbr", "cakmfckviyjuca", com.azure.core.util.Context.NONE); } 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 8d903687e74a..05747f2fd7fe 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,19 +12,17 @@ public final class AgentProtocolVersionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AgentProtocolVersion model - = BinaryData.fromString("{\"protocol\":\"Responses\",\"version\":\"gkkileplkcsmkn\"}") - .toObject(AgentProtocolVersion.class); - Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocol()); - Assertions.assertEquals("gkkileplkcsmkn", model.version()); + AgentProtocolVersion model = BinaryData.fromString("{\"protocol\":\"Agent\",\"version\":\"kkld\"}") + .toObject(AgentProtocolVersion.class); + Assertions.assertEquals(AgentProtocol.AGENT, model.protocol()); + Assertions.assertEquals("kkld", model.version()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AgentProtocolVersion model - = new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("gkkileplkcsmkn"); + AgentProtocolVersion model = new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("kkld"); model = BinaryData.fromObject(model).toObject(AgentProtocolVersion.class); - Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocol()); - Assertions.assertEquals("gkkileplkcsmkn", model.version()); + Assertions.assertEquals(AgentProtocol.AGENT, model.protocol()); + Assertions.assertEquals("kkld", 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 618bf239c3fb..a44cc808785c 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\":\"snaquf\",\"agentName\":\"bctqhamzjrwd\"}") + = BinaryData.fromString("{\"agentId\":\"tnjuhpsprkzyaupi\",\"agentName\":\"cxnafbwqrooh\"}") .toObject(AgentReferenceProperties.class); - Assertions.assertEquals("snaquf", model.agentId()); - Assertions.assertEquals("bctqhamzjrwd", model.agentName()); + Assertions.assertEquals("tnjuhpsprkzyaupi", model.agentId()); + Assertions.assertEquals("cxnafbwqrooh", model.agentName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AgentReferenceProperties model - = new AgentReferenceProperties().withAgentId("snaquf").withAgentName("bctqhamzjrwd"); + = new AgentReferenceProperties().withAgentId("tnjuhpsprkzyaupi").withAgentName("cxnafbwqrooh"); model = BinaryData.fromObject(model).toObject(AgentReferenceProperties.class); - Assertions.assertEquals("snaquf", model.agentId()); - Assertions.assertEquals("bctqhamzjrwd", model.agentName()); + Assertions.assertEquals("tnjuhpsprkzyaupi", model.agentId()); + Assertions.assertEquals("cxnafbwqrooh", 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 92f8947f8043..20f92de738c1 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\":\"xaxmq\",\"value\":[{\"properties\":{\"agentId\":\"h\",\"agentName\":\"nhg\"},\"id\":\"dyynfsvkhgb\",\"name\":\"qtanarfdlpuk\",\"type\":\"py\"},{\"properties\":{\"agentId\":\"eizjcpeogkhnmg\",\"agentName\":\"ouxddbhfhpfpazj\"},\"id\":\"ywjxh\",\"name\":\"dulontacn\",\"type\":\"qwtehtuevr\"},{\"properties\":{\"agentId\":\"ljyoogwx\",\"agentName\":\"sd\"},\"id\":\"gwbsreurf\",\"name\":\"kfuarenlv\",\"type\":\"htkln\"},{\"properties\":{\"agentId\":\"afvvk\",\"agentName\":\"edev\"},\"id\":\"oslc\",\"name\":\"xypokkhmi\",\"type\":\"q\"}]}") + "{\"nextLink\":\"vlxhrpqhvmblc\",\"value\":[{\"properties\":{\"agentId\":\"hbh\",\"agentName\":\"dsz\"},\"id\":\"yr\",\"name\":\"ndo\",\"type\":\"pmbltoormkfql\"},{\"properties\":{\"agentId\":\"ldykalsygaolnjp\",\"agentName\":\"bmjk\"},\"id\":\"bjgsjjxxahmrn\",\"name\":\"dzyqe\",\"type\":\"xyivpinbm\"},{\"properties\":{\"agentId\":\"bjijkgqxnh\",\"agentName\":\"keznjaujvaa\"},\"id\":\"ggiycwkdtaawxwf\",\"name\":\"ka\",\"type\":\"mrrqmbzmqkratb\"}]}") .toObject(AgentReferenceResourceArmPaginatedResultInner.class); - Assertions.assertEquals("xaxmq", model.nextLink()); - Assertions.assertEquals("h", model.value().get(0).properties().agentId()); - Assertions.assertEquals("nhg", model.value().get(0).properties().agentName()); + Assertions.assertEquals("vlxhrpqhvmblc", model.nextLink()); + Assertions.assertEquals("hbh", model.value().get(0).properties().agentId()); + Assertions.assertEquals("dsz", 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 f1a9dd9bf7d0..aeea642d82c2 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\":\"mczngn\",\"agentName\":\"xxewu\"},\"id\":\"nvudbchaqdtvqecr\",\"name\":\"ct\",\"type\":\"xxdtddmflh\"}") + "{\"properties\":{\"agentId\":\"wbjsidbirkf\",\"agentName\":\"sokdgoge\"},\"id\":\"jymrhbg\",\"name\":\"zozk\",\"type\":\"ewnf\"}") .toObject(AgentReference.class); - Assertions.assertEquals("mczngn", model.properties().agentId()); - Assertions.assertEquals("xxewu", model.properties().agentName()); + Assertions.assertEquals("wbjsidbirkf", model.properties().agentId()); + Assertions.assertEquals("sokdgoge", 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 96a690484f18..ef5b33698492 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\":\"uooqjagmdit\",\"description\":\"eiookjbsah\",\"deploymentId\":\"dt\",\"trafficPercentage\":468087914},{\"ruleId\":\"qacsl\",\"description\":\"toebnf\",\"deploymentId\":\"f\",\"trafficPercentage\":1015774661},{\"ruleId\":\"gdirazf\",\"description\":\"ejwabmdujtmvco\",\"deploymentId\":\"xcmjurbu\",\"trafficPercentage\":662695114}]}") + "{\"protocol\":\"FixedRatio\",\"rules\":[{\"ruleId\":\"uupb\",\"description\":\"qccydrtceukdq\",\"deploymentId\":\"yihztgeqmg\",\"trafficPercentage\":1149844590},{\"ruleId\":\"ldoychi\",\"description\":\"cecfehuwaoaguh\",\"deploymentId\":\"qllizstac\",\"trafficPercentage\":1721395359},{\"ruleId\":\"rweft\",\"description\":\"qejpmvssehaepwa\",\"deploymentId\":\"xtczhupeuknijd\",\"trafficPercentage\":1251720208},{\"ruleId\":\"spyd\",\"description\":\"bocyvhhul\",\"deploymentId\":\"ywikd\",\"trafficPercentage\":1818708935}]}") .toObject(ApplicationTrafficRoutingPolicy.class); Assertions.assertEquals(TrafficRoutingProtocol.FIXED_RATIO, model.protocol()); - Assertions.assertEquals("uooqjagmdit", model.rules().get(0).ruleId()); - Assertions.assertEquals("eiookjbsah", model.rules().get(0).description()); - Assertions.assertEquals("dt", model.rules().get(0).deploymentId()); - Assertions.assertEquals(468087914, model.rules().get(0).trafficPercentage()); + Assertions.assertEquals("uupb", model.rules().get(0).ruleId()); + Assertions.assertEquals("qccydrtceukdq", model.rules().get(0).description()); + Assertions.assertEquals("yihztgeqmg", model.rules().get(0).deploymentId()); + Assertions.assertEquals(1149844590, 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("uooqjagmdit") - .withDescription("eiookjbsah") - .withDeploymentId("dt") - .withTrafficPercentage(468087914), - new TrafficRoutingRule().withRuleId("qacsl") - .withDescription("toebnf") - .withDeploymentId("f") - .withTrafficPercentage(1015774661), - new TrafficRoutingRule().withRuleId("gdirazf") - .withDescription("ejwabmdujtmvco") - .withDeploymentId("xcmjurbu") - .withTrafficPercentage(662695114))); + new TrafficRoutingRule().withRuleId("uupb") + .withDescription("qccydrtceukdq") + .withDeploymentId("yihztgeqmg") + .withTrafficPercentage(1149844590), + new TrafficRoutingRule().withRuleId("ldoychi") + .withDescription("cecfehuwaoaguh") + .withDeploymentId("qllizstac") + .withTrafficPercentage(1721395359), + new TrafficRoutingRule().withRuleId("rweft") + .withDescription("qejpmvssehaepwa") + .withDeploymentId("xtczhupeuknijd") + .withTrafficPercentage(1251720208), + new TrafficRoutingRule().withRuleId("spyd") + .withDescription("bocyvhhul") + .withDeploymentId("ywikd") + .withTrafficPercentage(1818708935))); model = BinaryData.fromObject(model).toObject(ApplicationTrafficRoutingPolicy.class); Assertions.assertEquals(TrafficRoutingProtocol.FIXED_RATIO, model.protocol()); - Assertions.assertEquals("uooqjagmdit", model.rules().get(0).ruleId()); - Assertions.assertEquals("eiookjbsah", model.rules().get(0).description()); - Assertions.assertEquals("dt", model.rules().get(0).deploymentId()); - Assertions.assertEquals(468087914, model.rules().get(0).trafficPercentage()); + Assertions.assertEquals("uupb", model.rules().get(0).ruleId()); + Assertions.assertEquals("qccydrtceukdq", model.rules().get(0).description()); + Assertions.assertEquals("yihztgeqmg", model.rules().get(0).deploymentId()); + Assertions.assertEquals(1149844590, model.rules().get(0).trafficPercentage()); } } 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 faf0d5cbf1d5..868484a517fb 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\":\"None\",\"type\":\"None\",\"clientId\":\"eqyj\",\"principalId\":\"eziunjxdfzant\",\"tenantId\":\"wcegyamlbn\",\"subject\":\"qa\",\"provisioningState\":\"Deleting\"}") + "{\"kind\":\"None\",\"type\":\"None\",\"clientId\":\"vmaonurjt\",\"principalId\":\"mghihp\",\"tenantId\":\"ecmslclbl\",\"subject\":\"xltbsjuscvsf\",\"provisioningState\":\"Canceled\"}") .toObject(AssignedIdentity.class); Assertions.assertEquals(IdentityKind.NONE, model.kind()); Assertions.assertEquals(IdentityManagementType.NONE, model.type()); - Assertions.assertEquals("eqyj", model.clientId()); - Assertions.assertEquals("eziunjxdfzant", model.principalId()); - Assertions.assertEquals("wcegyamlbn", model.tenantId()); - Assertions.assertEquals("qa", model.subject()); + Assertions.assertEquals("vmaonurjt", model.clientId()); + Assertions.assertEquals("mghihp", model.principalId()); + Assertions.assertEquals("ecmslclbl", model.tenantId()); + Assertions.assertEquals("xltbsjuscvsf", model.subject()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AssignedIdentity model = new AssignedIdentity().withKind(IdentityKind.NONE) .withType(IdentityManagementType.NONE) - .withClientId("eqyj") - .withPrincipalId("eziunjxdfzant") - .withTenantId("wcegyamlbn") - .withSubject("qa"); + .withClientId("vmaonurjt") + .withPrincipalId("mghihp") + .withTenantId("ecmslclbl") + .withSubject("xltbsjuscvsf"); model = BinaryData.fromObject(model).toObject(AssignedIdentity.class); Assertions.assertEquals(IdentityKind.NONE, model.kind()); Assertions.assertEquals(IdentityManagementType.NONE, model.type()); - Assertions.assertEquals("eqyj", model.clientId()); - Assertions.assertEquals("eziunjxdfzant", model.principalId()); - Assertions.assertEquals("wcegyamlbn", model.tenantId()); - Assertions.assertEquals("qa", model.subject()); + Assertions.assertEquals("vmaonurjt", model.clientId()); + Assertions.assertEquals("mghihp", model.principalId()); + Assertions.assertEquals("ecmslclbl", model.tenantId()); + Assertions.assertEquals("xltbsjuscvsf", model.subject()); } } 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 26ec55674143..4e69e8ae3614 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\":[\"vlgfgg\",\"vkyylizrzbjpsf\",\"sfuztlvtmv\",\"gbwidqlvh\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"eofiz\",\"provisioningState\":\"Deleting\",\"storageConnections\":[\"mjm\",\"lwyzgib\",\"kujrllfojui\",\"jpu\"],\"threadStorageConnections\":[\"ucejikzoeovvtz\",\"je\",\"jklntikyj\",\"zkdbqzolx\"],\"vectorStoreConnections\":[\"hqjwtrhtgvg\",\"pcrrk\",\"lawjmjsmwrok\"],\"enablePublicHostingEnvironment\":true,\"description\":\"zzzwy\",\"tags\":{\"chl\":\"itlhguyn\",\"whmozusgzvlnsnnj\":\"mltx\",\"rag\":\"fpafolpymwamxq\",\"vl\":\"gdphtvdula\"}},\"id\":\"c\",\"name\":\"csrlzknmzl\",\"type\":\"nrupdwvnphcnzqtp\"}") + "{\"properties\":{\"aiServicesConnections\":[\"sruqnmdvha\",\"c\",\"jy\",\"iqswbqer\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"ytxtdgu\",\"provisioningState\":\"Failed\",\"storageConnections\":[\"ktg\",\"styoua\",\"bewreswmowegmmut\",\"yxey\"],\"threadStorageConnections\":[\"igijiitnspxlz\",\"es\",\"grijwaiufanrayb\",\"ueqfrojsyd\"],\"vectorStoreConnections\":[\"ydkygywezskieca\"],\"enablePublicHostingEnvironment\":false,\"description\":\"m\",\"tags\":{\"smaklixqcahy\":\"qv\",\"tblxpkkwjdjodqhy\":\"xalybxawoijpo\"}},\"id\":\"ncn\",\"name\":\"emehllizh\",\"type\":\"eumoqod\"}") .toObject(CapabilityHostInner.class); - Assertions.assertEquals("zzzwy", model.properties().description()); - Assertions.assertEquals("itlhguyn", model.properties().tags().get("chl")); - Assertions.assertEquals("vlgfgg", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("m", model.properties().description()); + Assertions.assertEquals("qv", model.properties().tags().get("smaklixqcahy")); + Assertions.assertEquals("sruqnmdvha", model.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.properties().capabilityHostKind()); - Assertions.assertEquals("eofiz", model.properties().customerSubnet()); - Assertions.assertEquals("mjm", model.properties().storageConnections().get(0)); - Assertions.assertEquals("ucejikzoeovvtz", model.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("hqjwtrhtgvg", model.properties().vectorStoreConnections().get(0)); - Assertions.assertTrue(model.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("ytxtdgu", model.properties().customerSubnet()); + Assertions.assertEquals("ktg", model.properties().storageConnections().get(0)); + Assertions.assertEquals("igijiitnspxlz", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("ydkygywezskieca", model.properties().vectorStoreConnections().get(0)); + Assertions.assertFalse(model.properties().enablePublicHostingEnvironment()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapabilityHostInner model = new CapabilityHostInner().withProperties(new CapabilityHostProperties() - .withDescription("zzzwy") - .withTags(mapOf("chl", "itlhguyn", "whmozusgzvlnsnnj", "mltx", "rag", "fpafolpymwamxq", "vl", "gdphtvdula")) - .withAiServicesConnections(Arrays.asList("vlgfgg", "vkyylizrzbjpsf", "sfuztlvtmv", "gbwidqlvh")) - .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("eofiz") - .withStorageConnections(Arrays.asList("mjm", "lwyzgib", "kujrllfojui", "jpu")) - .withThreadStorageConnections(Arrays.asList("ucejikzoeovvtz", "je", "jklntikyj", "zkdbqzolx")) - .withVectorStoreConnections(Arrays.asList("hqjwtrhtgvg", "pcrrk", "lawjmjsmwrok")) - .withEnablePublicHostingEnvironment(true)); + CapabilityHostInner model + = new CapabilityHostInner().withProperties(new CapabilityHostProperties().withDescription("m") + .withTags(mapOf("smaklixqcahy", "qv", "tblxpkkwjdjodqhy", "xalybxawoijpo")) + .withAiServicesConnections(Arrays.asList("sruqnmdvha", "c", "jy", "iqswbqer")) + .withCapabilityHostKind(CapabilityHostKind.AGENTS) + .withCustomerSubnet("ytxtdgu") + .withStorageConnections(Arrays.asList("ktg", "styoua", "bewreswmowegmmut", "yxey")) + .withThreadStorageConnections(Arrays.asList("igijiitnspxlz", "es", "grijwaiufanrayb", "ueqfrojsyd")) + .withVectorStoreConnections(Arrays.asList("ydkygywezskieca")) + .withEnablePublicHostingEnvironment(false)); model = BinaryData.fromObject(model).toObject(CapabilityHostInner.class); - Assertions.assertEquals("zzzwy", model.properties().description()); - Assertions.assertEquals("itlhguyn", model.properties().tags().get("chl")); - Assertions.assertEquals("vlgfgg", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("m", model.properties().description()); + Assertions.assertEquals("qv", model.properties().tags().get("smaklixqcahy")); + Assertions.assertEquals("sruqnmdvha", model.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.properties().capabilityHostKind()); - Assertions.assertEquals("eofiz", model.properties().customerSubnet()); - Assertions.assertEquals("mjm", model.properties().storageConnections().get(0)); - Assertions.assertEquals("ucejikzoeovvtz", model.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("hqjwtrhtgvg", model.properties().vectorStoreConnections().get(0)); - Assertions.assertTrue(model.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("ytxtdgu", model.properties().customerSubnet()); + Assertions.assertEquals("ktg", model.properties().storageConnections().get(0)); + Assertions.assertEquals("igijiitnspxlz", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("ydkygywezskieca", model.properties().vectorStoreConnections().get(0)); + Assertions.assertFalse(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 53eeae0fb188..5264186deb01 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,41 +16,40 @@ public final class CapabilityHostPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapabilityHostProperties model = BinaryData.fromString( - "{\"aiServicesConnections\":[\"qrhvthlaiwdcxsml\",\"zhzdtxetlgydlhqv\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"xybafiqgea\",\"provisioningState\":\"Failed\",\"storageConnections\":[\"ekglklb\",\"ulidwc\",\"vmzegj\"],\"threadStorageConnections\":[\"hj\",\"rwgdnqzbrfks\",\"zhzmtksjci\",\"digsxcdgl\"],\"vectorStoreConnections\":[\"keuachtomf\",\"rytswfpf\"],\"enablePublicHostingEnvironment\":true,\"description\":\"cxnmskwhqjjyslu\",\"tags\":{\"slsrhmpq\":\"shhkvpedw\",\"dcbrwimuvq\":\"wwsko\",\"a\":\"josovyrrl\",\"hcecybmrqbr\":\"sinuqtljqobbpih\"}}") + "{\"aiServicesConnections\":[\"ppyi\",\"ngqladywrx\",\"hydt\",\"uvvadswzsnu\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"owuowh\",\"provisioningState\":\"Failed\",\"storageConnections\":[\"y\",\"mouvbl\"],\"threadStorageConnections\":[\"kzkltrfowt\",\"vrfmvlihcvjd\"],\"vectorStoreConnections\":[\"rjidhftukvhdxl\",\"yojbfqzdkf\",\"jyixhaf\"],\"enablePublicHostingEnvironment\":false,\"description\":\"xmbjroum\",\"tags\":{\"jtpusllywpvtiotz\":\"valqjrhuzgfxo\"}}") .toObject(CapabilityHostProperties.class); - Assertions.assertEquals("cxnmskwhqjjyslu", model.description()); - Assertions.assertEquals("shhkvpedw", model.tags().get("slsrhmpq")); - Assertions.assertEquals("qrhvthlaiwdcxsml", model.aiServicesConnections().get(0)); + Assertions.assertEquals("xmbjroum", model.description()); + Assertions.assertEquals("valqjrhuzgfxo", model.tags().get("jtpusllywpvtiotz")); + Assertions.assertEquals("ppyi", model.aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.capabilityHostKind()); - Assertions.assertEquals("xybafiqgea", model.customerSubnet()); - Assertions.assertEquals("ekglklb", model.storageConnections().get(0)); - Assertions.assertEquals("hj", model.threadStorageConnections().get(0)); - Assertions.assertEquals("keuachtomf", model.vectorStoreConnections().get(0)); - Assertions.assertTrue(model.enablePublicHostingEnvironment()); + Assertions.assertEquals("owuowh", model.customerSubnet()); + Assertions.assertEquals("y", model.storageConnections().get(0)); + Assertions.assertEquals("kzkltrfowt", model.threadStorageConnections().get(0)); + Assertions.assertEquals("rjidhftukvhdxl", model.vectorStoreConnections().get(0)); + Assertions.assertFalse(model.enablePublicHostingEnvironment()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapabilityHostProperties model = new CapabilityHostProperties().withDescription("cxnmskwhqjjyslu") - .withTags(mapOf("slsrhmpq", "shhkvpedw", "dcbrwimuvq", "wwsko", "a", "josovyrrl", "hcecybmrqbr", - "sinuqtljqobbpih")) - .withAiServicesConnections(Arrays.asList("qrhvthlaiwdcxsml", "zhzdtxetlgydlhqv")) + CapabilityHostProperties model = new CapabilityHostProperties().withDescription("xmbjroum") + .withTags(mapOf("jtpusllywpvtiotz", "valqjrhuzgfxo")) + .withAiServicesConnections(Arrays.asList("ppyi", "ngqladywrx", "hydt", "uvvadswzsnu")) .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("xybafiqgea") - .withStorageConnections(Arrays.asList("ekglklb", "ulidwc", "vmzegj")) - .withThreadStorageConnections(Arrays.asList("hj", "rwgdnqzbrfks", "zhzmtksjci", "digsxcdgl")) - .withVectorStoreConnections(Arrays.asList("keuachtomf", "rytswfpf")) - .withEnablePublicHostingEnvironment(true); + .withCustomerSubnet("owuowh") + .withStorageConnections(Arrays.asList("y", "mouvbl")) + .withThreadStorageConnections(Arrays.asList("kzkltrfowt", "vrfmvlihcvjd")) + .withVectorStoreConnections(Arrays.asList("rjidhftukvhdxl", "yojbfqzdkf", "jyixhaf")) + .withEnablePublicHostingEnvironment(false); model = BinaryData.fromObject(model).toObject(CapabilityHostProperties.class); - Assertions.assertEquals("cxnmskwhqjjyslu", model.description()); - Assertions.assertEquals("shhkvpedw", model.tags().get("slsrhmpq")); - Assertions.assertEquals("qrhvthlaiwdcxsml", model.aiServicesConnections().get(0)); + Assertions.assertEquals("xmbjroum", model.description()); + Assertions.assertEquals("valqjrhuzgfxo", model.tags().get("jtpusllywpvtiotz")); + Assertions.assertEquals("ppyi", model.aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.capabilityHostKind()); - Assertions.assertEquals("xybafiqgea", model.customerSubnet()); - Assertions.assertEquals("ekglklb", model.storageConnections().get(0)); - Assertions.assertEquals("hj", model.threadStorageConnections().get(0)); - Assertions.assertEquals("keuachtomf", model.vectorStoreConnections().get(0)); - Assertions.assertTrue(model.enablePublicHostingEnvironment()); + Assertions.assertEquals("owuowh", model.customerSubnet()); + Assertions.assertEquals("y", model.storageConnections().get(0)); + Assertions.assertEquals("kzkltrfowt", model.threadStorageConnections().get(0)); + Assertions.assertEquals("rjidhftukvhdxl", 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 d926817030ba..4e53c1705024 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\":\"bmpxdlvykfrexc\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"jksghudg\",\"hxogjggsvoujkxi\",\"dafhr\",\"mdyomkxfbvfbh\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"hpwpgddeimawzovg\",\"provisioningState\":\"Canceled\",\"storageConnections\":[\"ikjcjcazt\"],\"threadStorageConnections\":[\"nsq\",\"wxwcomli\",\"ytwvczcswkacve\"],\"vectorStoreConnections\":[\"dvlvhbwrnfxtgdd\"],\"enablePublicHostingEnvironment\":false,\"description\":\"ehnmnaoyankco\",\"tags\":{\"drlktg\":\"wankltytmhdroznn\",\"waeeczgfb\":\"csgguxhemlw\",\"zujksrlsmdes\":\"kklelssxblycs\"}},\"id\":\"lpvmjcdoewbidy\",\"name\":\"t\",\"type\":\"owx\"},{\"properties\":{\"aiServicesConnections\":[\"iudeu\",\"fsxzecp\",\"xw\",\"ufykhvuhxepmru\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"baobn\",\"provisioningState\":\"Deleting\",\"storageConnections\":[\"jltymkmvguihy\",\"arts\"],\"threadStorageConnections\":[\"kixkykxdssjpemm\",\"cfxhikkflrmy\",\"yincql\"],\"vectorStoreConnections\":[\"s\"],\"enablePublicHostingEnvironment\":false,\"description\":\"iiiovgqcgxuugq\",\"tags\":{\"tjgwdtguk\":\"otiowlxteqd\",\"gygqwah\":\"anblwphqlkccu\",\"gniiprglvaw\":\"iul\",\"pmcubkmifoxxkub\":\"wzdufypivlsbb\"}},\"id\":\"havpmhbrbqgvg\",\"name\":\"vpbbt\",\"type\":\"efjokn\"}]}") + "{\"nextLink\":\"d\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"ryf\",\"iuas\",\"growsoc\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"ygdjboqgrmtqjk\",\"provisioningState\":\"Updating\",\"storageConnections\":[\"rmmwiuawvcmj\",\"kxiidisczskoswo\",\"iqazugamxzkr\",\"coiisbamnppcce\"],\"threadStorageConnections\":[\"tdsbezax\",\"f\"],\"vectorStoreConnections\":[\"xuizhyhnepkpet\",\"arxqiubx\",\"ukecpx\",\"azvdhctmmkosz\"],\"enablePublicHostingEnvironment\":true,\"description\":\"nsntrpcaqki\",\"tags\":{\"ezyquw\":\"btfmhklbnldpvcbh\"}},\"id\":\"qxutrpbrruyuua\",\"name\":\"vlm\",\"type\":\"jwcolbm\"},{\"properties\":{\"aiServicesConnections\":[\"nwtpcpahprz\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"mt\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"xzcmjhngxno\",\"rxtd\"],\"threadStorageConnections\":[\"jevhdlmydidw\",\"epfwwt\",\"f\",\"o\"],\"vectorStoreConnections\":[\"xhmw\",\"dbckyo\",\"kxkxhnegk\"],\"enablePublicHostingEnvironment\":false,\"description\":\"bhtmeplvuk\",\"tags\":{\"jhgem\":\"rlbpgsnbagnc\",\"ywalhjymxcg\":\"owa\"}},\"id\":\"agdrcls\",\"name\":\"ol\",\"type\":\"omevtfycn\"},{\"properties\":{\"aiServicesConnections\":[\"gjco\",\"kk\",\"ji\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"sik\",\"provisioningState\":\"Failed\",\"storageConnections\":[\"fqb\",\"ntnrgmqsorh\",\"ekxgn\"],\"threadStorageConnections\":[\"mxcpwzvmdoks\"],\"vectorStoreConnections\":[\"iw\",\"wxlboncqbazqicq\",\"hygtv\",\"byjanep\"],\"enablePublicHostingEnvironment\":false,\"description\":\"kxyqvgxiaodetv\",\"tags\":{\"nosbz\":\"xdxuwsaifmc\",\"gjyy\":\"ehgcvkbcknjo\",\"xoqeintxwalj\":\"pvelszerqze\",\"ulhmzyq\":\"lzoblqwaafr\"}},\"id\":\"dvaf\",\"name\":\"rqpjiy\",\"type\":\"qjcrgaxwmzwdf\"},{\"properties\":{\"aiServicesConnections\":[\"rzorp\",\"ltbqctqjfgxxsaet\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"vpyigdaqq\",\"provisioningState\":\"Failed\",\"storageConnections\":[\"d\",\"wjoe\",\"xngucaifpaurwwgi\"],\"threadStorageConnections\":[\"qqa\",\"dmkxwxdcvjwcy\",\"iakeciqc\"],\"vectorStoreConnections\":[\"tuicds\"],\"enablePublicHostingEnvironment\":true,\"description\":\"m\",\"tags\":{\"grpxncakiqaondjr\":\"hzzwvywrgyngy\",\"ykglt\":\"clamgglvlmfejdoq\",\"tlgflwfgz\":\"gxhqfgqkayejs\"}},\"id\":\"u\",\"name\":\"ijjcea\",\"type\":\"lijjjrtvam\"}]}") .toObject(CapabilityHostResourceArmPaginatedResult.class); - Assertions.assertEquals("bmpxdlvykfrexc", model.nextLink()); - Assertions.assertEquals("ehnmnaoyankco", model.value().get(0).properties().description()); - Assertions.assertEquals("wankltytmhdroznn", model.value().get(0).properties().tags().get("drlktg")); - Assertions.assertEquals("jksghudg", model.value().get(0).properties().aiServicesConnections().get(0)); + Assertions.assertEquals("d", model.nextLink()); + Assertions.assertEquals("nsntrpcaqki", model.value().get(0).properties().description()); + Assertions.assertEquals("btfmhklbnldpvcbh", model.value().get(0).properties().tags().get("ezyquw")); + Assertions.assertEquals("ryf", model.value().get(0).properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.value().get(0).properties().capabilityHostKind()); - Assertions.assertEquals("hpwpgddeimawzovg", model.value().get(0).properties().customerSubnet()); - Assertions.assertEquals("ikjcjcazt", model.value().get(0).properties().storageConnections().get(0)); - Assertions.assertEquals("nsq", model.value().get(0).properties().threadStorageConnections().get(0)); - Assertions.assertEquals("dvlvhbwrnfxtgdd", model.value().get(0).properties().vectorStoreConnections().get(0)); - Assertions.assertFalse(model.value().get(0).properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("ygdjboqgrmtqjk", model.value().get(0).properties().customerSubnet()); + Assertions.assertEquals("rmmwiuawvcmj", model.value().get(0).properties().storageConnections().get(0)); + Assertions.assertEquals("tdsbezax", model.value().get(0).properties().threadStorageConnections().get(0)); + Assertions.assertEquals("xuizhyhnepkpet", 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/CommitmentCostTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java index 3f760d00fc21..0c067888fa5e 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\":\"zpraoxn\",\"overageMeterId\":\"ffatsgftipw\"}") + = BinaryData.fromString("{\"commitmentMeterId\":\"ympmlqoin\",\"overageMeterId\":\"duewihapfj\"}") .toObject(CommitmentCost.class); - Assertions.assertEquals("zpraoxn", model.commitmentMeterId()); - Assertions.assertEquals("ffatsgftipw", model.overageMeterId()); + Assertions.assertEquals("ympmlqoin", model.commitmentMeterId()); + Assertions.assertEquals("duewihapfj", 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 28ddccd563f1..41f8f726fc0d 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\":\"vtcqaqtdo\",\"count\":1086916273,\"quota\":{\"quantity\":4624012103607353815,\"unit\":\"xyslqbh\"},\"startDate\":\"xoblytkbl\",\"endDate\":\"ewwwfbkrvrnsv\"}") + "{\"tier\":\"mewzsyyc\",\"count\":1576556557,\"quota\":{\"quantity\":893213064865433061,\"unit\":\"ud\"},\"startDate\":\"rx\",\"endDate\":\"thzvaytdwkqbrqu\"}") .toObject(CommitmentPeriod.class); - Assertions.assertEquals("vtcqaqtdo", model.tier()); - Assertions.assertEquals(1086916273, model.count()); + Assertions.assertEquals("mewzsyyc", model.tier()); + Assertions.assertEquals(1576556557, model.count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPeriod model = new CommitmentPeriod().withTier("vtcqaqtdo").withCount(1086916273); + CommitmentPeriod model = new CommitmentPeriod().withTier("mewzsyyc").withCount(1576556557); model = BinaryData.fromObject(model).toObject(CommitmentPeriod.class); - Assertions.assertEquals("vtcqaqtdo", model.tier()); - Assertions.assertEquals(1086916273, model.count()); + Assertions.assertEquals("mewzsyyc", model.tier()); + Assertions.assertEquals(1576556557, 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 c88c804daaca..0b84a50e12c4 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,21 +14,19 @@ public final class CommitmentPlanAccountAssociationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanAccountAssociationInner model = BinaryData.fromString( - "{\"properties\":{\"accountId\":\"xmubyyntwlrbq\"},\"etag\":\"oievseotgqrlltm\",\"tags\":{\"efuzmuvpbttd\":\"auwzizxbmpgc\",\"pglkf\":\"morppxebmnzbtbh\",\"phsdyhto\":\"ohdneuel\",\"v\":\"fikdowwqu\"},\"id\":\"xclvit\",\"name\":\"hqzonosggbhcoh\",\"type\":\"wdsjnkalju\"}") + "{\"properties\":{\"accountId\":\"ab\"},\"etag\":\"systawfsdjp\",\"tags\":{\"jxbkzbzkdvn\":\"p\"},\"id\":\"abudurgk\",\"name\":\"kmokz\",\"type\":\"jjklff\"}") .toObject(CommitmentPlanAccountAssociationInner.class); - Assertions.assertEquals("auwzizxbmpgc", model.tags().get("efuzmuvpbttd")); - Assertions.assertEquals("xmubyyntwlrbq", model.accountId()); + Assertions.assertEquals("p", model.tags().get("jxbkzbzkdvn")); + Assertions.assertEquals("ab", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanAccountAssociationInner model = new CommitmentPlanAccountAssociationInner() - .withTags(mapOf("efuzmuvpbttd", "auwzizxbmpgc", "pglkf", "morppxebmnzbtbh", "phsdyhto", "ohdneuel", "v", - "fikdowwqu")) - .withAccountId("xmubyyntwlrbq"); + CommitmentPlanAccountAssociationInner model + = new CommitmentPlanAccountAssociationInner().withTags(mapOf("jxbkzbzkdvn", "p")).withAccountId("ab"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationInner.class); - Assertions.assertEquals("auwzizxbmpgc", model.tags().get("efuzmuvpbttd")); - Assertions.assertEquals("xmubyyntwlrbq", model.accountId()); + Assertions.assertEquals("p", model.tags().get("jxbkzbzkdvn")); + Assertions.assertEquals("ab", 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 a0161e522302..bce50149cec6 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\":\"gdkz\",\"value\":[{\"properties\":{\"accountId\":\"vhqcrail\"},\"etag\":\"n\",\"tags\":{\"hdlxyjrxsagafcn\":\"uflrwd\",\"apnedgfbcvkc\":\"hgw\",\"pkeqdcvdrhvoo\":\"q\"},\"id\":\"otbobzdopcj\",\"name\":\"vnhdldwmgxcxr\",\"type\":\"lpmutwuoegrpkhj\"},{\"properties\":{\"accountId\":\"yqsluic\"},\"etag\":\"ggkzzlvmbmpa\",\"tags\":{\"yw\":\"dfvue\",\"yhrfouyftaakcpw\":\"bpfvm\",\"nubexk\":\"yzvqt\"},\"id\":\"ksmond\",\"name\":\"mquxvypo\",\"type\":\"gkopkwhojvpajqgx\"},{\"properties\":{\"accountId\":\"ocmbqfqvmkcxoza\"},\"etag\":\"helxprglya\",\"tags\":{\"uejrjxgc\":\"ckcb\",\"i\":\"qibrhosxsdqrhzoy\"},\"id\":\"rq\",\"name\":\"ibahwflus\",\"type\":\"dtmhrkwofyyvoqa\"},{\"properties\":{\"accountId\":\"expbtg\"},\"etag\":\"bwoenwashrt\",\"tags\":{\"jwaa\":\"cnqxwbpokulpi\",\"pqwcciuqgbdbutau\":\"ipqiiobyuqerpq\",\"joxafnndlpi\":\"fbtkuwhhmhyk\"},\"id\":\"koymkcd\",\"name\":\"h\",\"type\":\"pkkpw\"}]}") + "{\"nextLink\":\"gzrf\",\"value\":[{\"properties\":{\"accountId\":\"bizikayuhq\"},\"etag\":\"jbsybbqw\",\"tags\":{\"slthaq\":\"ldgmfpgvmpip\"},\"id\":\"ss\",\"name\":\"wutwbdsre\",\"type\":\"pdrhne\"},{\"properties\":{\"accountId\":\"wqkdwytisibi\"},\"etag\":\"gpikpzimejza\",\"tags\":{\"zonokixrjqci\":\"zxiavrm\",\"szrnwo\":\"gzpfrla\",\"bt\":\"indfpwpjyl\"},\"id\":\"flsjc\",\"name\":\"hszfjvfb\",\"type\":\"ofel\"},{\"properties\":{\"accountId\":\"rqmq\"},\"etag\":\"dvriiiojnal\",\"tags\":{\"ueluqhhahhxvrhmz\":\"kvtvsexso\"},\"id\":\"pjgwwspug\",\"name\":\"ftqsxhqxujxuk\",\"type\":\"dxdigr\"},{\"properties\":{\"accountId\":\"ufzdmsyq\"},\"etag\":\"ihwhbotzingamvpp\",\"tags\":{\"amvdkfwynwcvtbv\":\"zqzudph\",\"pcnp\":\"ayhmtnvyqiatkz\",\"jguq\":\"zcjaesgvvsccy\"},\"id\":\"wygzlvdnkfxusem\",\"name\":\"wzrmuh\",\"type\":\"pfcqdp\"}]}") .toObject(CommitmentPlanAccountAssociationListResult.class); - Assertions.assertEquals("gdkz", model.nextLink()); + Assertions.assertEquals("gzrf", 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 6b874e278059..d757d66b00fd 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\":\"iswac\"}") + CommitmentPlanAccountAssociationProperties model = BinaryData.fromString("{\"accountId\":\"ouw\"}") .toObject(CommitmentPlanAccountAssociationProperties.class); - Assertions.assertEquals("iswac", model.accountId()); + Assertions.assertEquals("ouw", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanAccountAssociationProperties model - = new CommitmentPlanAccountAssociationProperties().withAccountId("iswac"); + = new CommitmentPlanAccountAssociationProperties().withAccountId("ouw"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationProperties.class); - Assertions.assertEquals("iswac", model.accountId()); + Assertions.assertEquals("ouw", 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 adf55a3a16ae..ef4f31114af9 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\":\"Failed\",\"commitmentPlanGuid\":\"bm\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"wpr\",\"current\":{\"tier\":\"veual\",\"count\":194224762,\"quota\":{\"quantity\":5663355853068180050,\"unit\":\"obbc\"},\"startDate\":\"s\",\"endDate\":\"jriplrbpbewtghf\"},\"autoRenew\":true,\"next\":{\"tier\":\"wxzvlvqhjkb\",\"count\":2125596553,\"quota\":{\"quantity\":7757966335492850327,\"unit\":\"iebwwaloayqcgwrt\"},\"startDate\":\"uzgwyzmhtx\",\"endDate\":\"gmtsavjcbpwxqpsr\"},\"last\":{\"tier\":\"tguvriuhp\",\"count\":835302956,\"quota\":{\"quantity\":8091606100814503434,\"unit\":\"tayriwwroyqbex\"},\"startDate\":\"cqibycnojv\",\"endDate\":\"mefqsgzvahapjyzh\"},\"provisioningIssues\":[\"qzcjrvxdj\",\"lmwlxkvugfhzo\"]},\"tags\":{\"nxipeil\":\"jvzunluthnnp\",\"dzumveekg\":\"jzuaejxdultskzbb\",\"bsjyofdx\":\"wozuhkf\"},\"location\":\"us\",\"etag\":\"touwaboekqv\",\"kind\":\"lns\",\"sku\":{\"name\":\"bxwyjsflhhcaa\",\"tier\":\"Premium\",\"size\":\"xisxyawjoyaqcsl\",\"family\":\"pkii\",\"capacity\":983085062},\"id\":\"xznelixhnrztf\",\"name\":\"lhbnxkna\",\"type\":\"aulppggd\"}") + "{\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"d\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"y\",\"current\":{\"tier\":\"gjltdtbnnhado\",\"count\":703261916,\"quota\":{\"quantity\":6607949081134989897,\"unit\":\"hnvpamqgxq\"},\"startDate\":\"ezikywggxkal\",\"endDate\":\"tmelw\"},\"autoRenew\":true,\"next\":{\"tier\":\"cjzkzivgvvcna\",\"count\":2075344266,\"quota\":{\"quantity\":5279516661370439683,\"unit\":\"mueedndrdvstk\"},\"startDate\":\"qtc\",\"endDate\":\"alm\"},\"last\":{\"tier\":\"d\",\"count\":1434664141,\"quota\":{\"quantity\":330039316395651843,\"unit\":\"gpiohgwxrtfudxe\"},\"startDate\":\"gyqagvrvmnpkuk\",\"endDate\":\"i\"},\"provisioningIssues\":[\"lxgwimfnjhf\",\"xw\"]},\"tags\":{\"yfkzik\":\"kkfoqr\"},\"location\":\"aw\",\"etag\":\"a\",\"kind\":\"xwczelpcire\",\"sku\":{\"name\":\"feaenwab\",\"tier\":\"Standard\",\"size\":\"lddxbjhwua\",\"family\":\"oz\",\"capacity\":1294061553},\"id\":\"hyoulpjr\",\"name\":\"xagl\",\"type\":\"vimjwos\"}") .toObject(CommitmentPlanInner.class); - Assertions.assertEquals("bm", model.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.properties().hostingModel()); - Assertions.assertEquals("wpr", model.properties().planType()); - Assertions.assertEquals("veual", model.properties().current().tier()); - Assertions.assertEquals(194224762, model.properties().current().count()); + Assertions.assertEquals("d", model.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, model.properties().hostingModel()); + Assertions.assertEquals("y", model.properties().planType()); + Assertions.assertEquals("gjltdtbnnhado", model.properties().current().tier()); + Assertions.assertEquals(703261916, model.properties().current().count()); Assertions.assertTrue(model.properties().autoRenew()); - Assertions.assertEquals("wxzvlvqhjkb", model.properties().next().tier()); - Assertions.assertEquals(2125596553, model.properties().next().count()); - Assertions.assertEquals("jvzunluthnnp", model.tags().get("nxipeil")); - Assertions.assertEquals("us", model.location()); - Assertions.assertEquals("lns", model.kind()); - Assertions.assertEquals("bxwyjsflhhcaa", model.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, model.sku().tier()); - Assertions.assertEquals("xisxyawjoyaqcsl", model.sku().size()); - Assertions.assertEquals("pkii", model.sku().family()); - Assertions.assertEquals(983085062, model.sku().capacity()); + Assertions.assertEquals("cjzkzivgvvcna", model.properties().next().tier()); + Assertions.assertEquals(2075344266, model.properties().next().count()); + Assertions.assertEquals("kkfoqr", model.tags().get("yfkzik")); + Assertions.assertEquals("aw", model.location()); + Assertions.assertEquals("xwczelpcire", model.kind()); + Assertions.assertEquals("feaenwab", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("lddxbjhwua", model.sku().size()); + Assertions.assertEquals("oz", model.sku().family()); + Assertions.assertEquals(1294061553, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanInner model = new CommitmentPlanInner() - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("bm") - .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) - .withPlanType("wpr") - .withCurrent(new CommitmentPeriod().withTier("veual").withCount(194224762)) + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("d") + .withHostingModel(HostingModel.CONNECTED_CONTAINER) + .withPlanType("y") + .withCurrent(new CommitmentPeriod().withTier("gjltdtbnnhado").withCount(703261916)) .withAutoRenew(true) - .withNext(new CommitmentPeriod().withTier("wxzvlvqhjkb").withCount(2125596553))) - .withTags(mapOf("nxipeil", "jvzunluthnnp", "dzumveekg", "jzuaejxdultskzbb", "bsjyofdx", "wozuhkf")) - .withLocation("us") - .withKind("lns") - .withSku(new Sku().withName("bxwyjsflhhcaa") - .withTier(SkuTier.PREMIUM) - .withSize("xisxyawjoyaqcsl") - .withFamily("pkii") - .withCapacity(983085062)); + .withNext(new CommitmentPeriod().withTier("cjzkzivgvvcna").withCount(2075344266))) + .withTags(mapOf("yfkzik", "kkfoqr")) + .withLocation("aw") + .withKind("xwczelpcire") + .withSku(new Sku().withName("feaenwab") + .withTier(SkuTier.STANDARD) + .withSize("lddxbjhwua") + .withFamily("oz") + .withCapacity(1294061553)); model = BinaryData.fromObject(model).toObject(CommitmentPlanInner.class); - Assertions.assertEquals("bm", model.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.properties().hostingModel()); - Assertions.assertEquals("wpr", model.properties().planType()); - Assertions.assertEquals("veual", model.properties().current().tier()); - Assertions.assertEquals(194224762, model.properties().current().count()); + Assertions.assertEquals("d", model.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, model.properties().hostingModel()); + Assertions.assertEquals("y", model.properties().planType()); + Assertions.assertEquals("gjltdtbnnhado", model.properties().current().tier()); + Assertions.assertEquals(703261916, model.properties().current().count()); Assertions.assertTrue(model.properties().autoRenew()); - Assertions.assertEquals("wxzvlvqhjkb", model.properties().next().tier()); - Assertions.assertEquals(2125596553, model.properties().next().count()); - Assertions.assertEquals("jvzunluthnnp", model.tags().get("nxipeil")); - Assertions.assertEquals("us", model.location()); - Assertions.assertEquals("lns", model.kind()); - Assertions.assertEquals("bxwyjsflhhcaa", model.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, model.sku().tier()); - Assertions.assertEquals("xisxyawjoyaqcsl", model.sku().size()); - Assertions.assertEquals("pkii", model.sku().family()); - Assertions.assertEquals(983085062, model.sku().capacity()); + Assertions.assertEquals("cjzkzivgvvcna", model.properties().next().tier()); + Assertions.assertEquals(2075344266, model.properties().next().count()); + Assertions.assertEquals("kkfoqr", model.tags().get("yfkzik")); + Assertions.assertEquals("aw", model.location()); + Assertions.assertEquals("xwczelpcire", model.kind()); + Assertions.assertEquals("feaenwab", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("lddxbjhwua", model.sku().size()); + Assertions.assertEquals("oz", model.sku().family()); + Assertions.assertEquals(1294061553, 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 7df414a61496..69d1b8dad4c8 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\":\"fovasr\",\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"qfsubcgjbirx\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"srfbjfdtwss\",\"current\":{\"tier\":\"tpvjzbexilzznfqq\",\"count\":1331345486,\"quota\":{\"quantity\":7094978039469356489,\"unit\":\"ruoujmk\"},\"startDate\":\"hwqytj\",\"endDate\":\"bnw\"},\"autoRenew\":true,\"next\":{\"tier\":\"rjerv\",\"count\":662265241,\"quota\":{\"quantity\":1213698298627967983,\"unit\":\"indoygmifthnzd\"},\"startDate\":\"sl\",\"endDate\":\"ayqigynduhav\"},\"last\":{\"tier\":\"kthumaqolbgycdui\",\"count\":1108910411,\"quota\":{\"quantity\":2689162209131114224,\"unit\":\"vaolpsslqlf\"},\"startDate\":\"dnbbglzps\",\"endDate\":\"ydmcwyhzdxssa\"},\"provisioningIssues\":[\"mnvdfzn\",\"daodvxzbncblyl\",\"stdbhhxsrzdzu\",\"erscdntne\"]},\"tags\":{\"tdss\":\"wjmy\",\"tmweriofzpyq\":\"s\",\"hhszh\":\"emwabnet\"},\"location\":\"plvwiwubmwmbes\",\"etag\":\"nkww\",\"kind\":\"pjflcxogao\",\"sku\":{\"name\":\"nzmnsikvm\",\"tier\":\"Premium\",\"size\":\"qqkdltfzxmhhvhgu\",\"family\":\"odkwobd\",\"capacity\":1615373904},\"id\":\"ibqdxbxwakbogqx\",\"name\":\"dlkzgxhuri\",\"type\":\"lbpodxunk\"}]}") + "{\"nextLink\":\"dtiirqt\",\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"uzf\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"yfxrx\",\"current\":{\"tier\":\"ptramxj\",\"count\":576385447,\"quota\":{\"quantity\":3723324689526490155,\"unit\":\"uqlcvydy\"},\"startDate\":\"tdooaoj\",\"endDate\":\"iodkooebwnujhem\"},\"autoRenew\":true,\"next\":{\"tier\":\"kcrodtjinfw\",\"count\":2087401910,\"quota\":{\"quantity\":3850222588525127321,\"unit\":\"jvefkdlfoakggkfp\"},\"startDate\":\"ao\",\"endDate\":\"ulpqblylsyxkqjn\"},\"last\":{\"tier\":\"r\",\"count\":1868480291,\"quota\":{\"quantity\":2466892292618671362,\"unit\":\"sz\"},\"startDate\":\"mpsbzkfzbeyv\",\"endDate\":\"qi\"},\"provisioningIssues\":[\"nvkjjxdxrbuukzcl\",\"wyhmlw\",\"aztz\",\"ofncckwyfzqwhxxb\"]},\"tags\":{\"zfeqztppri\":\"a\"},\"location\":\"xorjaltolmncwsob\",\"etag\":\"csdbnwdcfhuc\",\"kind\":\"pfuvglsbjjca\",\"sku\":{\"name\":\"xbvtvudu\",\"tier\":\"Standard\",\"size\":\"rmrlxqtvcof\",\"family\":\"f\",\"capacity\":2052668715},\"id\":\"jub\",\"name\":\"dknnqvsazn\",\"type\":\"n\"},{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"sgsahmkycgr\",\"hostingModel\":\"Web\",\"planType\":\"uetae\",\"current\":{\"tier\":\"u\",\"count\":1850094254,\"quota\":{\"quantity\":588408385246434864,\"unit\":\"l\"},\"startDate\":\"ab\",\"endDate\":\"oefki\"},\"autoRenew\":true,\"next\":{\"tier\":\"u\",\"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\"}]}") .toObject(CommitmentPlanListResult.class); - Assertions.assertEquals("fovasr", model.nextLink()); + Assertions.assertEquals("dtiirqt", 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 0c399fc42edf..09229d94e173 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\":\"Accepted\",\"commitmentPlanGuid\":\"pnyiropuhp\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"gylgqgitxmedjvcs\",\"current\":{\"tier\":\"qwwncw\",\"count\":538641166,\"quota\":{\"quantity\":4093757027555713253,\"unit\":\"mgucna\"},\"startDate\":\"t\",\"endDate\":\"ellwptfdy\"},\"autoRenew\":true,\"next\":{\"tier\":\"uaceopzfqrhhu\",\"count\":90973381,\"quota\":{\"quantity\":2153963582414311236,\"unit\":\"qxolzdahzx\"},\"startDate\":\"obgbkdmoizp\",\"endDate\":\"tmgrcfbun\"},\"last\":{\"tier\":\"qjhhkxbpv\",\"count\":685095993,\"quota\":{\"quantity\":7625908079442390330,\"unit\":\"yngudivk\"},\"startDate\":\"swbxqz\",\"endDate\":\"zjf\"},\"provisioningIssues\":[\"j\",\"dxxiv\"]}") + "{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"tcs\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"tq\",\"current\":{\"tier\":\"ekkezzikhlyfjh\",\"count\":810404828,\"quota\":{\"quantity\":7706151610770738700,\"unit\":\"unygaeqid\"},\"startDate\":\"fatpxllrxcyjmoa\",\"endDate\":\"uvarmywdmjsjq\"},\"autoRenew\":false,\"next\":{\"tier\":\"x\",\"count\":1337445939,\"quota\":{\"quantity\":1392821821777795777,\"unit\":\"uhpkxkgymar\"},\"startDate\":\"n\",\"endDate\":\"xqugjhkycubedd\"},\"last\":{\"tier\":\"ofwq\",\"count\":761384571,\"quota\":{\"quantity\":7998631817770989072,\"unit\":\"njijpxacqqudf\"},\"startDate\":\"yxbaaabjyvayf\",\"endDate\":\"m\"},\"provisioningIssues\":[\"tuzqogsexne\",\"fdnw\"]}") .toObject(CommitmentPlanProperties.class); - Assertions.assertEquals("pnyiropuhp", model.commitmentPlanGuid()); + Assertions.assertEquals("tcs", model.commitmentPlanGuid()); Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.hostingModel()); - Assertions.assertEquals("gylgqgitxmedjvcs", model.planType()); - Assertions.assertEquals("qwwncw", model.current().tier()); - Assertions.assertEquals(538641166, model.current().count()); - Assertions.assertTrue(model.autoRenew()); - Assertions.assertEquals("uaceopzfqrhhu", model.next().tier()); - Assertions.assertEquals(90973381, model.next().count()); + Assertions.assertEquals("tq", model.planType()); + Assertions.assertEquals("ekkezzikhlyfjh", model.current().tier()); + Assertions.assertEquals(810404828, model.current().count()); + Assertions.assertFalse(model.autoRenew()); + Assertions.assertEquals("x", model.next().tier()); + Assertions.assertEquals(1337445939, model.next().count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanProperties model = new CommitmentPlanProperties().withCommitmentPlanGuid("pnyiropuhp") + CommitmentPlanProperties model = new CommitmentPlanProperties().withCommitmentPlanGuid("tcs") .withHostingModel(HostingModel.PROVISIONED_WEB) - .withPlanType("gylgqgitxmedjvcs") - .withCurrent(new CommitmentPeriod().withTier("qwwncw").withCount(538641166)) - .withAutoRenew(true) - .withNext(new CommitmentPeriod().withTier("uaceopzfqrhhu").withCount(90973381)); + .withPlanType("tq") + .withCurrent(new CommitmentPeriod().withTier("ekkezzikhlyfjh").withCount(810404828)) + .withAutoRenew(false) + .withNext(new CommitmentPeriod().withTier("x").withCount(1337445939)); model = BinaryData.fromObject(model).toObject(CommitmentPlanProperties.class); - Assertions.assertEquals("pnyiropuhp", model.commitmentPlanGuid()); + Assertions.assertEquals("tcs", model.commitmentPlanGuid()); Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.hostingModel()); - Assertions.assertEquals("gylgqgitxmedjvcs", model.planType()); - Assertions.assertEquals("qwwncw", model.current().tier()); - Assertions.assertEquals(538641166, model.current().count()); - Assertions.assertTrue(model.autoRenew()); - Assertions.assertEquals("uaceopzfqrhhu", model.next().tier()); - Assertions.assertEquals(90973381, model.next().count()); + Assertions.assertEquals("tq", model.planType()); + Assertions.assertEquals("ekkezzikhlyfjh", model.current().tier()); + Assertions.assertEquals(810404828, model.current().count()); + Assertions.assertFalse(model.autoRenew()); + Assertions.assertEquals("x", model.next().tier()); + Assertions.assertEquals(1337445939, 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 41ab81cc5daf..d784ee001b56 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\":\"aqidoyzltgiomqo\"},\"etag\":\"epiaeapfsergd\",\"tags\":{\"b\":\"qnacyheq\"},\"id\":\"qncjubkhjozfymcw\",\"name\":\"bupyv\",\"type\":\"yvliq\"}"; + = "{\"properties\":{\"accountId\":\"ooyvhtuqbpeln\"},\"etag\":\"bncgagdvcdqhftzb\",\"tags\":{\"fdfp\":\"a\",\"zdcqhyftcvb\":\"tncwmhjobzrfpr\"},\"id\":\"gwhgkgsoau\",\"name\":\"orssatfyb\",\"type\":\"pufdmxuqbdqn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testCreateOrUpdateAssociation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlanAccountAssociation response = manager.commitmentPlans() - .defineAssociation("flr") - .withExistingCommitmentPlan("mihzbdnpxp", "cdpreyxelyicg") - .withTags(mapOf("landkdcdjhunhgh", "cpdwjgquxwey", "sotirei", "gawnrrnquo", "sxstcyilbvzmm", "seob", "b", - "cjzlquzexokjxebj")) - .withAccountId("sjygh") + .defineAssociation("fjnqjsvepf") + .withExistingCommitmentPlan("jymncjcagai", "wcqzo") + .withTags(mapOf("ycpnowaw", "kdnjrxgkrhwie", "bjzm", "noehrguqlhfwa", "cbygvthrmx", "yrguyfazbk", + "wwdxomrawp", "bc")) + .withAccountId("l") .create(); - Assertions.assertEquals("qnacyheq", response.tags().get("b")); - Assertions.assertEquals("aqidoyzltgiomqo", response.accountId()); + Assertions.assertEquals("a", response.tags().get("fdfp")); + Assertions.assertEquals("ooyvhtuqbpeln", 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 5749f776c75b..9a1aebcd20a7 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\":\"ionsw\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"zfz\",\"current\":{\"tier\":\"oshohtotrye\",\"count\":1408334415,\"quota\":{\"quantity\":1693678049976747794,\"unit\":\"xznlwkbfokxk\"},\"startDate\":\"p\",\"endDate\":\"rufgjblcdrmyfcem\"},\"autoRenew\":true,\"next\":{\"tier\":\"ykyalugek\",\"count\":1529929738,\"quota\":{\"quantity\":3321786969285103938,\"unit\":\"do\"},\"startDate\":\"czfjjnn\",\"endDate\":\"xrkkmhmnul\"},\"last\":{\"tier\":\"pdcifrhju\",\"count\":567721295,\"quota\":{\"quantity\":1689972320899752288,\"unit\":\"flu\"},\"startDate\":\"awmhh\",\"endDate\":\"ot\"},\"provisioningIssues\":[\"yrgkoekv\",\"wxxyxhighctx\"]},\"tags\":{\"zdfrjeizikgq\":\"olpcqydeykvski\",\"ycqsxr\":\"boohxbms\",\"ewuyqa\":\"d\"},\"location\":\"hpjhge\",\"etag\":\"bvhhdaurgh\",\"kind\":\"xaex\",\"sku\":{\"name\":\"hxjxjoezlqxrkdkn\",\"tier\":\"Basic\",\"size\":\"ktmbozomtzami\",\"family\":\"igwcdgzsezn\",\"capacity\":1589753042},\"id\":\"uairaabmdlqjb\",\"name\":\"dp\",\"type\":\"ixlhupm\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"bl\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"bmwhrialiwr\",\"current\":{\"tier\":\"nwplrr\",\"count\":363190315,\"quota\":{\"quantity\":3619708080067476372,\"unit\":\"ibticuhqv\"},\"startDate\":\"spbfsfeqbbewfc\",\"endDate\":\"fpyyxmzrmtm\"},\"autoRenew\":false,\"next\":{\"tier\":\"we\",\"count\":1931320869,\"quota\":{\"quantity\":6714176146741083693,\"unit\":\"w\"},\"startDate\":\"ppoxprcmv\",\"endDate\":\"ujx\"},\"last\":{\"tier\":\"kmoxrezsv\",\"count\":1518144879,\"quota\":{\"quantity\":2562107245540471913,\"unit\":\"moywlu\"},\"startDate\":\"ip\",\"endDate\":\"ybszfncnpatpf\"},\"provisioningIssues\":[\"ebwf\",\"hxorpwaltzwu\",\"exojfccy\",\"h\"]},\"tags\":{\"xcdrzprobzzxezm\":\"thvazjpw\",\"jeuxsphlo\":\"rkjg\",\"ufvcgnrgl\":\"fpmijpdvzvfbhwbd\"},\"location\":\"rwyambhbafebzxfk\",\"etag\":\"utibhlen\",\"kind\":\"rvrk\",\"sku\":{\"name\":\"abdu\",\"tier\":\"Free\",\"size\":\"lghnysvlp\",\"family\":\"uukppdixqb\",\"capacity\":1641876259},\"id\":\"hhyq\",\"name\":\"egatxgrznm\",\"type\":\"inmtsdixchwkibm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,40 +38,41 @@ public void testCreateOrUpdatePlan() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .definePlan("ci") - .withExistingResourceGroup("h") - .withRegion("j") - .withTags(mapOf("rzztrk", "inmzvfkne")) - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("btb") - .withHostingModel(HostingModel.WEB) - .withPlanType("hsqhtf") - .withCurrent(new CommitmentPeriod().withTier("qbyeju").withCount(1230805937)) - .withAutoRenew(true) - .withNext(new CommitmentPeriod().withTier("kfmkhcqtwmlmhjn").withCount(518425166))) - .withKind("hkeizcp") - .withSku(new Sku().withName("tdmiwjekptyca") - .withTier(SkuTier.ENTERPRISE) - .withSize("zcqymlcfn") - .withFamily("mhsurlgwqkpmm") - .withCapacity(262379682)) + .definePlan("wqhdgsjsa") + .withExistingResourceGroup("yigfcvcew") + .withRegion("ia") + .withTags(mapOf("alec", "etxdqcmyctajqzj", "egyxsbfpzvoik", "bibiwks", "pblalhhez", "ntwczfzwushlc", + "qdsgptotxj", "fkissaidqzsaa")) + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("mazdfsqxh") + .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) + .withPlanType("ejparn") + .withCurrent(new CommitmentPeriod().withTier("rsz").withCount(1850584063)) + .withAutoRenew(false) + .withNext(new CommitmentPeriod().withTier("ulz").withCount(2111883002))) + .withKind("o") + .withSku(new Sku().withName("olbuauktwieope") + .withTier(SkuTier.FREE) + .withSize("qd") + .withFamily("swyiljpibkgxyxy") + .withCapacity(573332541)) .create(); - Assertions.assertEquals("ionsw", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("zfz", response.properties().planType()); - Assertions.assertEquals("oshohtotrye", response.properties().current().tier()); - Assertions.assertEquals(1408334415, response.properties().current().count()); - Assertions.assertTrue(response.properties().autoRenew()); - Assertions.assertEquals("ykyalugek", response.properties().next().tier()); - Assertions.assertEquals(1529929738, response.properties().next().count()); - Assertions.assertEquals("olpcqydeykvski", response.tags().get("zdfrjeizikgq")); - Assertions.assertEquals("hpjhge", response.location()); - Assertions.assertEquals("xaex", response.kind()); - Assertions.assertEquals("hxjxjoezlqxrkdkn", response.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); - Assertions.assertEquals("ktmbozomtzami", response.sku().size()); - Assertions.assertEquals("igwcdgzsezn", response.sku().family()); - Assertions.assertEquals(1589753042, response.sku().capacity()); + Assertions.assertEquals("bl", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); + Assertions.assertEquals("bmwhrialiwr", response.properties().planType()); + Assertions.assertEquals("nwplrr", response.properties().current().tier()); + Assertions.assertEquals(363190315, response.properties().current().count()); + Assertions.assertFalse(response.properties().autoRenew()); + Assertions.assertEquals("we", response.properties().next().tier()); + Assertions.assertEquals(1931320869, response.properties().next().count()); + Assertions.assertEquals("thvazjpw", response.tags().get("xcdrzprobzzxezm")); + Assertions.assertEquals("rwyambhbafebzxfk", response.location()); + Assertions.assertEquals("rvrk", response.kind()); + Assertions.assertEquals("abdu", response.sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.sku().tier()); + Assertions.assertEquals("lghnysvlp", response.sku().size()); + Assertions.assertEquals("uukppdixqb", response.sku().family()); + Assertions.assertEquals(1641876259, 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 0daf73d6f139..cc773ec7a0cf 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\":\"Moving\",\"commitmentPlanGuid\":\"knpdgzigjsu\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"gsaodkwwnbafocto\",\"current\":{\"tier\":\"aquvwsxbgnvkervq\",\"count\":480076107,\"quota\":{\"quantity\":8722375589254602062,\"unit\":\"xq\"},\"startDate\":\"vspabdsrgfajgl\",\"endDate\":\"subklr\"},\"autoRenew\":true,\"next\":{\"tier\":\"tcetjdv\",\"count\":979592585,\"quota\":{\"quantity\":507858598958467380,\"unit\":\"wa\"},\"startDate\":\"wdxvqzxoebwg\",\"endDate\":\"bibanbau\"},\"last\":{\"tier\":\"zvpaklozkxbzrpej\",\"count\":1675664482,\"quota\":{\"quantity\":2703638878108010095,\"unit\":\"ttkgsux\"},\"startDate\":\"rswgkpjhboyikeb\",\"endDate\":\"hkslgwlokhueoij\"},\"provisioningIssues\":[\"qypzqzufgs\",\"fejyvdwtfxptpqa\"]},\"tags\":{\"cf\":\"k\",\"nxocuul\":\"ybmx\",\"wwdjuxdbdl\":\"ojkpoyh\",\"zlrqhbjnqogdx\":\"zgdyrcvuqbs\"},\"location\":\"sfpyxx\",\"etag\":\"lflec\",\"kind\":\"inxojjlux\",\"sku\":{\"name\":\"hilzzdzzq\",\"tier\":\"Enterprise\",\"size\":\"za\",\"family\":\"vribqlotokht\",\"capacity\":1774764181},\"id\":\"znkcqwwxwjy\",\"name\":\"fgwhnkbtlwljs\",\"type\":\"mctsnldkpwo\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"commitmentPlanGuid\":\"ltwmpftmf\",\"hostingModel\":\"Web\",\"planType\":\"og\",\"current\":{\"tier\":\"wetamfddrvlk\",\"count\":2022946719,\"quota\":{\"quantity\":2674230422967727743,\"unit\":\"cc\"},\"startDate\":\"id\",\"endDate\":\"uhkahm\"},\"autoRenew\":true,\"next\":{\"tier\":\"ucvkhhwmjpjbw\",\"count\":430534456,\"quota\":{\"quantity\":2547380701879771636,\"unit\":\"ihufoihp\"},\"startDate\":\"ybxvgn\",\"endDate\":\"zpbgkzc\"},\"last\":{\"tier\":\"iuzvkunhdimju\",\"count\":846291227,\"quota\":{\"quantity\":8437755461134993309,\"unit\":\"gpucdocfq\"},\"startDate\":\"wgofmhx\",\"endDate\":\"jlvzklk\"},\"provisioningIssues\":[\"ikyjtkakvlb\",\"shjvpzaptuoskaoi\",\"jixwfgc\"]},\"tags\":{\"tmdmuqohhihr\":\"kkcxwnujvqynvav\"},\"location\":\"quddrwjclj\",\"etag\":\"hlhpvzadb\",\"kind\":\"nnin\",\"sku\":{\"name\":\"h\",\"tier\":\"Basic\",\"size\":\"rmvzti\",\"family\":\"wviq\",\"capacity\":946427374},\"id\":\"hkrcqx\",\"name\":\"cbvzarmqcb\",\"type\":\"okstsinvagovjyh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,43 +38,42 @@ public void testCreateOrUpdateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - CommitmentPlan response - = manager.commitmentPlans() - .createOrUpdateWithResponse("gdxzvsgeafgfoseh", "lzsxezppkk", "aaeskyfjlpze", new CommitmentPlanInner() - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("plixlajmllpqu") + CommitmentPlan response = manager.commitmentPlans() + .createOrUpdateWithResponse("lfdxaglz", "ytlbtlqhopxouvm", "siflikyypzkgxf", + new CommitmentPlanInner() + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("qsdb") .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) - .withPlanType("mfowgwbtmkek") - .withCurrent(new CommitmentPeriod().withTier("zwaqxofqo").withCount(710423277)) + .withPlanType("zanmhwgpter") + .withCurrent(new CommitmentPeriod().withTier("wki").withCount(778791021)) .withAutoRenew(true) - .withNext(new CommitmentPeriod().withTier("a").withCount(1632010745))) - .withTags( - mapOf("rexxfavs", "taadu", "l", "wudohzilfm", "bh", "kpsimsfeypofqp", "mttjxophgerh", "qgsdr")) - .withLocation("vgohtw") - .withKind("sqywwwmhkru") - .withSku(new Sku().withName("edrympmlqo") - .withTier(SkuTier.BASIC) - .withSize("duewihapfj") - .withFamily("knjdiqfliejhp") - .withCapacity(534508387)), - com.azure.core.util.Context.NONE) - .getValue(); + .withNext(new CommitmentPeriod().withTier("yybzoxlvoc").withCount(137130903))) + .withTags(mapOf("lnfyzav", "p", "dbkp", "rbypi", "njhx", "jtaqhsmqazpdg")) + .withLocation("thmgpczqulp") + .withKind("qbtimpk") + .withSku(new Sku().withName("lornsihqh") + .withTier(SkuTier.ENTERPRISE) + .withSize("usuaa") + .withFamily("akx") + .withCapacity(1468364970)), + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("knpdgzigjsu", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("gsaodkwwnbafocto", response.properties().planType()); - Assertions.assertEquals("aquvwsxbgnvkervq", response.properties().current().tier()); - Assertions.assertEquals(480076107, response.properties().current().count()); + Assertions.assertEquals("ltwmpftmf", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.WEB, response.properties().hostingModel()); + Assertions.assertEquals("og", response.properties().planType()); + Assertions.assertEquals("wetamfddrvlk", response.properties().current().tier()); + Assertions.assertEquals(2022946719, response.properties().current().count()); Assertions.assertTrue(response.properties().autoRenew()); - Assertions.assertEquals("tcetjdv", response.properties().next().tier()); - Assertions.assertEquals(979592585, response.properties().next().count()); - Assertions.assertEquals("k", response.tags().get("cf")); - Assertions.assertEquals("sfpyxx", response.location()); - Assertions.assertEquals("inxojjlux", response.kind()); - Assertions.assertEquals("hilzzdzzq", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("za", response.sku().size()); - Assertions.assertEquals("vribqlotokht", response.sku().family()); - Assertions.assertEquals(1774764181, response.sku().capacity()); + Assertions.assertEquals("ucvkhhwmjpjbw", response.properties().next().tier()); + Assertions.assertEquals(430534456, response.properties().next().count()); + Assertions.assertEquals("kkcxwnujvqynvav", response.tags().get("tmdmuqohhihr")); + Assertions.assertEquals("quddrwjclj", response.location()); + Assertions.assertEquals("nnin", response.kind()); + Assertions.assertEquals("h", response.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); + Assertions.assertEquals("rmvzti", response.sku().size()); + Assertions.assertEquals("wviq", response.sku().family()); + Assertions.assertEquals(946427374, 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 f2b6cabc5be5..c8220820a63f 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("qicladv", "tdavuqmcbymsfobj", "quvjez", com.azure.core.util.Context.NONE); + .deleteAssociation("gxfqpan", "ceov", "gzwhsxyrujmtik", 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 6c83a25c947f..68a2e7005e44 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("gisubxbt", "ogfg", "iijrykwlefksxq", com.azure.core.util.Context.NONE); + manager.commitmentPlans().delete("rxbrdv", "ehqwhitxnmxgn", "guzbuw", 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 4fe80615947f..627c62dcbff9 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("gomtm", "zwxuqgovsx", com.azure.core.util.Context.NONE); + manager.commitmentPlans().deletePlan("qs", "eiihfymko", 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 62c97decf60b..6b80f6a35dcb 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\":\"axyxzlbciphm\"},\"etag\":\"x\",\"tags\":{\"vonfeeqgpkr\":\"rndktx\",\"gnixxowwzkyfwnw\":\"et\",\"ldmaxxijvskwsdgk\":\"iwxeiicrmpep\"},\"id\":\"yacwrasekwefc\",\"name\":\"o\",\"type\":\"nwoqartwy\"}"; + = "{\"properties\":{\"accountId\":\"nglpwsada\"},\"etag\":\"sumxpezcoioyj\",\"tags\":{\"dcnwmywxfq\":\"qzwqdnxke\",\"dbmp\":\"kvemyzdpczaqpqi\",\"uisamona\":\"rwtx\"},\"id\":\"izexroqsqj\",\"name\":\"hrmt\",\"type\":\"splwsttxs\"}"; 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("greohtwhlpuzjp", "eezn", "angp", com.azure.core.util.Context.NONE) + .getAssociationWithResponse("wwtrjm", "qkvyhzokpoyuohu", "nsnaajphmp", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("rndktx", response.tags().get("vonfeeqgpkr")); - Assertions.assertEquals("axyxzlbciphm", response.accountId()); + Assertions.assertEquals("qzwqdnxke", response.tags().get("dcnwmywxfq")); + Assertions.assertEquals("nglpwsada", 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 3fc0d33f278f..cc86368e7a8c 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\":\"Deleting\",\"commitmentPlanGuid\":\"wmewjzlpyk\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"zwjcaye\",\"current\":{\"tier\":\"ransyby\",\"count\":505447467,\"quota\":{\"quantity\":2605753019781701475,\"unit\":\"hsrleinkfs\"},\"startDate\":\"fncjwvua\",\"endDate\":\"qwtltngvmreupt\"},\"autoRenew\":true,\"next\":{\"tier\":\"ijajwolx\",\"count\":1674481781,\"quota\":{\"quantity\":869512553635843750,\"unit\":\"ynwlslrcigtzjcv\"},\"startDate\":\"qlapsnsso\",\"endDate\":\"xpavid\"},\"last\":{\"tier\":\"vwffcvvyezslp\",\"count\":1342040722,\"quota\":{\"quantity\":6792059967477769082,\"unit\":\"alpnp\"},\"startDate\":\"trkxgpazwu\",\"endDate\":\"yqvnjobfe\"},\"provisioningIssues\":[\"diuhzzgql\",\"faewzgiudjpxpq\",\"ttqhnmhkrezsds\"]},\"tags\":{\"nymmqgwokmikpa\":\"eqdgcruxsp\",\"fdvhaxdvwzae\":\"fbmjxuvji\"},\"location\":\"phth\",\"etag\":\"lmv\",\"kind\":\"atl\",\"sku\":{\"name\":\"fqoixwgiksbbvt\",\"tier\":\"Basic\",\"size\":\"p\",\"family\":\"wp\",\"capacity\":1271174821},\"id\":\"jtnhtukfac\",\"name\":\"hmbfntumeezbxv\",\"type\":\"xbnuvwcga\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"xcouzfwofwak\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"dtzxsoe\",\"current\":{\"tier\":\"wglihezomu\",\"count\":1614778568,\"quota\":{\"quantity\":4504391642021277104,\"unit\":\"onetbzdrdpue\"},\"startDate\":\"kgtlzl\",\"endDate\":\"rlxcznnhz\"},\"autoRenew\":false,\"next\":{\"tier\":\"xlxmwtygeqzusi\",\"count\":1377733869,\"quota\":{\"quantity\":2093081649884286743,\"unit\":\"gbjmlr\"},\"startDate\":\"srfwsszvlcwl\",\"endDate\":\"olntfx\"},\"last\":{\"tier\":\"qmipfj\",\"count\":1996694399,\"quota\":{\"quantity\":1058111154593488484,\"unit\":\"s\"},\"startDate\":\"xbaizab\",\"endDate\":\"nvgskjtoxjd\"},\"provisioningIssues\":[\"jznvhxqqmq\",\"paydhfn\"]},\"tags\":{\"hksnyzmspamwbw\":\"xmtf\"},\"location\":\"nlslcef\",\"etag\":\"d\",\"kind\":\"wtkvi\",\"sku\":{\"name\":\"pfliwo\",\"tier\":\"Standard\",\"size\":\"uzhwvladpcmhjhau\",\"family\":\"b\",\"capacity\":612368052},\"id\":\"m\",\"name\":\"fztsi\",\"type\":\"sc\"}"; 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("dculregp", "tmojhvrztnvgyshq", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("kbwg", "jgrulcfogxhcxnwj", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wmewjzlpyk", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("zwjcaye", response.properties().planType()); - Assertions.assertEquals("ransyby", response.properties().current().tier()); - Assertions.assertEquals(505447467, response.properties().current().count()); - Assertions.assertTrue(response.properties().autoRenew()); - Assertions.assertEquals("ijajwolx", response.properties().next().tier()); - Assertions.assertEquals(1674481781, response.properties().next().count()); - Assertions.assertEquals("eqdgcruxsp", response.tags().get("nymmqgwokmikpa")); - Assertions.assertEquals("phth", response.location()); - Assertions.assertEquals("atl", response.kind()); - Assertions.assertEquals("fqoixwgiksbbvt", response.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); - Assertions.assertEquals("p", response.sku().size()); - Assertions.assertEquals("wp", response.sku().family()); - Assertions.assertEquals(1271174821, response.sku().capacity()); + Assertions.assertEquals("xcouzfwofwak", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); + Assertions.assertEquals("dtzxsoe", response.properties().planType()); + Assertions.assertEquals("wglihezomu", response.properties().current().tier()); + Assertions.assertEquals(1614778568, response.properties().current().count()); + Assertions.assertFalse(response.properties().autoRenew()); + Assertions.assertEquals("xlxmwtygeqzusi", response.properties().next().tier()); + Assertions.assertEquals(1377733869, response.properties().next().count()); + Assertions.assertEquals("xmtf", response.tags().get("hksnyzmspamwbw")); + Assertions.assertEquals("nlslcef", response.location()); + Assertions.assertEquals("wtkvi", response.kind()); + Assertions.assertEquals("pfliwo", response.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, response.sku().tier()); + Assertions.assertEquals("uzhwvladpcmhjhau", response.sku().size()); + Assertions.assertEquals("b", response.sku().family()); + Assertions.assertEquals(612368052, 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 bd5815c99bf7..4e9cf363eb37 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\":\"Moving\",\"commitmentPlanGuid\":\"ywltmfwobbjwhlwy\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"zocrdzgczeu\",\"current\":{\"tier\":\"xdncaqtt\",\"count\":695245912,\"quota\":{\"quantity\":7957955637471454458,\"unit\":\"nyttzgix\"},\"startDate\":\"rihl\",\"endDate\":\"gbehlqtxnr\"},\"autoRenew\":true,\"next\":{\"tier\":\"rndpgfjodhdaqotw\",\"count\":1325610771,\"quota\":{\"quantity\":2052031271991073529,\"unit\":\"abvcipowzaf\"},\"startDate\":\"uumljcirvpefyc\",\"endDate\":\"ei\"},\"last\":{\"tier\":\"jnsxzajlnsjhwjuy\",\"count\":438703743,\"quota\":{\"quantity\":3430085349866520614,\"unit\":\"uaytuadxk\"},\"startDate\":\"qbwpntghyk\",\"endDate\":\"rcdrnxsluvlzlad\"},\"provisioningIssues\":[\"kpbqhvfdqqjw\"]},\"tags\":{\"atuztjct\":\"wzdanojisgglmvo\",\"wakwseivmakxhys\":\"bpvbkaehxsmzygd\",\"j\":\"wljuxlkbectvt\",\"wp\":\"skdchmaiubavl\"},\"location\":\"mfalkzazmgok\",\"etag\":\"gjqafkmkrokzr\",\"kind\":\"qetwpqrtvaozn\",\"sku\":{\"name\":\"ixiezeag\",\"tier\":\"Enterprise\",\"size\":\"tuu\",\"family\":\"dhfpjstlzmbl\",\"capacity\":99360377},\"id\":\"eolctaebf\",\"name\":\"yrle\",\"type\":\"jcustbvtq\"}"; + = "{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"odfcbjq\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"q\",\"current\":{\"tier\":\"xsazuxejgw\",\"count\":1063690660,\"quota\":{\"quantity\":8625416475266852150,\"unit\":\"zzaczsinqbdn\"},\"startDate\":\"bbozsyvr\",\"endDate\":\"jmyitrchwudl\"},\"autoRenew\":true,\"next\":{\"tier\":\"tpmnoe\",\"count\":1026884990,\"quota\":{\"quantity\":5795195636749987869,\"unit\":\"b\"},\"startDate\":\"yrfgxkyd\",\"endDate\":\"yp\"},\"last\":{\"tier\":\"vmtywhlakxp\",\"count\":1568923478,\"quota\":{\"quantity\":53789333603508411,\"unit\":\"lfxampqc\"},\"startDate\":\"g\",\"endDate\":\"qxbpiatwfauje\"},\"provisioningIssues\":[\"tadrakgddhj\"]},\"tags\":{\"zyhgsqtnqsktx\":\"k\",\"iwdhdmncgbfzu\":\"fpjbqggwe\",\"mlhxdfbklcii\":\"cstu\",\"gwxfkzsi\":\"hgjsysmvxo\"},\"location\":\"uvbdujgcwxvec\",\"etag\":\"wjtrdxriza\",\"kind\":\"bgiark\",\"sku\":{\"name\":\"kpgdqxwabzrwiq\",\"tier\":\"Standard\",\"size\":\"clcdosqk\",\"family\":\"jqgkifmmainwhe\",\"capacity\":525746775},\"id\":\"bqwuntobuizazzel\",\"name\":\"gvydjufbnklblaxp\",\"type\":\"gjwdab\"}"; 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("ywkdcwmqsy", "ilm", "xdqaolfylnkkb", com.azure.core.util.Context.NONE) + .getWithResponse("tv", "j", "xvgjbfi", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ywltmfwobbjwhlwy", response.properties().commitmentPlanGuid()); + Assertions.assertEquals("odfcbjq", response.properties().commitmentPlanGuid()); Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("zocrdzgczeu", response.properties().planType()); - Assertions.assertEquals("xdncaqtt", response.properties().current().tier()); - Assertions.assertEquals(695245912, response.properties().current().count()); + Assertions.assertEquals("q", response.properties().planType()); + Assertions.assertEquals("xsazuxejgw", response.properties().current().tier()); + Assertions.assertEquals(1063690660, response.properties().current().count()); Assertions.assertTrue(response.properties().autoRenew()); - Assertions.assertEquals("rndpgfjodhdaqotw", response.properties().next().tier()); - Assertions.assertEquals(1325610771, response.properties().next().count()); - Assertions.assertEquals("wzdanojisgglmvo", response.tags().get("atuztjct")); - Assertions.assertEquals("mfalkzazmgok", response.location()); - Assertions.assertEquals("qetwpqrtvaozn", response.kind()); - Assertions.assertEquals("ixiezeag", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("tuu", response.sku().size()); - Assertions.assertEquals("dhfpjstlzmbl", response.sku().family()); - Assertions.assertEquals(99360377, response.sku().capacity()); + Assertions.assertEquals("tpmnoe", response.properties().next().tier()); + Assertions.assertEquals(1026884990, response.properties().next().count()); + Assertions.assertEquals("k", response.tags().get("zyhgsqtnqsktx")); + Assertions.assertEquals("uvbdujgcwxvec", response.location()); + Assertions.assertEquals("bgiark", response.kind()); + Assertions.assertEquals("kpgdqxwabzrwiq", response.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, response.sku().tier()); + Assertions.assertEquals("clcdosqk", response.sku().size()); + Assertions.assertEquals("jqgkifmmainwhe", response.sku().family()); + Assertions.assertEquals(525746775, 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 705d5db985b2..08682aee7a35 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\":\"kmi\"},\"etag\":\"nnraclibbfqpspkl\",\"tags\":{\"kexzgpmnmabeddqi\":\"dgnhautw\",\"fpfqf\":\"wg\"},\"id\":\"vstclg\",\"name\":\"rvwerfwxbsmtb\",\"type\":\"jj\"}]}"; + = "{\"value\":[{\"properties\":{\"accountId\":\"zix\"},\"etag\":\"hfnkvycqqqds\",\"tags\":{\"kfktltdds\":\"nquwzxhrptyodl\"},\"id\":\"jopnouhbqezk\",\"name\":\"xs\",\"type\":\"lu\"}]}"; 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("j", "mvpsimioyo", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().listAssociations("s", "ik", com.azure.core.util.Context.NONE); - Assertions.assertEquals("dgnhautw", response.iterator().next().tags().get("kexzgpmnmabeddqi")); - Assertions.assertEquals("kmi", response.iterator().next().accountId()); + Assertions.assertEquals("nquwzxhrptyodl", response.iterator().next().tags().get("kfktltdds")); + Assertions.assertEquals("zix", 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 3b4302fddc25..ed6d6b751fc5 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\":\"tgfredmlscgrllc\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"vjowazhpabac\",\"current\":{\"tier\":\"yotgkwsxnsrqorc\",\"count\":1374345968,\"quota\":{\"quantity\":370482690004864465,\"unit\":\"xeetq\"},\"startDate\":\"xcxxqndcqjkedw\",\"endDate\":\"rcgojmrvvx\"},\"autoRenew\":true,\"next\":{\"tier\":\"zsehqqrsilcchskx\",\"count\":470051968,\"quota\":{\"quantity\":9131082794009166335,\"unit\":\"ia\"},\"startDate\":\"vtojrulfuctejr\",\"endDate\":\"cfjzhxl\"},\"last\":{\"tier\":\"qjros\",\"count\":1823043266,\"quota\":{\"quantity\":5968875104172009953,\"unit\":\"z\"},\"startDate\":\"eqrztrxalxrdh\",\"endDate\":\"srwrsnrhpqati\"},\"provisioningIssues\":[\"vyanxkvvcsemsvu\",\"djkqxetqmm\",\"ivrjjxnwxdc\"]},\"tags\":{\"gfquwz\":\"jxlehzlx\"},\"location\":\"iibelwcerw\",\"etag\":\"bpjxljtxbusqtb\",\"kind\":\"niuisdz\",\"sku\":{\"name\":\"bdgzpagsecnad\",\"tier\":\"Premium\",\"size\":\"r\",\"family\":\"fllmqiy\",\"capacity\":2107431753},\"id\":\"ellnkkii\",\"name\":\"vmtumxpym\",\"type\":\"jfuaxroqvqpilrgu\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"zhogsmgbvmtdw\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"bj\",\"current\":{\"tier\":\"eglabtvkbiwznhtf\",\"count\":458206255,\"quota\":{\"quantity\":4200265726458200987,\"unit\":\"izpacz\"},\"startDate\":\"hbcakznhokhoit\",\"endDate\":\"rjsdmmazdnck\"},\"autoRenew\":false,\"next\":{\"tier\":\"glhzqp\",\"count\":23726274,\"quota\":{\"quantity\":3943030944112524732,\"unit\":\"cdg\"},\"startDate\":\"bssdpjeyoqxd\",\"endDate\":\"ecf\"},\"last\":{\"tier\":\"agxsurej\",\"count\":906252863,\"quota\":{\"quantity\":249315220911359046,\"unit\":\"ullc\"},\"startDate\":\"qqzjkoxdu\",\"endDate\":\"amglrouig\"},\"provisioningIssues\":[\"ivj\",\"terdqqi\",\"dydkghpcvrwqir\",\"tktyhhmvfxlapj\"]},\"tags\":{\"wepgqvqokql\":\"dmkr\",\"bwlyvxc\":\"jqgir\",\"stvzuzhasupml\":\"pqvctsfaeuhwwsk\"},\"location\":\"dpgzvzqazv\",\"etag\":\"arkptgongruatsyi\",\"kind\":\"jqhenigb\",\"sku\":{\"name\":\"ngu\",\"tier\":\"Basic\",\"size\":\"jdeayscse\",\"family\":\"zjemexmnvkvm\",\"capacity\":600810281},\"id\":\"lniwmcpmrrd\",\"name\":\"hvdvmi\",\"type\":\"hbeae\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,24 +34,24 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentPlans().listByResourceGroup("wwztj", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().listByResourceGroup("ihyeseu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("tgfredmlscgrllc", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals("zhogsmgbvmtdw", response.iterator().next().properties().commitmentPlanGuid()); Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("vjowazhpabac", response.iterator().next().properties().planType()); - Assertions.assertEquals("yotgkwsxnsrqorc", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1374345968, response.iterator().next().properties().current().count()); - Assertions.assertTrue(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("zsehqqrsilcchskx", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(470051968, response.iterator().next().properties().next().count()); - Assertions.assertEquals("jxlehzlx", response.iterator().next().tags().get("gfquwz")); - Assertions.assertEquals("iibelwcerw", response.iterator().next().location()); - Assertions.assertEquals("niuisdz", response.iterator().next().kind()); - Assertions.assertEquals("bdgzpagsecnad", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.iterator().next().sku().tier()); - Assertions.assertEquals("r", response.iterator().next().sku().size()); - Assertions.assertEquals("fllmqiy", response.iterator().next().sku().family()); - Assertions.assertEquals(2107431753, response.iterator().next().sku().capacity()); + Assertions.assertEquals("bj", response.iterator().next().properties().planType()); + Assertions.assertEquals("eglabtvkbiwznhtf", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(458206255, response.iterator().next().properties().current().count()); + Assertions.assertFalse(response.iterator().next().properties().autoRenew()); + Assertions.assertEquals("glhzqp", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(23726274, response.iterator().next().properties().next().count()); + Assertions.assertEquals("dmkr", response.iterator().next().tags().get("wepgqvqokql")); + Assertions.assertEquals("dpgzvzqazv", response.iterator().next().location()); + Assertions.assertEquals("jqhenigb", response.iterator().next().kind()); + Assertions.assertEquals("ngu", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); + Assertions.assertEquals("jdeayscse", response.iterator().next().sku().size()); + Assertions.assertEquals("zjemexmnvkvm", response.iterator().next().sku().family()); + Assertions.assertEquals(600810281, 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 920a6f2643aa..21f186c8528c 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\":\"Canceled\",\"commitmentPlanGuid\":\"sscyvai\",\"hostingModel\":\"Web\",\"planType\":\"acvfyeowps\",\"current\":{\"tier\":\"jdhsoy\",\"count\":1900787139,\"quota\":{\"quantity\":7536160134503363317,\"unit\":\"ttehdp\"},\"startDate\":\"ujstk\",\"endDate\":\"vdshxcdedsuen\"},\"autoRenew\":true,\"next\":{\"tier\":\"g\",\"count\":730763266,\"quota\":{\"quantity\":3433497610736352821,\"unit\":\"trfnslnlrxsmyl\"},\"startDate\":\"wntfmtbgwjdxwna\",\"endDate\":\"urrdreyzjwhsetww\"},\"last\":{\"tier\":\"zqs\",\"count\":1143298744,\"quota\":{\"quantity\":3974850722007069068,\"unit\":\"cy\"},\"startDate\":\"yqqz\",\"endDate\":\"c\"},\"provisioningIssues\":[\"ystewfopa\"]},\"tags\":{\"vozglqjbk\":\"zgbsqgpewqcfutmd\",\"clctzey\":\"l\",\"covdwzqaux\":\"wmn\"},\"location\":\"nhmkvfruwku\",\"etag\":\"bcpftxudqyemebun\",\"kind\":\"cmcir\",\"sku\":{\"name\":\"eemmjauwcgx\",\"tier\":\"Premium\",\"size\":\"haitranize\",\"family\":\"gudasmxubvfb\",\"capacity\":73707700},\"id\":\"ocefhpriylfmpzt\",\"name\":\"aud\",\"type\":\"vhl\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"necova\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"eubanlxunpqcc\",\"current\":{\"tier\":\"awzlzklaslgaciz\",\"count\":1215971610,\"quota\":{\"quantity\":7775427532635041478,\"unit\":\"ew\"},\"startDate\":\"udoejtighsxjp\",\"endDate\":\"nkqb\"},\"autoRenew\":false,\"next\":{\"tier\":\"vuuwxhmeh\",\"count\":2000994478,\"quota\":{\"quantity\":3095664096568466869,\"unit\":\"ffbbcngkegxcypxb\"},\"startDate\":\"etwilyrzoxpd\",\"endDate\":\"lfr\"},\"last\":{\"tier\":\"ow\",\"count\":338643261,\"quota\":{\"quantity\":2629940467242023335,\"unit\":\"nahwk\"},\"startDate\":\"jmztnlmso\",\"endDate\":\"tmvecdhdyswcrptv\"},\"provisioningIssues\":[\"c\",\"xvl\",\"srg\"]},\"tags\":{\"cs\":\"izrpywlptyuqhrl\",\"fixcnpcfykkpy\":\"ykpfu\",\"prdpwrpc\":\"cpawmp\",\"fwzlgzawkgyepeya\":\"pcf\"},\"location\":\"nidmdiaw\",\"etag\":\"xkzrn\",\"kind\":\"kctd\",\"sku\":{\"name\":\"osgwqpsqazihqo\",\"tier\":\"Free\",\"size\":\"cnbhcb\",\"family\":\"kztibni\",\"capacity\":2029647778},\"id\":\"xjmf\",\"name\":\"eftvhkmoog\",\"type\":\"rh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,23 +34,24 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentPlans().list("eazfpxgnmqvzvlu", "q", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().list("orbalkj", "bkbdhlltqstqkqs", com.azure.core.util.Context.NONE); - Assertions.assertEquals("sscyvai", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("acvfyeowps", response.iterator().next().properties().planType()); - Assertions.assertEquals("jdhsoy", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1900787139, response.iterator().next().properties().current().count()); - Assertions.assertTrue(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("g", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(730763266, response.iterator().next().properties().next().count()); - Assertions.assertEquals("zgbsqgpewqcfutmd", response.iterator().next().tags().get("vozglqjbk")); - Assertions.assertEquals("nhmkvfruwku", response.iterator().next().location()); - Assertions.assertEquals("cmcir", response.iterator().next().kind()); - Assertions.assertEquals("eemmjauwcgx", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.iterator().next().sku().tier()); - Assertions.assertEquals("haitranize", response.iterator().next().sku().size()); - Assertions.assertEquals("gudasmxubvfb", response.iterator().next().sku().family()); - Assertions.assertEquals(73707700, response.iterator().next().sku().capacity()); + Assertions.assertEquals("necova", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, + response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("eubanlxunpqcc", response.iterator().next().properties().planType()); + Assertions.assertEquals("awzlzklaslgaciz", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(1215971610, response.iterator().next().properties().current().count()); + Assertions.assertFalse(response.iterator().next().properties().autoRenew()); + Assertions.assertEquals("vuuwxhmeh", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(2000994478, response.iterator().next().properties().next().count()); + Assertions.assertEquals("izrpywlptyuqhrl", response.iterator().next().tags().get("cs")); + Assertions.assertEquals("nidmdiaw", response.iterator().next().location()); + Assertions.assertEquals("kctd", response.iterator().next().kind()); + Assertions.assertEquals("osgwqpsqazihqo", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); + Assertions.assertEquals("cnbhcb", response.iterator().next().sku().size()); + Assertions.assertEquals("kztibni", response.iterator().next().sku().family()); + Assertions.assertEquals(2029647778, 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 0bd44e01c9e7..8afa9a770174 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\":\"Moving\",\"commitmentPlanGuid\":\"duwzorxsbmxaqk\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"x\",\"current\":{\"tier\":\"fqep\",\"count\":284018014,\"quota\":{\"quantity\":804429551508024817,\"unit\":\"wyvpj\"},\"startDate\":\"wcpjqduqgi\",\"endDate\":\"xkydfbwlja\"},\"autoRenew\":true,\"next\":{\"tier\":\"k\",\"count\":1503151034,\"quota\":{\"quantity\":5472083857207736157,\"unit\":\"egftcvb\"},\"startDate\":\"ftksd\",\"endDate\":\"dnkefgm\"},\"last\":{\"tier\":\"c\",\"count\":51854067,\"quota\":{\"quantity\":7233541281892384914,\"unit\":\"bglzoutbaaqgzek\"},\"startDate\":\"clyzgs\",\"endDate\":\"rbjgmn\"},\"provisioningIssues\":[\"t\",\"mrxkhlobvv\"]},\"tags\":{\"ayfluiyuosnu\":\"vhdi\"},\"location\":\"t\",\"etag\":\"vhyibdrqrsw\",\"kind\":\"uubpyrow\",\"sku\":{\"name\":\"oxztfwfqch\",\"tier\":\"Basic\",\"size\":\"vjnn\",\"family\":\"agfyvrtpqpe\",\"capacity\":120796898},\"id\":\"gkrepdqhqyhw\",\"name\":\"wemvxqabckmze\",\"type\":\"xin\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"kdclacroczf\",\"hostingModel\":\"Web\",\"planType\":\"rkeluxzshxzezbzu\",\"current\":{\"tier\":\"l\",\"count\":1953514282,\"quota\":{\"quantity\":1381335079017474960,\"unit\":\"gwfsgqkstyecupyu\"},\"startDate\":\"p\",\"endDate\":\"davsjcfmazpz\"},\"autoRenew\":true,\"next\":{\"tier\":\"vcmc\",\"count\":1864953529,\"quota\":{\"quantity\":3106190744979443897,\"unit\":\"vfrjwu\"},\"startDate\":\"o\",\"endDate\":\"vajbvbnkrdemdid\"},\"last\":{\"tier\":\"zidgzwd\",\"count\":1348414919,\"quota\":{\"quantity\":4398782105392122317,\"unit\":\"ztdivykpxkq\"},\"startDate\":\"tpjfojiunrlshxuk\",\"endDate\":\"ykd\"},\"provisioningIssues\":[\"b\",\"ancdrc\",\"anvxuldxonckb\",\"lblfxlupibaqzizx\"]},\"tags\":{\"qiyndveqels\":\"weghlwwbogvgfk\",\"ns\":\"fvdstrkzxsgt\",\"smovpi\":\"lr\",\"dnox\":\"y\"},\"location\":\"nrqa\",\"etag\":\"tnndxolousdvr\",\"kind\":\"tqm\",\"sku\":{\"name\":\"zjdrp\",\"tier\":\"Premium\",\"size\":\"l\",\"family\":\"ctsdbtqgkujds\",\"capacity\":1079434333},\"id\":\"qwoeurbtigapd\",\"name\":\"arikeejdpdfhtwmm\",\"type\":\"fqbriqu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,22 +36,21 @@ public void testListPlansBySubscription() throws Exception { PagedIterable response = manager.commitmentPlans().listPlansBySubscription(com.azure.core.util.Context.NONE); - Assertions.assertEquals("duwzorxsbmxaqk", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, - response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("x", response.iterator().next().properties().planType()); - Assertions.assertEquals("fqep", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(284018014, response.iterator().next().properties().current().count()); + Assertions.assertEquals("kdclacroczf", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("rkeluxzshxzezbzu", response.iterator().next().properties().planType()); + Assertions.assertEquals("l", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(1953514282, response.iterator().next().properties().current().count()); Assertions.assertTrue(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("k", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(1503151034, response.iterator().next().properties().next().count()); - Assertions.assertEquals("vhdi", response.iterator().next().tags().get("ayfluiyuosnu")); - Assertions.assertEquals("t", response.iterator().next().location()); - Assertions.assertEquals("uubpyrow", response.iterator().next().kind()); - Assertions.assertEquals("oxztfwfqch", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); - Assertions.assertEquals("vjnn", response.iterator().next().sku().size()); - Assertions.assertEquals("agfyvrtpqpe", response.iterator().next().sku().family()); - Assertions.assertEquals(120796898, response.iterator().next().sku().capacity()); + Assertions.assertEquals("vcmc", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(1864953529, response.iterator().next().properties().next().count()); + Assertions.assertEquals("weghlwwbogvgfk", response.iterator().next().tags().get("qiyndveqels")); + Assertions.assertEquals("nrqa", response.iterator().next().location()); + Assertions.assertEquals("tqm", response.iterator().next().kind()); + Assertions.assertEquals("zjdrp", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.PREMIUM, response.iterator().next().sku().tier()); + Assertions.assertEquals("l", response.iterator().next().sku().size()); + Assertions.assertEquals("ctsdbtqgkujds", response.iterator().next().sku().family()); + Assertions.assertEquals(1079434333, 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 70c041b62577..165c1b5fa40b 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\":353923599587916096,\"unit\":\"hxcr\"}") + CommitmentQuota model = BinaryData.fromString("{\"quantity\":3218198386643086892,\"unit\":\"exiili\"}") .toObject(CommitmentQuota.class); - Assertions.assertEquals(353923599587916096L, model.quantity()); - Assertions.assertEquals("hxcr", model.unit()); + Assertions.assertEquals(3218198386643086892L, model.quantity()); + Assertions.assertEquals("exiili", 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 9985e6922eb4..b7bfd5503d7b 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\":\"fqcvovj\",\"skuName\":\"ycsjmlbem\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"riuxegthortuda\",\"tier\":\"pjfe\",\"maxCount\":1302185073,\"quota\":{\"quantity\":3103501670005919366,\"unit\":\"bgqnz\"},\"cost\":{\"commitmentMeterId\":\"iilialwc\",\"overageMeterId\":\"ckbbcc\"}}") + "{\"kind\":\"reoagsqtaadus\",\"skuName\":\"xxfavsqwudohzilf\",\"hostingModel\":\"Web\",\"planType\":\"kpsimsfeypofqp\",\"tier\":\"hyqgsdrmmttjx\",\"maxCount\":159180275,\"quota\":{\"quantity\":8294128651966774235,\"unit\":\"mvgohtwz\"},\"cost\":{\"commitmentMeterId\":\"lrixysfnimsq\",\"overageMeterId\":\"wwmhkruwae\"}}") .toObject(CommitmentTierInner.class); - Assertions.assertEquals("fqcvovj", model.kind()); - Assertions.assertEquals("ycsjmlbem", model.skuName()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, model.hostingModel()); - Assertions.assertEquals("riuxegthortuda", model.planType()); - Assertions.assertEquals("pjfe", model.tier()); - Assertions.assertEquals(1302185073, model.maxCount()); - Assertions.assertEquals(3103501670005919366L, model.quota().quantity()); - Assertions.assertEquals("bgqnz", model.quota().unit()); - Assertions.assertEquals("iilialwc", model.cost().commitmentMeterId()); - Assertions.assertEquals("ckbbcc", model.cost().overageMeterId()); + Assertions.assertEquals("reoagsqtaadus", model.kind()); + Assertions.assertEquals("xxfavsqwudohzilf", model.skuName()); + Assertions.assertEquals(HostingModel.WEB, model.hostingModel()); + Assertions.assertEquals("kpsimsfeypofqp", model.planType()); + Assertions.assertEquals("hyqgsdrmmttjx", model.tier()); + Assertions.assertEquals(159180275, model.maxCount()); + Assertions.assertEquals(8294128651966774235L, model.quota().quantity()); + Assertions.assertEquals("mvgohtwz", model.quota().unit()); + Assertions.assertEquals("lrixysfnimsq", model.cost().commitmentMeterId()); + Assertions.assertEquals("wwmhkruwae", 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 4b15f71127b8..5c2f7fd5c145 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\":\"bnoit\",\"value\":[{\"kind\":\"trgdgxvc\",\"skuName\":\"raswugyxpqit\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"l\",\"tier\":\"skbuhzaca\",\"maxCount\":149181411,\"quota\":{\"quantity\":1393690559949786756,\"unit\":\"cujp\"},\"cost\":{\"commitmentMeterId\":\"zakuejk\",\"overageMeterId\":\"bizt\"}}]}") + "{\"nextLink\":\"zmblsyjdeol\",\"value\":[{\"kind\":\"bfsyrledjcustb\",\"skuName\":\"qigdx\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"eafgfosehxlzsxe\",\"tier\":\"p\",\"maxCount\":346065093,\"quota\":{\"quantity\":1405998573013007280,\"unit\":\"yfjlpzeqto\"},\"cost\":{\"commitmentMeterId\":\"lixlajmllpque\",\"overageMeterId\":\"am\"}},{\"kind\":\"wg\",\"skuName\":\"tmk\",\"hostingModel\":\"Web\",\"planType\":\"kzwaqxofq\",\"tier\":\"chiqbplvfid\",\"maxCount\":1535267928,\"quota\":{\"quantity\":6416416246126222793,\"unit\":\"yj\"},\"cost\":{\"commitmentMeterId\":\"fepxyihpqadag\",\"overageMeterId\":\"rdi\"}},{\"kind\":\"dw\",\"skuName\":\"fowxwyovcxjsgbi\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"dveksbuhoduch\",\"tier\":\"scrdp\",\"maxCount\":1354347075,\"quota\":{\"quantity\":3527198838984593686,\"unit\":\"sspyszekbh\"},\"cost\":{\"commitmentMeterId\":\"aaggkre\",\"overageMeterId\":\"frnuybffljfi\"}}]}") .toObject(CommitmentTierListResult.class); - Assertions.assertEquals("bnoit", model.nextLink()); + Assertions.assertEquals("zmblsyjdeol", 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 ad3df982fe2e..8bb843997018 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\":\"s\",\"skuName\":\"ydw\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"uhhqldrdymnswxie\",\"tier\":\"wqnghxnimvyuj\",\"maxCount\":743891586,\"quota\":{\"quantity\":97698113602571846,\"unit\":\"ypu\"},\"cost\":{\"commitmentMeterId\":\"ylquevqmvyumgm\",\"overageMeterId\":\"ebsnz\"}}]}"; + = "{\"value\":[{\"kind\":\"zj\",\"skuName\":\"sunhaevlah\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"wywuahwcorewcnna\",\"tier\":\"qjfdajr\",\"maxCount\":1427657024,\"quota\":{\"quantity\":5364253199306659793,\"unit\":\"ewdqbxex\"},\"cost\":{\"commitmentMeterId\":\"nvussuqk\",\"overageMeterId\":\"wsfxay\"}}]}"; 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("zrqnjxm", com.azure.core.util.Context.NONE); + = manager.commitmentTiers().list("wwlojkbgnf", com.azure.core.util.Context.NONE); - Assertions.assertEquals("s", response.iterator().next().kind()); - Assertions.assertEquals("ydw", response.iterator().next().skuName()); - Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.iterator().next().hostingModel()); - Assertions.assertEquals("uhhqldrdymnswxie", response.iterator().next().planType()); - Assertions.assertEquals("wqnghxnimvyuj", response.iterator().next().tier()); - Assertions.assertEquals(743891586, response.iterator().next().maxCount()); - Assertions.assertEquals(97698113602571846L, response.iterator().next().quota().quantity()); - Assertions.assertEquals("ypu", response.iterator().next().quota().unit()); - Assertions.assertEquals("ylquevqmvyumgm", response.iterator().next().cost().commitmentMeterId()); - Assertions.assertEquals("ebsnz", response.iterator().next().cost().overageMeterId()); + Assertions.assertEquals("zj", response.iterator().next().kind()); + Assertions.assertEquals("sunhaevlah", response.iterator().next().skuName()); + Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.iterator().next().hostingModel()); + Assertions.assertEquals("wywuahwcorewcnna", response.iterator().next().planType()); + Assertions.assertEquals("qjfdajr", response.iterator().next().tier()); + Assertions.assertEquals(1427657024, response.iterator().next().maxCount()); + Assertions.assertEquals(5364253199306659793L, response.iterator().next().quota().quantity()); + Assertions.assertEquals("ewdqbxex", response.iterator().next().quota().unit()); + Assertions.assertEquals("nvussuqk", response.iterator().next().cost().commitmentMeterId()); + Assertions.assertEquals("wsfxay", 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 1a540a47df8d..2b52560bcba4 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 @@ -11,19 +11,17 @@ public final class ConnectionManagedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ConnectionManagedIdentity model - = BinaryData.fromString("{\"clientId\":\"rprsnm\",\"resourceId\":\"ayzejnhlbkpbz\"}") - .toObject(ConnectionManagedIdentity.class); - Assertions.assertEquals("rprsnm", model.clientId()); - Assertions.assertEquals("ayzejnhlbkpbz", model.resourceId()); + ConnectionManagedIdentity model = BinaryData.fromString("{\"clientId\":\"fg\",\"resourceId\":\"ba\"}") + .toObject(ConnectionManagedIdentity.class); + Assertions.assertEquals("fg", model.clientId()); + Assertions.assertEquals("ba", model.resourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionManagedIdentity model - = new ConnectionManagedIdentity().withClientId("rprsnm").withResourceId("ayzejnhlbkpbz"); + ConnectionManagedIdentity model = new ConnectionManagedIdentity().withClientId("fg").withResourceId("ba"); model = BinaryData.fromObject(model).toObject(ConnectionManagedIdentity.class); - Assertions.assertEquals("rprsnm", model.clientId()); - Assertions.assertEquals("ayzejnhlbkpbz", model.resourceId()); + Assertions.assertEquals("fg", model.clientId()); + Assertions.assertEquals("ba", 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 a39501f6900f..3da0cdf7e2b8 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\":\"ptmcgsbostzelnd\"}").toObject(ConnectionPersonalAccessToken.class); - Assertions.assertEquals("ptmcgsbostzelnd", model.pat()); + = BinaryData.fromString("{\"pat\":\"mv\"}").toObject(ConnectionPersonalAccessToken.class); + Assertions.assertEquals("mv", model.pat()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionPersonalAccessToken model = new ConnectionPersonalAccessToken().withPat("ptmcgsbostzelnd"); + ConnectionPersonalAccessToken model = new ConnectionPersonalAccessToken().withPat("mv"); model = BinaryData.fromObject(model).toObject(ConnectionPersonalAccessToken.class); - Assertions.assertEquals("ptmcgsbostzelnd", model.pat()); + Assertions.assertEquals("mv", 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 e7e4d4093eaa..c456fab9b267 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\":\"uiiznktwfansnvpd\",\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Redis\",\"createdByWorkspaceArmId\":\"stbz\",\"error\":\"iwbuqny\",\"expiryTime\":\"2021-03-05T05:44:37Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"cez\":\"crpfbcunez\",\"sihclafzvaylp\":\"lfwyfwlwxjwetn\",\"qkc\":\"rsqqwztcm\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"ewzjkjexfd\"],\"target\":\"vhpsylkkshkbffmb\",\"useWorkspaceManagedIdentity\":false},\"id\":\"rgywwp\",\"name\":\"jx\",\"type\":\"nptfujgi\"}]}") + "{\"nextLink\":\"rkolawjm\",\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"OracleCloudStorage\",\"createdByWorkspaceArmId\":\"kcdxfzzzw\",\"error\":\"afitlhguynuchlg\",\"expiryTime\":\"2021-10-05T01:09:03Z\",\"group\":\"File\",\"isSharedToAll\":false,\"metadata\":{\"vlnsnnjz\":\"zusg\",\"mwamxqzragpgdph\":\"pafolp\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"vl\",\"jchcsrlzknmzla\"],\"target\":\"updwv\",\"useWorkspaceManagedIdentity\":false},\"id\":\"nzqtpjhmqrhvt\",\"name\":\"laiwdcxsmlzzh\",\"type\":\"dtxetlgydlh\"},{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"AzureMariaDb\",\"createdByWorkspaceArmId\":\"npxybafiq\",\"error\":\"aarbgjekg\",\"expiryTime\":\"2021-10-21T05:33:24Z\",\"group\":\"Database\",\"isSharedToAll\":true,\"metadata\":{\"o\":\"wcwvmzeg\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"gdn\",\"z\"],\"target\":\"fkspzhzmtksjci\",\"useWorkspaceManagedIdentity\":true},\"id\":\"sxcdgljplkeuach\",\"name\":\"omflrytswfp\",\"type\":\"mdgycxn\"},{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"MongoDbAtlas\",\"createdByWorkspaceArmId\":\"hqjjys\",\"error\":\"rlpshhkv\",\"expiryTime\":\"2021-08-31T19:05:40Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"skondcbrwimu\":\"hmpqvw\",\"ovyrrleaesinu\":\"qejo\",\"hcecybmrqbr\":\"tljqobbpih\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"lvykfrex\",\"rseqwjksghudgz\",\"xog\"],\"target\":\"gsv\",\"useWorkspaceManagedIdentity\":false},\"id\":\"xibdafhrkmdyo\",\"name\":\"kxfbvfbhdyirhp\",\"type\":\"pgddeimawz\"},{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"OpenAI\",\"createdByWorkspaceArmId\":\"kumuikjcjca\",\"error\":\"bwsnsqow\",\"expiryTime\":\"2021-06-25T23:30:28Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":true,\"metadata\":{\"cswkacvejy\":\"twvc\",\"qthe\":\"dvlvhbwrnfxtgdd\",\"naoyank\":\"n\",\"swankltytmh\":\"oe\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"drlktg\",\"csgguxhemlw\"],\"target\":\"ae\",\"useWorkspaceManagedIdentity\":true},\"id\":\"fbukklelssxblycs\",\"name\":\"zujksrlsmdes\",\"type\":\"plpvm\"}]}") .toObject(ConnectionPropertiesV2BasicResourceArmPaginatedResult.class); - Assertions.assertEquals("uiiznktwfansnvpd", model.nextLink()); - Assertions.assertEquals(ConnectionCategory.REDIS, model.value().get(0).properties().category()); - Assertions.assertEquals("iwbuqny", model.value().get(0).properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-05T05:44:37Z"), + Assertions.assertEquals("rkolawjm", model.nextLink()); + Assertions.assertEquals(ConnectionCategory.ORACLE_CLOUD_STORAGE, model.value().get(0).properties().category()); + Assertions.assertEquals("afitlhguynuchlg", model.value().get(0).properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-05T01:09:03Z"), model.value().get(0).properties().expiryTime()); Assertions.assertFalse(model.value().get(0).properties().isSharedToAll()); - Assertions.assertEquals("crpfbcunez", model.value().get(0).properties().metadata().get("cez")); + Assertions.assertEquals("zusg", model.value().get(0).properties().metadata().get("vlnsnnjz")); Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.value().get(0).properties().peRequirement()); Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.value().get(0).properties().peStatus()); - Assertions.assertEquals("ewzjkjexfd", model.value().get(0).properties().sharedUserList().get(0)); - Assertions.assertEquals("vhpsylkkshkbffmb", model.value().get(0).properties().target()); + Assertions.assertEquals("vl", model.value().get(0).properties().sharedUserList().get(0)); + Assertions.assertEquals("updwv", 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 d2ebd76c0a6e..defb3c92ca29 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\":\"Hbase\",\"createdByWorkspaceArmId\":\"ibmi\",\"error\":\"nnust\",\"expiryTime\":\"2021-01-07T16:03:33Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":true,\"metadata\":{\"hcgyyprotwyp\":\"xhcmavmqfoudo\",\"xhugcm\":\"ndm\",\"vlgo\":\"k\",\"fjltfvnzcyjtotp\":\"bmftpmdt\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"bzqgqqi\",\"edsvqwthmk\",\"ibcysihsgqc\"],\"target\":\"hohsd\",\"useWorkspaceManagedIdentity\":false},\"id\":\"zsu\",\"name\":\"cohdx\",\"type\":\"zlmcmuapcvhdb\"}") + "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"ModelGateway\",\"createdByWorkspaceArmId\":\"gwydyy\",\"error\":\"svkhgbv\",\"expiryTime\":\"2021-09-12T06:08:07Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"zjcpeogk\":\"pukhpyrne\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"uxddbhfh\",\"fpazjzoywjxhpd\",\"lontacnpq\",\"tehtuevrhrljyoog\"],\"target\":\"hnsduugwbsreur\",\"useWorkspaceManagedIdentity\":true},\"id\":\"uarenlv\",\"name\":\"htkln\",\"type\":\"nafvvkyfedev\"}") .toObject(ConnectionPropertiesV2BasicResourceInner.class); - Assertions.assertEquals(ConnectionCategory.HBASE, model.properties().category()); - Assertions.assertEquals("nnust", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-07T16:03:33Z"), model.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.MODEL_GATEWAY, model.properties().category()); + Assertions.assertEquals("svkhgbv", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-12T06:08:07Z"), model.properties().expiryTime()); Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("xhcmavmqfoudo", model.properties().metadata().get("hcgyyprotwyp")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.properties().peStatus()); - Assertions.assertEquals("bzqgqqi", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("hohsd", model.properties().target()); - Assertions.assertFalse(model.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("pukhpyrne", model.properties().metadata().get("zjcpeogk")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.properties().peStatus()); + Assertions.assertEquals("uxddbhfh", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("hnsduugwbsreur", model.properties().target()); + Assertions.assertTrue(model.properties().useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ConnectionPropertiesV2BasicResourceInner model = new ConnectionPropertiesV2BasicResourceInner() - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.HBASE) - .withError("nnust") - .withExpiryTime(OffsetDateTime.parse("2021-01-07T16:03:33Z")) + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.MODEL_GATEWAY) + .withError("svkhgbv") + .withExpiryTime(OffsetDateTime.parse("2021-09-12T06:08:07Z")) .withIsSharedToAll(true) - .withMetadata( - mapOf("hcgyyprotwyp", "xhcmavmqfoudo", "xhugcm", "ndm", "vlgo", "k", "fjltfvnzcyjtotp", "bmftpmdt")) - .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) - .withPeStatus(ManagedPEStatus.INACTIVE) - .withSharedUserList(Arrays.asList("bzqgqqi", "edsvqwthmk", "ibcysihsgqc")) - .withTarget("hohsd") - .withUseWorkspaceManagedIdentity(false)); + .withMetadata(mapOf("zjcpeogk", "pukhpyrne")) + .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) + .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) + .withSharedUserList(Arrays.asList("uxddbhfh", "fpazjzoywjxhpd", "lontacnpq", "tehtuevrhrljyoog")) + .withTarget("hnsduugwbsreur") + .withUseWorkspaceManagedIdentity(true)); model = BinaryData.fromObject(model).toObject(ConnectionPropertiesV2BasicResourceInner.class); - Assertions.assertEquals(ConnectionCategory.HBASE, model.properties().category()); - Assertions.assertEquals("nnust", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-07T16:03:33Z"), model.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.MODEL_GATEWAY, model.properties().category()); + Assertions.assertEquals("svkhgbv", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-12T06:08:07Z"), model.properties().expiryTime()); Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("xhcmavmqfoudo", model.properties().metadata().get("hcgyyprotwyp")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.properties().peStatus()); - Assertions.assertEquals("bzqgqqi", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("hohsd", model.properties().target()); - Assertions.assertFalse(model.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("pukhpyrne", model.properties().metadata().get("zjcpeogk")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.properties().peStatus()); + Assertions.assertEquals("uxddbhfh", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("hnsduugwbsreur", model.properties().target()); + Assertions.assertTrue(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 5d908a216355..496ed6c250da 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,44 @@ public final class ConnectionPropertiesV2Tests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPropertiesV2 model = BinaryData.fromString( - "{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Teradata\",\"createdByWorkspaceArmId\":\"qxeysko\",\"error\":\"zinkfkbgbzbowxeq\",\"expiryTime\":\"2021-11-27T16:03:54Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"rx\":\"zqkjjeokbzefe\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"e\",\"pqxbkwvzgnzvdf\"],\"target\":\"d\",\"useWorkspaceManagedIdentity\":true}") + "{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"AzureSynapseAnalytics\",\"createdByWorkspaceArmId\":\"lcqxypokk\",\"error\":\"inqcymczngnbdxxe\",\"expiryTime\":\"2021-07-20T06:22:30Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"qct\":\"chaqdtvqec\",\"ytxzvtznapxbanno\":\"xxdtddmflh\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"tprwnw\",\"roevyt\",\"yo\"],\"target\":\"rrouuxvnsasbcry\",\"useWorkspaceManagedIdentity\":false}") .toObject(ConnectionPropertiesV2.class); - Assertions.assertEquals(ConnectionCategory.TERADATA, model.category()); - Assertions.assertEquals("zinkfkbgbzbowxeq", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-27T16:03:54Z"), model.expiryTime()); + Assertions.assertEquals(ConnectionCategory.AZURE_SYNAPSE_ANALYTICS, model.category()); + Assertions.assertEquals("inqcymczngnbdxxe", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T06:22:30Z"), model.expiryTime()); Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("zqkjjeokbzefe", model.metadata().get("rx")); + Assertions.assertEquals("chaqdtvqec", model.metadata().get("qct")); Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); - Assertions.assertEquals("e", model.sharedUserList().get(0)); - Assertions.assertEquals("d", model.target()); - Assertions.assertTrue(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); + Assertions.assertEquals("tprwnw", model.sharedUserList().get(0)); + Assertions.assertEquals("rrouuxvnsasbcry", model.target()); + Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionPropertiesV2 model = new ConnectionPropertiesV2().withCategory(ConnectionCategory.TERADATA) - .withError("zinkfkbgbzbowxeq") - .withExpiryTime(OffsetDateTime.parse("2021-11-27T16:03:54Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("rx", "zqkjjeokbzefe")) - .withPeRequirement(ManagedPERequirement.REQUIRED) - .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) - .withSharedUserList(Arrays.asList("e", "pqxbkwvzgnzvdf")) - .withTarget("d") - .withUseWorkspaceManagedIdentity(true); + ConnectionPropertiesV2 model + = new ConnectionPropertiesV2().withCategory(ConnectionCategory.AZURE_SYNAPSE_ANALYTICS) + .withError("inqcymczngnbdxxe") + .withExpiryTime(OffsetDateTime.parse("2021-07-20T06:22:30Z")) + .withIsSharedToAll(true) + .withMetadata(mapOf("qct", "chaqdtvqec", "ytxzvtznapxbanno", "xxdtddmflh")) + .withPeRequirement(ManagedPERequirement.REQUIRED) + .withPeStatus(ManagedPEStatus.ACTIVE) + .withSharedUserList(Arrays.asList("tprwnw", "roevyt", "yo")) + .withTarget("rrouuxvnsasbcry") + .withUseWorkspaceManagedIdentity(false); model = BinaryData.fromObject(model).toObject(ConnectionPropertiesV2.class); - Assertions.assertEquals(ConnectionCategory.TERADATA, model.category()); - Assertions.assertEquals("zinkfkbgbzbowxeq", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-27T16:03:54Z"), model.expiryTime()); + Assertions.assertEquals(ConnectionCategory.AZURE_SYNAPSE_ANALYTICS, model.category()); + Assertions.assertEquals("inqcymczngnbdxxe", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T06:22:30Z"), model.expiryTime()); Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("zqkjjeokbzefe", model.metadata().get("rx")); + Assertions.assertEquals("chaqdtvqec", model.metadata().get("qct")); Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); - Assertions.assertEquals("e", model.sharedUserList().get(0)); - Assertions.assertEquals("d", model.target()); - Assertions.assertTrue(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); + Assertions.assertEquals("tprwnw", model.sharedUserList().get(0)); + Assertions.assertEquals("rrouuxvnsasbcry", model.target()); + Assertions.assertFalse(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 3f87e5ea33b6..0bc8db9a847f 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\":\"ngz\"}").toObject(ConnectionSharedAccessSignature.class); - Assertions.assertEquals("ngz", model.sas()); + = BinaryData.fromString("{\"sas\":\"oucs\"}").toObject(ConnectionSharedAccessSignature.class); + Assertions.assertEquals("oucs", model.sas()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionSharedAccessSignature model = new ConnectionSharedAccessSignature().withSas("ngz"); + ConnectionSharedAccessSignature model = new ConnectionSharedAccessSignature().withSas("oucs"); model = BinaryData.fromObject(model).toObject(ConnectionSharedAccessSignature.class); - Assertions.assertEquals("ngz", model.sas()); + Assertions.assertEquals("oucs", 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 4e2c80b2045f..f557d72bf042 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,44 +20,43 @@ public final class ConnectionUpdateContentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionUpdateContent model = BinaryData.fromString( - "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Netezza\",\"createdByWorkspaceArmId\":\"ofvwbcb\",\"error\":\"mbnkb\",\"expiryTime\":\"2021-10-03T15:33:29Z\",\"group\":\"AzureAI\",\"isSharedToAll\":false,\"metadata\":{\"swbzuwfmdurage\":\"qihebw\",\"isdju\":\"izvcjfe\",\"kxkbsazgakgacyr\":\"ggbqi\",\"dmspof\":\"m\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"lniofrzgbzje\",\"mstk\"],\"target\":\"l\",\"useWorkspaceManagedIdentity\":false}}") + "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"SqlServer\",\"createdByWorkspaceArmId\":\"rzbjpsfxsfuz\",\"error\":\"vtmva\",\"expiryTime\":\"2021-02-15T18:59:43Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"rvjfnmjmvlw\":\"ukoveofi\",\"iblkujr\":\"z\",\"uyjucejikzo\":\"lfojuidjp\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"je\",\"jklntikyj\",\"zkdbqzolx\"],\"target\":\"vhqjwtrhtgvg\",\"useWorkspaceManagedIdentity\":false}}") .toObject(ConnectionUpdateContent.class); - Assertions.assertEquals(ConnectionCategory.NETEZZA, model.properties().category()); - Assertions.assertEquals("mbnkb", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-03T15:33:29Z"), model.properties().expiryTime()); - Assertions.assertFalse(model.properties().isSharedToAll()); - Assertions.assertEquals("qihebw", model.properties().metadata().get("swbzuwfmdurage")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.properties().peStatus()); - Assertions.assertEquals("lniofrzgbzje", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("l", model.properties().target()); + Assertions.assertEquals(ConnectionCategory.SQL_SERVER, model.properties().category()); + Assertions.assertEquals("vtmva", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-15T18:59:43Z"), model.properties().expiryTime()); + Assertions.assertTrue(model.properties().isSharedToAll()); + Assertions.assertEquals("ukoveofi", model.properties().metadata().get("rvjfnmjmvlw")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.properties().peStatus()); + Assertions.assertEquals("je", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("vhqjwtrhtgvg", 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.NETEZZA) - .withError("mbnkb") - .withExpiryTime(OffsetDateTime.parse("2021-10-03T15:33:29Z")) - .withIsSharedToAll(false) - .withMetadata( - mapOf("swbzuwfmdurage", "qihebw", "isdju", "izvcjfe", "kxkbsazgakgacyr", "ggbqi", "dmspof", "m")) - .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("lniofrzgbzje", "mstk")) - .withTarget("l") + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.SQL_SERVER) + .withError("vtmva") + .withExpiryTime(OffsetDateTime.parse("2021-02-15T18:59:43Z")) + .withIsSharedToAll(true) + .withMetadata(mapOf("rvjfnmjmvlw", "ukoveofi", "iblkujr", "z", "uyjucejikzo", "lfojuidjp")) + .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("je", "jklntikyj", "zkdbqzolx")) + .withTarget("vhqjwtrhtgvg") .withUseWorkspaceManagedIdentity(false)); model = BinaryData.fromObject(model).toObject(ConnectionUpdateContent.class); - Assertions.assertEquals(ConnectionCategory.NETEZZA, model.properties().category()); - Assertions.assertEquals("mbnkb", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-03T15:33:29Z"), model.properties().expiryTime()); - Assertions.assertFalse(model.properties().isSharedToAll()); - Assertions.assertEquals("qihebw", model.properties().metadata().get("swbzuwfmdurage")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.properties().peStatus()); - Assertions.assertEquals("lniofrzgbzje", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("l", model.properties().target()); + Assertions.assertEquals(ConnectionCategory.SQL_SERVER, model.properties().category()); + Assertions.assertEquals("vtmva", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-15T18:59:43Z"), model.properties().expiryTime()); + Assertions.assertTrue(model.properties().isSharedToAll()); + Assertions.assertEquals("ukoveofi", model.properties().metadata().get("rvjfnmjmvlw")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.properties().peStatus()); + Assertions.assertEquals("je", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("vhqjwtrhtgvg", 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 new file mode 100644 index 000000000000..dfe4e47224a1 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectivityEndpointsTests.java @@ -0,0 +1,17 @@ +// 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.ConnectivityEndpoints; + +public final class ConnectivityEndpointsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ConnectivityEndpoints model + = BinaryData.fromString("{\"publicIpAddress\":\"gttmvmmagoaqyl\",\"sshPort\":645305407}") + .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 e86fce8e575e..ef259081d9ad 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 @@ -12,22 +12,22 @@ public final class CustomBlocklistConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CustomBlocklistConfig model - = BinaryData.fromString("{\"source\":\"PostRun\",\"blocklistName\":\"ikf\",\"blocking\":false}") - .toObject(CustomBlocklistConfig.class); - Assertions.assertEquals("ikf", model.blocklistName()); + CustomBlocklistConfig model = BinaryData + .fromString("{\"source\":\"PostToolCall\",\"blocklistName\":\"xttaugzxnfaaz\",\"blocking\":false}") + .toObject(CustomBlocklistConfig.class); + Assertions.assertEquals("xttaugzxnfaaz", model.blocklistName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, 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("ikf") + CustomBlocklistConfig model = new CustomBlocklistConfig().withBlocklistName("xttaugzxnfaaz") .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_RUN); + .withSource(RaiPolicyContentSource.POST_TOOL_CALL); model = BinaryData.fromObject(model).toObject(CustomBlocklistConfig.class); - Assertions.assertEquals("ikf", model.blocklistName()); + Assertions.assertEquals("xttaugzxnfaaz", model.blocklistName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, 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 611c6b05fb08..dc44aeb25b61 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,21 @@ public final class DefenderForAISettingInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DefenderForAISettingInner model = BinaryData.fromString( - "{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"e\",\"tags\":{\"csheafidltugsr\":\"vgcxtx\",\"h\":\"smkss\"},\"id\":\"ftxfkf\",\"name\":\"egprhptil\",\"type\":\"ucb\"}") + "{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"bakclacjfrnxous\",\"tags\":{\"zvuxm\":\"zlwvsgmwohqfz\",\"mribiat\":\"kjsvthnwpzteko\",\"zcugswvxwlmzqw\":\"gplucfotangcfhny\"},\"id\":\"tx\",\"name\":\"jmxmcuqud\",\"type\":\"cvclxynpdk\"}") .toObject(DefenderForAISettingInner.class); - Assertions.assertEquals("vgcxtx", model.tags().get("csheafidltugsr")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); + Assertions.assertEquals("zlwvsgmwohqfz", model.tags().get("zvuxm")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DefenderForAISettingInner model - = new DefenderForAISettingInner().withTags(mapOf("csheafidltugsr", "vgcxtx", "h", "smkss")) - .withState(DefenderForAISettingState.ENABLED); + DefenderForAISettingInner model = new DefenderForAISettingInner() + .withTags( + mapOf("zvuxm", "zlwvsgmwohqfz", "mribiat", "kjsvthnwpzteko", "zcugswvxwlmzqw", "gplucfotangcfhny")) + .withState(DefenderForAISettingState.DISABLED); model = BinaryData.fromObject(model).toObject(DefenderForAISettingInner.class); - Assertions.assertEquals("vgcxtx", model.tags().get("csheafidltugsr")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); + Assertions.assertEquals("zlwvsgmwohqfz", model.tags().get("zvuxm")); + 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/DefenderForAISettingResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java index af9d07f83822..54854a12254e 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\":\"dqohmc\",\"value\":[{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"etpwbralll\",\"tags\":{\"n\":\"hbqzmizakakankjp\",\"xprimrsop\":\"zhajoylhjlmuo\"},\"id\":\"ecj\",\"name\":\"eislstvasylwx\",\"type\":\"zaum\"},{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"guufuzboyjathwtz\",\"tags\":{\"mwmdxmebwjscjpa\":\"a\"},\"id\":\"xveabf\",\"name\":\"xnmwmqtibxyijddt\",\"type\":\"qcttadijaeukmrsi\"},{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"dzaapmudqme\",\"tags\":{\"bu\":\"gp\",\"znrtffyaqit\":\"qwyxebeybpm\"},\"id\":\"heioqa\",\"name\":\"hvseufuqyrx\",\"type\":\"dlcgqlsismjqfr\"}]}") + "{\"nextLink\":\"buiyji\",\"value\":[{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"gneik\",\"tags\":{\"z\":\"oxgjiuqhibt\"},\"id\":\"qw\",\"name\":\"edmurrxxge\",\"type\":\"pkt\"},{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"mqpzoyhlfbcgw\",\"tags\":{\"jipnwj\":\"oxoebqi\",\"zpofoiyjwpfilk\":\"ujqlafcbahh\",\"ogphuartvtiu\":\"kkholvdndvia\"},\"id\":\"efchn\",\"name\":\"n\",\"type\":\"hmnxhkxjqi\"},{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"ooxf\",\"tags\":{\"rsnewmozqvbubqma\":\"hx\",\"taboidvmf\":\"hsycxhxzgaz\"},\"id\":\"ppu\",\"name\":\"owsepdfgkmtdhern\",\"type\":\"btcjuah\"}]}") .toObject(DefenderForAISettingResult.class); - Assertions.assertEquals("dqohmc", model.nextLink()); - Assertions.assertEquals("hbqzmizakakankjp", model.value().get(0).tags().get("n")); - Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.value().get(0).state()); + Assertions.assertEquals("buiyji", model.nextLink()); + Assertions.assertEquals("oxgjiuqhibt", model.value().get(0).tags().get("z")); + Assertions.assertEquals(DefenderForAISettingState.ENABLED, 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 cd0c69324260..e5b7e2a44fbf 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\":\"yxwb\",\"tags\":{\"cdht\":\"davqdorbcc\"},\"id\":\"jvlirk\",\"name\":\"ucosawrdt\",\"type\":\"agzlgpyai\"}"; + = "{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"dlhzwhcu\",\"tags\":{\"fdizhrjq\":\"osj\",\"slyekcgn\":\"yayt\"},\"id\":\"arlcjiwgsxfaiocw\",\"name\":\"gujjgn\",\"type\":\"grzxbarcbpaefzqs\"}"; 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("xvsc") - .withExistingAccount("vkrbzkuastaxklpr", "ulhgltoiz") - .withTags(mapOf("fcck", "fxcz", "rtlhpdhwyn", "rtwletyves")) + .define("uninttlnrjdszd") + .withExistingAccount("qflvtlrvbst", "huy") + .withTags(mapOf("ssf", "jnoxuoxtfnr", "kncjmgvsnvbtqdxf", "pg")) .withState(DefenderForAISettingState.DISABLED) .create(); - Assertions.assertEquals("davqdorbcc", response.tags().get("cdht")); + Assertions.assertEquals("osj", response.tags().get("fdizhrjq")); 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 5644583b92c9..0ede66e4df4e 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\":\"Disabled\"},\"etag\":\"gkgsoau\",\"tags\":{\"qbdqnasttuxvz\":\"ssatfybipufdmx\",\"yopbtsixhgvb\":\"q\"},\"id\":\"mndzt\",\"name\":\"sqjayqmarxneibp\",\"type\":\"brhbjdqknhqn\"}"; + = "{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"g\",\"tags\":{\"rsytqz\":\"hgdzuqscagqyvou\"},\"id\":\"lhmgwfniv\",\"name\":\"x\",\"type\":\"fduiolhgyqvpb\"}"; 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("pyfaofdfp", "tncwmhjobzrfpr", "zdcqhyftcvb", com.azure.core.util.Context.NONE) + .getWithResponse("j", "zezbjes", "lslu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ssatfybipufdmx", response.tags().get("qbdqnasttuxvz")); - Assertions.assertEquals(DefenderForAISettingState.DISABLED, response.state()); + Assertions.assertEquals("hgdzuqscagqyvou", response.tags().get("rsytqz")); + 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 77ba59340e71..78332b2de835 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\":\"ypwyiulayno\",\"tags\":{\"ucumlddauqml\":\"kfhaxttpfsmwgsgh\"},\"id\":\"eot\",\"name\":\"xuarigrjdljl\",\"type\":\"q\"}]}"; + = "{\"value\":[{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"rmvhvzi\",\"tags\":{\"wzcqygg\":\"prnquj\",\"tobdrrpnre\":\"nwsvhbngqiwye\",\"geattbzkg\":\"kunsbfjhhlwtpkv\",\"nwqsttewu\":\"z\"},\"id\":\"ysjeufjx\",\"name\":\"lpditfnonpi\",\"type\":\"uxlvrhprrvbwonl\"}]}"; 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("otpu", "nnohmmzngo", com.azure.core.util.Context.NONE); + = manager.defenderForAISettings().list("j", "oqzucfzluczdq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("kfhaxttpfsmwgsgh", response.iterator().next().tags().get("ucumlddauqml")); + Assertions.assertEquals("prnquj", response.iterator().next().tags().get("wzcqygg")); Assertions.assertEquals(DefenderForAISettingState.ENABLED, 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 3e72e284a6e6..81ab8ba215ca 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("hllnmwynefxe", "lf", "i", com.azure.core.util.Context.NONE); + manager.deletedAccounts().purge("foxqwecrsn", "pcs", "lqxov", 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 5824755ff22a..6713d318681b 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\":779451406,\"priority\":1043675485}") + = BinaryData.fromString("{\"designatedCapacity\":351540832,\"priority\":1043474675}") .toObject(DeploymentCapacitySettings.class); - Assertions.assertEquals(779451406, model.designatedCapacity()); - Assertions.assertEquals(1043675485, model.priority()); + Assertions.assertEquals(351540832, model.designatedCapacity()); + Assertions.assertEquals(1043474675, model.priority()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DeploymentCapacitySettings model - = new DeploymentCapacitySettings().withDesignatedCapacity(779451406).withPriority(1043675485); + = new DeploymentCapacitySettings().withDesignatedCapacity(351540832).withPriority(1043474675); model = BinaryData.fromObject(model).toObject(DeploymentCapacitySettings.class); - Assertions.assertEquals(779451406, model.designatedCapacity()); - Assertions.assertEquals(1043675485, model.priority()); + Assertions.assertEquals(351540832, model.designatedCapacity()); + Assertions.assertEquals(1043474675, 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 new file mode 100644 index 000000000000..906b5d215b1f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentPolicyEvaluationResultTests.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.DeploymentPolicyEvaluationResult; +import com.azure.resourcemanager.cognitiveservices.models.PolicyEvaluationOutcome; +import org.junit.jupiter.api.Assertions; + +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\"}]}]}") + .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.nonCompliantAssignments().get(0).evaluationOutcome()); + Assertions.assertEquals("ovbvmeueciv", model.nonCompliantAssignments().get(0).nonComplianceReason()); + Assertions.assertEquals("zceuojgjrw", model.nonCompliantAssignments().get(0).effect()); + Assertions.assertEquals("otwmcdyt", + model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).expression()); + Assertions.assertEquals("wit", + model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).expressionKind()); + Assertions.assertEquals("rjaw", + model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).operator()); + Assertions.assertEquals("wgxhn", + model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).result()); + Assertions.assertEquals("kxfbkpycgklwndn", + model.nonCompliantAssignments().get(0).expressionEvaluations().get(0).targetValue()); + Assertions.assertEquals("dauwhvylwzbtd", + 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 51f5283a731c..acce143071b5 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 @@ -12,19 +12,19 @@ public final class DeploymentScaleSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DeploymentScaleSettings model = BinaryData - .fromString("{\"scaleType\":\"Standard\",\"capacity\":1091212098,\"activeCapacity\":2077643232}") - .toObject(DeploymentScaleSettings.class); + DeploymentScaleSettings model + = BinaryData.fromString("{\"scaleType\":\"Standard\",\"capacity\":2129284676,\"activeCapacity\":258381541}") + .toObject(DeploymentScaleSettings.class); Assertions.assertEquals(DeploymentScaleType.STANDARD, model.scaleType()); - Assertions.assertEquals(1091212098, model.capacity()); + Assertions.assertEquals(2129284676, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DeploymentScaleSettings model - = new DeploymentScaleSettings().withScaleType(DeploymentScaleType.STANDARD).withCapacity(1091212098); + = new DeploymentScaleSettings().withScaleType(DeploymentScaleType.STANDARD).withCapacity(2129284676); model = BinaryData.fromObject(model).toObject(DeploymentScaleSettings.class); Assertions.assertEquals(DeploymentScaleType.STANDARD, model.scaleType()); - Assertions.assertEquals(1091212098, model.capacity()); + Assertions.assertEquals(2129284676, 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 new file mode 100644 index 000000000000..38ee732feb38 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSizeCapacityTests.java @@ -0,0 +1,17 @@ +// 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.DeploymentSizeCapacity; + +public final class DeploymentSizeCapacityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DeploymentSizeCapacity model = BinaryData.fromString( + "{\"modelInstanceAcceleratorCount\":1346986780,\"totalAvailableCapacity\":1522239044,\"largestDeploymentCapacity\":1210008600}") + .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 d1621fa50262..84d36960b007 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\":\"yvpycanuzbpzk\",\"value\":[{\"resourceType\":\"wbcrnwbmehhseyv\",\"sku\":{\"name\":\"srtslhspkdeem\",\"tier\":\"Enterprise\",\"size\":\"xagkvtmelmqkrh\",\"family\":\"vljua\",\"capacity\":836090349},\"capacity\":{\"minimum\":27642330,\"maximum\":1312333731,\"step\":1098069205,\"default\":2135401961,\"allowedValues\":[595850477]}},{\"resourceType\":\"qpv\",\"sku\":{\"name\":\"dmwsrcrgvxpvgomz\",\"tier\":\"Basic\",\"size\":\"sgwbnbbeld\",\"family\":\"k\",\"capacity\":585337534},\"capacity\":{\"minimum\":113893877,\"maximum\":12612409,\"step\":568079364,\"default\":997736872,\"allowedValues\":[1039189909,33232567,1375924345]}},{\"resourceType\":\"sfwxosowzxc\",\"sku\":{\"name\":\"i\",\"tier\":\"Standard\",\"size\":\"xdje\",\"family\":\"pucwwfvovbvme\",\"capacity\":321338352},\"capacity\":{\"minimum\":783632971,\"maximum\":297335263,\"step\":360614729,\"default\":1628145340,\"allowedValues\":[745513484,347281810,1026391011,1178618137]}}]}") + "{\"nextLink\":\"hqkvpuvksgplsak\",\"value\":[{\"resourceType\":\"synljphuopxodl\",\"sku\":{\"name\":\"ynt\",\"tier\":\"Standard\",\"size\":\"hleosjsw\",\"family\":\"mslyzrpzbchckqqz\",\"capacity\":345935424},\"capacity\":{\"minimum\":1223269261,\"maximum\":2011830272,\"step\":78187061,\"default\":2121235922,\"allowedValues\":[2066516032]}}]}") .toObject(DeploymentSkuListResult.class); - Assertions.assertEquals("yvpycanuzbpzk", model.nextLink()); + Assertions.assertEquals("hqkvpuvksgplsak", 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 2d42d4914790..c8e634316e81 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,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.deployments().delete("clkrdpq", "fhyrfrakk", "d", com.azure.core.util.Context.NONE); + manager.deployments().delete("qtow", "h", "sycoybajasqub", 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 73c680d9f37f..5a6ebc27bfa7 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\":\"xqggvqr\",\"sku\":{\"name\":\"yhlwcjsqg\",\"tier\":\"Enterprise\",\"size\":\"f\",\"family\":\"rqrkijpeuqlsdx\",\"capacity\":624919964},\"capacity\":{\"minimum\":219641959,\"maximum\":818856345,\"step\":492816605,\"default\":1691277612,\"allowedValues\":[330735385,277853585]}}]}"; + = "{\"value\":[{\"resourceType\":\"whvuldbkk\",\"sku\":{\"name\":\"jkjigawgaz\",\"tier\":\"Basic\",\"size\":\"ifhujjsbcm\",\"family\":\"aahzbhuroolkol\",\"capacity\":1064923010},\"capacity\":{\"minimum\":1206042292,\"maximum\":1440082586,\"step\":228965865,\"default\":187214639,\"allowedValues\":[1997550822]}}]}"; 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("tk", "umzued", "yzbfvxovqkx", com.azure.core.util.Context.NONE); + = manager.deployments().listSkus("pctf", "ikff", "fgkuh", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xqggvqr", response.iterator().next().resourceType()); - Assertions.assertEquals("yhlwcjsqg", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.iterator().next().sku().tier()); - Assertions.assertEquals("f", response.iterator().next().sku().size()); - Assertions.assertEquals("rqrkijpeuqlsdx", response.iterator().next().sku().family()); - Assertions.assertEquals(624919964, response.iterator().next().sku().capacity()); - Assertions.assertEquals(219641959, response.iterator().next().capacity().minimum()); - Assertions.assertEquals(818856345, response.iterator().next().capacity().maximum()); - Assertions.assertEquals(492816605, response.iterator().next().capacity().step()); - Assertions.assertEquals(1691277612, response.iterator().next().capacity().defaultProperty()); - Assertions.assertEquals(330735385, response.iterator().next().capacity().allowedValues().get(0)); + Assertions.assertEquals("whvuldbkk", response.iterator().next().resourceType()); + Assertions.assertEquals("jkjigawgaz", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); + Assertions.assertEquals("ifhujjsbcm", response.iterator().next().sku().size()); + Assertions.assertEquals("aahzbhuroolkol", response.iterator().next().sku().family()); + Assertions.assertEquals(1064923010, response.iterator().next().sku().capacity()); + Assertions.assertEquals(1206042292, response.iterator().next().capacity().minimum()); + Assertions.assertEquals(1440082586, response.iterator().next().capacity().maximum()); + Assertions.assertEquals(228965865, response.iterator().next().capacity().step()); + Assertions.assertEquals(187214639, response.iterator().next().capacity().defaultProperty()); + Assertions.assertEquals(1997550822, 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 new file mode 100644 index 000000000000..0ce3ac069987 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesRequestTests.java @@ -0,0 +1,76 @@ +// 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.DeploymentModel; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeployment; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +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\"}}]}") + .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()); + } + + @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")))); + 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()); + } +} 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 new file mode 100644 index 000000000000..bc3bb2bdfd6e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesResponseInnerTests.java @@ -0,0 +1,34 @@ +// 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.EvaluateDeploymentPoliciesResponseInner; +import com.azure.resourcemanager.cognitiveservices.models.PolicyEvaluationOutcome; +import org.junit.jupiter.api.Assertions; + +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\":[{},{}]}]}}}") + .toObject(EvaluateDeploymentPoliciesResponseInner.class); + 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()); + } +} 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 7adf01ccffd9..74fb36f30d0a 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\":\"vedwcgyeewx\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"mgomg\",\"parentRuleNames\":[\"ljdlrgmspl\",\"gaufcs\",\"hvn\",\"wgnxkympqanxrj\"]}") + "{\"type\":\"FQDN\",\"destination\":\"qmje\",\"category\":\"Required\",\"status\":\"Active\",\"errorInformation\":\"qg\",\"parentRuleNames\":[\"usrvx\",\"simjceagbjqvlsu\"]}") .toObject(FqdnOutboundRule.class); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.status()); - Assertions.assertEquals("vedwcgyeewx", model.destination()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.category()); + Assertions.assertEquals(RuleStatus.ACTIVE, model.status()); + Assertions.assertEquals("qmje", model.destination()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FqdnOutboundRule model = new FqdnOutboundRule().withCategory(RuleCategory.RECOMMENDED) - .withStatus(RuleStatus.INACTIVE) - .withDestination("vedwcgyeewx"); + FqdnOutboundRule model = new FqdnOutboundRule().withCategory(RuleCategory.REQUIRED) + .withStatus(RuleStatus.ACTIVE) + .withDestination("qmje"); model = BinaryData.fromObject(model).toObject(FqdnOutboundRule.class); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.status()); - Assertions.assertEquals("vedwcgyeewx", model.destination()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.category()); + Assertions.assertEquals(RuleStatus.ACTIVE, model.status()); + Assertions.assertEquals("qmje", 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 40f2897fd58c..a5e0f8b956e2 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,56 +19,52 @@ public final class HostedAgentDeploymentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HostedAgentDeployment model = BinaryData.fromString( - "{\"deploymentType\":\"Hosted\",\"minReplicas\":721196511,\"maxReplicas\":1365280393,\"displayName\":\"kceysfaqegplw\",\"deploymentId\":\"shwddkvbxgk\",\"state\":\"Failed\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"dacarvvlfnty\"},{\"protocol\":\"Responses\",\"version\":\"iwenazero\"},{\"protocol\":\"A2A\",\"version\":\"qalsxkd\"},{\"protocol\":\"Agent\",\"version\":\"pfgsdpcvessmzhh\"}],\"agents\":[{\"agentVersion\":\"pldqqct\",\"agentId\":\"valblhtjqv\",\"agentName\":\"vweht\"},{\"agentVersion\":\"mxhzzysevus\",\"agentId\":\"vzrrryveimi\",\"agentName\":\"kdyzatvfuzk\"}],\"provisioningState\":\"Creating\",\"description\":\"vvruxwi\",\"tags\":{\"qdsmjtg\":\"ei\"}}") + "{\"deploymentType\":\"Hosted\",\"minReplicas\":936631865,\"maxReplicas\":1531586160,\"displayName\":\"mfcoibic\",\"deploymentId\":\"uswswjrkbqsjhb\",\"state\":\"Starting\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"yrfwbivq\"},{\"protocol\":\"A2A\",\"version\":\"uyzwvbhlimbyqecr\"},{\"protocol\":\"Responses\",\"version\":\"ikcdrdaasax\"},{\"protocol\":\"Agent\",\"version\":\"mfkwiyjvzuk\"}],\"agents\":[{\"agentVersion\":\"awn\",\"agentId\":\"mlnkoywsxv\",\"agentName\":\"bjqqaxuyvymcn\"}],\"provisioningState\":\"Deleting\",\"description\":\"oabhjxwxqweuip\",\"tags\":{\"lkrdpqgfhy\":\"ksmitnsqxtlt\"}}") .toObject(HostedAgentDeployment.class); - Assertions.assertEquals("vvruxwi", model.description()); - Assertions.assertEquals("ei", model.tags().get("qdsmjtg")); - Assertions.assertEquals("kceysfaqegplw", model.displayName()); - Assertions.assertEquals("shwddkvbxgk", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.FAILED, model.state()); - Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); - Assertions.assertEquals("dacarvvlfnty", model.protocols().get(0).version()); - Assertions.assertEquals("valblhtjqv", model.agents().get(0).agentId()); - Assertions.assertEquals("vweht", model.agents().get(0).agentName()); - Assertions.assertEquals("pldqqct", model.agents().get(0).agentVersion()); - Assertions.assertEquals(721196511, model.minReplicas()); - Assertions.assertEquals(1365280393, model.maxReplicas()); + Assertions.assertEquals("oabhjxwxqweuip", model.description()); + Assertions.assertEquals("ksmitnsqxtlt", model.tags().get("lkrdpqgfhy")); + Assertions.assertEquals("mfcoibic", model.displayName()); + Assertions.assertEquals("uswswjrkbqsjhb", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); + Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); + Assertions.assertEquals("yrfwbivq", model.protocols().get(0).version()); + Assertions.assertEquals("mlnkoywsxv", model.agents().get(0).agentId()); + Assertions.assertEquals("bjqqaxuyvymcn", model.agents().get(0).agentName()); + Assertions.assertEquals("awn", model.agents().get(0).agentVersion()); + Assertions.assertEquals(936631865, model.minReplicas()); + Assertions.assertEquals(1531586160, model.maxReplicas()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - HostedAgentDeployment model = new HostedAgentDeployment().withDescription("vvruxwi") - .withTags(mapOf("qdsmjtg", "ei")) - .withDisplayName("kceysfaqegplw") - .withDeploymentId("shwddkvbxgk") - .withState(AgentDeploymentState.FAILED) - .withProtocols(Arrays.asList( - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("dacarvvlfnty"), - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("iwenazero"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("qalsxkd"), - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("pfgsdpcvessmzhh"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("valblhtjqv") - .withAgentName("vweht") - .withAgentVersion("pldqqct"), - new VersionedAgentReference().withAgentId("vzrrryveimi") - .withAgentName("kdyzatvfuzk") - .withAgentVersion("mxhzzysevus"))) - .withMinReplicas(721196511) - .withMaxReplicas(1365280393); + HostedAgentDeployment model = new HostedAgentDeployment().withDescription("oabhjxwxqweuip") + .withTags(mapOf("lkrdpqgfhy", "ksmitnsqxtlt")) + .withDisplayName("mfcoibic") + .withDeploymentId("uswswjrkbqsjhb") + .withState(AgentDeploymentState.STARTING) + .withProtocols( + Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("yrfwbivq"), + new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("uyzwvbhlimbyqecr"), + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("ikcdrdaasax"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("mfkwiyjvzuk"))) + .withAgents(Arrays.asList(new VersionedAgentReference().withAgentId("mlnkoywsxv") + .withAgentName("bjqqaxuyvymcn") + .withAgentVersion("awn"))) + .withMinReplicas(936631865) + .withMaxReplicas(1531586160); model = BinaryData.fromObject(model).toObject(HostedAgentDeployment.class); - Assertions.assertEquals("vvruxwi", model.description()); - Assertions.assertEquals("ei", model.tags().get("qdsmjtg")); - Assertions.assertEquals("kceysfaqegplw", model.displayName()); - Assertions.assertEquals("shwddkvbxgk", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.FAILED, model.state()); - Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); - Assertions.assertEquals("dacarvvlfnty", model.protocols().get(0).version()); - Assertions.assertEquals("valblhtjqv", model.agents().get(0).agentId()); - Assertions.assertEquals("vweht", model.agents().get(0).agentName()); - Assertions.assertEquals("pldqqct", model.agents().get(0).agentVersion()); - Assertions.assertEquals(721196511, model.minReplicas()); - Assertions.assertEquals(1365280393, model.maxReplicas()); + Assertions.assertEquals("oabhjxwxqweuip", model.description()); + Assertions.assertEquals("ksmitnsqxtlt", model.tags().get("lkrdpqgfhy")); + Assertions.assertEquals("mfcoibic", model.displayName()); + Assertions.assertEquals("uswswjrkbqsjhb", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); + Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); + Assertions.assertEquals("yrfwbivq", model.protocols().get(0).version()); + Assertions.assertEquals("mlnkoywsxv", model.agents().get(0).agentId()); + Assertions.assertEquals("bjqqaxuyvymcn", model.agents().get(0).agentName()); + Assertions.assertEquals("awn", model.agents().get(0).agentVersion()); + Assertions.assertEquals(936631865, model.minReplicas()); + Assertions.assertEquals(1531586160, model.maxReplicas()); } // 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 345f33dfb3d1..5e96fab91059 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\":\"zfq\",\"properties\":{\"model\":{\"publisher\":\"dwpppqwojoe\",\"format\":\"zufy\",\"name\":\"xmlynzly\",\"version\":\"pbkrbuogg\",\"source\":\"ltlcuhaizijva\",\"sourceAccount\":\"zeohlpsftqkrvm\",\"callRateLimit\":{\"count\":68.89236,\"renewalPeriod\":36.675716,\"rules\":[{},{},{}]}},\"skuName\":\"qsuspnhmzydffe\",\"availableCapacity\":31.377476,\"availableFinetuneCapacity\":75.62644,\"scopeId\":\"fknwacycsyotct\",\"scopeType\":\"Regional\"},\"id\":\"fsatvcsx\",\"name\":\"mhnmizhvprhqqw\",\"type\":\"ublehhkplobz\"}]}"; + = "{\"value\":[{\"location\":\"tsaynr\",\"properties\":{\"model\":{\"publisher\":\"qreeo\",\"format\":\"q\",\"name\":\"rnbli\",\"version\":\"dbfbmdiv\",\"source\":\"zhpjgqz\",\"sourceAccount\":\"aoawea\",\"callRateLimit\":{\"count\":12.746358,\"renewalPeriod\":46.097904,\"rules\":[{},{},{},{}]}},\"skuName\":\"uetcnx\",\"availableCapacity\":51.985596,\"availableFinetuneCapacity\":95.77275,\"scopeId\":\"ckh\",\"scopeType\":\"Global\"},\"id\":\"rjsurnowo\",\"name\":\"wxrxmy\",\"type\":\"kohlsfjfouqj\"}]}"; 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("adhed", "fobdczvothm", "hjaozvbwfcn", "hbpoelhscmyhrhj", com.azure.core.util.Context.NONE); + .list("pxnikouoxf", "lokbs", "kyporsynieunby", "lgfaphwuu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("zfq", response.iterator().next().location()); - Assertions.assertEquals("dwpppqwojoe", response.iterator().next().properties().model().publisher()); - Assertions.assertEquals("zufy", response.iterator().next().properties().model().format()); - Assertions.assertEquals("xmlynzly", response.iterator().next().properties().model().name()); - Assertions.assertEquals("pbkrbuogg", response.iterator().next().properties().model().version()); - Assertions.assertEquals("ltlcuhaizijva", response.iterator().next().properties().model().source()); - Assertions.assertEquals("zeohlpsftqkrvm", response.iterator().next().properties().model().sourceAccount()); - Assertions.assertEquals("qsuspnhmzydffe", response.iterator().next().properties().skuName()); - Assertions.assertEquals(31.377476F, response.iterator().next().properties().availableCapacity()); - Assertions.assertEquals(75.62644F, response.iterator().next().properties().availableFinetuneCapacity()); - Assertions.assertEquals("fknwacycsyotct", response.iterator().next().properties().scopeId()); - Assertions.assertEquals(QuotaScopeType.REGIONAL, response.iterator().next().properties().scopeType()); + Assertions.assertEquals("tsaynr", response.iterator().next().location()); + Assertions.assertEquals("qreeo", response.iterator().next().properties().model().publisher()); + Assertions.assertEquals("q", response.iterator().next().properties().model().format()); + Assertions.assertEquals("rnbli", response.iterator().next().properties().model().name()); + Assertions.assertEquals("dbfbmdiv", response.iterator().next().properties().model().version()); + Assertions.assertEquals("zhpjgqz", response.iterator().next().properties().model().source()); + Assertions.assertEquals("aoawea", response.iterator().next().properties().model().sourceAccount()); + Assertions.assertEquals("uetcnx", response.iterator().next().properties().skuName()); + Assertions.assertEquals(51.985596F, response.iterator().next().properties().availableCapacity()); + Assertions.assertEquals(95.77275F, response.iterator().next().properties().availableFinetuneCapacity()); + Assertions.assertEquals("ckh", 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 6d6c44471cc0..3d7c3f68dbf2 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,51 +19,49 @@ public final class ManagedAgentDeploymentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedAgentDeployment model = BinaryData.fromString( - "{\"deploymentType\":\"Managed\",\"displayName\":\"gqy\",\"deploymentId\":\"eseyqr\",\"state\":\"Starting\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"jv\"},{\"protocol\":\"A2A\",\"version\":\"swskuk\"},{\"protocol\":\"A2A\",\"version\":\"bvwispkx\"},{\"protocol\":\"A2A\",\"version\":\"fkndl\"}],\"agents\":[{\"agentVersion\":\"knvgmmbugtywat\",\"agentId\":\"aqkue\",\"agentName\":\"groeshoyg\"},{\"agentVersion\":\"byfqxkfaoy\",\"agentId\":\"h\",\"agentName\":\"uvjmv\"}],\"provisioningState\":\"Canceled\",\"description\":\"wckygr\",\"tags\":{\"dljdjuskb\":\"n\"}}") + "{\"deploymentType\":\"Managed\",\"displayName\":\"xsvtzarhzvqnsqk\",\"deploymentId\":\"mbjwzzoslpkyb\",\"state\":\"Deleted\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"ajsqjcemqbmfuv\"},{\"protocol\":\"Responses\",\"version\":\"z\"}],\"agents\":[{\"agentVersion\":\"ebluimmbwx\",\"agentId\":\"gtdmbvx\",\"agentName\":\"raokqkbudb\"},{\"agentVersion\":\"aokbavlyttaaknwf\",\"agentId\":\"ebsmhpdujdigato\",\"agentName\":\"ksc\"}],\"provisioningState\":\"Succeeded\",\"description\":\"anqimwbzxpdcl\",\"tags\":{\"w\":\"awnsnlaimou\"}}") .toObject(ManagedAgentDeployment.class); - Assertions.assertEquals("wckygr", model.description()); - Assertions.assertEquals("n", model.tags().get("dljdjuskb")); - Assertions.assertEquals("gqy", model.displayName()); - Assertions.assertEquals("eseyqr", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); - Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); - Assertions.assertEquals("jv", model.protocols().get(0).version()); - Assertions.assertEquals("aqkue", model.agents().get(0).agentId()); - Assertions.assertEquals("groeshoyg", model.agents().get(0).agentName()); - Assertions.assertEquals("knvgmmbugtywat", model.agents().get(0).agentVersion()); + Assertions.assertEquals("anqimwbzxpdcl", model.description()); + Assertions.assertEquals("awnsnlaimou", model.tags().get("w")); + Assertions.assertEquals("xsvtzarhzvqnsqk", model.displayName()); + Assertions.assertEquals("mbjwzzoslpkyb", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETED, model.state()); + Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); + Assertions.assertEquals("ajsqjcemqbmfuv", model.protocols().get(0).version()); + Assertions.assertEquals("gtdmbvx", model.agents().get(0).agentId()); + Assertions.assertEquals("raokqkbudb", model.agents().get(0).agentName()); + Assertions.assertEquals("ebluimmbwx", model.agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedAgentDeployment model - = new ManagedAgentDeployment().withDescription("wckygr") - .withTags(mapOf("dljdjuskb", "n")) - .withDisplayName("gqy") - .withDeploymentId("eseyqr") - .withState(AgentDeploymentState.STARTING) + = new ManagedAgentDeployment().withDescription("anqimwbzxpdcl") + .withTags(mapOf("w", "awnsnlaimou")) + .withDisplayName("xsvtzarhzvqnsqk") + .withDeploymentId("mbjwzzoslpkyb") + .withState(AgentDeploymentState.DELETED) .withProtocols(Arrays.asList( - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("jv"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("swskuk"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("bvwispkx"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("fkndl"))) - .withAgents(Arrays.asList(new VersionedAgentReference() - .withAgentId("aqkue") - .withAgentName("groeshoyg") - .withAgentVersion("knvgmmbugtywat"), - new VersionedAgentReference().withAgentId("h") - .withAgentName("uvjmv") - .withAgentVersion("byfqxkfaoy"))); + new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("ajsqjcemqbmfuv"), + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("z"))) + .withAgents(Arrays.asList( + new VersionedAgentReference().withAgentId("gtdmbvx") + .withAgentName("raokqkbudb") + .withAgentVersion("ebluimmbwx"), + new VersionedAgentReference().withAgentId("ebsmhpdujdigato") + .withAgentName("ksc") + .withAgentVersion("aokbavlyttaaknwf"))); model = BinaryData.fromObject(model).toObject(ManagedAgentDeployment.class); - Assertions.assertEquals("wckygr", model.description()); - Assertions.assertEquals("n", model.tags().get("dljdjuskb")); - Assertions.assertEquals("gqy", model.displayName()); - Assertions.assertEquals("eseyqr", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); - Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); - Assertions.assertEquals("jv", model.protocols().get(0).version()); - Assertions.assertEquals("aqkue", model.agents().get(0).agentId()); - Assertions.assertEquals("groeshoyg", model.agents().get(0).agentName()); - Assertions.assertEquals("knvgmmbugtywat", model.agents().get(0).agentVersion()); + Assertions.assertEquals("anqimwbzxpdcl", model.description()); + Assertions.assertEquals("awnsnlaimou", model.tags().get("w")); + Assertions.assertEquals("xsvtzarhzvqnsqk", model.displayName()); + Assertions.assertEquals("mbjwzzoslpkyb", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETED, model.state()); + Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); + Assertions.assertEquals("ajsqjcemqbmfuv", model.protocols().get(0).version()); + Assertions.assertEquals("gtdmbvx", model.agents().get(0).agentId()); + Assertions.assertEquals("raokqkbudb", model.agents().get(0).agentName()); + Assertions.assertEquals("ebluimmbwx", 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/ManagedComputeCapacitiesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListMockTests.java new file mode 100644 index 000000000000..03e2a50ba83e --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListMockTests.java @@ -0,0 +1,37 @@ +// 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.ManagedComputeCapacity; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ManagedComputeCapacitiesListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"acceleratorType\":\"ekmuynfpkyvnhiy\",\"location\":\"horkslhraqk\",\"availableAccelerators\":1484484709,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":660956854,\"totalAvailableCapacity\":1744769282,\"largestDeploymentCapacity\":762391820},{\"modelInstanceAcceleratorCount\":1319501768,\"totalAvailableCapacity\":188009596,\"largestDeploymentCapacity\":306040449},{\"modelInstanceAcceleratorCount\":1419860271,\"totalAvailableCapacity\":1333192003,\"largestDeploymentCapacity\":258205065},{\"modelInstanceAcceleratorCount\":1810053258,\"totalAvailableCapacity\":398459789,\"largestDeploymentCapacity\":1378042679}]},\"id\":\"xnjtqbgysib\",\"name\":\"hnvxwtd\",\"type\":\"tcbjdbtqy\"}]}"; + + 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.managedComputeCapacities() + .list("tuipjclzjwaqdzq", "dewuwxyl", "zzzevtzqwczoc", 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 new file mode 100644 index 000000000000..6da79f739911 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityInnerTests.java @@ -0,0 +1,17 @@ +// 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.ManagedComputeCapacityInner; + +public final class ManagedComputeCapacityInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeCapacityInner model = BinaryData.fromString( + "{\"properties\":{\"acceleratorType\":\"qipxgzdyimsf\",\"location\":\"orpravkjoges\",\"availableAccelerators\":1370184740,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":1741666004,\"totalAvailableCapacity\":1858163577,\"largestDeploymentCapacity\":512286657},{\"modelInstanceAcceleratorCount\":441004284,\"totalAvailableCapacity\":1693738620,\"largestDeploymentCapacity\":313227377},{\"modelInstanceAcceleratorCount\":2009099936,\"totalAvailableCapacity\":1650343029,\"largestDeploymentCapacity\":2046181872},{\"modelInstanceAcceleratorCount\":596630907,\"totalAvailableCapacity\":551116987,\"largestDeploymentCapacity\":717793996}]},\"id\":\"yltjcrspxklu\",\"name\":\"cclfgxannn\",\"type\":\"ytzpo\"}") + .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 new file mode 100644 index 000000000000..2b841d6756f8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityListResultTests.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.ManagedComputeCapacityListResult; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeCapacityListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeCapacityListResult model = BinaryData.fromString( + "{\"nextLink\":\"wzawnvsbcfhzagxn\",\"value\":[{\"properties\":{\"acceleratorType\":\"dimwrzregzgyu\",\"location\":\"trwpw\",\"availableAccelerators\":529147823,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":1798719234,\"totalAvailableCapacity\":1381695387,\"largestDeploymentCapacity\":1327357796},{\"modelInstanceAcceleratorCount\":773088813,\"totalAvailableCapacity\":1010571395,\"largestDeploymentCapacity\":1937063016},{\"modelInstanceAcceleratorCount\":924161676,\"totalAvailableCapacity\":1538790173,\"largestDeploymentCapacity\":2090687916}]},\"id\":\"nhjtf\",\"name\":\"p\",\"type\":\"dpmiljpn\"},{\"properties\":{\"acceleratorType\":\"udqll\",\"location\":\"auzpjlx\",\"availableAccelerators\":1467117220,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":1834453313,\"totalAvailableCapacity\":1765138611,\"largestDeploymentCapacity\":1714655095},{\"modelInstanceAcceleratorCount\":660861760,\"totalAvailableCapacity\":97173233,\"largestDeploymentCapacity\":602790811},{\"modelInstanceAcceleratorCount\":161523803,\"totalAvailableCapacity\":1458313269,\"largestDeploymentCapacity\":1868109842},{\"modelInstanceAcceleratorCount\":876389511,\"totalAvailableCapacity\":1114789403,\"largestDeploymentCapacity\":1592179744}]},\"id\":\"rednw\",\"name\":\"yshtuwgmev\",\"type\":\"afpwzyifrkgwl\"}]}") + .toObject(ManagedComputeCapacityListResult.class); + Assertions.assertEquals("wzawnvsbcfhzagxn", 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 new file mode 100644 index 000000000000..1366ea8e9f0f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityPropertiesTests.java @@ -0,0 +1,17 @@ +// 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.ManagedComputeCapacityProperties; + +public final class ManagedComputeCapacityPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeCapacityProperties model = BinaryData.fromString( + "{\"acceleratorType\":\"wxigpxv\",\"location\":\"maupxvpi\",\"availableAccelerators\":102361694,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":2001019238,\"totalAvailableCapacity\":474770894,\"largestDeploymentCapacity\":1637293838}]}") + .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 new file mode 100644 index 000000000000..a0bcadc524f7 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInfoTests.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; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentInfo; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeDeploymentInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeDeploymentInfo model = BinaryData.fromString( + "{\"deploymentId\":\"vjufycsjmlbe\",\"projectId\":\"ej\",\"modelId\":\"iuxegth\",\"acceleratorCount\":4715548471189120771,\"instanceCount\":1098049090}") + .toObject(ManagedComputeDeploymentInfo.class); + Assertions.assertEquals("vjufycsjmlbe", model.deploymentId()); + Assertions.assertEquals("ej", model.projectId()); + Assertions.assertEquals("iuxegth", model.modelId()); + Assertions.assertEquals(4715548471189120771L, model.acceleratorCount()); + Assertions.assertEquals(1098049090, 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 new file mode 100644 index 000000000000..932a3e397e1c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInnerTests.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.fluent.models.ManagedComputeDeploymentInner; +import com.azure.resourcemanager.cognitiveservices.models.DeploymentModelVersionUpgradeOption; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.Sku; +import com.azure.resourcemanager.cognitiveservices.models.SkuTier; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeDeploymentInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeDeploymentInner model = BinaryData.fromString( + "{\"properties\":{\"model\":\"hhhqosm\",\"deploymentTemplate\":\"jkutycyarnr\",\"acceleratorType\":\"hguabzoghktdp\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"computeId\":\"coe\",\"priority\":\"nhzqrottjzcfy\",\"acceleratorsPerInstance\":504024247,\"totalAccelerators\":1932515171,\"provisioningState\":\"Deleting\",\"provisioningDetails\":{\"message\":\"apqinf\",\"lastOperationTimestamp\":\"2021-03-15T02:08:03Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"lqdhmrjzr\",\"swagger\":\"cxpjbyypsj\",\"messagesApiScoringPath\":\"cjenkyhfqzvsqxf\"}},\"sku\":{\"name\":\"elgcmpzqjhhhqx\",\"tier\":\"Standard\",\"size\":\"cacoyvivbsiz\",\"family\":\"jszlb\",\"capacity\":1806646485},\"etag\":\"lzijiufehgmvflnw\",\"id\":\"qkxrerl\",\"name\":\"iylylyfw\",\"type\":\"zutgqztwhghmupg\"}") + .toObject(ManagedComputeDeploymentInner.class); + Assertions.assertEquals("hhhqosm", model.properties().model()); + Assertions.assertEquals("jkutycyarnr", model.properties().deploymentTemplate()); + Assertions.assertEquals("hguabzoghktdp", model.properties().acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, + model.properties().versionUpgradeOption()); + Assertions.assertEquals("coe", model.properties().computeId()); + Assertions.assertEquals("nhzqrottjzcfy", model.properties().priority()); + Assertions.assertEquals("elgcmpzqjhhhqx", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("cacoyvivbsiz", model.sku().size()); + Assertions.assertEquals("jszlb", model.sku().family()); + Assertions.assertEquals(1806646485, model.sku().capacity()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ManagedComputeDeploymentInner model = new ManagedComputeDeploymentInner() + .withProperties(new ManagedComputeDeploymentProperties().withModel("hhhqosm") + .withDeploymentTemplate("jkutycyarnr") + .withAcceleratorType("hguabzoghktdp") + .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE) + .withComputeId("coe") + .withPriority("nhzqrottjzcfy")) + .withSku(new Sku().withName("elgcmpzqjhhhqx") + .withTier(SkuTier.STANDARD) + .withSize("cacoyvivbsiz") + .withFamily("jszlb") + .withCapacity(1806646485)); + model = BinaryData.fromObject(model).toObject(ManagedComputeDeploymentInner.class); + Assertions.assertEquals("hhhqosm", model.properties().model()); + Assertions.assertEquals("jkutycyarnr", model.properties().deploymentTemplate()); + Assertions.assertEquals("hguabzoghktdp", model.properties().acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, + model.properties().versionUpgradeOption()); + Assertions.assertEquals("coe", model.properties().computeId()); + Assertions.assertEquals("nhzqrottjzcfy", model.properties().priority()); + Assertions.assertEquals("elgcmpzqjhhhqx", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("cacoyvivbsiz", model.sku().size()); + Assertions.assertEquals("jszlb", model.sku().family()); + Assertions.assertEquals(1806646485, 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 new file mode 100644 index 000000000000..aaa5e00d48aa --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentListResultTests.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.ManagedComputeDeploymentListResult; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeDeploymentListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeDeploymentListResult model = BinaryData.fromString( + "{\"nextLink\":\"brxmrgch\",\"value\":[{\"properties\":{\"model\":\"kiyfjjkbajbusc\",\"deploymentTemplate\":\"uusioycblev\",\"acceleratorType\":\"clujyx\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"computeId\":\"zgsjgkzzlta\",\"priority\":\"bzf\",\"acceleratorsPerInstance\":1261509084,\"totalAccelerators\":792137209,\"provisioningState\":\"ResolvingDNS\",\"provisioningDetails\":{\"message\":\"qsczpgvdwnapfdqw\",\"lastOperationTimestamp\":\"2021-06-09T07:41:46Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"tnuwjtkschgc\",\"swagger\":\"y\",\"messagesApiScoringPath\":\"eseyqr\"}},\"sku\":{\"name\":\"y\",\"tier\":\"Standard\",\"size\":\"tj\",\"family\":\"kwiswskukjtas\",\"capacity\":1768639122},\"etag\":\"spkxkdt\",\"id\":\"kndlqvtwknvg\",\"name\":\"mb\",\"type\":\"gtywatmqaqkue\"},{\"properties\":{\"model\":\"groeshoyg\",\"deploymentTemplate\":\"byfqxkfaoy\",\"acceleratorType\":\"h\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"computeId\":\"jmvqmtd\",\"priority\":\"kygroejnndljdj\",\"acceleratorsPerInstance\":275878029,\"totalAccelerators\":1839569866,\"provisioningState\":\"Creating\",\"provisioningDetails\":{\"message\":\"n\",\"lastOperationTimestamp\":\"2021-06-23T11:58:22Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"faqegplwryshwddk\",\"swagger\":\"xgkqusybwp\",\"messagesApiScoringPath\":\"acarvvlf\"}},\"sku\":{\"name\":\"ymtpo\",\"tier\":\"Basic\",\"size\":\"azerohzrsq\",\"family\":\"sxkdnwqapfgsdpc\",\"capacity\":469247828},\"etag\":\"mzhhkuuipldqqc\",\"id\":\"kva\",\"name\":\"blhtjq\",\"type\":\"qyv\"}]}") + .toObject(ManagedComputeDeploymentListResult.class); + Assertions.assertEquals("brxmrgch", 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 new file mode 100644 index 000000000000..26cbdc3d5816 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentPropertiesTests.java @@ -0,0 +1,42 @@ +// 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.DeploymentModelVersionUpgradeOption; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeDeploymentPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeDeploymentProperties model = BinaryData.fromString( + "{\"model\":\"yjtcdxabbujftab\",\"deploymentTemplate\":\"bbklqpxzuca\",\"acceleratorType\":\"ddwwnlzafwxudgnh\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"computeId\":\"rtalvnbw\",\"priority\":\"bemeluclvd\",\"acceleratorsPerInstance\":1323472014,\"totalAccelerators\":1658208052,\"provisioningState\":\"Deleting\",\"provisioningDetails\":{\"message\":\"odxahhxhqf\",\"lastOperationTimestamp\":\"2021-08-07T20:40:36Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"oqgyipemchgav\",\"swagger\":\"zuejd\",\"messagesApiScoringPath\":\"ptlghwzhomewjjst\"}}") + .toObject(ManagedComputeDeploymentProperties.class); + Assertions.assertEquals("yjtcdxabbujftab", model.model()); + Assertions.assertEquals("bbklqpxzuca", model.deploymentTemplate()); + Assertions.assertEquals("ddwwnlzafwxudgnh", model.acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, model.versionUpgradeOption()); + Assertions.assertEquals("rtalvnbw", model.computeId()); + Assertions.assertEquals("bemeluclvd", model.priority()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ManagedComputeDeploymentProperties model = new ManagedComputeDeploymentProperties().withModel("yjtcdxabbujftab") + .withDeploymentTemplate("bbklqpxzuca") + .withAcceleratorType("ddwwnlzafwxudgnh") + .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE) + .withComputeId("rtalvnbw") + .withPriority("bemeluclvd"); + model = BinaryData.fromObject(model).toObject(ManagedComputeDeploymentProperties.class); + Assertions.assertEquals("yjtcdxabbujftab", model.model()); + Assertions.assertEquals("bbklqpxzuca", model.deploymentTemplate()); + Assertions.assertEquals("ddwwnlzafwxudgnh", model.acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, model.versionUpgradeOption()); + Assertions.assertEquals("rtalvnbw", model.computeId()); + Assertions.assertEquals("bemeluclvd", 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 new file mode 100644 index 000000000000..74f38984510c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentProvisioningDetailsTests.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.ManagedComputeDeploymentProvisioningDetails; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeDeploymentProvisioningDetailsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeDeploymentProvisioningDetails model = BinaryData + .fromString("{\"message\":\"uhqawmoaianc\",\"lastOperationTimestamp\":\"2021-09-01T14:01:13Z\"}") + .toObject(ManagedComputeDeploymentProvisioningDetails.class); + Assertions.assertEquals("uhqawmoaianc", model.message()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-01T14:01:13Z"), 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 new file mode 100644 index 000000000000..5ba91ac22eb0 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentRoutesTests.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.ManagedComputeDeploymentRoutes; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeDeploymentRoutesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeDeploymentRoutes model = BinaryData.fromString( + "{\"chatCompletionsScoringPath\":\"drrslblxydk\",\"swagger\":\"xvv\",\"messagesApiScoringPath\":\"iwkgfbqljnq\"}") + .toObject(ManagedComputeDeploymentRoutes.class); + Assertions.assertEquals("drrslblxydk", model.chatCompletionsScoringPath()); + Assertions.assertEquals("xvv", model.swagger()); + Assertions.assertEquals("iwkgfbqljnq", 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 new file mode 100644 index 000000000000..97ff7be9632f --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateMockTests.java @@ -0,0 +1,66 @@ +// 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.DeploymentModelVersionUpgradeOption; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployment; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties; +import com.azure.resourcemanager.cognitiveservices.models.Sku; +import com.azure.resourcemanager.cognitiveservices.models.SkuTier; +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 ManagedComputeDeploymentsCreateOrUpdateMockTests { + @Test + public void testCreateOrUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"model\":\"sqxile\",\"deploymentTemplate\":\"jsewrz\",\"acceleratorType\":\"quqynt\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"computeId\":\"hajksbsyogjmqjhg\",\"priority\":\"dijnmcvjbs\",\"acceleratorsPerInstance\":1172791815,\"totalAccelerators\":1450124139,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"xtdlxwmvcdkucp\",\"lastOperationTimestamp\":\"2021-11-30T17:57:01Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"rwrgorogeuvm\",\"swagger\":\"spnrsjsemlzofrs\",\"messagesApiScoringPath\":\"p\"}},\"sku\":{\"name\":\"petexutikelpmw\",\"tier\":\"Free\",\"size\":\"bwudhvosgjzs\",\"family\":\"ezalivdfwg\",\"capacity\":1986998070},\"etag\":\"wc\",\"id\":\"rxggezkhzp\",\"name\":\"iqissene\",\"type\":\"rusyzai\"}"; + + 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)); + + ManagedComputeDeployment response = manager.managedComputeDeployments() + .define("baot") + .withExistingAccount("blwal", "ossnq") + .withProperties(new ManagedComputeDeploymentProperties().withModel("tgcsm") + .withDeploymentTemplate("xxrwqfmdqecvtamq") + .withAcceleratorType("mnobfeww") + .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_NEW_DEFAULT_VERSION_AVAILABLE) + .withComputeId("xovuqoqjr") + .withPriority("lndyclwgycv")) + .withSku(new Sku().withName("kgocj") + .withTier(SkuTier.FREE) + .withSize("pfazusj") + .withFamily("huslgdw") + .withCapacity(1888485491)) + .create(); + + Assertions.assertEquals("sqxile", response.properties().model()); + Assertions.assertEquals("jsewrz", response.properties().deploymentTemplate()); + Assertions.assertEquals("quqynt", response.properties().acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, + response.properties().versionUpgradeOption()); + Assertions.assertEquals("hajksbsyogjmqjhg", response.properties().computeId()); + Assertions.assertEquals("dijnmcvjbs", response.properties().priority()); + Assertions.assertEquals("petexutikelpmw", response.sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.sku().tier()); + Assertions.assertEquals("bwudhvosgjzs", response.sku().size()); + Assertions.assertEquals("ezalivdfwg", response.sku().family()); + Assertions.assertEquals(1986998070, 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 new file mode 100644 index 000000000000..b836dc41d4ba --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteMockTests.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.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 java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ManagedComputeDeploymentsDeleteMockTests { + @Test + public void testDelete() throws Exception { + String responseStr = "{}"; + + 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)); + + manager.managedComputeDeployments().delete("eum", "jsvcdhlyw", "hookju", 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 new file mode 100644 index 000000000000..748e22dbe788 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetWithResponseMockTests.java @@ -0,0 +1,52 @@ +// 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.DeploymentModelVersionUpgradeOption; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployment; +import com.azure.resourcemanager.cognitiveservices.models.SkuTier; +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 ManagedComputeDeploymentsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"model\":\"ykkbxktxbbwl\",\"deploymentTemplate\":\"wzoknvu\",\"acceleratorType\":\"d\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"computeId\":\"q\",\"priority\":\"lgzubak\",\"acceleratorsPerInstance\":106468803,\"totalAccelerators\":998776187,\"provisioningState\":\"Failed\",\"provisioningDetails\":{\"message\":\"nsffetp\",\"lastOperationTimestamp\":\"2021-01-02T07:57:26Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"ewzlscgsmepnqv\",\"swagger\":\"voh\",\"messagesApiScoringPath\":\"thhx\"}},\"sku\":{\"name\":\"ev\",\"tier\":\"Basic\",\"size\":\"epfhgannvwx\",\"family\":\"p\",\"capacity\":1911283414},\"etag\":\"ohxvzgaybvrhhoga\",\"id\":\"xnwfmzvzt\",\"name\":\"uebpamq\",\"type\":\"fcssanybzzghvd\"}"; + + 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)); + + ManagedComputeDeployment response = manager.managedComputeDeployments() + .getWithResponse("wdizc", "jixiujzkc", "exgkrsw", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("ykkbxktxbbwl", response.properties().model()); + Assertions.assertEquals("wzoknvu", response.properties().deploymentTemplate()); + Assertions.assertEquals("d", response.properties().acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, + response.properties().versionUpgradeOption()); + Assertions.assertEquals("q", response.properties().computeId()); + Assertions.assertEquals("lgzubak", response.properties().priority()); + Assertions.assertEquals("ev", response.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); + Assertions.assertEquals("epfhgannvwx", response.sku().size()); + Assertions.assertEquals("p", response.sku().family()); + Assertions.assertEquals(1911283414, 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 new file mode 100644 index 000000000000..5d70aa1b1073 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListMockTests.java @@ -0,0 +1,52 @@ +// 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.DeploymentModelVersionUpgradeOption; +import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployment; +import com.azure.resourcemanager.cognitiveservices.models.SkuTier; +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 ManagedComputeDeploymentsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"model\":\"ibenwsdfpvda\",\"deploymentTemplate\":\"lfrcqklpmvz\",\"acceleratorType\":\"reszyaqgom\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"computeId\":\"gge\",\"priority\":\"fekcjjlwkye\",\"acceleratorsPerInstance\":1996693050,\"totalAccelerators\":1761607759,\"provisioningState\":\"ResolvingDNS\",\"provisioningDetails\":{\"message\":\"nrfcqu\",\"lastOperationTimestamp\":\"2021-05-07T21:53:58Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"pinowrerjp\",\"swagger\":\"tchdw\",\"messagesApiScoringPath\":\"qid\"}},\"sku\":{\"name\":\"mlgbbfjmdgjv\",\"tier\":\"Free\",\"size\":\"pm\",\"family\":\"ftyaphq\",\"capacity\":1778856588},\"etag\":\"tlsnlowmcmc\",\"id\":\"xuanccqvjfdgfq\",\"name\":\"mquxpjhcfaaradci\",\"type\":\"vmufzgug\"}]}"; + + 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.managedComputeDeployments() + .list("zxezriwgo", "wapcqksaaapxjhc", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("ibenwsdfpvda", response.iterator().next().properties().model()); + Assertions.assertEquals("lfrcqklpmvz", response.iterator().next().properties().deploymentTemplate()); + Assertions.assertEquals("reszyaqgom", response.iterator().next().properties().acceleratorType()); + Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, + response.iterator().next().properties().versionUpgradeOption()); + Assertions.assertEquals("gge", response.iterator().next().properties().computeId()); + Assertions.assertEquals("fekcjjlwkye", response.iterator().next().properties().priority()); + Assertions.assertEquals("mlgbbfjmdgjv", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); + Assertions.assertEquals("pm", response.iterator().next().sku().size()); + Assertions.assertEquals("ftyaphq", response.iterator().next().sku().family()); + Assertions.assertEquals(1778856588, 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 new file mode 100644 index 000000000000..26f501d80762 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageInnerTests.java @@ -0,0 +1,28 @@ +// 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.ManagedComputeUsageInner; +import com.azure.resourcemanager.cognitiveservices.models.UnitType; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeUsageInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeUsageInner model = BinaryData.fromString( + "{\"id\":\"knubnoitp\",\"name\":{\"value\":\"trgdgxvc\",\"localizedValue\":\"raswugyxpqit\"},\"type\":\"ialwv\",\"unit\":\"Milliseconds\",\"limit\":70.81487328746348,\"currentValue\":22.763356722216656,\"offerScope\":\"ty\",\"deployments\":[{\"deploymentId\":\"qcujpd\",\"projectId\":\"zakuejk\",\"modelId\":\"bizt\",\"acceleratorCount\":7163777525498216274,\"instanceCount\":1573837389}]}") + .toObject(ManagedComputeUsageInner.class); + Assertions.assertEquals(UnitType.MILLISECONDS, model.unit()); + Assertions.assertEquals(70.81487328746348D, model.limit()); + Assertions.assertEquals(22.763356722216656D, model.currentValue()); + Assertions.assertEquals("ty", model.offerScope()); + Assertions.assertEquals("qcujpd", model.deployments().get(0).deploymentId()); + Assertions.assertEquals("zakuejk", model.deployments().get(0).projectId()); + Assertions.assertEquals("bizt", model.deployments().get(0).modelId()); + Assertions.assertEquals(7163777525498216274L, model.deployments().get(0).acceleratorCount()); + Assertions.assertEquals(1573837389, 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 new file mode 100644 index 000000000000..8fb3a1bc6ca8 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageListResultTests.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.implementation.models.ManagedComputeUsageListResult; +import com.azure.resourcemanager.cognitiveservices.models.UnitType; +import org.junit.jupiter.api.Assertions; + +public final class ManagedComputeUsageListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ManagedComputeUsageListResult model = BinaryData.fromString( + "{\"nextLink\":\"zkaftjvvrux\",\"value\":[{\"id\":\"yeip\",\"name\":{\"value\":\"mjtgrqg\",\"localizedValue\":\"kkileplkc\"},\"type\":\"knh\",\"unit\":\"Milliseconds\",\"limit\":61.63794766979882,\"currentValue\":90.59116792406749,\"offerScope\":\"vmq\",\"deployments\":[{\"deploymentId\":\"gbdg\",\"projectId\":\"mgxdgdhpabgd\",\"modelId\":\"jddvjsaqw\",\"acceleratorCount\":5844791821716669620,\"instanceCount\":1155818164},{\"deploymentId\":\"colsrsxaptefhex\",\"projectId\":\"jokjl\",\"modelId\":\"hv\",\"acceleratorCount\":7229605289657390054,\"instanceCount\":1552525765},{\"deploymentId\":\"eeksnbksdqhjvyk\",\"projectId\":\"eslk\",\"modelId\":\"ustcpoq\",\"acceleratorCount\":8873287360862091590,\"instanceCount\":343498136}]},{\"id\":\"wgoknlejjjkx\",\"name\":{\"value\":\"fdb\",\"localizedValue\":\"bztensvkzykjtj\"},\"type\":\"sxfwushcdp\",\"unit\":\"Count\",\"limit\":65.81288227595196,\"currentValue\":73.69527401511642,\"offerScope\":\"bpkuwxeoio\",\"deployments\":[{\"deploymentId\":\"fa\",\"projectId\":\"jzwfb\",\"modelId\":\"aykmmf\",\"acceleratorCount\":2610214493609522659,\"instanceCount\":1870584633},{\"deploymentId\":\"zxmdew\",\"projectId\":\"sxkrpl\",\"modelId\":\"aze\",\"acceleratorCount\":794425914226467040,\"instanceCount\":936040784},{\"deploymentId\":\"y\",\"projectId\":\"uhbrnnhjxsq\",\"modelId\":\"hqkb\",\"acceleratorCount\":2822795185801929657,\"instanceCount\":1298442475}]},{\"id\":\"ycyqiqyhgfsetzl\",\"name\":{\"value\":\"sfledyn\",\"localizedValue\":\"pziuwfbzkkdtnh\"},\"type\":\"ycljselpkpbaf\",\"unit\":\"Seconds\",\"limit\":21.183145230334443,\"currentValue\":11.719010334787338,\"offerScope\":\"bevxrhyzd\",\"deployments\":[{\"deploymentId\":\"ofpltdbm\",\"projectId\":\"rrhvhfnracwnpq\",\"modelId\":\"tuujwouh\",\"acceleratorCount\":2852925794446089732,\"instanceCount\":1977452352},{\"deploymentId\":\"bjb\",\"projectId\":\"jybvit\",\"modelId\":\"kjyaznumtg\",\"acceleratorCount\":9038858199460016040,\"instanceCount\":453688983},{\"deploymentId\":\"ozfnkfexlvx\",\"projectId\":\"akizvoaikna\",\"modelId\":\"nuwiguyxlykwph\",\"acceleratorCount\":1500034694767545162,\"instanceCount\":713435444},{\"deploymentId\":\"mpe\",\"projectId\":\"lkexaonwivkcqh\",\"modelId\":\"hxknlccrmmkyupi\",\"acceleratorCount\":7322862688790627823,\"instanceCount\":699810081}]},{\"id\":\"kakfqfr\",\"name\":{\"value\":\"yildudxjascow\",\"localizedValue\":\"djkpdxph\"},\"type\":\"ksnmgzv\",\"unit\":\"Bytes\",\"limit\":13.09177370048138,\"currentValue\":54.74772432779409,\"offerScope\":\"wsithuqolyahlu\",\"deployments\":[{\"deploymentId\":\"lsutrjbh\",\"projectId\":\"kf\",\"modelId\":\"qezv\",\"acceleratorCount\":8790887728237596869,\"instanceCount\":987694871},{\"deploymentId\":\"tb\",\"projectId\":\"exreu\",\"modelId\":\"owtljvfw\",\"acceleratorCount\":4076440915309211048,\"instanceCount\":851669196},{\"deploymentId\":\"yxvrqtvbczsul\",\"projectId\":\"gglmepjpfsey\",\"modelId\":\"sa\",\"acceleratorCount\":6254933292811391794,\"instanceCount\":35423959},{\"deploymentId\":\"afp\",\"projectId\":\"lkvec\",\"modelId\":\"jcngoadyed\",\"acceleratorCount\":3592131335716713539,\"instanceCount\":667032439}]}]}") + .toObject(ManagedComputeUsageListResult.class); + Assertions.assertEquals("zkaftjvvrux", model.nextLink()); + Assertions.assertEquals(UnitType.MILLISECONDS, model.value().get(0).unit()); + Assertions.assertEquals(61.63794766979882D, model.value().get(0).limit()); + Assertions.assertEquals(90.59116792406749D, model.value().get(0).currentValue()); + Assertions.assertEquals("vmq", model.value().get(0).offerScope()); + Assertions.assertEquals("gbdg", model.value().get(0).deployments().get(0).deploymentId()); + Assertions.assertEquals("mgxdgdhpabgd", model.value().get(0).deployments().get(0).projectId()); + Assertions.assertEquals("jddvjsaqw", model.value().get(0).deployments().get(0).modelId()); + Assertions.assertEquals(5844791821716669620L, model.value().get(0).deployments().get(0).acceleratorCount()); + Assertions.assertEquals(1155818164, 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 new file mode 100644 index 000000000000..df05d4009761 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupsListMockTests.java @@ -0,0 +1,49 @@ +// 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.ManagedComputeUsage; +import com.azure.resourcemanager.cognitiveservices.models.UnitType; +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 ManagedComputeUsagesOperationGroupsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"id\":\"xqkdyqjvzvcgrds\",\"name\":{\"value\":\"sfkqqxuhvzflb\",\"localizedValue\":\"uszxacdwukokgoo\"},\"type\":\"fuk\",\"unit\":\"Seconds\",\"limit\":4.316918520802549,\"currentValue\":2.5065849804586926,\"offerScope\":\"tzvxxvsb\",\"deployments\":[{\"deploymentId\":\"krfnkcni\",\"projectId\":\"swxmfurqm\",\"modelId\":\"wwp\",\"acceleratorCount\":1389599674661993125,\"instanceCount\":1991270584}]}]}"; + + 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.managedComputeUsagesOperationGroups().list("qxa", com.azure.core.util.Context.NONE); + + Assertions.assertEquals(UnitType.SECONDS, response.iterator().next().unit()); + Assertions.assertEquals(4.316918520802549D, response.iterator().next().limit()); + Assertions.assertEquals(2.5065849804586926D, response.iterator().next().currentValue()); + Assertions.assertEquals("tzvxxvsb", response.iterator().next().offerScope()); + Assertions.assertEquals("krfnkcni", response.iterator().next().deployments().get(0).deploymentId()); + Assertions.assertEquals("swxmfurqm", response.iterator().next().deployments().get(0).projectId()); + Assertions.assertEquals("wwp", response.iterator().next().deployments().get(0).modelId()); + Assertions.assertEquals(1389599674661993125L, + response.iterator().next().deployments().get(0).acceleratorCount()); + Assertions.assertEquals(1991270584, 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 dec59d27b68a..7cc6386b1056 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,15 +16,15 @@ public final class ManagedNetworkListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkListResult model = BinaryData.fromString( - "{\"nextLink\":\"gbhgau\",\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"AllowOnlyApprovedOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"jqgdkfnozoeo\",\"outboundRules\":{\"jhvefgwbmqjchnt\":{\"type\":\"OutboundRule\"},\"sf\":{\"type\":\"OutboundRule\"},\"ymxbulpzealb\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"fkmbtsuahxsgxj\",\"provisioningState\":\"Deferred\"},\"provisioningState\":\"Updating\"},\"id\":\"scubiwsdrnpxqwod\",\"name\":\"ffjxcjrmmuabwib\",\"type\":\"jogjonmc\"},{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"wine\",\"outboundRules\":{\"fkak\":{\"type\":\"OutboundRule\"},\"oldtvevboclzhz\":{\"type\":\"OutboundRule\"},\"knyuxgvttxpn\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"i\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Deleting\"},\"id\":\"dswys\",\"name\":\"br\",\"type\":\"ffg\"},{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"rpq\",\"outboundRules\":{\"blcouqehbhbcdszi\":{\"type\":\"OutboundRule\"},\"yr\":{\"type\":\"OutboundRule\"},\"ndo\":{\"type\":\"OutboundRule\"},\"pmbltoormkfql\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"ygaolnjpnnb\",\"provisioningState\":\"Updating\"},\"provisioningState\":\"Deleting\"},\"id\":\"jgsjjxxahmrn\",\"name\":\"dzyqe\",\"type\":\"xyivpinbm\"},{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\",\"AllowInternetOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"h\",\"outboundRules\":{\"eznjaujv\":{\"type\":\"OutboundRule\"},\"annggiy\":{\"type\":\"OutboundRule\"},\"wkdtaawxwf\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"bzmqkratbn\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Deleted\"},\"id\":\"dbirkfpksokdgo\",\"name\":\"ewijymrhbguz\",\"type\":\"zkye\"}]}") + "{\"nextLink\":\"ips\",\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\",\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\",\"Disabled\"],\"isolationMode\":\"Disabled\",\"networkId\":\"xricctkwmuqq\",\"outboundRules\":{\"xeiyglesr\":{\"type\":\"OutboundRule\"},\"vaexh\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"brupobehdmljza\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Deleting\"},\"id\":\"jpbi\",\"name\":\"nzpphepife\",\"type\":\"leqirccjclykcgxv\"}]}") .toObject(ManagedNetworkListResult.class); - Assertions.assertEquals("gbhgau", model.nextLink()); - Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, + Assertions.assertEquals("ips", model.nextLink()); + Assertions.assertEquals(IsolationMode.DISABLED, model.value().get(0).properties().managedNetwork().isolationMode()); 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(ManagedNetworkKind.V1, + Assertions.assertEquals(FirewallSku.BASIC, model.value().get(0).properties().managedNetwork().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.value().get(0).properties().managedNetwork().managedNetworkKind()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionStatusInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionStatusInnerTests.java index 8ac21012a8e8..e1c0933b32cd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionStatusInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionStatusInnerTests.java @@ -13,15 +13,15 @@ public final class ManagedNetworkProvisionStatusInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkProvisionStatusInner model - = BinaryData.fromString("{\"status\":\"Inactive\"}").toObject(ManagedNetworkProvisionStatusInner.class); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status()); + = BinaryData.fromString("{\"status\":\"Active\"}").toObject(ManagedNetworkProvisionStatusInner.class); + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedNetworkProvisionStatusInner model - = new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE); + = new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE); model = BinaryData.fromObject(model).toObject(ManagedNetworkProvisionStatusInner.class); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status()); + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status()); } } 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 857b87b2ad41..99fc885c9d19 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 @@ -22,7 +22,7 @@ public final class ManagedNetworkProvisionsProvisionManagedNetworkMockTests { @Test public void testProvisionManagedNetwork() throws Exception { - String responseStr = "{\"status\":\"Inactive\"}"; + String responseStr = "{\"status\":\"Active\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testProvisionManagedNetwork() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedNetworkProvisionStatus response = manager.managedNetworkProvisions() - .provisionManagedNetwork("cw", "xyn", "jgsatky", new ManagedNetworkProvisionOptions(), + .provisionManagedNetwork("ecxstowa", "ehxuihwes", "tjaqgbl", new ManagedNetworkProvisionOptions(), com.azure.core.util.Context.NONE); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, response.status()); + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, 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 53e338ac3760..63a5b8458fb5 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\":\"hhhqosm\",\"outboundRules\":{\"pyc\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"yarnro\",\"parentRuleNames\":[\"uabzoghkt\"]},\"rl\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"cnhz\",\"parentRuleNames\":[\"ttjzcfyjzpt\"]},\"qcjenkyhf\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"nfszpyglqdhmrjz\",\"parentRuleNames\":[\"cxpjbyypsj\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"elgcmpzqjhhhqx\",\"provisioningState\":\"Succeeded\"},\"id\":\"cacoyvivbsiz\",\"name\":\"sjsz\",\"type\":\"bscm\"}") + "{\"properties\":{\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"czuod\",\"outboundRules\":{\"tsghpbcbcp\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"epdjxqeskoyn\",\"parentRuleNames\":[\"lpckaewsedves\",\"w\",\"egqphrgfnzhctm\"]},\"xhmt\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"qacdldtzm\",\"parentRuleNames\":[\"efcpczshn\",\"qndaizupfkhuytus\"]},\"uitrdexyiono\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Deleting\",\"errorInformation\":\"qiukvzwyd\",\"parentRuleNames\":[\"haokgkskjiv\",\"sshajqfukpee\",\"pgeumilh\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"xcwqqrsmpc\",\"provisioningState\":\"Deleted\"},\"id\":\"tugav\",\"name\":\"zbcyksiv\",\"type\":\"fogdrtbfcm\"}") .toObject(ManagedNetworkSettingsBasicResourceInner.class); - Assertions.assertEquals(IsolationMode.DISABLED, model.properties().isolationMode()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.properties().outboundRules().get("pyc").category()); - Assertions.assertEquals(RuleStatus.FAILED, model.properties().outboundRules().get("pyc").status()); + Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.properties().isolationMode()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, + model.properties().outboundRules().get("tsghpbcbcp").category()); + Assertions.assertEquals(RuleStatus.DELETING, model.properties().outboundRules().get("tsghpbcbcp").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().status().status()); - Assertions.assertEquals(FirewallSku.BASIC, model.properties().firewallSku()); + Assertions.assertEquals(FirewallSku.STANDARD, model.properties().firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, 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("pyc", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.FAILED), "rl", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.PROVISIONING), - "qcjenkyhf", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.FAILED))) + ManagedNetworkSettingsBasicResourceInner model = new ManagedNetworkSettingsBasicResourceInner().withProperties( + new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) + .withOutboundRules(mapOf("tsghpbcbcp", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.DELETING), "xhmt", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE), + "uitrdexyiono", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.DELETING))) .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.BASIC) + .withFirewallSku(FirewallSku.STANDARD) .withManagedNetworkKind(ManagedNetworkKind.V1)); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsBasicResourceInner.class); - Assertions.assertEquals(IsolationMode.DISABLED, model.properties().isolationMode()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.properties().outboundRules().get("pyc").category()); - Assertions.assertEquals(RuleStatus.FAILED, model.properties().outboundRules().get("pyc").status()); + Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.properties().isolationMode()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, + model.properties().outboundRules().get("tsghpbcbcp").category()); + Assertions.assertEquals(RuleStatus.DELETING, model.properties().outboundRules().get("tsghpbcbcp").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().status().status()); - Assertions.assertEquals(FirewallSku.BASIC, model.properties().firewallSku()); + Assertions.assertEquals(FirewallSku.STANDARD, model.properties().firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.properties().managedNetworkKind()); } 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 1ca565516708..58f7af763d91 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,34 +22,31 @@ public final class ManagedNetworkSettingsExTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsEx model = BinaryData.fromString( - "{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"Disabled\",\"AllowInternetOutbound\",\"AllowInternetOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"jjjavfqnvhnq\",\"outboundRules\":{\"uovmaonurjt\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"etesypvidbztjhqt\",\"parentRuleNames\":[\"vnynkb\",\"etnjuhpsprkz\",\"aupia\",\"cxnafbwqrooh\"]},\"upbezqccydrt\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Deleting\",\"errorInformation\":\"pv\",\"parentRuleNames\":[\"slclblyjxltbsju\",\"c\",\"sfxigctmgx\"]},\"illcecfehu\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Failed\",\"errorInformation\":\"kkyihzt\",\"parentRuleNames\":[\"mgqzgwldoyc\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"qllizstac\",\"provisioningState\":\"Deleted\"}") + "{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"nmpzk\",\"outboundRules\":{\"mjpjscdfpdqwty\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Failed\",\"errorInformation\":\"schlzvfictnkj\",\"parentRuleNames\":[\"cwnphbkgfyrtogm\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"arxifvqnrxt\",\"provisioningState\":\"Failed\"}") .toObject(ManagedNetworkSettingsEx.class); Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("uovmaonurjt").category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.outboundRules().get("uovmaonurjt").status()); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status().status()); - Assertions.assertEquals(FirewallSku.BASIC, model.firewallSku()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.outboundRules().get("mjpjscdfpdqwty").category()); + Assertions.assertEquals(RuleStatus.FAILED, model.outboundRules().get("mjpjscdfpdqwty").status()); + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); + Assertions.assertEquals(FirewallSku.STANDARD, model.firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedNetworkSettingsEx model = new ManagedNetworkSettingsEx() - .withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) - .withOutboundRules(mapOf("uovmaonurjt", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.INACTIVE), - "upbezqccydrt", - new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.DELETING), - "illcecfehu", new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.FAILED))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V1); + ManagedNetworkSettingsEx model + = new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) + .withOutboundRules(mapOf("mjpjscdfpdqwty", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.FAILED))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) + .withFirewallSku(FirewallSku.STANDARD) + .withManagedNetworkKind(ManagedNetworkKind.V1); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsEx.class); Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("uovmaonurjt").category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.outboundRules().get("uovmaonurjt").status()); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status().status()); - Assertions.assertEquals(FirewallSku.BASIC, model.firewallSku()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.outboundRules().get("mjpjscdfpdqwty").category()); + Assertions.assertEquals(RuleStatus.FAILED, model.outboundRules().get("mjpjscdfpdqwty").status()); + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); + Assertions.assertEquals(FirewallSku.STANDARD, model.firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, 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 3f940ae36fd6..33a7c8326d63 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,30 +22,32 @@ public final class ManagedNetworkSettingsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsInner model = BinaryData.fromString( - "{\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"eftkwqe\",\"outboundRules\":{\"c\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"aepwamcxtcz\",\"parentRuleNames\":[\"euknijduyyes\",\"ydjfb\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"wikdmh\",\"provisioningState\":\"Deleting\"}") + "{\"isolationMode\":\"Disabled\",\"networkId\":\"nvwjhrsidqpxl\",\"outboundRules\":{\"hpycvjqdvdwkq\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"gatwmykyu\",\"parentRuleNames\":[\"mdwmf\"]},\"hmtybkcgsuthhll\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Inactive\",\"errorInformation\":\"fgnaavuagnteta\",\"parentRuleNames\":[\"n\",\"dc\",\"uhspfefyihduy\",\"uyld\"]},\"ttcslojfkqi\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"fxexlfciatxtjrr\",\"parentRuleNames\":[\"dskjhhxdlaj\",\"oxcxscvslx\",\"hu\",\"vkrmukmyjmkx\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"qxcsqhtkbtnqlrn\",\"provisioningState\":\"Deleted\"}") .toObject(ManagedNetworkSettingsInner.class); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.REQUIRED, model.outboundRules().get("c").category()); - Assertions.assertEquals(RuleStatus.FAILED, model.outboundRules().get("c").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); + Assertions.assertEquals(IsolationMode.DISABLED, model.isolationMode()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.outboundRules().get("hpycvjqdvdwkq").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, model.outboundRules().get("hpycvjqdvdwkq").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedNetworkSettingsInner model - = new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) - .withOutboundRules( - mapOf("c", new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.FAILED))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V1); + ManagedNetworkSettingsInner model = new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.DISABLED) + .withOutboundRules(mapOf("hpycvjqdvdwkq", + new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.INACTIVE), + "hmtybkcgsuthhll", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.INACTIVE), "ttcslojfkqi", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) + .withFirewallSku(FirewallSku.BASIC) + .withManagedNetworkKind(ManagedNetworkKind.V1); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsInner.class); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.REQUIRED, model.outboundRules().get("c").category()); - Assertions.assertEquals(RuleStatus.FAILED, model.outboundRules().get("c").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); + Assertions.assertEquals(IsolationMode.DISABLED, model.isolationMode()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.outboundRules().get("hpycvjqdvdwkq").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, model.outboundRules().get("hpycvjqdvdwkq").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetworkKind()); } 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 d957f0c758ad..dc7692d43b81 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\":[\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"Disabled\",\"networkId\":\"xcn\",\"outboundRules\":{\"cjjkmqenh\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Active\",\"errorInformation\":\"bejqfbifopfjx\",\"parentRuleNames\":[\"rp\",\"zqjkrf\",\"bwotfcuuugtji\",\"pgayiawohfmhnnzm\"]},\"nd\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"vs\",\"parentRuleNames\":[\"iovslvivqsuvwt\",\"nbgpijpkhcyoaq\",\"ukuicjuftekioo\"]},\"jrk\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Active\",\"errorInformation\":\"pxjhxzubfjzabbwz\",\"parentRuleNames\":[\"uaixcdckix\",\"ps\",\"igavk\",\"vyxzer\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"ryoptaeitwhlb\",\"provisioningState\":\"Deferred\"},\"provisioningState\":\"Deleting\"},\"id\":\"bpemnrrabovr\",\"name\":\"wxywpjhspboxhif\",\"type\":\"pskpeswyhhmif\"}"; + = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\",\"AllowInternetOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"zgkbr\",\"outboundRules\":{\"kq\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"nnqbjxgjwsreruk\",\"parentRuleNames\":[\"drizw\",\"wkjxlaaced\"]},\"n\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"zbevgbnrommkiqh\",\"parentRuleNames\":[\"tmzyjjyutomzq\"]},\"mhssfnwh\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"j\",\"parentRuleNames\":[\"iywhxpsb\",\"pialezay\",\"puz\",\"degefxlieggoto\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"fmkcu\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Failed\"},\"id\":\"uzronodvhzfkdn\",\"name\":\"ysodcikgx\",\"type\":\"k\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,17 +37,18 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedNetworkSettingsPropertiesBasicResource response = manager.managedNetworkSettingsOperations() - .getWithResponse("u", "eupcknecexkgrv", "psjdmng", com.azure.core.util.Context.NONE) + .getWithResponse("ydsn", "zpchiy", "bfhmihi", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(IsolationMode.DISABLED, response.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, - response.properties().managedNetwork().outboundRules().get("cjjkmqenh").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, - response.properties().managedNetwork().outboundRules().get("cjjkmqenh").status()); + Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, + response.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.REQUIRED, + response.properties().managedNetwork().outboundRules().get("kq").category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, + response.properties().managedNetwork().outboundRules().get("kq").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(ManagedNetworkKind.V1, 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 dfca95dd18cb..1531e70a2c25 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\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"bzbqufpnezsjzaym\",\"outboundRules\":{\"sfpcrtnuguefxxij\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"gzmsimehtc\",\"parentRuleNames\":[\"dhtqqhyhnimxtns\",\"gi\",\"nomwnwnghojovke\",\"ymicjixx\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"tkrhlolmc\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Deleted\"},\"id\":\"sv\",\"name\":\"bv\",\"type\":\"qdljnpe\"}]}"; + = "{\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"AllowInternetOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"irgcjfai\",\"outboundRules\":{\"i\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"rxifqnfforxs\",\"parentRuleNames\":[\"ngxbsalewguxc\",\"m\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"y\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Failed\"},\"id\":\"angfgbmcvmhidy\",\"name\":\"iuajklnacgdn\",\"type\":\"qeonmzrjj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,20 +38,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.managedNetworkSettingsOperations().list("uajxwwvcmmpeg", "y", com.azure.core.util.Context.NONE); + = manager.managedNetworkSettingsOperations().list("zfzdjekeb", "w", com.azure.core.util.Context.NONE); Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, response.iterator().next().properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.REQUIRED, - response.iterator() - .next() - .properties() - .managedNetwork() - .outboundRules() - .get("sfpcrtnuguefxxij") - .category()); - Assertions.assertEquals(RuleStatus.FAILED, - response.iterator().next().properties().managedNetwork().outboundRules().get("sfpcrtnuguefxxij").status()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, + response.iterator().next().properties().managedNetwork().outboundRules().get("i").category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, + response.iterator().next().properties().managedNetwork().outboundRules().get("i").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, response.iterator().next().properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.BASIC, 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 57823062b9ca..72116da75596 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\":[\"AllowInternetOutbound\"],\"isolationMode\":\"Disabled\",\"networkId\":\"dwzejp\",\"outboundRules\":{\"bvtzldzchub\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"p\",\"parentRuleNames\":[\"udayprldidwmtf\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"gvlghf\",\"provisioningState\":\"Deleted\"},\"provisioningState\":\"Succeeded\"},\"id\":\"jtc\",\"name\":\"raqp\",\"type\":\"jpsucmxi\"}"; + = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"xhhqsxjbj\",\"outboundRules\":{\"ntqrcjqpzj\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"qtrefe\",\"parentRuleNames\":[\"lxcjffzwncv\",\"efx\",\"n\",\"tpcjpt\"]},\"viqehmdqvaol\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Active\",\"errorInformation\":\"h\",\"parentRuleNames\":[\"jbioag\"]},\"rgyzcslazp\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"fvkjcimbrsvxph\",\"parentRuleNames\":[\"hptjlrkdcyzhimm\",\"dtdtft\",\"izuzjd\"]},\"ifm\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"mxp\",\"parentRuleNames\":[\"tteagbgacnqpju\",\"tvudeylpbybki\",\"b\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"urfshzn\",\"provisioningState\":\"Deleted\"},\"provisioningState\":\"Succeeded\"},\"id\":\"aaaxx\",\"name\":\"c\",\"type\":\"jmdkqtxfrm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -44,33 +44,34 @@ public void testPut() throws Exception { ManagedNetworkSettingsPropertiesBasicResource response = manager.managedNetworkSettingsOperations() - .define("detawevxehue") - .withExistingAccount("l", "n") + .define("dkhwqdmohhe") + .withExistingAccount("ojpzngdrzige", "wsadsqyu") .withProperties( new ManagedNetworkSettingsProperties().withManagedNetwork( - new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) - .withOutboundRules(mapOf("lrzndas", - new OutboundRule().withCategory(RuleCategory.REQUIRED) - .withStatus(RuleStatus.PROVISIONING), - "ffzjwztsmpchggry", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.INACTIVE), - "kpkpkocmacc", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED) - .withStatus(RuleStatus.DELETING))) + new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) + .withOutboundRules(mapOf("sewbempfapmqnm", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY) + .withStatus(RuleStatus.INACTIVE), + "pnbmajvvyxt", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.FAILED), + "mfndcbsyhludzj", + new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.ACTIVE))) .withStatus( - new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) + new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) .withFirewallSku(FirewallSku.STANDARD) - .withManagedNetworkKind(ManagedNetworkKind.V2))) + .withManagedNetworkKind(ManagedNetworkKind.V1))) .create(); - Assertions.assertEquals(IsolationMode.DISABLED, response.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.USER_DEFINED, - response.properties().managedNetwork().outboundRules().get("bvtzldzchub").category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, - response.properties().managedNetwork().outboundRules().get("bvtzldzchub").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, response.properties().managedNetwork().status().status()); + Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, + response.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, + response.properties().managedNetwork().outboundRules().get("ntqrcjqpzj").category()); + Assertions.assertEquals(RuleStatus.DELETING, + response.properties().managedNetwork().outboundRules().get("ntqrcjqpzj").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, + response.properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.STANDARD, response.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, response.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(ManagedNetworkKind.V2, 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 8943dd4fe9d2..1e4e15315c47 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,42 +24,48 @@ public final class ManagedNetworkSettingsPropertiesBasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsPropertiesBasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"zasunwqrjzfrgq\",\"outboundRules\":{\"xameblydyvkfkm\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Active\",\"errorInformation\":\"oc\",\"parentRuleNames\":[\"ohmbpyr\"]},\"xantuygdhg\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"hvsmtodlfpyap\",\"parentRuleNames\":[\"gvoavyunssxlgh\",\"ee\",\"jlgvvpase\",\"sgb\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"rqofulopmjnlexwh\",\"provisioningState\":\"Updating\"},\"provisioningState\":\"Deleted\"},\"id\":\"k\",\"name\":\"phuuuerctato\",\"type\":\"intqpbrlcyr\"}") + "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"Disabled\",\"networkId\":\"cnmwpfsuqtaa\",\"outboundRules\":{\"qdcadwvps\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"yfp\",\"parentRuleNames\":[\"iqezxlhdj\"]},\"njkgvfnmx\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Active\",\"errorInformation\":\"jriyb\",\"parentRuleNames\":[\"oepnxwdv\"]},\"fqjpnqno\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"tibtyi\",\"parentRuleNames\":[\"vpi\"]},\"mnhjevdyzn\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"e\",\"parentRuleNames\":[\"xkxbhxvu\",\"nul\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"qozzkivyhjrliizj\",\"provisioningState\":\"Deleted\"},\"provisioningState\":\"Succeeded\"},\"id\":\"ef\",\"name\":\"wabs\",\"type\":\"lronqqlmg\"}") .toObject(ManagedNetworkSettingsPropertiesBasicResourceInner.class); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, - model.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(IsolationMode.DISABLED, model.properties().managedNetwork().isolationMode()); Assertions.assertEquals(RuleCategory.DEPENDENCY, - model.properties().managedNetwork().outboundRules().get("xameblydyvkfkm").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, - model.properties().managedNetwork().outboundRules().get("xameblydyvkfkm").status()); + model.properties().managedNetwork().outboundRules().get("qdcadwvps").category()); + Assertions.assertEquals(RuleStatus.DELETING, + model.properties().managedNetwork().outboundRules().get("qdcadwvps").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V2, model.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(ManagedNetworkKind.V1, 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("xameblydyvkfkm", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.ACTIVE), - "xantuygdhg", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.FAILED))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V2))); + .withProperties( + new ManagedNetworkSettingsProperties() + .withManagedNetwork(new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.DISABLED) + .withOutboundRules(mapOf("qdcadwvps", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY) + .withStatus(RuleStatus.DELETING), + "njkgvfnmx", + new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.ACTIVE), + "fqjpnqno", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.FAILED), + "mnhjevdyzn", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED) + .withStatus(RuleStatus.ACTIVE))) + .withStatus( + new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) + .withFirewallSku(FirewallSku.BASIC) + .withManagedNetworkKind(ManagedNetworkKind.V1))); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsPropertiesBasicResourceInner.class); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, - model.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(IsolationMode.DISABLED, model.properties().managedNetwork().isolationMode()); Assertions.assertEquals(RuleCategory.DEPENDENCY, - model.properties().managedNetwork().outboundRules().get("xameblydyvkfkm").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, - model.properties().managedNetwork().outboundRules().get("xameblydyvkfkm").status()); + model.properties().managedNetwork().outboundRules().get("qdcadwvps").category()); + Assertions.assertEquals(RuleStatus.DELETING, + model.properties().managedNetwork().outboundRules().get("qdcadwvps").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V2, model.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(ManagedNetworkKind.V1, 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 d4a0d9383a6f..f1669d031963 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,13 +23,11 @@ public final class ManagedNetworkSettingsPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsProperties model = BinaryData.fromString( - "{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\",\"AllowInternetOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"y\",\"outboundRules\":{\"wwexymzvlazipbh\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"rpcjttbstvjeaqnr\",\"parentRuleNames\":[\"fkoxmlghktuidvr\",\"azlp\"]},\"gsksrfhf\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"ny\",\"parentRuleNames\":[\"ziven\",\"rpmey\",\"vpkpatlb\",\"jp\"]},\"clkiexhajl\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Deleting\",\"errorInformation\":\"bnxwc\",\"parentRuleNames\":[\"mp\",\"fqawzfgbrttui\"]},\"ctwwgzw\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"fyut\",\"parentRuleNames\":[\"ygbpvnwswmt\",\"k\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"ygzyvneezaifght\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Deferred\"}") + "{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\",\"Disabled\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"xhvuqbozool\",\"outboundRules\":{\"hd\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"zlbcnndtsn\",\"parentRuleNames\":[\"qytl\"]},\"rra\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Active\",\"errorInformation\":\"zexnxakcky\",\"parentRuleNames\":[\"x\",\"aabjkdtfohfao\",\"zvkiwrsiwdy\",\"quryk\"]},\"lswbnf\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"uehogdd\",\"parentRuleNames\":[\"cbgydlqi\",\"ywmhmptyrilkfbnr\",\"qxvztpbnfnqtxjt\",\"m\"]},\"yvoaqajuvehzp\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Active\",\"errorInformation\":\"wqjnsfzygleexa\",\"parentRuleNames\":[\"ywhsbrcarycs\",\"j\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"pfulube\",\"provisioningState\":\"Deferred\"},\"provisioningState\":\"Failed\"}") .toObject(ManagedNetworkSettingsProperties.class); Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.managedNetwork().outboundRules().get("wwexymzvlazipbh").category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, - model.managedNetwork().outboundRules().get("wwexymzvlazipbh").status()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.managedNetwork().outboundRules().get("hd").category()); + Assertions.assertEquals(RuleStatus.ACTIVE, model.managedNetwork().outboundRules().get("hd").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.managedNetwork().firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetwork().managedNetworkKind()); @@ -39,22 +37,19 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { ManagedNetworkSettingsProperties model = new ManagedNetworkSettingsProperties().withManagedNetwork( new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) - .withOutboundRules(mapOf("wwexymzvlazipbh", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.PROVISIONING), - "gsksrfhf", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.PROVISIONING), - "clkiexhajl", - new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.DELETING), - "ctwwgzw", new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.INACTIVE))) + .withOutboundRules(mapOf("hd", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE), "rra", + new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.ACTIVE), "lswbnf", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE), + "yvoaqajuvehzp", + new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.ACTIVE))) .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) .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.RECOMMENDED, - model.managedNetwork().outboundRules().get("wwexymzvlazipbh").category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, - model.managedNetwork().outboundRules().get("wwexymzvlazipbh").status()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.managedNetwork().outboundRules().get("hd").category()); + Assertions.assertEquals(RuleStatus.ACTIVE, model.managedNetwork().outboundRules().get("hd").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.managedNetwork().firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetwork().managedNetworkKind()); 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 2d7e4b234e34..cf505e4fa89e 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\":\"xpcbwkdwjyjizn\",\"properties\":{\"model\":{\"publisher\":\"ofmftasp\",\"format\":\"reihuftrnigh\",\"name\":\"nuwqxungro\",\"version\":\"wfmsxj\",\"source\":\"ylwx\",\"sourceAccount\":\"zjow\",\"callRateLimit\":{\"count\":70.9185,\"renewalPeriod\":25.14742,\"rules\":[{},{}]}},\"skuName\":\"lt\",\"availableCapacity\":23.739307,\"availableFinetuneCapacity\":74.30893,\"scopeId\":\"hyeurj\",\"scopeType\":\"Global\"},\"id\":\"r\",\"name\":\"vdifkiikg\",\"type\":\"ruccwmecbtxsytr\"}]}"; + = "{\"value\":[{\"location\":\"zdebhserm\",\"properties\":{\"model\":{\"publisher\":\"wwuhyqkaapt\",\"format\":\"svkb\",\"name\":\"ptwybloccuhplx\",\"version\":\"nsshvqnpszbe\",\"source\":\"butcdzj\",\"sourceAccount\":\"tvpeyxdyuxurxr\",\"callRateLimit\":{\"count\":18.827915,\"renewalPeriod\":47.100956,\"rules\":[{}]}},\"skuName\":\"qfkwnaeikczscymq\",\"availableCapacity\":26.377464,\"availableFinetuneCapacity\":17.527985,\"scopeId\":\"qnyumz\",\"scopeType\":\"Global\"},\"id\":\"kezvpe\",\"name\":\"knfzqnzbflbqmhb\",\"type\":\"yxxvwedhagqbbse\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,20 +32,20 @@ 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.modelCapacities() - .list("ottaksadz", "ghmmtbtdvucfvvra", "beurdeewl", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.modelCapacities().list("zheahuv", "qxqkv", "dmjhymudjma", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xpcbwkdwjyjizn", response.iterator().next().location()); - Assertions.assertEquals("ofmftasp", response.iterator().next().properties().model().publisher()); - Assertions.assertEquals("reihuftrnigh", response.iterator().next().properties().model().format()); - Assertions.assertEquals("nuwqxungro", response.iterator().next().properties().model().name()); - Assertions.assertEquals("wfmsxj", response.iterator().next().properties().model().version()); - Assertions.assertEquals("ylwx", response.iterator().next().properties().model().source()); - Assertions.assertEquals("zjow", response.iterator().next().properties().model().sourceAccount()); - Assertions.assertEquals("lt", response.iterator().next().properties().skuName()); - Assertions.assertEquals(23.739307F, response.iterator().next().properties().availableCapacity()); - Assertions.assertEquals(74.30893F, response.iterator().next().properties().availableFinetuneCapacity()); - Assertions.assertEquals("hyeurj", response.iterator().next().properties().scopeId()); + Assertions.assertEquals("zdebhserm", response.iterator().next().location()); + Assertions.assertEquals("wwuhyqkaapt", response.iterator().next().properties().model().publisher()); + Assertions.assertEquals("svkb", response.iterator().next().properties().model().format()); + Assertions.assertEquals("ptwybloccuhplx", response.iterator().next().properties().model().name()); + Assertions.assertEquals("nsshvqnpszbe", response.iterator().next().properties().model().version()); + Assertions.assertEquals("butcdzj", response.iterator().next().properties().model().source()); + Assertions.assertEquals("tvpeyxdyuxurxr", response.iterator().next().properties().model().sourceAccount()); + Assertions.assertEquals("qfkwnaeikczscymq", response.iterator().next().properties().skuName()); + Assertions.assertEquals(26.377464F, response.iterator().next().properties().availableCapacity()); + Assertions.assertEquals(17.527985F, response.iterator().next().properties().availableFinetuneCapacity()); + Assertions.assertEquals("qnyumz", 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/ModelCapacityListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java index 9e4f5cab184c..b3f99bec9a1e 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\":\"emlowuowhl\",\"value\":[{\"location\":\"y\",\"properties\":{\"model\":{\"publisher\":\"vblgmokzk\",\"format\":\"rfowtdvrfmvlih\",\"name\":\"jdrqcrjidhftu\",\"version\":\"hdxlw\",\"source\":\"jbfqzdk\",\"sourceAccount\":\"jyixhaf\",\"callRateLimit\":{\"count\":74.61837,\"renewalPeriod\":34.784023,\"rules\":[{},{}]}},\"skuName\":\"oum\",\"availableCapacity\":6.1487255,\"availableFinetuneCapacity\":10.713893,\"scopeId\":\"qjrhuzgfxonj\",\"scopeType\":\"Classic\"},\"id\":\"llywpvtiotzbp\",\"name\":\"bollgryfqiuasig\",\"type\":\"owsocnequygdjbo\"},{\"location\":\"rmtqjkqevadr\",\"properties\":{\"model\":{\"publisher\":\"uawvcmjzk\",\"format\":\"idisczskosw\",\"name\":\"iqazugamxzkr\",\"version\":\"oiisbamnppcce\",\"source\":\"ztdsbeza\",\"sourceAccount\":\"f\",\"callRateLimit\":{\"count\":81.85908,\"renewalPeriod\":44.855614,\"rules\":[{},{}]}},\"skuName\":\"hnepkpeti\",\"availableCapacity\":76.80393,\"availableFinetuneCapacity\":50.955605,\"scopeId\":\"bxdukecpxdazvd\",\"scopeType\":\"Global\"},\"id\":\"mkoszudbl\",\"name\":\"s\",\"type\":\"trpc\"}]}") + "{\"nextLink\":\"wjdxw\",\"value\":[{\"location\":\"urrdreyzjwhsetww\",\"properties\":{\"model\":{\"publisher\":\"qseuzuukykcyqhy\",\"format\":\"zzdcykeys\",\"name\":\"wfopazdazg\",\"version\":\"qgpewqcfutmdpvoz\",\"source\":\"qjbknl\",\"sourceAccount\":\"lctzeyowmndcovd\",\"callRateLimit\":{\"count\":40.375965,\"renewalPeriod\":40.106983,\"rules\":[{}]}},\"skuName\":\"hmkvfruwkudrb\",\"availableCapacity\":43.37073,\"availableFinetuneCapacity\":94.669785,\"scopeId\":\"dqyemebunaucm\",\"scopeType\":\"DataZone\"},\"id\":\"nee\",\"name\":\"mjauwcgx\",\"type\":\"fnohaitran\"},{\"location\":\"erwguda\",\"properties\":{\"model\":{\"publisher\":\"bvfbngfcocefhpri\",\"format\":\"fmpztraudsvh\",\"name\":\"dculregp\",\"version\":\"moj\",\"source\":\"rztnv\",\"sourceAccount\":\"shqrdgrt\",\"callRateLimit\":{\"count\":21.103752,\"renewalPeriod\":89.67298,\"rules\":[{}]}},\"skuName\":\"kcfazzw\",\"availableCapacity\":53.609352,\"availableFinetuneCapacity\":83.94676,\"scopeId\":\"zrransyb\",\"scopeType\":\"Classic\"},\"id\":\"lwzrg\",\"name\":\"srleinkfscjfn\",\"type\":\"jwvuag\"},{\"location\":\"wtltngvmreuptrk\",\"properties\":{\"model\":{\"publisher\":\"jajwolxfsvag\",\"format\":\"pynwlslrcigtzjcv\",\"name\":\"qlapsnsso\",\"version\":\"xpavid\",\"source\":\"ev\",\"sourceAccount\":\"fcvvy\",\"callRateLimit\":{\"count\":93.84544,\"renewalPeriod\":78.40707,\"rules\":[{},{},{},{}]}},\"skuName\":\"bdsval\",\"availableCapacity\":97.48274,\"availableFinetuneCapacity\":30.318237,\"scopeId\":\"rkxgpazwugxyqvnj\",\"scopeType\":\"Classic\"},\"id\":\"lhld\",\"name\":\"uhzzgqlmfaew\",\"type\":\"giudjpxpq\"}]}") .toObject(ModelCapacityListResult.class); - Assertions.assertEquals("emlowuowhl", model.nextLink()); + Assertions.assertEquals("wjdxw", model.nextLink()); } } 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 8edb3e5b1c70..1176d454c03d 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,44 +15,44 @@ public final class ModelListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ModelListResult model = BinaryData.fromString( - "{\"nextLink\":\"byubhiqdxyurnpn\",\"value\":[{\"model\":{\"baseModel\":{\"publisher\":\"cnuhiigbylbuigv\",\"format\":\"atvcrkdlbnbq\",\"name\":\"h\",\"version\":\"yhzlwxaeaovurexd\",\"source\":\"sbdweaderzmwnt\",\"sourceAccount\":\"agttm\",\"callRateLimit\":{\"count\":77.820274,\"renewalPeriod\":14.230603,\"rules\":[{},{},{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"tjiuazj\",\"usageName\":\"mxitpfinzcpd\",\"deprecationDate\":\"2021-07-23T08:07:23Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{},{},{}]}],\"maxCapacity\":362328447,\"capabilities\":{\"mpheqdur\":\"vcqguefzh\",\"kyeclcdigpta\":\"lyujlfyoump\",\"utgjcyz\":\"brzmqxucycijoclx\",\"r\":\"zjd\"},\"finetuneCapabilities\":{\"fwwvuatbwbqam\":\"txjeaoqaqbzgy\",\"liys\":\"e\",\"uxx\":\"pkcvmwf\",\"iciijqpkzfbojx\":\"pmywbormcq\"},\"deprecation\":{\"fineTune\":\"smyqwixvcpwnkwyw\",\"inference\":\"ofalickduoiqtam\",\"deprecationStatus\":\"Tentative\"},\"replacementConfig\":{\"targetModelName\":\"nxrwzawnvs\",\"targetModelVersion\":\"fhzag\",\"autoUpgradeStartDate\":\"2021-09-16T04:20:05Z\",\"upgradeOnExpiryLeadTimeDays\":713860625},\"modelCatalogAssetId\":\"dimwrzregzgyu\",\"lifecycleStatus\":\"Stable\",\"publisher\":\"pweryekzk\",\"format\":\"meottawj\",\"name\":\"sxwwhnhjtf\",\"version\":\"n\",\"source\":\"miljpnwynud\",\"sourceAccount\":\"l\",\"callRateLimit\":{\"count\":62.726135,\"renewalPeriod\":87.30116,\"rules\":[{},{},{}]}},\"kind\":\"eehuxiqhzlray\",\"skuName\":\"zxlskihmxr\",\"description\":\"sajrednwyysht\"},{\"model\":{\"baseModel\":{\"publisher\":\"evuafpwzyifrk\",\"format\":\"ltxeqip\",\"name\":\"zdyi\",\"version\":\"fayorpravkjoges\",\"source\":\"bnsmjkwynqxaek\",\"sourceAccount\":\"ykvwjtqpkevmyltj\",\"callRateLimit\":{\"count\":51.393597,\"renewalPeriod\":40.544518,\"rules\":[{},{},{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"gxannnoytzposewx\",\"usageName\":\"pxvkqma\",\"deprecationDate\":\"2021-01-03T23:55:07Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{},{},{},{}]}],\"maxCapacity\":1944061430,\"capabilities\":{\"eidszlfytoi\":\"yzyzeyuu\",\"hoynk\":\"hgygvfltgvd\",\"nn\":\"xwetwkdrcyrucpc\"},\"finetuneCapabilities\":{\"naie\":\"qumoeno\",\"elqkaadlkn\":\"hqhsknd\",\"vcnrly\":\"foanniyopetx\"},\"deprecation\":{\"fineTune\":\"caephbl\",\"inference\":\"qp\",\"deprecationStatus\":\"Planned\"},\"replacementConfig\":{\"targetModelName\":\"sdtcjbctvivuzqym\",\"targetModelVersion\":\"owog\",\"autoUpgradeStartDate\":\"2021-05-18T09:44:46Z\",\"upgradeOnExpiryLeadTimeDays\":1801940206},\"modelCatalogAssetId\":\"hzvb\",\"lifecycleStatus\":\"Preview\",\"publisher\":\"anfzndscxmxeatk\",\"format\":\"mwnrdj\",\"name\":\"bqbnaomhjrmkuh\",\"version\":\"xljalfihc\",\"source\":\"obcancdexxqcw\",\"sourceAccount\":\"xf\",\"callRateLimit\":{\"count\":33.306187,\"renewalPeriod\":56.47254,\"rules\":[{},{}]}},\"kind\":\"jjzr\",\"skuName\":\"ixldzyyfy\",\"description\":\"qsix\"},{\"model\":{\"baseModel\":{\"publisher\":\"ujivyqlkjuvsm\",\"format\":\"slzoyov\",\"name\":\"dbpqvybefgvm\",\"version\":\"okcvtlubses\",\"source\":\"cua\",\"sourceAccount\":\"rhunlp\",\"callRateLimit\":{\"count\":87.994576,\"renewalPeriod\":66.58633,\"rules\":[{},{},{}]}},\"isDefaultVersion\":false,\"skus\":[{\"name\":\"jreuykbbmn\",\"usageName\":\"gltbxoeeo\",\"deprecationDate\":\"2021-01-14T06:55:40Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{}]},{\"name\":\"mvqdbpbhfckdvez\",\"usageName\":\"cssbzhddu\",\"deprecationDate\":\"2021-02-22T17:03:03Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{}]}],\"maxCapacity\":1783635692,\"capabilities\":{\"iqjtiogqgdmin\":\"hpavawu\",\"gspnbonhpczykm\":\"ctteajohi\",\"wxqcsehchkhufmpq\":\"tp\",\"zulo\":\"mqyjgy\"},\"finetuneCapabilities\":{\"nhsenwphpzfng\":\"euzanhs\",\"tujwjju\":\"jclid\"},\"deprecation\":{\"fineTune\":\"eqrkuorhtss\",\"inference\":\"qnmdvhazcvjy\",\"deprecationStatus\":\"Tentative\"},\"replacementConfig\":{\"targetModelName\":\"bqerzwx\",\"targetModelVersion\":\"txtd\",\"autoUpgradeStartDate\":\"2021-06-04T13:35:10Z\",\"upgradeOnExpiryLeadTimeDays\":1378257495},\"modelCatalogAssetId\":\"pktgdstyouambew\",\"lifecycleStatus\":\"GenerallyAvailable\",\"publisher\":\"owegmmutey\",\"format\":\"yguqigijiitns\",\"name\":\"lz\",\"version\":\"sygrijwa\",\"source\":\"fanraybfu\",\"sourceAccount\":\"frojsydgr\",\"callRateLimit\":{\"count\":1.6416848,\"renewalPeriod\":61.694084,\"rules\":[{},{}]}},\"kind\":\"zsk\",\"skuName\":\"ca\",\"description\":\"gzmxieqv\"}]}") + "{\"nextLink\":\"knjdiqfliejhp\",\"value\":[{\"model\":{\"baseModel\":{\"publisher\":\"fsbw\",\"format\":\"ivbvzi\",\"name\":\"wxgoooxzpra\",\"version\":\"s\",\"source\":\"knpdgzigjsu\",\"sourceAccount\":\"whgsaodkww\",\"callRateLimit\":{\"count\":18.985474,\"renewalPeriod\":96.31699,\"rules\":[{},{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"uvwsxbgnvk\",\"usageName\":\"vqchoadhrs\",\"deprecationDate\":\"2021-01-01T14:57:46Z\",\"capacity\":{},\"rateLimits\":[{},{},{}],\"cost\":[{},{}]},{\"name\":\"dsrgfajg\",\"usageName\":\"rsubklrxhjnl\",\"deprecationDate\":\"2021-06-10T19:55:50Z\",\"capacity\":{},\"rateLimits\":[{},{}],\"cost\":[{}]},{\"name\":\"dieq\",\"usageName\":\"wa\",\"deprecationDate\":\"2021-07-02T11:11:14Z\",\"capacity\":{},\"rateLimits\":[{},{},{}],\"cost\":[{},{},{}]},{\"name\":\"oebw\",\"usageName\":\"xbibanbaupw\",\"deprecationDate\":\"2021-07-01T20:14:59Z\",\"capacity\":{},\"rateLimits\":[{},{}],\"cost\":[{},{},{},{}]}],\"maxCapacity\":132797442,\"capabilities\":{\"s\":\"zrpejpl\",\"rswgkpjhboyikeb\":\"nbtttkgsuxu\"},\"finetuneCapabilities\":{\"wlokhueoijyzcq\":\"ksl\",\"fejyvdwtfxptpqa\":\"pzqzufgs\",\"mxsnxocuul\":\"amkncfgy\",\"wwdjuxdbdl\":\"ojkpoyh\"},\"deprecation\":{\"fineTune\":\"dyrcvuqb\",\"inference\":\"zlrqhbjnqogdx\",\"deprecationStatus\":\"Planned\"},\"replacementConfig\":{\"targetModelName\":\"yxxtjlfl\",\"targetModelVersion\":\"ominxojjlu\",\"autoUpgradeStartDate\":\"2021-08-22T01:54:09Z\",\"upgradeOnExpiryLeadTimeDays\":752942179},\"modelCatalogAssetId\":\"zzdzzqjmuezayov\",\"lifecycleStatus\":\"GenerallyAvailable\",\"publisher\":\"otokhtvwtaznk\",\"format\":\"wwxwjyofgw\",\"name\":\"kbtlwljssm\",\"version\":\"sn\",\"source\":\"kpwolg\",\"sourceAccount\":\"ubxbteogfgfiijr\",\"callRateLimit\":{\"count\":40.81388,\"renewalPeriod\":42.7373,\"rules\":[{}]}},\"kind\":\"qceazfpxgnmq\",\"skuName\":\"vluyqqaios\",\"description\":\"cyvaifppuacvfy\"}]}") .toObject(ModelListResult.class); - Assertions.assertEquals("byubhiqdxyurnpn", model.nextLink()); - Assertions.assertEquals("pweryekzk", model.value().get(0).model().publisher()); - Assertions.assertEquals("meottawj", model.value().get(0).model().format()); - Assertions.assertEquals("sxwwhnhjtf", model.value().get(0).model().name()); - Assertions.assertEquals("n", model.value().get(0).model().version()); - Assertions.assertEquals("miljpnwynud", model.value().get(0).model().source()); - Assertions.assertEquals("l", model.value().get(0).model().sourceAccount()); - Assertions.assertEquals("cnuhiigbylbuigv", model.value().get(0).model().baseModel().publisher()); - Assertions.assertEquals("atvcrkdlbnbq", model.value().get(0).model().baseModel().format()); - Assertions.assertEquals("h", model.value().get(0).model().baseModel().name()); - Assertions.assertEquals("yhzlwxaeaovurexd", model.value().get(0).model().baseModel().version()); - Assertions.assertEquals("sbdweaderzmwnt", model.value().get(0).model().baseModel().source()); - Assertions.assertEquals("agttm", model.value().get(0).model().baseModel().sourceAccount()); + Assertions.assertEquals("knjdiqfliejhp", model.nextLink()); + Assertions.assertEquals("otokhtvwtaznk", model.value().get(0).model().publisher()); + Assertions.assertEquals("wwxwjyofgw", model.value().get(0).model().format()); + Assertions.assertEquals("kbtlwljssm", model.value().get(0).model().name()); + Assertions.assertEquals("sn", model.value().get(0).model().version()); + Assertions.assertEquals("kpwolg", model.value().get(0).model().source()); + Assertions.assertEquals("ubxbteogfgfiijr", model.value().get(0).model().sourceAccount()); + Assertions.assertEquals("fsbw", model.value().get(0).model().baseModel().publisher()); + Assertions.assertEquals("ivbvzi", model.value().get(0).model().baseModel().format()); + Assertions.assertEquals("wxgoooxzpra", model.value().get(0).model().baseModel().name()); + Assertions.assertEquals("s", model.value().get(0).model().baseModel().version()); + Assertions.assertEquals("knpdgzigjsu", model.value().get(0).model().baseModel().source()); + Assertions.assertEquals("whgsaodkww", model.value().get(0).model().baseModel().sourceAccount()); Assertions.assertTrue(model.value().get(0).model().isDefaultVersion()); - Assertions.assertEquals("tjiuazj", model.value().get(0).model().skus().get(0).name()); - Assertions.assertEquals("mxitpfinzcpd", model.value().get(0).model().skus().get(0).usageName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-23T08:07:23Z"), + Assertions.assertEquals("uvwsxbgnvk", model.value().get(0).model().skus().get(0).name()); + Assertions.assertEquals("vqchoadhrs", model.value().get(0).model().skus().get(0).usageName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-01T14:57:46Z"), model.value().get(0).model().skus().get(0).deprecationDate()); - Assertions.assertEquals(362328447, model.value().get(0).model().maxCapacity()); - Assertions.assertEquals("vcqguefzh", model.value().get(0).model().capabilities().get("mpheqdur")); - Assertions.assertEquals("txjeaoqaqbzgy", - model.value().get(0).model().finetuneCapabilities().get("fwwvuatbwbqam")); - Assertions.assertEquals("smyqwixvcpwnkwyw", model.value().get(0).model().deprecation().fineTune()); - Assertions.assertEquals("ofalickduoiqtam", model.value().get(0).model().deprecation().inference()); - Assertions.assertEquals(DeprecationStatus.TENTATIVE, + Assertions.assertEquals(132797442, model.value().get(0).model().maxCapacity()); + Assertions.assertEquals("zrpejpl", model.value().get(0).model().capabilities().get("s")); + Assertions.assertEquals("ksl", model.value().get(0).model().finetuneCapabilities().get("wlokhueoijyzcq")); + Assertions.assertEquals("dyrcvuqb", model.value().get(0).model().deprecation().fineTune()); + Assertions.assertEquals("zlrqhbjnqogdx", model.value().get(0).model().deprecation().inference()); + Assertions.assertEquals(DeprecationStatus.PLANNED, model.value().get(0).model().deprecation().deprecationStatus()); - Assertions.assertEquals("nxrwzawnvs", model.value().get(0).model().replacementConfig().targetModelName()); - Assertions.assertEquals("fhzag", model.value().get(0).model().replacementConfig().targetModelVersion()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-16T04:20:05Z"), + Assertions.assertEquals("yxxtjlfl", model.value().get(0).model().replacementConfig().targetModelName()); + Assertions.assertEquals("ominxojjlu", model.value().get(0).model().replacementConfig().targetModelVersion()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-22T01:54:09Z"), model.value().get(0).model().replacementConfig().autoUpgradeStartDate()); - Assertions.assertEquals(713860625, + Assertions.assertEquals(752942179, model.value().get(0).model().replacementConfig().upgradeOnExpiryLeadTimeDays()); - Assertions.assertEquals("dimwrzregzgyu", model.value().get(0).model().modelCatalogAssetId()); - Assertions.assertEquals(ModelLifecycleStatus.STABLE, model.value().get(0).model().lifecycleStatus()); - Assertions.assertEquals("eehuxiqhzlray", model.value().get(0).kind()); - Assertions.assertEquals("zxlskihmxr", model.value().get(0).skuName()); - Assertions.assertEquals("sajrednwyysht", model.value().get(0).description()); + Assertions.assertEquals("zzdzzqjmuezayov", model.value().get(0).model().modelCatalogAssetId()); + Assertions.assertEquals(ModelLifecycleStatus.GENERALLY_AVAILABLE, + model.value().get(0).model().lifecycleStatus()); + Assertions.assertEquals("qceazfpxgnmq", model.value().get(0).kind()); + Assertions.assertEquals("vluyqqaios", model.value().get(0).skuName()); + Assertions.assertEquals("cyvaifppuacvfy", 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 4a1d1ad36d68..a5f7813255b6 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 @@ -11,8 +11,9 @@ public final class NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem model = BinaryData.fromString("{\"id\":\"qyrp\"}") - .toObject(NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.class); - Assertions.assertEquals("qyrp", model.id()); + NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem model + = BinaryData.fromString("{\"id\":\"qbsms\"}") + .toObject(NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.class); + Assertions.assertEquals("qbsms", 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 73f0f7bc8020..e96d52013fc4 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\":[\"sdtutnwlduyc\",\"uzhyrmewipmvekdx\",\"kuqgsjjxundxgket\"],\"subscriptions\":[{\"id\":\"zjhfjmhvv\"},{\"id\":\"vgpmun\"}],\"networkSecurityPerimeters\":[{\"id\":\"vmhfbuz\",\"perimeterGuid\":\"ihsasb\",\"location\":\"dyp\"}],\"fullyQualifiedDomainNames\":[\"uemsly\"]}") + "{\"direction\":\"Outbound\",\"addressPrefixes\":[\"fdeqvhpsyl\",\"ksh\",\"bffmbmxz\"],\"subscriptions\":[{\"id\":\"wwp\"},{\"id\":\"xs\"},{\"id\":\"tf\"}],\"networkSecurityPerimeters\":[{\"id\":\"cg\",\"perimeterGuid\":\"o\",\"location\":\"ttaqutdew\"},{\"id\":\"xswvru\",\"perimeterGuid\":\"zzjgehkfki\",\"location\":\"tixo\"},{\"id\":\"fqyinljqepqw\",\"perimeterGuid\":\"xmonstshi\",\"location\":\"gvelfc\"},{\"id\":\"uccbirdsvuw\",\"perimeterGuid\":\"b\",\"location\":\"gstmninwjizciln\"}],\"fullyQualifiedDomainNames\":[\"shejjtbxqm\",\"luxlxqzvnersby\",\"ucrwnami\",\"ze\"]}") .toObject(NetworkSecurityPerimeterAccessRuleProperties.class); - Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.direction()); - Assertions.assertEquals("sdtutnwlduyc", model.addressPrefixes().get(0)); - Assertions.assertEquals("zjhfjmhvv", model.subscriptions().get(0).id()); - Assertions.assertEquals("vmhfbuz", model.networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("ihsasb", model.networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("dyp", model.networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("uemsly", model.fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.direction()); + Assertions.assertEquals("fdeqvhpsyl", model.addressPrefixes().get(0)); + Assertions.assertEquals("wwp", model.subscriptions().get(0).id()); + Assertions.assertEquals("cg", model.networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("o", model.networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("ttaqutdew", model.networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("shejjtbxqm", 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 db5f0abd0ff9..f14a4fb9edaf 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\":\"bcporxvxcjzhqizx\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"scjavftju\",\"dqazkmtgguwpijra\",\"civmmg\"],\"subscriptions\":[{\"id\":\"iwrxgkn\"}],\"networkSecurityPerimeters\":[{\"id\":\"inzqodfvpgs\",\"perimeterGuid\":\"xgsg\",\"location\":\"fgzdjtxvz\"}],\"fullyQualifiedDomainNames\":[\"q\",\"gaqvlgafcqusrd\"]}}") + "{\"name\":\"pv\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"iofrzgbzjedmstk\"],\"subscriptions\":[{\"id\":\"xbcuiiznkt\"}],\"networkSecurityPerimeters\":[{\"id\":\"snvpdibmi\",\"perimeterGuid\":\"stbz\",\"location\":\"iwbuqny\"},{\"id\":\"hzfylsgcrpfbc\",\"perimeterGuid\":\"ezzcez\",\"location\":\"fwyfwlwxjwet\"}],\"fullyQualifiedDomainNames\":[\"ihclafzv\",\"ylptrsqqwztcm\",\"qkc\",\"cxwaxfewz\"]}}") .toObject(NetworkSecurityPerimeterAccessRule.class); - Assertions.assertEquals("bcporxvxcjzhqizx", model.name()); - Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.properties().direction()); - Assertions.assertEquals("scjavftju", model.properties().addressPrefixes().get(0)); - Assertions.assertEquals("iwrxgkn", model.properties().subscriptions().get(0).id()); - Assertions.assertEquals("inzqodfvpgs", model.properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("xgsg", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("fgzdjtxvz", model.properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("q", model.properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals("pv", model.name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.properties().direction()); + Assertions.assertEquals("iofrzgbzjedmstk", model.properties().addressPrefixes().get(0)); + Assertions.assertEquals("xbcuiiznkt", model.properties().subscriptions().get(0).id()); + Assertions.assertEquals("snvpdibmi", model.properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("stbz", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("iwbuqny", model.properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("ihclafzv", 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 b92a2361dd93..67420a597149 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\":\"yvi\",\"accessMode\":\"uwivkxoy\"}") + = BinaryData.fromString("{\"name\":\"cjsxjww\",\"accessMode\":\"z\"}") .toObject(NetworkSecurityPerimeterConfigurationAssociationInfo.class); - Assertions.assertEquals("yvi", model.name()); - Assertions.assertEquals("uwivkxoy", model.accessMode()); + Assertions.assertEquals("cjsxjww", model.name()); + Assertions.assertEquals("z", 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 755d42c7671f..57ade82a31b9 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,30 +13,29 @@ public final class NetworkSecurityPerimeterConfigurationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"iqndieuzaofj\",\"provisioningIssues\":[{\"name\":\"yyysfgdotcubi\",\"properties\":{\"issueType\":\"ipwoqonmacjek\",\"severity\":\"zshq\",\"description\":\"impevf\",\"suggestedResourceIds\":[\"lrri\"],\"suggestedAccessRules\":[{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"xsmiccwrwfscjf\",\"perimeterGuid\":\"nszqujiz\",\"location\":\"oqytibyowbblgy\"},\"resourceAssociation\":{\"name\":\"tp\",\"accessMode\":\"joxoism\"},\"profile\":{\"name\":\"bpimlqoljxkcgxxl\",\"accessRulesVersion\":10678303666370251,\"accessRules\":[{\"name\":\"izqzdwlvwlyou\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"jub\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"in\",\"g\",\"wzf\"]}},{\"name\":\"sttktlahbqa\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"ukxit\",\"m\",\"tg\",\"qqxhrnxrxcpj\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"qdzfvazivjlfrqtt\"]}},{\"name\":\"jlkatnwxy\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"qqfkuv\",\"cxkdmligovi\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"oaz\",\"ruocbgo\",\"rb\",\"eoybfhjxakvvjgs\"]}}],\"diagnosticSettingsVersion\":158425814591742958,\"enabledLogCategories\":[\"mywwtkgkxnyed\",\"b\",\"yvudtjuewbci\",\"xuuwhcj\"]}},\"id\":\"ccybvp\",\"name\":\"yakk\",\"type\":\"dzpxgwjpl\"}") + "{\"properties\":{\"provisioningState\":\"m\",\"provisioningIssues\":[{\"name\":\"qnsdfzpbgtgky\",\"properties\":{\"issueType\":\"ghrjeuutl\",\"severity\":\"ez\",\"description\":\"hokvbwnh\",\"suggestedResourceIds\":[\"lgehg\",\"pipifh\"],\"suggestedAccessRules\":[{}]}},{\"name\":\"ajvgcxtxjcsheafi\",\"properties\":{\"issueType\":\"ugsresmkssjhoi\",\"severity\":\"xfkfwegprhptill\",\"description\":\"biqtgdq\",\"suggestedResourceIds\":[\"cwsldri\",\"etpwbralll\",\"bphbqzmizakakank\",\"p\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"ha\",\"properties\":{\"issueType\":\"lhjlmuoyxprimr\",\"severity\":\"pteecjme\",\"description\":\"ls\",\"suggestedResourceIds\":[\"sylwxdzaumweooh\",\"uufuz\"],\"suggestedAccessRules\":[{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"thwtzol\",\"perimeterGuid\":\"emwmdxmebwjs\",\"location\":\"p\"},\"resourceAssociation\":{\"name\":\"xveabf\",\"accessMode\":\"nmwmqtibx\"},\"profile\":{\"name\":\"ddtvqctt\",\"accessRulesVersion\":7271036540862078032,\"accessRules\":[{\"name\":\"kmr\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"ndzaapmudq\",\"eqw\",\"gp\",\"bu\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"e\",\"bpmzzn\",\"tffyaqit\",\"hheioqaqhvseuf\"]}},{\"name\":\"yrxpdlcgqls\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"rddga\",\"quhiosrsjuivf\",\"disyirnxz\",\"czexrxzbujrtrhqv\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"nlnzonzlrpi\"]}}],\"diagnosticSettingsVersion\":5735251027885146196,\"enabledLogCategories\":[\"jtszcof\",\"zehtdhgb\",\"k\"]}},\"id\":\"eljeamurvzmlovua\",\"name\":\"ashcxlpmjerbdk\",\"type\":\"lvidizozs\"}") .toObject(NetworkSecurityPerimeterConfigurationInner.class); - Assertions.assertEquals("yyysfgdotcubi", model.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("ipwoqonmacjek", - model.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("zshq", model.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("impevf", model.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("lrri", + Assertions.assertEquals("qnsdfzpbgtgky", model.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("ghrjeuutl", model.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("ez", model.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("hokvbwnh", model.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("lgehg", model.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("xsmiccwrwfscjf", model.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("nszqujiz", model.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("oqytibyowbblgy", model.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("tp", model.properties().resourceAssociation().name()); - Assertions.assertEquals("joxoism", model.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("bpimlqoljxkcgxxl", model.properties().profile().name()); - Assertions.assertEquals(10678303666370251L, model.properties().profile().accessRulesVersion()); - Assertions.assertEquals("izqzdwlvwlyou", model.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals("thwtzol", model.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("emwmdxmebwjs", model.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("p", model.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("xveabf", model.properties().resourceAssociation().name()); + Assertions.assertEquals("nmwmqtibx", model.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("ddtvqctt", model.properties().profile().name()); + Assertions.assertEquals(7271036540862078032L, model.properties().profile().accessRulesVersion()); + Assertions.assertEquals("kmr", model.properties().profile().accessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.properties().profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("jub", + Assertions.assertEquals("ndzaapmudq", model.properties().profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("in", + Assertions.assertEquals("e", model.properties().profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(158425814591742958L, model.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("mywwtkgkxnyed", model.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals(5735251027885146196L, model.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("jtszcof", 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 dcee87c211a3..251db41501e9 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,21 +12,22 @@ public final class NetworkSecurityPerimeterConfigurationListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"kdlpa\",\"provisioningIssues\":[{\"name\":\"x\",\"properties\":{}},{\"name\":\"lc\",\"properties\":{}},{\"name\":\"m\",\"properties\":{}},{\"name\":\"xdfgsftufqobr\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"cgcckknhxkizvyt\",\"perimeterGuid\":\"zvulj\",\"location\":\"aeranokqgukkjqnv\"},\"resourceAssociation\":{\"name\":\"ylaxxulcdi\",\"accessMode\":\"osfjbjsv\"},\"profile\":{\"name\":\"whryvycytdcl\",\"accessRulesVersion\":4919215833349894285,\"accessRules\":[{}],\"diagnosticSettingsVersion\":2808392059508100767,\"enabledLogCategories\":[\"tmvpdvjdhtt\",\"a\",\"fedxihchrphkm\",\"rjdqnsdfzp\"]}},\"id\":\"tg\",\"name\":\"ylkdghrje\",\"type\":\"utlwxezwzhok\"}],\"nextLink\":\"wnhhtqlgehgppip\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"nnawtqabpxuckpgg\",\"provisioningIssues\":[{\"name\":\"yirdhlisngwflqq\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"ruwnpqxpx\",\"perimeterGuid\":\"fcngjsa\",\"location\":\"iixtmkzj\"},\"resourceAssociation\":{\"name\":\"iirhgfgrwsd\",\"accessMode\":\"ra\"},\"profile\":{\"name\":\"zb\",\"accessRulesVersion\":3744331679575254783,\"accessRules\":[{}],\"diagnosticSettingsVersion\":9067236042317484271,\"enabledLogCategories\":[\"rxkjzwrgxffmshk\",\"fbkgozxwopdby\"]}},\"id\":\"izqaclnapxbiyg\",\"name\":\"ugjknf\",\"type\":\"mfcttux\"},{\"properties\":{\"provisioningState\":\"i\",\"provisioningIssues\":[{\"name\":\"oiquvrehmrnjhvs\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"czytqjtwhauunfpr\",\"perimeterGuid\":\"letlx\",\"location\":\"rpddouifamo\"},\"resourceAssociation\":{\"name\":\"iynknlq\",\"accessMode\":\"dvpiwh\"},\"profile\":{\"name\":\"zdtmaajquhuxylrj\",\"accessRulesVersion\":2238943996638279475,\"accessRules\":[{},{},{}],\"diagnosticSettingsVersion\":4472205526082197909,\"enabledLogCategories\":[\"spsp\",\"hckfkyjpmspbps\",\"df\"]}},\"id\":\"yogtieyujtvczkcn\",\"name\":\"xrx\",\"type\":\"unjdx\"},{\"properties\":{\"provisioningState\":\"nkvxlxpaglqi\",\"provisioningIssues\":[{\"name\":\"cvkhpzvuqdfl\",\"properties\":{}},{\"name\":\"iypfp\",\"properties\":{}},{\"name\":\"pzgpxtivhj\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"ibg\",\"perimeterGuid\":\"xgpnr\",\"location\":\"ov\"},\"resourceAssociation\":{\"name\":\"ik\",\"accessMode\":\"hh\"},\"profile\":{\"name\":\"jrmzvupor\",\"accessRulesVersion\":5235917180289982639,\"accessRules\":[{},{}],\"diagnosticSettingsVersion\":4973807827942067690,\"enabledLogCategories\":[\"vxcnqmxqps\",\"okmvkhlggd\",\"bemzqkzszuwi\",\"tglxx\"]}},\"id\":\"jfpgpicrmn\",\"name\":\"hr\",\"type\":\"mqgjsxvpq\"}],\"nextLink\":\"frmbodthsqq\"}") .toObject(NetworkSecurityPerimeterConfigurationList.class); - Assertions.assertEquals("x", model.value().get(0).properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("cgcckknhxkizvyt", model.value().get(0).properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("zvulj", model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("aeranokqgukkjqnv", - model.value().get(0).properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("ylaxxulcdi", model.value().get(0).properties().resourceAssociation().name()); - Assertions.assertEquals("osfjbjsv", model.value().get(0).properties().resourceAssociation().accessMode()); - Assertions.assertEquals("whryvycytdcl", model.value().get(0).properties().profile().name()); - Assertions.assertEquals(4919215833349894285L, model.value().get(0).properties().profile().accessRulesVersion()); - Assertions.assertEquals(2808392059508100767L, + Assertions.assertEquals("yirdhlisngwflqq", + model.value().get(0).properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("ruwnpqxpx", model.value().get(0).properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("fcngjsa", + model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("iixtmkzj", model.value().get(0).properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("iirhgfgrwsd", model.value().get(0).properties().resourceAssociation().name()); + Assertions.assertEquals("ra", model.value().get(0).properties().resourceAssociation().accessMode()); + Assertions.assertEquals("zb", model.value().get(0).properties().profile().name()); + Assertions.assertEquals(3744331679575254783L, model.value().get(0).properties().profile().accessRulesVersion()); + Assertions.assertEquals(9067236042317484271L, model.value().get(0).properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("tmvpdvjdhtt", + Assertions.assertEquals("rxkjzwrgxffmshk", model.value().get(0).properties().profile().enabledLogCategories().get(0)); - Assertions.assertEquals("wnhhtqlgehgppip", model.nextLink()); + Assertions.assertEquals("frmbodthsqq", 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 c18c89be78f5..a02c09b84325 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\":\"gstcyohpf\",\"provisioningIssues\":[{\"name\":\"dbdgio\",\"properties\":{\"issueType\":\"kmnwqjnobaiyhddv\",\"severity\":\"cegfnmntfp\",\"description\":\"memfnczdwvvbalxl\",\"suggestedResourceIds\":[\"hpodbzev\"],\"suggestedAccessRules\":[{\"name\":\"hfuk\",\"properties\":{}},{\"name\":\"jcswsmys\",\"properties\":{}}]}},{\"name\":\"uqypfcvle\",\"properties\":{\"issueType\":\"pqbmfpjbab\",\"severity\":\"dfc\",\"description\":\"spuunnoxyhkxgq\",\"suggestedResourceIds\":[\"i\",\"pfhoqcaaewdao\"],\"suggestedAccessRules\":[{\"name\":\"l\",\"properties\":{}},{\"name\":\"xkzb\",\"properties\":{}},{\"name\":\"geivsiykzkdncj\",\"properties\":{}}]}},{\"name\":\"nbzoggcu\",\"properties\":{\"issueType\":\"z\",\"severity\":\"rpgogtqxep\",\"description\":\"lbfu\",\"suggestedResourceIds\":[\"yjt\"],\"suggestedAccessRules\":[{\"name\":\"qzhv\",\"properties\":{}}]}},{\"name\":\"byfmowuxr\",\"properties\":{\"issueType\":\"vdwxfzwi\",\"severity\":\"wzjbh\",\"description\":\"sxjrk\",\"suggestedResourceIds\":[\"trnegvmnvuqeqvld\",\"pa\"],\"suggestedAccessRules\":[{\"name\":\"kkdmfl\",\"properties\":{}},{\"name\":\"tmjlx\",\"properties\":{}},{\"name\":\"lozapeewchpxlk\",\"properties\":{}},{\"name\":\"uziycsl\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"uztcktyhjtqed\",\"perimeterGuid\":\"zulwmmrqzzrrj\",\"location\":\"gl\"},\"resourceAssociation\":{\"name\":\"gkrvqeevto\",\"accessMode\":\"r\"},\"profile\":{\"name\":\"nwy\",\"accessRulesVersion\":7661539638900058482,\"accessRules\":[{\"name\":\"zvfvaawz\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"z\",\"riglaec\",\"ndtic\",\"kpvzmlq\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"bf\",\"rclnpkc\",\"ayzri\"]}}],\"diagnosticSettingsVersion\":2638896199399411626,\"enabledLogCategories\":[\"fvjlboxqvkjlmx\"]}}") + "{\"provisioningState\":\"ccxjm\",\"provisioningIssues\":[{\"name\":\"gnwncypuuwwlt\",\"properties\":{\"issueType\":\"jctzenkei\",\"severity\":\"zhmkdasvflyh\",\"description\":\"cu\",\"suggestedResourceIds\":[\"xgsrboldforobw\",\"lvizb\",\"hfovvacqpbtu\"],\"suggestedAccessRules\":[{\"name\":\"szabbelawu\",\"properties\":{}}]}},{\"name\":\"slzkwrrwoycqu\",\"properties\":{\"issueType\":\"hahnomdrkywuhps\",\"severity\":\"uurutlwexxwlalni\",\"description\":\"zsrzpgepq\",\"suggestedResourceIds\":[\"bwwpgdakchzy\"],\"suggestedAccessRules\":[{\"name\":\"q\",\"properties\":{}},{\"name\":\"cxkjibnxmysuxswq\",\"properties\":{}},{\"name\":\"vl\",\"properties\":{}},{\"name\":\"psttexoq\",\"properties\":{}}]}},{\"name\":\"cyyufmh\",\"properties\":{\"issueType\":\"cuwmqsp\",\"severity\":\"dqzh\",\"description\":\"tddunqnd\",\"suggestedResourceIds\":[\"chrqb\",\"jjrcgegydc\"],\"suggestedAccessRules\":[{\"name\":\"jumvqqolihrraio\",\"properties\":{}},{\"name\":\"brjtloqxfuoj\",\"properties\":{}},{\"name\":\"iflrzpasccbiu\",\"properties\":{}}]}},{\"name\":\"dlyjdf\",\"properties\":{\"issueType\":\"kyoqufdv\",\"severity\":\"zslzojhp\",\"description\":\"fnmdxotn\",\"suggestedResourceIds\":[\"gugey\"],\"suggestedAccessRules\":[{\"name\":\"rkyui\",\"properties\":{}},{\"name\":\"snmfpphojeevy\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"gzfc\",\"perimeterGuid\":\"gomfgbeglq\",\"location\":\"eohibet\"},\"resourceAssociation\":{\"name\":\"ankrrfxee\",\"accessMode\":\"tijv\"},\"profile\":{\"name\":\"bmqzbqqxlajrnwx\",\"accessRulesVersion\":4124520510189226193,\"accessRules\":[{\"name\":\"kuyxoafg\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"aeylinm\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"gh\",\"iypoqeyhlqhykprl\",\"yznuciqd\",\"mexiitdfuxt\"]}}],\"diagnosticSettingsVersion\":7751108346277720968,\"enabledLogCategories\":[\"miybnn\",\"stgnl\",\"hnmgixhcm\"]}}") .toObject(NetworkSecurityPerimeterConfigurationProperties.class); - Assertions.assertEquals("dbdgio", model.provisioningIssues().get(0).name()); - Assertions.assertEquals("kmnwqjnobaiyhddv", model.provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("cegfnmntfp", model.provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("memfnczdwvvbalxl", model.provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("hpodbzev", + Assertions.assertEquals("gnwncypuuwwlt", model.provisioningIssues().get(0).name()); + Assertions.assertEquals("jctzenkei", model.provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("zhmkdasvflyh", model.provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("cu", model.provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("xgsrboldforobw", model.provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("hfuk", + Assertions.assertEquals("szabbelawu", model.provisioningIssues().get(0).properties().suggestedAccessRules().get(0).name()); - Assertions.assertEquals("uztcktyhjtqed", model.networkSecurityPerimeter().id()); - Assertions.assertEquals("zulwmmrqzzrrj", model.networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("gl", model.networkSecurityPerimeter().location()); - Assertions.assertEquals("gkrvqeevto", model.resourceAssociation().name()); - Assertions.assertEquals("r", model.resourceAssociation().accessMode()); - Assertions.assertEquals("nwy", model.profile().name()); - Assertions.assertEquals(7661539638900058482L, model.profile().accessRulesVersion()); - Assertions.assertEquals("zvfvaawz", model.profile().accessRules().get(0).name()); + Assertions.assertEquals("gzfc", model.networkSecurityPerimeter().id()); + Assertions.assertEquals("gomfgbeglq", model.networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("eohibet", model.networkSecurityPerimeter().location()); + Assertions.assertEquals("ankrrfxee", model.resourceAssociation().name()); + Assertions.assertEquals("tijv", model.resourceAssociation().accessMode()); + Assertions.assertEquals("bmqzbqqxlajrnwx", model.profile().name()); + Assertions.assertEquals(4124520510189226193L, model.profile().accessRulesVersion()); + Assertions.assertEquals("kuyxoafg", model.profile().accessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("z", model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("bf", + Assertions.assertEquals("aeylinm", model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("gh", model.profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(2638896199399411626L, model.profile().diagnosticSettingsVersion()); - Assertions.assertEquals("fvjlboxqvkjlmx", model.profile().enabledLogCategories().get(0)); + Assertions.assertEquals(7751108346277720968L, model.profile().diagnosticSettingsVersion()); + Assertions.assertEquals("miybnn", 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 4b3d79c5b677..6c2d358b78b3 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\":\"fdbmptrw\",\"provisioningIssues\":[{\"name\":\"isamonatniz\",\"properties\":{\"issueType\":\"oqsqjghr\",\"severity\":\"hsplwsttxsrgxf\",\"description\":\"aniceovxgzwh\",\"suggestedResourceIds\":[\"rujmti\",\"eslikyohzixyqhf\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"cqqqdseipn\",\"properties\":{\"issueType\":\"zxhrptyodlhkfktl\",\"severity\":\"dsobjopnouhbq\",\"description\":\"kqxs\",\"suggestedResourceIds\":[\"zyigfcvc\",\"wb\",\"qhdgsjsatmrn\",\"mazdfsqxh\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"ejparn\",\"properties\":{\"issueType\":\"rsz\",\"severity\":\"wtdrcwg\",\"description\":\"ll\",\"suggestedResourceIds\":[\"hhfi\",\"acfculzjrmhpf\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"ldqpzf\",\"properties\":{\"issueType\":\"oxinunjlzkdr\",\"severity\":\"qsxytqqtcmiw\",\"description\":\"is\",\"suggestedResourceIds\":[\"eylajamcajyhft\"],\"suggestedAccessRules\":[{}]}}],\"networkSecurityPerimeter\":{\"id\":\"yklleynqanhkiggl\",\"perimeterGuid\":\"walhvubh\",\"location\":\"phetxdqc\"},\"resourceAssociation\":{\"name\":\"tajqzj\",\"accessMode\":\"lecxbibiwks\"},\"profile\":{\"name\":\"yxsbfpz\",\"accessRulesVersion\":5896698054767453401,\"accessRules\":[{\"name\":\"wczfzwushlcx\",\"properties\":{}},{\"name\":\"alhhezpfk\",\"properties\":{}},{\"name\":\"aidqzsaaoqdsgpto\",\"properties\":{}},{\"name\":\"qf\",\"properties\":{}}],\"diagnosticSettingsVersion\":5234647323462595501,\"enabledLogCategories\":[\"tbfijz\"]}},\"id\":\"aoijolb\",\"name\":\"a\",\"type\":\"ktwieope\"}"; + = "{\"properties\":{\"provisioningState\":\"edzfzqiyuqhtdere\",\"provisioningIssues\":[{\"name\":\"a\",\"properties\":{\"issueType\":\"hpjlwyxedznmxrf\",\"severity\":\"ckewvm\",\"description\":\"fopxf\",\"suggestedResourceIds\":[\"pdyzoutx\",\"pt\",\"fhgnuywezygv\",\"dgaaqwvkgjpy\"],\"suggestedAccessRules\":[{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"dnogehlufbor\",\"perimeterGuid\":\"nukkfaxzsvb\",\"location\":\"yjisskobq\"},\"resourceAssociation\":{\"name\":\"flioewyhxe\",\"accessMode\":\"mvrkd\"},\"profile\":{\"name\":\"eqfbd\",\"accessRulesVersion\":77006822864737747,\"accessRules\":[{\"name\":\"rujbjpppktlp\",\"properties\":{}},{\"name\":\"fmthieatn\",\"properties\":{}},{\"name\":\"nminzqplgtki\",\"properties\":{}},{\"name\":\"ikzsrzfffji\",\"properties\":{}}],\"diagnosticSettingsVersion\":6842305534629428979,\"enabledLogCategories\":[\"ogkensckhbmcar\",\"oyfxxkwykuqdndx\"]}},\"id\":\"kh\",\"name\":\"gga\",\"type\":\"vdgtfpeer\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,26 +31,25 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSecurityPerimeterConfiguration response = manager.networkSecurityPerimeterConfigurations() - .getWithResponse("mfqzwqdnx", "eedcnwmywx", "qzkvemyzdpczaq", com.azure.core.util.Context.NONE) + .getWithResponse("ztvktjhffecqko", "youergaghp", "zxkpyehhfdyld", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("isamonatniz", response.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("oqsqjghr", response.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("hsplwsttxsrgxf", - response.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("aniceovxgzwh", - response.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("rujmti", + Assertions.assertEquals("a", response.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("hpjlwyxedznmxrf", + response.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("ckewvm", response.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("fopxf", response.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("pdyzoutx", response.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("yklleynqanhkiggl", response.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("walhvubh", response.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("phetxdqc", response.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("tajqzj", response.properties().resourceAssociation().name()); - Assertions.assertEquals("lecxbibiwks", response.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("yxsbfpz", response.properties().profile().name()); - Assertions.assertEquals(5896698054767453401L, response.properties().profile().accessRulesVersion()); - Assertions.assertEquals("wczfzwushlcx", response.properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(5234647323462595501L, response.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("tbfijz", response.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("dnogehlufbor", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("nukkfaxzsvb", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("yjisskobq", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("flioewyhxe", response.properties().resourceAssociation().name()); + Assertions.assertEquals("mvrkd", response.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("eqfbd", response.properties().profile().name()); + Assertions.assertEquals(77006822864737747L, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("rujbjpppktlp", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(6842305534629428979L, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("ogkensckhbmcar", 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 1e316b32016b..4a8fffeff508 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\":\"swyiljpibkgxyxy\",\"provisioningIssues\":[{\"name\":\"eddobmcnltm\",\"properties\":{\"issueType\":\"kujsqycmm\",\"severity\":\"fablqg\",\"description\":\"bmwhrialiwr\",\"suggestedResourceIds\":[\"nwplrr\",\"phctsbbibticu\"],\"suggestedAccessRules\":[{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"spbfsfeqbbewfc\",\"perimeterGuid\":\"fpyyxmzrmtm\",\"location\":\"ituweyyj\"},\"resourceAssociation\":{\"name\":\"ybwfuppoxprcmv\",\"accessMode\":\"ujx\"},\"profile\":{\"name\":\"kmoxrezsv\",\"accessRulesVersion\":6520382603838578706,\"accessRules\":[{\"name\":\"jmoywlunpipcwybs\",\"properties\":{}}],\"diagnosticSettingsVersion\":8348412099353887657,\"enabledLogCategories\":[\"tpf\"]}},\"id\":\"aebwfwhxorpwa\",\"name\":\"tzwugexojfccy\",\"type\":\"h\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"tncmspsanmam\",\"provisioningIssues\":[{\"name\":\"qiqmlfvhlq\",\"properties\":{\"issueType\":\"kqj\",\"severity\":\"pt\",\"description\":\"ipuugkwdrqmr\",\"suggestedResourceIds\":[\"uuonjkkxukguehvv\",\"xjoegcjojlleuidp\",\"tonvhgnhtmeplhb\"],\"suggestedAccessRules\":[{}]}}],\"networkSecurityPerimeter\":{\"id\":\"mumm\",\"perimeterGuid\":\"vavucg\",\"location\":\"ua\"},\"resourceAssociation\":{\"name\":\"mnuf\",\"accessMode\":\"rchxwwuzdmhvwl\"},\"profile\":{\"name\":\"jmxmlitqdsj\",\"accessRulesVersion\":6151759119341942171,\"accessRules\":[{\"name\":\"otyxbrii\",\"properties\":{}},{\"name\":\"ndslvrqoemwsie\",\"properties\":{}}],\"diagnosticSettingsVersion\":4191387151624254142,\"enabledLogCategories\":[\"mqfyde\",\"tmfx\",\"kd\",\"g\"]}},\"id\":\"namkuuyiuyu\",\"name\":\"fi\",\"type\":\"lxicwgpthdcf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,18 +31,18 @@ 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.networkSecurityPerimeterConfigurations().list("e", "xq", com.azure.core.util.Context.NONE); + PagedIterable response = manager.networkSecurityPerimeterConfigurations() + .list("cd", "rnrnjrcufmbgacnr", com.azure.core.util.Context.NONE); - Assertions.assertEquals("eddobmcnltm", + Assertions.assertEquals("qiqmlfvhlq", response.iterator().next().properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("kujsqycmm", + Assertions.assertEquals("kqj", response.iterator().next().properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("fablqg", + Assertions.assertEquals("pt", response.iterator().next().properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("bmwhrialiwr", + Assertions.assertEquals("ipuugkwdrqmr", response.iterator().next().properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("nwplrr", + Assertions.assertEquals("uuonjkkxukguehvv", response.iterator() .next() .properties() @@ -51,21 +51,21 @@ public void testList() throws Exception { .properties() .suggestedResourceIds() .get(0)); - Assertions.assertEquals("spbfsfeqbbewfc", - response.iterator().next().properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("fpyyxmzrmtm", + Assertions.assertEquals("mumm", response.iterator().next().properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("vavucg", response.iterator().next().properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("ituweyyj", - response.iterator().next().properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("ybwfuppoxprcmv", response.iterator().next().properties().resourceAssociation().name()); - Assertions.assertEquals("ujx", response.iterator().next().properties().resourceAssociation().accessMode()); - Assertions.assertEquals("kmoxrezsv", response.iterator().next().properties().profile().name()); - Assertions.assertEquals(6520382603838578706L, + Assertions.assertEquals("ua", response.iterator().next().properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("mnuf", response.iterator().next().properties().resourceAssociation().name()); + Assertions.assertEquals("rchxwwuzdmhvwl", + response.iterator().next().properties().resourceAssociation().accessMode()); + Assertions.assertEquals("jmxmlitqdsj", response.iterator().next().properties().profile().name()); + Assertions.assertEquals(6151759119341942171L, response.iterator().next().properties().profile().accessRulesVersion()); - Assertions.assertEquals("jmoywlunpipcwybs", + Assertions.assertEquals("otyxbrii", response.iterator().next().properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(8348412099353887657L, + Assertions.assertEquals(4191387151624254142L, response.iterator().next().properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("tpf", response.iterator().next().properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("mqfyde", + 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 cdcefe2450ae..50fd8a0ff8d3 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\":\"hwb\",\"properties\":{\"issueType\":\"fvcgnrglaqr\",\"severity\":\"ambhbafebzxf\",\"description\":\"qutibhl\",\"suggestedResourceIds\":[\"trvrkpsab\",\"u\",\"vzm\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"ysvlpyeuukppd\",\"properties\":{\"issueType\":\"bo\",\"severity\":\"vhh\",\"description\":\"qe\",\"suggestedResourceIds\":[\"xgrzn\",\"gin\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"ixchwkibm\",\"properties\":{\"issueType\":\"mncj\",\"severity\":\"gair\",\"description\":\"qzoof\",\"suggestedResourceIds\":[\"jsvepfbhtleberp\",\"ljekn\"],\"suggestedAccessRules\":[{}]}}],\"networkSecurityPerimeter\":{\"id\":\"j\",\"perimeterGuid\":\"owkdnjr\",\"location\":\"krhwieh\"},\"resourceAssociation\":{\"name\":\"nowawonoehrguqlh\",\"accessMode\":\"afbjzmpy\"},\"profile\":{\"name\":\"yfazbkocb\",\"accessRulesVersion\":8588821644991336007,\"accessRules\":[{\"name\":\"x\",\"properties\":{}},{\"name\":\"jww\",\"properties\":{}},{\"name\":\"mrawppkeboozfl\",\"properties\":{}},{\"name\":\"agaedaoi\",\"properties\":{}}],\"diagnosticSettingsVersion\":3224819326668961409,\"enabledLogCategories\":[\"wga\",\"dxfkuzb\"]}},\"id\":\"ecooyvhtuqbp\",\"name\":\"lniibncg\",\"type\":\"gdvcdqhftz\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"rcjlvkrkegtyczup\",\"properties\":{\"issueType\":\"xlzmiyddee\",\"severity\":\"qvabmhvsexduet\",\"description\":\"pfczewxtrl\",\"suggestedResourceIds\":[\"xyazkjpirgzx\",\"bcz\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"gbth\",\"properties\":{\"issueType\":\"i\",\"severity\":\"buiggrunozf\",\"description\":\"aljthoivsdwsn\",\"suggestedResourceIds\":[\"f\",\"hscj\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"hzbhwahfbw\",\"properties\":{\"issueType\":\"nnx\",\"severity\":\"vynuqqkotauratn\",\"description\":\"ppfzsclef\",\"suggestedResourceIds\":[\"etndqlmfdggnbbu\",\"pwovvvsfleevn\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"rehjuqwvapx\",\"properties\":{\"issueType\":\"hpzihacenqqzlx\",\"severity\":\"zubfo\",\"description\":\"dbgmkfwmjcwte\",\"suggestedResourceIds\":[\"xwyrkbrehzlr\",\"njpchamkaeplr\",\"jub\",\"wuyw\"],\"suggestedAccessRules\":[{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"ieikmwlaoklfnis\",\"perimeterGuid\":\"gucbmt\",\"location\":\"dscnns\"},\"resourceAssociation\":{\"name\":\"yyuvtzrxzhclec\",\"accessMode\":\"tzqzcloy\"},\"profile\":{\"name\":\"pgidhzgyresgzsdt\",\"accessRulesVersion\":8490985759859580887,\"accessRules\":[{\"name\":\"plbchy\",\"properties\":{}}],\"diagnosticSettingsVersion\":2887159636628713648,\"enabledLogCategories\":[\"fbqvumkxqj\",\"iuepmaxfnzlpqmp\",\"t\",\"efvulblmr\"]}},\"id\":\"xyprhfcaeooifqdy\",\"name\":\"jflobhahqmomf\",\"type\":\"corkfrocgbmxl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,26 +31,26 @@ public void testReconcile() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSecurityPerimeterConfiguration response = manager.networkSecurityPerimeterConfigurations() - .reconcile("rh", "hvazjpwexcdr", "probzzxezmnrkjgp", com.azure.core.util.Context.NONE); + .reconcile("fzcfasf", "d", "opalvngtwyu", com.azure.core.util.Context.NONE); - Assertions.assertEquals("hwb", response.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("fvcgnrglaqr", + Assertions.assertEquals("rcjlvkrkegtyczup", response.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("xlzmiyddee", response.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("ambhbafebzxf", + Assertions.assertEquals("qvabmhvsexduet", response.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("qutibhl", + Assertions.assertEquals("pfczewxtrl", response.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("trvrkpsab", + Assertions.assertEquals("xyazkjpirgzx", response.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("j", response.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("owkdnjr", response.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("krhwieh", response.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("nowawonoehrguqlh", response.properties().resourceAssociation().name()); - Assertions.assertEquals("afbjzmpy", response.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("yfazbkocb", response.properties().profile().name()); - Assertions.assertEquals(8588821644991336007L, response.properties().profile().accessRulesVersion()); - Assertions.assertEquals("x", response.properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(3224819326668961409L, response.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("wga", response.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("ieikmwlaoklfnis", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("gucbmt", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("dscnns", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("yyuvtzrxzhclec", response.properties().resourceAssociation().name()); + Assertions.assertEquals("tzqzcloy", response.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("pgidhzgyresgzsdt", response.properties().profile().name()); + Assertions.assertEquals(8490985759859580887L, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("plbchy", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(2887159636628713648L, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("fbqvumkxqj", 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 c983ce8ec1a1..780d39c7086a 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,23 @@ public final class NetworkSecurityPerimeterProfileInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterProfileInfo model = BinaryData.fromString( - "{\"name\":\"nbixxrti\",\"accessRulesVersion\":4905546416088448049,\"accessRules\":[{\"name\":\"clrcivtsox\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"pmyyefrpmpdnqq\",\"ka\",\"ao\",\"vmm\"],\"subscriptions\":[{\"id\":\"fr\"},{\"id\":\"lkzmegnitgvkxl\"},{\"id\":\"qdrfegcealzxwhc\"}],\"networkSecurityPerimeters\":[{\"id\":\"moy\",\"perimeterGuid\":\"lwigdivbkbx\",\"location\":\"mf\"},{\"id\":\"uwasqvd\",\"perimeterGuid\":\"y\",\"location\":\"uxakjsqzhzbezk\"}],\"fullyQualifiedDomainNames\":[\"sidxasicdd\",\"vvjskgfmocwahp\",\"gat\",\"eaahhvjhhn\"]}},{\"name\":\"zybbj\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"yxkyxvx\",\"vblbjednljlageua\",\"lxunsmjbnkppxy\",\"enlsvxeizzgwkln\"],\"subscriptions\":[{\"id\":\"feycxcktp\"},{\"id\":\"merteeammxqiek\"},{\"id\":\"zddrt\"}],\"networkSecurityPerimeters\":[{\"id\":\"jbmxvavre\",\"perimeterGuid\":\"eesvecu\",\"location\":\"pxtxsuwp\"}],\"fullyQualifiedDomainNames\":[\"jwsawddjibab\",\"vit\",\"tvtzeexavoxtfg\",\"ecdmdqbwpy\"]}}],\"diagnosticSettingsVersion\":6582481104194355063,\"enabledLogCategories\":[\"jacbslhhxudbxvod\",\"tnsi\",\"ud\",\"z\"]}") + "{\"name\":\"mwmxqhndvnoamld\",\"accessRulesVersion\":7558431973272229371,\"accessRules\":[{\"name\":\"jhhflzokxcoxpel\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"ltsxoatf\",\"g\"],\"subscriptions\":[{\"id\":\"bs\"}],\"networkSecurityPerimeters\":[{\"id\":\"loccsrmozihm\",\"perimeterGuid\":\"g\",\"location\":\"txx\"}],\"fullyQualifiedDomainNames\":[\"jcxcjxgrytfmpcyc\"]}},{\"name\":\"rmcaykgg\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"rksxwpndfc\"],\"subscriptions\":[{\"id\":\"nthjtwkjaosrxuzv\"},{\"id\":\"mktcqiosmgbza\"}],\"networkSecurityPerimeters\":[{\"id\":\"dl\",\"perimeterGuid\":\"tlt\",\"location\":\"prltzkatbhjmz\"},{\"id\":\"bsoqeqala\",\"perimeterGuid\":\"lagun\",\"location\":\"gfebwlnb\"},{\"id\":\"yreeudz\",\"perimeterGuid\":\"vbpdqmjxlyyzglgo\",\"location\":\"tlmj\"},{\"id\":\"uojqt\",\"perimeterGuid\":\"axkjeytunlbfjk\",\"location\":\"u\"}],\"fullyQualifiedDomainNames\":[\"qbhsyrq\"]}}],\"diagnosticSettingsVersion\":6075063835872698279,\"enabledLogCategories\":[\"enx\",\"ulkpakd\"]}") .toObject(NetworkSecurityPerimeterProfileInfo.class); - Assertions.assertEquals("nbixxrti", model.name()); - Assertions.assertEquals(4905546416088448049L, model.accessRulesVersion()); - Assertions.assertEquals("clrcivtsox", model.accessRules().get(0).name()); - Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.accessRules().get(0).properties().direction()); - Assertions.assertEquals("pmyyefrpmpdnqq", model.accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("fr", model.accessRules().get(0).properties().subscriptions().get(0).id()); - Assertions.assertEquals("moy", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("lwigdivbkbx", + Assertions.assertEquals("mwmxqhndvnoamld", model.name()); + Assertions.assertEquals(7558431973272229371L, model.accessRulesVersion()); + Assertions.assertEquals("jhhflzokxcoxpel", model.accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.accessRules().get(0).properties().direction()); + Assertions.assertEquals("ltsxoatf", model.accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("bs", model.accessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("loccsrmozihm", + model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("g", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("mf", + Assertions.assertEquals("txx", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("sidxasicdd", + Assertions.assertEquals("jcxcjxgrytfmpcyc", model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(6582481104194355063L, model.diagnosticSettingsVersion()); - Assertions.assertEquals("jacbslhhxudbxvod", model.enabledLogCategories().get(0)); + Assertions.assertEquals(6075063835872698279L, model.diagnosticSettingsVersion()); + Assertions.assertEquals("enx", 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 4012f8bc1c78..2024678a8785 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\":\"obrltt\",\"perimeterGuid\":\"sjnygqdnfwqzdzgt\",\"location\":\"axhnfh\"}") - .toObject(NetworkSecurityPerimeter.class); - Assertions.assertEquals("obrltt", model.id()); - Assertions.assertEquals("sjnygqdnfwqzdzgt", model.perimeterGuid()); - Assertions.assertEquals("axhnfh", model.location()); + NetworkSecurityPerimeter model + = BinaryData.fromString("{\"id\":\"iqg\",\"perimeterGuid\":\"hokzrusw\",\"location\":\"hczznvf\"}") + .toObject(NetworkSecurityPerimeter.class); + Assertions.assertEquals("iqg", model.id()); + Assertions.assertEquals("hokzrusw", model.perimeterGuid()); + Assertions.assertEquals("hczznvf", 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 e7fb600c680e..9338f0bd141a 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,44 +19,45 @@ public final class NoneAuthTypeConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NoneAuthTypeConnectionProperties model = BinaryData.fromString( - "{\"authType\":\"None\",\"category\":\"OracleCloudStorage\",\"createdByWorkspaceArmId\":\"wjwiuub\",\"error\":\"fqsfa\",\"expiryTime\":\"2021-06-03T00:57:38Z\",\"group\":\"Database\",\"isSharedToAll\":false,\"metadata\":{\"nobpudcdabtqwpw\":\"wexjkmfxapjwogq\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"qbucljgkyexaoguy\",\"i\"],\"target\":\"dsdaultxijjumf\",\"useWorkspaceManagedIdentity\":true}") + "{\"authType\":\"None\",\"category\":\"RemoteA2A\",\"createdByWorkspaceArmId\":\"bwwg\",\"error\":\"vibidmhmwffpl\",\"expiryTime\":\"2021-05-30T00:50:24Z\",\"group\":\"GenericProtocol\",\"isSharedToAll\":false,\"metadata\":{\"oy\":\"crrvweyo\",\"oshbragapyy\":\"ukphaimmoiroq\",\"opfppdbwnupgah\":\"mfsvbpav\",\"jcaacfdmmcpugm\":\"kuma\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"fhbzehewhoqhn\"],\"target\":\"qnbldxe\",\"useWorkspaceManagedIdentity\":false}") .toObject(NoneAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.ORACLE_CLOUD_STORAGE, model.category()); - Assertions.assertEquals("fqsfa", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T00:57:38Z"), model.expiryTime()); + Assertions.assertEquals(ConnectionCategory.REMOTE_A2A, model.category()); + Assertions.assertEquals("vibidmhmwffpl", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T00:50:24Z"), model.expiryTime()); Assertions.assertFalse(model.isSharedToAll()); - Assertions.assertEquals("wexjkmfxapjwogq", model.metadata().get("nobpudcdabtqwpw")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("qbucljgkyexaoguy", model.sharedUserList().get(0)); - Assertions.assertEquals("dsdaultxijjumf", model.target()); - Assertions.assertTrue(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals("crrvweyo", model.metadata().get("oy")); + Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.peStatus()); + Assertions.assertEquals("fhbzehewhoqhn", model.sharedUserList().get(0)); + Assertions.assertEquals("qnbldxe", model.target()); + Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { NoneAuthTypeConnectionProperties model - = new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.ORACLE_CLOUD_STORAGE) - .withError("fqsfa") - .withExpiryTime(OffsetDateTime.parse("2021-06-03T00:57:38Z")) + = new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.REMOTE_A2A) + .withError("vibidmhmwffpl") + .withExpiryTime(OffsetDateTime.parse("2021-05-30T00:50:24Z")) .withIsSharedToAll(false) - .withMetadata(mapOf("nobpudcdabtqwpw", "wexjkmfxapjwogq")) - .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("qbucljgkyexaoguy", "i")) - .withTarget("dsdaultxijjumf") - .withUseWorkspaceManagedIdentity(true); + .withMetadata(mapOf("oy", "crrvweyo", "oshbragapyy", "ukphaimmoiroq", "opfppdbwnupgah", "mfsvbpav", + "jcaacfdmmcpugm", "kuma")) + .withPeRequirement(ManagedPERequirement.REQUIRED) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("fhbzehewhoqhn")) + .withTarget("qnbldxe") + .withUseWorkspaceManagedIdentity(false); model = BinaryData.fromObject(model).toObject(NoneAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.ORACLE_CLOUD_STORAGE, model.category()); - Assertions.assertEquals("fqsfa", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T00:57:38Z"), model.expiryTime()); + Assertions.assertEquals(ConnectionCategory.REMOTE_A2A, model.category()); + Assertions.assertEquals("vibidmhmwffpl", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T00:50:24Z"), model.expiryTime()); Assertions.assertFalse(model.isSharedToAll()); - Assertions.assertEquals("wexjkmfxapjwogq", model.metadata().get("nobpudcdabtqwpw")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("qbucljgkyexaoguy", model.sharedUserList().get(0)); - Assertions.assertEquals("dsdaultxijjumf", model.target()); - Assertions.assertTrue(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals("crrvweyo", model.metadata().get("oy")); + Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.peStatus()); + Assertions.assertEquals("fhbzehewhoqhn", model.sharedUserList().get(0)); + Assertions.assertEquals("qnbldxe", model.target()); + Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } // Use "Map.of" if available 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 e1f37f89d4e2..cbfecda221b7 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\":\"gucaif\",\"isDataAction\":true,\"display\":{\"provider\":\"wgilfjqqac\",\"resource\":\"kxwxdcvjwcyziake\",\"operation\":\"qchxrtuic\",\"description\":\"iw\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"pilrgunca\",\"isDataAction\":true,\"display\":{\"provider\":\"zorxsb\",\"resource\":\"aqklxy\",\"operation\":\"kqv\",\"description\":\"epdxcltuubwyvpj\"},\"origin\":\"user,system\",\"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 23e069b8ab4f..409ea1273565 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\":\"Inactive\",\"errorInformation\":\"edikdfrdbiq\",\"parentRuleNames\":[\"geihfql\",\"gwfiwzcxmjpby\",\"phmgtvljvrcmyfq\",\"pgxh\"]},\"id\":\"omyqwcabvnuileey\",\"name\":\"swlpaugmrmfj\",\"type\":\"rxwtoaukhfkvc\"}") + "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Failed\",\"errorInformation\":\"xk\",\"parentRuleNames\":[\"xetyvku\",\"mignohikkg\",\"ogjwpindedvabbxb\",\"medeil\"]},\"id\":\"ywfcfxzi\",\"name\":\"zzihvwy\",\"type\":\"usuv\"}") .toObject(OutboundRuleBasicResourceInner.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.properties().category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.properties().category()); + Assertions.assertEquals(RuleStatus.FAILED, 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.INACTIVE)); + .withProperties(new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.FAILED)); model = BinaryData.fromObject(model).toObject(OutboundRuleBasicResourceInner.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.properties().category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.properties().category()); + Assertions.assertEquals(RuleStatus.FAILED, 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 65c732fa5412..09b426f128f3 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\":\"glrrczez\",\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Deleting\",\"errorInformation\":\"dhqoawj\",\"parentRuleNames\":[\"ueayfbpcmsplb\",\"rrueqthwmg\",\"mbscbbx\"]},\"id\":\"dhxiidlopedbwd\",\"name\":\"yqyybxubmdna\",\"type\":\"cbq\"},{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"laqacigele\",\"parentRuleNames\":[\"bvqvwzkjopwbeo\"]},\"id\":\"lkwzdqybxceakxcp\",\"name\":\"soqfyiaseqchkrt\",\"type\":\"zrazisgyk\"},{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"nbwzohmnrxxbso\",\"parentRuleNames\":[\"inhmdptys\",\"rqsgnzx\",\"jp\",\"lsvjgpliu\"]},\"id\":\"qwoyxqvapco\",\"name\":\"houcqpqojxc\",\"type\":\"zrzdcgd\"},{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"bcawetz\",\"parentRuleNames\":[\"tjwfljhznamtua\",\"mzwcjjncqt\",\"z\",\"izvg\"]},\"id\":\"atzuuv\",\"name\":\"xngre\",\"type\":\"wggahttzlswvaj\"}]}") + "{\"nextLink\":\"zkiswqjmdghsy\",\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"p\",\"parentRuleNames\":[\"czjnc\",\"uiyqvldaswvppi\",\"qqzlgcndhz\"]},\"id\":\"rfc\",\"name\":\"srhkhgsnxuwwkpph\",\"type\":\"fsbzxlbzxo\"}]}") .toObject(OutboundRuleListResult.class); - Assertions.assertEquals("glrrczez", model.nextLink()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.value().get(0).properties().category()); - Assertions.assertEquals(RuleStatus.DELETING, model.value().get(0).properties().status()); + Assertions.assertEquals("zkiswqjmdghsy", model.nextLink()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, 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 620dd8d009a5..f4d4200bee77 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\":\"Active\",\"errorInformation\":\"a\",\"parentRuleNames\":[\"xjw\"]}") + "{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"ciidjs\",\"parentRuleNames\":[\"r\",\"vdmvxadqa\",\"frgnawbabgfbktyj\",\"fczlfsyqkfrbzgow\"]}") .toObject(OutboundRule.class); Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); Assertions.assertEquals(RuleStatus.ACTIVE, 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 4dbbf36c7848..3a9094352318 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\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"krjflsgaojb\",\"parentRuleNames\":[\"q\",\"doctpz\"]},\"id\":\"jzflmcdsgxc\",\"name\":\"lujiswlluunxhfw\",\"type\":\"fxzf\"}"; + = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Inactive\",\"errorInformation\":\"f\",\"parentRuleNames\":[\"tqscjpvqerqxk\",\"mwdz\",\"zlhcu\"]},\"id\":\"lqpwwvmb\",\"name\":\"ecfwlbghnkfrw\",\"type\":\"oh\"}"; 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("ampqocl") - .withExistingManagedNetwork("trsvjmnsvujnjkt", "olefcjisepkdbxo", "fb") - .withProperties( - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING)) + .define("e") + .withExistingManagedNetwork("fsvpzxg", "ywxuymlfjym", "wtmszcfyzq") + .withProperties(new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.ACTIVE)) .create(); - Assertions.assertEquals(RuleCategory.RECOMMENDED, 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/OutboundRulesGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java index 3334057baa96..d5fd6247be99 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\":\"Provisioning\",\"errorInformation\":\"kqakofaj\",\"parentRuleNames\":[\"prfvmkinwteyrqsh\"]},\"id\":\"bcejopylbl\",\"name\":\"sp\",\"type\":\"r\"}"; + = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"wltkfysuntethklx\",\"parentRuleNames\":[\"vasyyhgqok\",\"bmsrkix\"]},\"id\":\"xhwr\",\"name\":\"qomaqsyilpzzbrw\",\"type\":\"rzozsxagyso\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OutboundRuleBasicResource response = manager.outboundRules() - .getWithResponse("owa", "dcndazabun", "tsewkaupwhlz", "ckremgjlmsvdorsi", com.azure.core.util.Context.NONE) + .getWithResponse("fiktlhqa", "htostjixyzsecig", "zdwjtacfvvtdpcbp", "fomcsau", + com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RuleCategory.REQUIRED, response.properties().category()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, response.properties().category()); Assertions.assertEquals(RuleStatus.PROVISIONING, 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 adf08725a451..317f2bed56bf 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\":\"Dependency\",\"status\":\"Inactive\",\"errorInformation\":\"vtrkfkg\",\"parentRuleNames\":[\"qnnp\",\"wkosnyxigf\",\"ujjcxgdqmrlhn\",\"kwopswnyinxupr\"]},\"id\":\"yxwjezb\",\"name\":\"qployu\",\"type\":\"kdcpvu\"}]}"; + = "{\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"yqagqllcbrva\",\"parentRuleNames\":[\"lkyhtrrqwfyybpt\",\"jjrnogykugdlavsa\",\"gthkslgeu\",\"fkbzbfbxjblajy\"]},\"id\":\"nbycs\",\"name\":\"t\",\"type\":\"isazdjm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ 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.outboundRules() - .list("cspimtcvvfxrdy", "zfslxizhqikmgob", "iqemcdiiisklbon", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.outboundRules().list("liiksybv", "rbnhylsbhu", "cydyllmxv", com.azure.core.util.Context.NONE); - Assertions.assertEquals(RuleCategory.DEPENDENCY, response.iterator().next().properties().category()); - Assertions.assertEquals(RuleStatus.INACTIVE, response.iterator().next().properties().status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, response.iterator().next().properties().category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, 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 new file mode 100644 index 000000000000..177142eb013c --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceSkuTests.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.PatchResourceSku; +import com.azure.resourcemanager.cognitiveservices.models.Sku; +import com.azure.resourcemanager.cognitiveservices.models.SkuTier; +import org.junit.jupiter.api.Assertions; + +public final class PatchResourceSkuTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PatchResourceSku model = BinaryData.fromString( + "{\"sku\":{\"name\":\"ychocokulehu\",\"tier\":\"Free\",\"size\":\"qffawey\",\"family\":\"kphyjdxrav\",\"capacity\":257563193}}") + .toObject(PatchResourceSku.class); + Assertions.assertEquals("ychocokulehu", model.sku().name()); + Assertions.assertEquals(SkuTier.FREE, model.sku().tier()); + Assertions.assertEquals("qffawey", model.sku().size()); + Assertions.assertEquals("kphyjdxrav", model.sku().family()); + Assertions.assertEquals(257563193, model.sku().capacity()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PatchResourceSku model = new PatchResourceSku().withSku(new Sku().withName("ychocokulehu") + .withTier(SkuTier.FREE) + .withSize("qffawey") + .withFamily("kphyjdxrav") + .withCapacity(257563193)); + model = BinaryData.fromObject(model).toObject(PatchResourceSku.class); + Assertions.assertEquals("ychocokulehu", model.sku().name()); + Assertions.assertEquals(SkuTier.FREE, model.sku().tier()); + Assertions.assertEquals("qffawey", model.sku().size()); + Assertions.assertEquals("kphyjdxrav", model.sku().family()); + Assertions.assertEquals(257563193, 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 06aa9f6c07d3..ebc6e003dc80 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,31 +16,32 @@ public final class PatchResourceTagsAndSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PatchResourceTagsAndSku model = BinaryData.fromString( - "{\"sku\":{\"name\":\"ped\",\"tier\":\"Free\",\"size\":\"a\",\"family\":\"khsmtxpsiebt\",\"capacity\":1926869194},\"tags\":{\"qmhjjdhtld\":\"sapskr\"}}") + "{\"sku\":{\"name\":\"jqg\",\"tier\":\"Standard\",\"size\":\"ocmbqfqvmkcxoza\",\"family\":\"helxprglya\",\"capacity\":1462356590},\"tags\":{\"rhos\":\"cbcuejrjxgciqi\",\"ibahwflus\":\"sdqrhzoymibmrq\"}}") .toObject(PatchResourceTagsAndSku.class); - Assertions.assertEquals("sapskr", model.tags().get("qmhjjdhtld")); - Assertions.assertEquals("ped", model.sku().name()); - Assertions.assertEquals(SkuTier.FREE, model.sku().tier()); - Assertions.assertEquals("a", model.sku().size()); - Assertions.assertEquals("khsmtxpsiebt", model.sku().family()); - Assertions.assertEquals(1926869194, model.sku().capacity()); + Assertions.assertEquals("cbcuejrjxgciqi", model.tags().get("rhos")); + Assertions.assertEquals("jqg", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("ocmbqfqvmkcxoza", model.sku().size()); + Assertions.assertEquals("helxprglya", model.sku().family()); + Assertions.assertEquals(1462356590, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PatchResourceTagsAndSku model = new PatchResourceTagsAndSku().withTags(mapOf("qmhjjdhtld", "sapskr")) - .withSku(new Sku().withName("ped") - .withTier(SkuTier.FREE) - .withSize("a") - .withFamily("khsmtxpsiebt") - .withCapacity(1926869194)); + PatchResourceTagsAndSku model + = new PatchResourceTagsAndSku().withTags(mapOf("rhos", "cbcuejrjxgciqi", "ibahwflus", "sdqrhzoymibmrq")) + .withSku(new Sku().withName("jqg") + .withTier(SkuTier.STANDARD) + .withSize("ocmbqfqvmkcxoza") + .withFamily("helxprglya") + .withCapacity(1462356590)); model = BinaryData.fromObject(model).toObject(PatchResourceTagsAndSku.class); - Assertions.assertEquals("sapskr", model.tags().get("qmhjjdhtld")); - Assertions.assertEquals("ped", model.sku().name()); - Assertions.assertEquals(SkuTier.FREE, model.sku().tier()); - Assertions.assertEquals("a", model.sku().size()); - Assertions.assertEquals("khsmtxpsiebt", model.sku().family()); - Assertions.assertEquals(1926869194, model.sku().capacity()); + Assertions.assertEquals("cbcuejrjxgciqi", model.tags().get("rhos")); + Assertions.assertEquals("jqg", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("ocmbqfqvmkcxoza", model.sku().size()); + Assertions.assertEquals("helxprglya", model.sku().family()); + Assertions.assertEquals(1462356590, 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 23ad06409f3a..0ccb0cfc03d5 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,18 +13,18 @@ public final class PatchResourceTagsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PatchResourceTags model = BinaryData - .fromString("{\"tags\":{\"otogtwrupqs\":\"zxuutkncwscwsvl\",\"cykvceo\":\"vnm\",\"vnotyfjfcnj\":\"eil\"}}") + PatchResourceTags model = BinaryData.fromString( + "{\"tags\":{\"expbtg\":\"mhrkwofyyvoqacp\",\"nwashrtd\":\"wbwo\",\"ulpiuj\":\"kcnqxwbpo\",\"obyu\":\"aasipqi\"}}") .toObject(PatchResourceTags.class); - Assertions.assertEquals("zxuutkncwscwsvl", model.tags().get("otogtwrupqs")); + Assertions.assertEquals("mhrkwofyyvoqacp", model.tags().get("expbtg")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PatchResourceTags model = new PatchResourceTags() - .withTags(mapOf("otogtwrupqs", "zxuutkncwscwsvl", "cykvceo", "vnm", "vnotyfjfcnj", "eil")); + .withTags(mapOf("expbtg", "mhrkwofyyvoqacp", "nwashrtd", "wbwo", "ulpiuj", "kcnqxwbpo", "obyu", "aasipqi")); model = BinaryData.fromObject(model).toObject(PatchResourceTags.class); - Assertions.assertEquals("zxuutkncwscwsvl", model.tags().get("otogtwrupqs")); + Assertions.assertEquals("mhrkwofyyvoqacp", model.tags().get("expbtg")); } // 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 new file mode 100644 index 000000000000..6fcc87f72d02 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyAssignmentEvaluationDetailsTests.java @@ -0,0 +1,31 @@ +// 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.PolicyAssignmentEvaluationDetails; +import com.azure.resourcemanager.cognitiveservices.models.PolicyEvaluationOutcome; +import org.junit.jupiter.api.Assertions; + +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\"}]}") + .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()); + } +} 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 new file mode 100644 index 000000000000..231d16b3ae03 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyExpressionEvaluationDetailsTests.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; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.cognitiveservices.models.PolicyExpressionEvaluationDetails; +import org.junit.jupiter.api.Assertions; + +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\"}") + .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()); + } +} 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 new file mode 100644 index 000000000000..0a2c85f38951 --- /dev/null +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PoolTests.java @@ -0,0 +1,37 @@ +// 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.Pool; +import com.azure.resourcemanager.cognitiveservices.models.VmPriority; +import org.junit.jupiter.api.Assertions; + +public final class PoolTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + Pool model = BinaryData + .fromString( + "{\"name\":\"ui\",\"vmPriority\":\"Regular\",\"instanceType\":\"xvatvcr\",\"nodeCount\":915705696}") + .toObject(Pool.class); + Assertions.assertEquals("ui", model.name()); + Assertions.assertEquals(VmPriority.REGULAR, model.vmPriority()); + Assertions.assertEquals("xvatvcr", model.instanceType()); + Assertions.assertEquals(915705696, model.nodeCount()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + Pool model = new Pool().withName("ui") + .withVmPriority(VmPriority.REGULAR) + .withInstanceType("xvatvcr") + .withNodeCount(915705696); + model = BinaryData.fromObject(model).toObject(Pool.class); + Assertions.assertEquals("ui", model.name()); + Assertions.assertEquals(VmPriority.REGULAR, model.vmPriority()); + Assertions.assertEquals("xvatvcr", model.instanceType()); + Assertions.assertEquals(915705696, 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 8e24a5b01fa4..055e507fa958 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\":\"flz\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"zpuzycisp\",\"actionsRequired\":\"zahmgkbrpyydhibn\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"ik\",\"drgvtqagn\"]},\"etag\":\"ynhijggme\",\"location\":\"siarbutrcvpn\",\"id\":\"zmhjrunmp\",\"name\":\"ttdbhrbnl\",\"type\":\"nkxmyskpbhenbtk\"}]}") + "{\"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\"}]}") .toObject(PrivateEndpointConnectionListResultInner.class); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("zpuzycisp", + Assertions.assertEquals("ntwlrbqtkoie", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("zahmgkbrpyydhibn", + Assertions.assertEquals("eotg", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("ik", model.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("siarbutrcvpn", model.value().get(0).location()); + Assertions.assertEquals("muwlauwzizxbm", model.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("glkfg", 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 24a776f41057..34bfef355d61 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\":\"mmdqgmihzpimc\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"xtminklogxsvtzar\",\"actionsRequired\":\"vqnsqk\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"wzzoslpk\",\"btglwkzpgajsqj\",\"emqbmfuvqarwzxuq\"]},\"etag\":\"bluimmbw\",\"location\":\"fgtdmbvx\",\"id\":\"raokqkbudb\",\"name\":\"waokbavlytta\",\"type\":\"knwfrkebsmhpdujd\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"uiferse\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"rkjguwrjmwvvbt\",\"actionsRequired\":\"kxxi\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"ldeko\",\"jgxieqfkyfh\",\"wvjaq\"]},\"etag\":\"by\",\"location\":\"vsk\",\"id\":\"jbmgeumexmjbxcb\",\"name\":\"cwkqmtxape\",\"type\":\"iscr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,23 +37,23 @@ public void testCreateOrUpdate() throws Exception { PrivateEndpointConnection response = manager.privateEndpointConnections() - .define("dlrslskk") - .withExistingAccount("lioskkfmkmfdjx", "xgbkkqvjcteo") - .withRegion("mbqdabzfivfo") + .define("byokvjgbzsxe") + .withExistingAccount("si", "xxtclhuulri") + .withRegion("skapbxwie") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("snggytexvzilmhiv") - .withActionsRequired("wwwncknr")) - .withGroupIds(Arrays.asList("skzptjxulweucyr", "hxqlehmcgcjeinue", "oka"))) + .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) + .withDescription("tpufpbpgnrholhu") + .withActionsRequired("fwxi")) + .withGroupIds(Arrays.asList("olsyjprxsl", "hdmcvht", "bzjhfvhuwzb", "pcqzg"))) .create(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xtminklogxsvtzar", + Assertions.assertEquals("rkjguwrjmwvvbt", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("vqnsqk", response.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("wzzoslpk", response.properties().groupIds().get(0)); - Assertions.assertEquals("fgtdmbvx", response.location()); + Assertions.assertEquals("kxxi", response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("ldeko", response.properties().groupIds().get(0)); + Assertions.assertEquals("vsk", 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 793e9b730c28..6ec8fd2d8c81 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 @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.privateEndpointConnections() - .delete("ctrceqnkbr", "pobe", "dmljzacvumepjp", com.azure.core.util.Context.NONE); + .delete("ixrhl", "qvhoej", "oiutgwrmkahpq", 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 3394aba2b46e..8df6d0da05e9 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\":\"rmukmyjmkxett\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"jfkqidn\",\"actionsRequired\":\"o\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"xc\",\"qhtkbt\",\"qlrn\",\"ld\"]},\"etag\":\"iipsnawwlqkz\",\"location\":\"hhl\",\"id\":\"ricctkwmuqqoa\",\"name\":\"xeiyglesr\",\"type\":\"vaexh\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"bqnasdsyenzs\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"cplhyvdgxlyzkxi\",\"actionsRequired\":\"shezs\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"upjo\",\"mozsayebrazwz\",\"pzbtzuyk\",\"kipfsdyepf\"]},\"etag\":\"cmbezac\",\"location\":\"ztgaz\",\"id\":\"qejg\",\"name\":\"aokctgkp\",\"type\":\"gkqzkcyzmffngdyf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("txtjrrlkmds", "jhhxdlajf", "xcxscvslxlh", com.azure.core.util.Context.NONE) + .getWithResponse("pqibukklv", "rl", "mlccmetjscz", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("jfkqidn", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("o", response.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("xc", response.properties().groupIds().get(0)); - Assertions.assertEquals("hhl", response.location()); + Assertions.assertEquals("cplhyvdgxlyzkxi", + response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("shezs", response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("upjo", response.properties().groupIds().get(0)); + Assertions.assertEquals("ztgaz", 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 f0e3d54ec98d..535f46d9320d 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\":\"qirccj\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"cgxvrpj\",\"actionsRequired\":\"czuod\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"ettepdjxqe\",\"koynuiylpckae\",\"sedveskwxegqphrg\",\"nzhctmjtsgh\"]},\"etag\":\"c\",\"location\":\"pzarpzeqacdld\",\"id\":\"mpypefcpczshnuq\",\"name\":\"daizupf\",\"type\":\"huytuszx\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"tvegwqiukvzwy\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"haokgkskjiv\",\"actionsRequired\":\"shajqf\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"xpgeumilhwuitr\",\"exyionofninbd\",\"zsxcwq\"]},\"etag\":\"smpcbbp\",\"location\":\"ugavbzbcyksivmf\",\"id\":\"dr\",\"name\":\"bfcmkrfts\",\"type\":\"cwjjxsgmbawvif\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"cifhocjxwkl\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"vtxvcmufun\",\"actionsRequired\":\"px\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"eyngjg\",\"rquv\"]},\"etag\":\"gglpmcrdcuelj\",\"location\":\"ahxm\",\"id\":\"ryarvsxzqb\",\"name\":\"lcjkayspthzodub\",\"type\":\"lmjtg\"}]}"; + = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"ke\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"vgpomxpupdtsdfj\",\"actionsRequired\":\"esocwiqbuou\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"gleofjsbgbw\",\"zvdajfwnncf\",\"aciq\"]},\"etag\":\"jrlhiqlwixvtboug\",\"location\":\"tnd\",\"id\":\"gjttbasualapdlnd\",\"name\":\"eaqbkixv\",\"type\":\"lwynpbbfqvzfj\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"gzfeuzj\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"hfkyez\",\"actionsRequired\":\"gj\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"ydoccnxshanzb\",\"iadhbatec\"]},\"etag\":\"tsdohzniucbdaomb\",\"location\":\"injdllwktlepo\",\"id\":\"vvqxua\",\"name\":\"g\",\"type\":\"qwulynkgfcfdru\"}]}"; 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("ibnzp", "hep", com.azure.core.util.Context.NONE) + .listWithResponse("azyntacihncogm", "pnmliq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, response.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("cgxvrpj", + Assertions.assertEquals("vgpomxpupdtsdfj", response.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("czuod", + Assertions.assertEquals("esocwiqbuou", response.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("ettepdjxqe", response.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("pzarpzeqacdld", response.value().get(0).location()); + Assertions.assertEquals("gleofjsbgbw", response.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("tnd", 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 5532838af948..82dd38ef6fbf 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\":\"zr\",\"subresourceTarget\":\"sylollgtr\"}") + = BinaryData.fromString("{\"serviceResourceId\":\"lqqbtnyjpylxdbfv\",\"subresourceTarget\":\"mvmsxbae\"}") .toObject(PrivateEndpointOutboundRuleDestination.class); - Assertions.assertEquals("zr", model.serviceResourceId()); - Assertions.assertEquals("sylollgtr", model.subresourceTarget()); + Assertions.assertEquals("lqqbtnyjpylxdbfv", model.serviceResourceId()); + Assertions.assertEquals("mvmsxbae", model.subresourceTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointOutboundRuleDestination model - = new PrivateEndpointOutboundRuleDestination().withServiceResourceId("zr") - .withSubresourceTarget("sylollgtr"); + = new PrivateEndpointOutboundRuleDestination().withServiceResourceId("lqqbtnyjpylxdbfv") + .withSubresourceTarget("mvmsxbae"); model = BinaryData.fromObject(model).toObject(PrivateEndpointOutboundRuleDestination.class); - Assertions.assertEquals("zr", model.serviceResourceId()); - Assertions.assertEquals("sylollgtr", model.subresourceTarget()); + Assertions.assertEquals("lqqbtnyjpylxdbfv", model.serviceResourceId()); + Assertions.assertEquals("mvmsxbae", 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 6ff7e1c525cd..7b008f7e0582 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\":\"tw\",\"subresourceTarget\":\"aoypny\"},\"fqdns\":[\"hxcylhkgm\",\"sghpx\",\"cphdrwjjkhvyo\"],\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"vxnqmhrpqpd\",\"parentRuleNames\":[\"kois\",\"css\",\"fxuifmcsypobk\"]}") + "{\"type\":\"PrivateEndpoint\",\"destination\":{\"serviceResourceId\":\"z\",\"subresourceTarget\":\"hxgonoyjf\"},\"fqdns\":[\"ubyzn\"],\"category\":\"Required\",\"status\":\"Deleting\",\"errorInformation\":\"ebgvo\",\"parentRuleNames\":[\"tuoqujlyegqavni\"]}") .toObject(PrivateEndpointOutboundRule.class); Assertions.assertEquals(RuleCategory.REQUIRED, model.category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); - Assertions.assertEquals("tw", model.destination().serviceResourceId()); - Assertions.assertEquals("aoypny", model.destination().subresourceTarget()); - Assertions.assertEquals("hxcylhkgm", model.fqdns().get(0)); + Assertions.assertEquals(RuleStatus.DELETING, model.status()); + Assertions.assertEquals("z", model.destination().serviceResourceId()); + Assertions.assertEquals("hxgonoyjf", model.destination().subresourceTarget()); + Assertions.assertEquals("ubyzn", model.fqdns().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointOutboundRule model = new PrivateEndpointOutboundRule().withCategory(RuleCategory.REQUIRED) - .withStatus(RuleStatus.PROVISIONING) - .withDestination(new PrivateEndpointOutboundRuleDestination().withServiceResourceId("tw") - .withSubresourceTarget("aoypny")) - .withFqdns(Arrays.asList("hxcylhkgm", "sghpx", "cphdrwjjkhvyo")); + .withStatus(RuleStatus.DELETING) + .withDestination(new PrivateEndpointOutboundRuleDestination().withServiceResourceId("z") + .withSubresourceTarget("hxgonoyjf")) + .withFqdns(Arrays.asList("ubyzn")); model = BinaryData.fromObject(model).toObject(PrivateEndpointOutboundRule.class); Assertions.assertEquals(RuleCategory.REQUIRED, model.category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); - Assertions.assertEquals("tw", model.destination().serviceResourceId()); - Assertions.assertEquals("aoypny", model.destination().subresourceTarget()); - Assertions.assertEquals("hxcylhkgm", model.fqdns().get(0)); + Assertions.assertEquals(RuleStatus.DELETING, model.status()); + Assertions.assertEquals("z", model.destination().serviceResourceId()); + Assertions.assertEquals("hxgonoyjf", model.destination().subresourceTarget()); + Assertions.assertEquals("ubyzn", 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 9c3b768f06d2..aa23f5cfd593 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\":\"rrouuxvnsasbcry\",\"requiredMembers\":[\"izrxklob\"],\"requiredZoneNames\":[\"azpmkmlmv\",\"vfxzopjh\"],\"displayName\":\"xliohrdddt\"},\"id\":\"xqbawpc\",\"name\":\"bnzqcyknapq\",\"type\":\"fyuicdh\"},{\"properties\":{\"groupId\":\"ybww\",\"requiredMembers\":[\"vibidmhmwffpl\"],\"requiredZoneNames\":[\"vapckccrrvwey\"],\"displayName\":\"oy\"},\"id\":\"k\",\"name\":\"haim\",\"type\":\"oir\"},{\"properties\":{\"groupId\":\"oshbragapyy\",\"requiredMembers\":[\"svbpavbopfppdbwn\"],\"requiredZoneNames\":[\"ahxku\",\"asjcaacfdmmcpu\",\"mehqepvufh\",\"zeh\"],\"displayName\":\"hoqhnl\"},\"id\":\"nbldxeaclgschori\",\"name\":\"krsrrmoucs\",\"type\":\"fldpuviyfc\"}]}") + "{\"value\":[{\"properties\":{\"groupId\":\"fytoi\",\"requiredMembers\":[\"ygvfltgvdihoyn\",\"rxwe\",\"wkd\",\"cy\"],\"requiredZoneNames\":[\"pcunnuzdq\",\"moenodnaien\",\"qh\"],\"displayName\":\"ndnelqkaadlknw\"},\"id\":\"anniyopetxivcnr\",\"name\":\"yxnu\",\"type\":\"aephblkw\"},{\"properties\":{\"groupId\":\"tv\",\"requiredMembers\":[\"dtcjbctv\",\"vuzqymt\",\"owog\",\"gitsqh\"],\"requiredZoneNames\":[\"rzcdbanf\"],\"displayName\":\"ds\"},\"id\":\"mxeatkdbmwnrdjy\",\"name\":\"bqbnaomhjrmkuh\",\"type\":\"axljal\"}]}") .toObject(PrivateLinkResourceListResultInner.class); - Assertions.assertEquals("azpmkmlmv", model.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("pcunnuzdq", 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 51d1d505b49a..1daf18c92a10 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\":\"bvopwndyqle\",\"requiredMembers\":[\"klmtkhlowkx\",\"pvbrdfjmzsyz\",\"hotlhikcyychunsj\"],\"requiredZoneNames\":[\"rtws\",\"hv\"],\"displayName\":\"icphvtrrmhw\"}") + "{\"groupId\":\"efgv\",\"requiredMembers\":[\"okcvtlubses\",\"vcuartrhun\"],\"requiredZoneNames\":[\"rykycndzfqivjr\",\"uykbbmn\"],\"displayName\":\"gltbxoeeo\"}") .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("rtws", model.requiredZoneNames().get(0)); + Assertions.assertEquals("rykycndzfqivjr", 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 851d8ffb70e9..ec42fde6a626 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\":\"eolhbhlvbmx\",\"requiredMembers\":[\"bsxtkcudfbsfarfs\",\"owlkjxnqpv\",\"gf\"],\"requiredZoneNames\":[\"hqykizmdk\",\"aoaf\",\"luqvoxmycjimryv\"],\"displayName\":\"cwwp\"},\"id\":\"zgwe\",\"name\":\"ydsx\",\"type\":\"efoh\"}") + "{\"properties\":{\"groupId\":\"cjmobcanc\",\"requiredMembers\":[\"xqcwgax\",\"gvaknokzwjjzrl\",\"ixldzyyfy\"],\"requiredZoneNames\":[\"s\"],\"displayName\":\"ymmpujivy\"},\"id\":\"kjuvs\",\"name\":\"bmslzoyov\",\"type\":\"zdbpqv\"}") .toObject(PrivateLinkResource.class); - Assertions.assertEquals("hqykizmdk", model.properties().requiredZoneNames().get(0)); + Assertions.assertEquals("s", 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 0377de14ea03..5b431a464f3e 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\":\"vmvm\",\"requiredMembers\":[\"nqhlbs\"],\"requiredZoneNames\":[\"nqliwkmzoj\",\"etyalht\",\"mknazgbjbhrpgiq\",\"ttcucrcm\"],\"displayName\":\"ixpqj\"},\"id\":\"ifhb\",\"name\":\"sld\",\"type\":\"tohqclna\"},{\"properties\":{\"groupId\":\"gsiqikvllr\",\"requiredMembers\":[\"mgl\"],\"requiredZoneNames\":[\"ikmtrawrqkza\"],\"displayName\":\"unmpaklwzl\"},\"id\":\"epr\",\"name\":\"ejzltka\",\"type\":\"zfjsxscbd\"},{\"properties\":{\"groupId\":\"pg\",\"requiredMembers\":[\"ebmvrdjom\",\"nwsb\",\"vdlsflxkqesdfeds\",\"gzancoinmphy\"],\"requiredZoneNames\":[\"i\",\"kltvdhqnufbx\",\"e\"],\"displayName\":\"bntojovfny\"},\"id\":\"dhuihaouwudhuao\",\"name\":\"hjkehwvumosqir\",\"type\":\"amqprlo\"},{\"properties\":{\"groupId\":\"gejcvjkjyczc\",\"requiredMembers\":[\"gelajdyolje\"],\"requiredZoneNames\":[\"qfmzsizzhravrc\",\"kjymgqbgcxh\",\"qxgzxler\",\"km\"],\"displayName\":\"ghskirh\"},\"id\":\"upkcbkfukdljqnvt\",\"name\":\"dydshk\",\"type\":\"afyalo\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"mbcsloygsabdgd\",\"requiredMembers\":[\"onsdunr\",\"zvzuat\"],\"requiredZoneNames\":[\"zuyxtrvfdbqskg\",\"jbvitptpvsf\"],\"displayName\":\"vdhpiwrmuwkgjwb\"},\"id\":\"dwfbwxy\",\"name\":\"dqtmggcpdrmeg\",\"type\":\"jrzctwymz\"},{\"properties\":{\"groupId\":\"qkkge\",\"requiredMembers\":[\"phgliupqscoobk\",\"lcaxsqcomjiqi\"],\"requiredZoneNames\":[\"evxxkdevpximzii\",\"meqmduvtvodqxxpq\",\"ml\",\"ibtblmcvrjazno\"],\"displayName\":\"ofqvpbqsdq\"},\"id\":\"sb\",\"name\":\"sbbmitaftazgcx\",\"type\":\"vqlcqufylamxo\"}]}"; 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("lxrhgtvh", "tqqykbkkteozejog", com.azure.core.util.Context.NONE) + .listWithResponse("kxunsaujqgbb", "vovoa", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nqliwkmzoj", response.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("zuyxtrvfdbqskg", 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 a4623c95a412..9814b9a2d25f 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,25 @@ public final class ProjectCapabilityHostInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectCapabilityHostInner model = BinaryData.fromString( - "{\"properties\":{\"aiServicesConnections\":[\"aoepttaqutdew\",\"mxswvruunzz\",\"gehkfkimrtixokff\"],\"vectorStoreConnections\":[\"nljqepqwhixmons\",\"shiy\",\"gvelfc\",\"du\"],\"storageConnections\":[\"irdsvuwcob\",\"egstmninwjizci\",\"nghgshej\",\"tbxqmuluxlxq\"],\"threadStorageConnections\":[\"ers\",\"ycucrwnamikzeb\"],\"provisioningState\":\"Updating\"},\"id\":\"mswziq\",\"name\":\"fuhok\",\"type\":\"ruswhv\"}") + "{\"properties\":{\"aiServicesConnections\":[\"oewbid\",\"vteo\",\"xvgpiude\"],\"vectorStoreConnections\":[\"sxze\",\"paxwkufyk\"],\"storageConnections\":[\"hxepmrutzna\",\"aobn\"],\"threadStorageConnections\":[\"jdjltymkmvgui\",\"ywart\",\"pphkixkykxds\"],\"provisioningState\":\"Creating\"},\"id\":\"mmuc\",\"name\":\"xhikkflrmymyin\",\"type\":\"qlhris\"}") .toObject(ProjectCapabilityHostInner.class); - Assertions.assertEquals("aoepttaqutdew", model.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("nljqepqwhixmons", model.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("irdsvuwcob", model.properties().storageConnections().get(0)); - Assertions.assertEquals("ers", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("oewbid", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("sxze", model.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("hxepmrutzna", model.properties().storageConnections().get(0)); + Assertions.assertEquals("jdjltymkmvgui", 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("aoepttaqutdew", "mxswvruunzz", "gehkfkimrtixokff")) - .withVectorStoreConnections(Arrays.asList("nljqepqwhixmons", "shiy", "gvelfc", "du")) - .withStorageConnections(Arrays.asList("irdsvuwcob", "egstmninwjizci", "nghgshej", "tbxqmuluxlxq")) - .withThreadStorageConnections(Arrays.asList("ers", "ycucrwnamikzeb"))); + ProjectCapabilityHostInner model = new ProjectCapabilityHostInner().withProperties( + new ProjectCapabilityHostProperties().withAiServicesConnections(Arrays.asList("oewbid", "vteo", "xvgpiude")) + .withVectorStoreConnections(Arrays.asList("sxze", "paxwkufyk")) + .withStorageConnections(Arrays.asList("hxepmrutzna", "aobn")) + .withThreadStorageConnections(Arrays.asList("jdjltymkmvgui", "ywart", "pphkixkykxds"))); model = BinaryData.fromObject(model).toObject(ProjectCapabilityHostInner.class); - Assertions.assertEquals("aoepttaqutdew", model.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("nljqepqwhixmons", model.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("irdsvuwcob", model.properties().storageConnections().get(0)); - Assertions.assertEquals("ers", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("oewbid", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("sxze", model.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("hxepmrutzna", model.properties().storageConnections().get(0)); + Assertions.assertEquals("jdjltymkmvgui", 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 c40722fc7928..19ab855f7f6d 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\":[\"znvfbycjsxjww\",\"xzv\"],\"vectorStoreConnections\":[\"mxqhndvnoamldse\",\"aohdjh\",\"flzokxco\",\"pelnjetag\"],\"storageConnections\":[\"xo\"],\"threadStorageConnections\":[\"tgzpnpb\"],\"provisioningState\":\"Updating\"}") + "{\"aiServicesConnections\":[\"miii\",\"v\"],\"vectorStoreConnections\":[\"gxuugqkctotio\",\"l\",\"teqdptj\",\"wdtgukranblw\"],\"storageConnections\":[\"lkccuzgygqwa\",\"oiulwgniipr\",\"lvawuwzdufypivls\",\"bjpmcubk\"],\"threadStorageConnections\":[\"oxxkubvp\"],\"provisioningState\":\"Succeeded\"}") .toObject(ProjectCapabilityHostProperties.class); - Assertions.assertEquals("znvfbycjsxjww", model.aiServicesConnections().get(0)); - Assertions.assertEquals("mxqhndvnoamldse", model.vectorStoreConnections().get(0)); - Assertions.assertEquals("xo", model.storageConnections().get(0)); - Assertions.assertEquals("tgzpnpb", model.threadStorageConnections().get(0)); + Assertions.assertEquals("miii", model.aiServicesConnections().get(0)); + Assertions.assertEquals("gxuugqkctotio", model.vectorStoreConnections().get(0)); + Assertions.assertEquals("lkccuzgygqwa", model.storageConnections().get(0)); + Assertions.assertEquals("oxxkubvp", model.threadStorageConnections().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProjectCapabilityHostProperties model - = new ProjectCapabilityHostProperties().withAiServicesConnections(Arrays.asList("znvfbycjsxjww", "xzv")) - .withVectorStoreConnections(Arrays.asList("mxqhndvnoamldse", "aohdjh", "flzokxco", "pelnjetag")) - .withStorageConnections(Arrays.asList("xo")) - .withThreadStorageConnections(Arrays.asList("tgzpnpb")); + = new ProjectCapabilityHostProperties().withAiServicesConnections(Arrays.asList("miii", "v")) + .withVectorStoreConnections(Arrays.asList("gxuugqkctotio", "l", "teqdptj", "wdtgukranblw")) + .withStorageConnections(Arrays.asList("lkccuzgygqwa", "oiulwgniipr", "lvawuwzdufypivls", "bjpmcubk")) + .withThreadStorageConnections(Arrays.asList("oxxkubvp")); model = BinaryData.fromObject(model).toObject(ProjectCapabilityHostProperties.class); - Assertions.assertEquals("znvfbycjsxjww", model.aiServicesConnections().get(0)); - Assertions.assertEquals("mxqhndvnoamldse", model.vectorStoreConnections().get(0)); - Assertions.assertEquals("xo", model.storageConnections().get(0)); - Assertions.assertEquals("tgzpnpb", model.threadStorageConnections().get(0)); + Assertions.assertEquals("miii", model.aiServicesConnections().get(0)); + Assertions.assertEquals("gxuugqkctotio", model.vectorStoreConnections().get(0)); + Assertions.assertEquals("lkccuzgygqwa", model.storageConnections().get(0)); + Assertions.assertEquals("oxxkubvp", 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 8f17ba9528d4..1cd23a63ed7e 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,13 @@ public final class ProjectCapabilityHostResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectCapabilityHostResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"floccsrmozih\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"wtxxpkyjcx\",\"jxgrytfmp\"],\"vectorStoreConnections\":[\"ilrmcaykggnox\"],\"storageConnections\":[\"rksxwpndfc\"],\"threadStorageConnections\":[\"znth\",\"twk\"],\"provisioningState\":\"Canceled\"},\"id\":\"rxuzvoam\",\"name\":\"tcqiosmg\",\"type\":\"zah\"},{\"properties\":{\"aiServicesConnections\":[\"dl\",\"rtltla\"],\"vectorStoreConnections\":[\"tz\",\"atbhjmznn\",\"s\",\"qeqala\"],\"storageConnections\":[\"agunbtgfebw\",\"nbmhyree\"],\"threadStorageConnections\":[\"qavbpdqmj\",\"lyyzglgouwtlmjj\",\"uojqt\"],\"provisioningState\":\"Failed\"},\"id\":\"kjeytunl\",\"name\":\"fjkwrusnkq\",\"type\":\"hsyrqunj\"},{\"properties\":{\"aiServicesConnections\":[\"enx\",\"ulkpakd\"],\"vectorStoreConnections\":[\"mjnnawtq\",\"bpxuckpggqoweyi\",\"dhlisngwflqqmpi\"],\"storageConnections\":[\"w\",\"pqxpx\",\"wfcngjsaas\",\"ixtmkzjvkviirhgf\"],\"threadStorageConnections\":[\"sdp\",\"ra\",\"zvzbglbyv\"],\"provisioningState\":\"Canceled\"},\"id\":\"tbrxkjz\",\"name\":\"rgxffmshkw\",\"type\":\"bkgozxwopdbydpi\"},{\"properties\":{\"aiServicesConnections\":[\"clnapxbiygnugjkn\",\"smfcttuxuuyilfl\",\"oiquvrehmrnjhvs\",\"jztczytqj\"],\"vectorStoreConnections\":[\"auunfprnjletlx\"],\"storageConnections\":[\"pddouifamowaziyn\",\"nlqwzdvpiwhx\",\"szdtmaajquh\"],\"threadStorageConnections\":[\"lrjvmtyg\"],\"provisioningState\":\"Failed\"},\"id\":\"yospspshc\",\"name\":\"fkyjpmspbpssdfpp\",\"type\":\"ogtieyujtvczkcny\"}]}") + "{\"nextLink\":\"mhbrbqgvg\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"ttefjoknssq\",\"zqedikdfrdbi\",\"mrjgeihfqlggwfi\"],\"vectorStoreConnections\":[\"xmjpbyep\",\"mgtvlj\",\"rc\"],\"storageConnections\":[\"qipgx\"],\"threadStorageConnections\":[\"omyqwcabvnuileey\",\"swlpaugmrmfj\",\"rxwtoaukhfkvc\",\"sizmoae\"],\"provisioningState\":\"Updating\"},\"id\":\"wuived\",\"name\":\"cgyee\",\"type\":\"xeiqbpsmg\"},{\"properties\":{\"aiServicesConnections\":[\"u\",\"mljdlrgmsplzga\"],\"vectorStoreConnections\":[\"shhvnewgnxky\",\"pqanxrjkix\"],\"storageConnections\":[\"taoypnyghshxc\"],\"threadStorageConnections\":[\"kgmnsghpxyc\",\"hdrwjjkh\"],\"provisioningState\":\"Succeeded\"},\"id\":\"ac\",\"name\":\"u\",\"type\":\"vxnqmhrpqpd\"},{\"properties\":{\"aiServicesConnections\":[\"kois\",\"css\",\"fxuifmcsypobk\"],\"vectorStoreConnections\":[\"rdzsylollgtrczzy\"],\"storageConnections\":[\"zjijpvuaurkihcir\"],\"threadStorageConnections\":[\"fx\",\"dcoxnbk\",\"ja\"],\"provisioningState\":\"Updating\"},\"id\":\"nqbnqb\",\"name\":\"izxqltgrd\",\"type\":\"gypxrxvbfihwuhvc\"},{\"properties\":{\"aiServicesConnections\":[\"s\"],\"vectorStoreConnections\":[\"rblmli\",\"wxihs\",\"nxw\",\"agnepzwaklsb\"],\"storageConnections\":[\"qqagwwr\",\"ao\",\"zisglrrczezkhh\",\"tnjadhq\"],\"threadStorageConnections\":[\"jqoyueayfbpcm\"],\"provisioningState\":\"Failed\"},\"id\":\"yrrueqth\",\"name\":\"mg\",\"type\":\"mbscbbx\"}]}") .toObject(ProjectCapabilityHostResourceArmPaginatedResult.class); - Assertions.assertEquals("floccsrmozih", model.nextLink()); - Assertions.assertEquals("wtxxpkyjcx", model.value().get(0).properties().aiServicesConnections().get(0)); - Assertions.assertEquals("ilrmcaykggnox", model.value().get(0).properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("rksxwpndfc", model.value().get(0).properties().storageConnections().get(0)); - Assertions.assertEquals("znth", model.value().get(0).properties().threadStorageConnections().get(0)); + Assertions.assertEquals("mhbrbqgvg", model.nextLink()); + Assertions.assertEquals("ttefjoknssq", model.value().get(0).properties().aiServicesConnections().get(0)); + Assertions.assertEquals("xmjpbyep", model.value().get(0).properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("qipgx", model.value().get(0).properties().storageConnections().get(0)); + Assertions.assertEquals("omyqwcabvnuileey", + 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 852157b7db16..344c123e2238 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\":[\"vfph\",\"dzxplgtp\",\"dvatlzmgschn\",\"rsbkkzovlzdmnfmf\"],\"vectorStoreConnections\":[\"afofu\",\"orimmo\",\"zwdehkkmvhz\",\"ovanyrva\"],\"storageConnections\":[\"gelg\",\"ewikfyaqandmym\",\"qoq\"],\"threadStorageConnections\":[\"ovsfb\",\"bvzo\",\"axmfmvsmcwoxfa\"],\"provisioningState\":\"Succeeded\"},\"id\":\"qi\",\"name\":\"bsat\",\"type\":\"oiauesugmocpcj\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"obd\",\"whqdcc\"],\"vectorStoreConnections\":[\"qsrupaylcv\",\"bzmfxlry\"],\"storageConnections\":[\"xlpiywqnpfydr\",\"bgcnyxbyx\"],\"threadStorageConnections\":[\"mq\",\"ncgaull\",\"styygjq\",\"ulmwqgmhmqmiwx\"],\"provisioningState\":\"Succeeded\"},\"id\":\"zu\",\"name\":\"qfgufjnbxw\",\"type\":\"mwdukinhl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,18 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProjectCapabilityHost response = manager.projectCapabilityHosts() - .define("vcdsvm") - .withExistingProject("wmlgicvnpv", "dhgjnaqyqi", "slz") + .define("c") + .withExistingProject("yzadcrxylaypdt", "zvelffohuriw", "jdfrwpsshrmnkccl") .withProperties(new ProjectCapabilityHostProperties() - .withAiServicesConnections(Arrays.asList("tekdtfobvfiybx", "ich", "ybfzdqekivycp", "cv")) - .withVectorStoreConnections(Arrays.asList("ulrqtbht", "ezp")) - .withStorageConnections(Arrays.asList("ryfmxmdu", "zf", "giln", "udccgndjgdprig")) - .withThreadStorageConnections(Arrays.asList("yeqfcbuulpy", "flqjfshtu", "cyohigimwdcs", "lkq"))) + .withAiServicesConnections(Arrays.asList("gkscxjfsgmosp", "ebnxsqcows")) + .withVectorStoreConnections(Arrays.asList("fqlamfbqhsu", "k")) + .withStorageConnections(Arrays.asList("zpnxqpwni")) + .withThreadStorageConnections(Arrays.asList("cajgrbr", "tsvgoocqs", "zmz", "pcxitmh"))) .create(); - Assertions.assertEquals("vfph", response.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("afofu", response.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("gelg", response.properties().storageConnections().get(0)); - Assertions.assertEquals("ovsfb", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("obd", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("qsrupaylcv", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("xlpiywqnpfydr", response.properties().storageConnections().get(0)); + Assertions.assertEquals("mq", 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 fc4bc45cfaba..490dc4ffddf3 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\":[\"dpoqfxyem\"],\"vectorStoreConnections\":[\"tbaewhte\"],\"storageConnections\":[\"amfmxtllfl\",\"ymqcnrrfijhgga\",\"qbgamkli\",\"irw\"],\"threadStorageConnections\":[\"fhsdpzouhkt\",\"rxqwqnjxrd\",\"ddtullygta\"],\"provisioningState\":\"Canceled\"},\"id\":\"xdfweapyf\",\"name\":\"lxrljphraspifl\",\"type\":\"imixlmdbgice\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"rtkou\"],\"vectorStoreConnections\":[\"iywhubymfpop\",\"k\",\"ebqnnfy\",\"tkqowsd\"],\"storageConnections\":[\"czygpmgfjcu\",\"ojhhylxdevfiyy\"],\"threadStorageConnections\":[\"uzbybwjmtf\",\"cve\"],\"provisioningState\":\"Failed\"},\"id\":\"upkqns\",\"name\":\"paqp\",\"type\":\"bj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProjectCapabilityHost response = manager.projectCapabilityHosts() - .getWithResponse("dejkluxxrwzobuz", "sxgamtdtkw", "pt", "uzdprmim", com.azure.core.util.Context.NONE) + .getWithResponse("bios", "qsykq", "dqwdrtxtfdaglmr", "ok", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("dpoqfxyem", response.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("tbaewhte", response.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("amfmxtllfl", response.properties().storageConnections().get(0)); - Assertions.assertEquals("fhsdpzouhkt", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("rtkou", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("iywhubymfpop", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("czygpmgfjcu", response.properties().storageConnections().get(0)); + Assertions.assertEquals("uzbybwjmtf", 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 82975ae0d5f5..2e6b4520f8be 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\":[\"prcltung\",\"s\"],\"vectorStoreConnections\":[\"ckmiig\"],\"storageConnections\":[\"uck\",\"kdskswtiiqqc\",\"ikclsm\",\"lnssw\"],\"threadStorageConnections\":[\"dnonaaxwmgz\",\"ujlqcwnynlle\",\"q\",\"cbgvsbt\"],\"provisioningState\":\"Succeeded\"},\"id\":\"oxa\",\"name\":\"hxuvjhxm\",\"type\":\"rqstjcme\"}]}"; + = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"sfmbzdxmsynbkd\"],\"vectorStoreConnections\":[\"ufxuzmsvzyqrbr\",\"xhjtlxfikjkxarav\",\"wuasnjeglhtrx\"],\"storageConnections\":[\"pcjcnwjzbqb\",\"xrnwvdsvo\",\"i\",\"awws\"],\"threadStorageConnections\":[\"rgf\",\"jxsawooau\",\"fh\",\"fqkmwz\"],\"provisioningState\":\"Failed\"},\"id\":\"oybmrno\",\"name\":\"ocjnzdaiovrbhr\",\"type\":\"qphkv\"}]}"; 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("fgsmdrjuqb", "xtokljmtz", "paxwfqty", com.azure.core.util.Context.NONE); + .list("bvswmehfxrt", "xbmsennqfabqc", "malec", com.azure.core.util.Context.NONE); - Assertions.assertEquals("prcltung", response.iterator().next().properties().aiServicesConnections().get(0)); - Assertions.assertEquals("ckmiig", response.iterator().next().properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("uck", response.iterator().next().properties().storageConnections().get(0)); - Assertions.assertEquals("dnonaaxwmgz", - response.iterator().next().properties().threadStorageConnections().get(0)); + Assertions.assertEquals("sfmbzdxmsynbkd", + response.iterator().next().properties().aiServicesConnections().get(0)); + Assertions.assertEquals("ufxuzmsvzyqrbr", + response.iterator().next().properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("pcjcnwjzbqb", response.iterator().next().properties().storageConnections().get(0)); + Assertions.assertEquals("rgf", 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 1f097f887155..752cbe5cef5d 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 @@ -28,7 +28,7 @@ public final class ProjectConnectionsCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"RemoteA2A\",\"createdByWorkspaceArmId\":\"xhnzlslekcttgzkj\",\"error\":\"qpdwad\",\"expiryTime\":\"2021-10-22T19:54:36Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":false,\"metadata\":{\"mejjqhddwvmq\":\"czdjiahuqymjzucw\",\"yfozkbnzxbypfqp\":\"iyoo\",\"r\":\"aix\",\"pw\":\"rkkderfrswqikw\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"nxhtf\",\"cqbsudzpgchzpg\"],\"target\":\"umjdjxhzghg\",\"useWorkspaceManagedIdentity\":true},\"id\":\"nrceqavfdbdfmmx\",\"name\":\"dnajuopjyyqmkwlh\",\"type\":\"cwlo\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"PostgreSql\",\"createdByWorkspaceArmId\":\"cnginxdvm\",\"error\":\"yqxfvgy\",\"expiryTime\":\"2021-05-23T13:53:49Z\",\"group\":\"AzureAI\",\"isSharedToAll\":false,\"metadata\":{\"zujsjirkrp\":\"lttxoqxtd\",\"tkykpaxnlsfgnys\":\"kcjhmmofbnivd\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"zetxygxxiceecvj\",\"yuveoxmpz\"],\"target\":\"ahdr\",\"useWorkspaceManagedIdentity\":false},\"id\":\"ztk\",\"name\":\"bivzfgxmbry\",\"type\":\"mw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,30 +38,31 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.projectConnections() - .define("nbcpjstbhemhcucs") - .withExistingProject("abenqlamwmg", "way", "f") - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.COSMOS_DB) - .withError("yvbsuadu") - .withExpiryTime(OffsetDateTime.parse("2021-05-19T06:55:15Z")) - .withIsSharedToAll(false) - .withMetadata(mapOf("qrojadhfztlray", "obkzhmhjdqltdel")) + .define("bggicnqwlctmw") + .withExistingProject("hxerxlobkdbtq", "vmmnii", "yholhjns") + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.NETEZZA) + .withError("gcwtsp") + .withExpiryTime(OffsetDateTime.parse("2021-11-09T01:28:59Z")) + .withIsSharedToAll(true) + .withMetadata(mapOf("ybruhola", "chefpgeed", "lonbzaowcahdkmb", "mwcgimmrimaabsq", "glkvbgukbsv", + "smihrijezbfsjwfc")) .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) - .withPeStatus(ManagedPEStatus.INACTIVE) - .withSharedUserList(Arrays.asList("hudbkuwpzqxlcw")) - .withTarget("kfecjvxf") + .withPeStatus(ManagedPEStatus.ACTIVE) + .withSharedUserList(Arrays.asList("nb", "nhjgclxaxwcffasp")) + .withTarget("zkucszghdoaqipmn") .withUseWorkspaceManagedIdentity(true)) .create(); - Assertions.assertEquals(ConnectionCategory.REMOTE_A2A, response.properties().category()); - Assertions.assertEquals("qpdwad", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-22T19:54:36Z"), response.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.POSTGRE_SQL, response.properties().category()); + Assertions.assertEquals("yqxfvgy", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-23T13:53:49Z"), response.properties().expiryTime()); Assertions.assertFalse(response.properties().isSharedToAll()); - Assertions.assertEquals("czdjiahuqymjzucw", response.properties().metadata().get("mejjqhddwvmq")); + Assertions.assertEquals("lttxoqxtd", response.properties().metadata().get("zujsjirkrp")); Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); - Assertions.assertEquals("nxhtf", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("umjdjxhzghg", response.properties().target()); - Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); + Assertions.assertEquals("zetxygxxiceecvj", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("ahdr", 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 8df1b05d1bd8..a64c9fabfa4e 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,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.projectConnections() - .deleteWithResponse("dzciggb", "vt", "o", "walzyxwhoeamoeo", com.azure.core.util.Context.NONE); + .deleteWithResponse("gxzduvxdmxe", "atmdmn", "senxoirxyd", "miploisj", 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 7812a452a6d7..efb9b13811a3 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\":\"ADLSGen2\",\"createdByWorkspaceArmId\":\"wvgwkslvli\",\"error\":\"dvbiabvnsrg\",\"expiryTime\":\"2021-01-30T13:51:22Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"ojqttbsp\":\"fhbmwk\",\"zstuj\":\"khglaqjsg\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"fdrld\"],\"target\":\"ehi\",\"useWorkspaceManagedIdentity\":false},\"id\":\"ugyuqwrldaxu\",\"name\":\"fqa\",\"type\":\"csozjv\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"AzureOpenAI\",\"createdByWorkspaceArmId\":\"vuznadvhm\",\"error\":\"eoigowxxbhtpsyio\",\"expiryTime\":\"2021-08-22T16:52:20Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":false,\"metadata\":{\"ika\":\"zgyk\",\"jqcrbk\":\"anvmwdv\",\"epgcmahiwf\":\"mpnbnfgyweoj\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"kapitskshfyftt\",\"bjepzwhj\",\"nfd\"],\"target\":\"ggcj\",\"useWorkspaceManagedIdentity\":true},\"id\":\"livwehsud\",\"name\":\"mymbhdosmbng\",\"type\":\"q\"}"; 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("mjpequlr", "zaudgjtfbclakkuc", "dwnhczbutoucgjti", "jwayhi", - com.azure.core.util.Context.NONE) + .getWithResponse("qxynqj", "satkyvscb", "ngcrusxhircpgcvs", "kkjbjolpy", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.ADLSGEN2, response.properties().category()); - Assertions.assertEquals("dvbiabvnsrg", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-30T13:51:22Z"), response.properties().expiryTime()); - Assertions.assertTrue(response.properties().isSharedToAll()); - Assertions.assertEquals("fhbmwk", response.properties().metadata().get("ojqttbsp")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); - Assertions.assertEquals("fdrld", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("ehi", response.properties().target()); - Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ConnectionCategory.AZURE_OPEN_AI, response.properties().category()); + Assertions.assertEquals("eoigowxxbhtpsyio", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-22T16:52:20Z"), response.properties().expiryTime()); + Assertions.assertFalse(response.properties().isSharedToAll()); + Assertions.assertEquals("zgyk", response.properties().metadata().get("ika")); + Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); + Assertions.assertEquals("kapitskshfyftt", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("ggcj", response.properties().target()); + Assertions.assertTrue(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 77e423d2ffc3..d2379635e19e 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\":\"GoogleAdWords\",\"createdByWorkspaceArmId\":\"rhzz\",\"error\":\"pue\",\"expiryTime\":\"2021-02-25T05:55:38Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"ttoztj\":\"opwnib\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"mwcaddtgctxegtv\"],\"target\":\"yurbel\",\"useWorkspaceManagedIdentity\":false},\"id\":\"ryizwbxgde\",\"name\":\"xlayunomir\",\"type\":\"p\"}]}"; + = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"GenericHttp\",\"createdByWorkspaceArmId\":\"mtsjkyj\",\"error\":\"xwdonbexftedau\",\"expiryTime\":\"2021-07-19T10:42:31Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"uumrt\":\"nqtlfo\",\"xjmkanbclazofmex\":\"jqgacantnsyx\",\"as\":\"te\",\"cbhaah\":\"manydscdkxwdpw\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"hpfixoskkzdf\"],\"target\":\"sujybsrwzz\",\"useWorkspaceManagedIdentity\":true},\"id\":\"xdhmfp\",\"name\":\"inmgikes\",\"type\":\"kwtzgfrag\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,20 +35,20 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.projectConnections() - .list("doey", "fpnimtwuuhaueg", "kwmnfeub", "zjy", "kwfugiphrrkuu", false, + .list("zsoxznntwgk", "yohpsapzupzwwytb", "jzghximkg", "mxpqkjnpyriwn", "ot", false, com.azure.core.util.Context.NONE); - Assertions.assertEquals(ConnectionCategory.GOOGLE_AD_WORDS, response.iterator().next().properties().category()); - Assertions.assertEquals("pue", response.iterator().next().properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-25T05:55:38Z"), + Assertions.assertEquals(ConnectionCategory.GENERIC_HTTP, response.iterator().next().properties().category()); + Assertions.assertEquals("xwdonbexftedau", response.iterator().next().properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-19T10:42:31Z"), response.iterator().next().properties().expiryTime()); Assertions.assertTrue(response.iterator().next().properties().isSharedToAll()); - Assertions.assertEquals("opwnib", response.iterator().next().properties().metadata().get("ttoztj")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, + Assertions.assertEquals("nqtlfo", response.iterator().next().properties().metadata().get("uumrt")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.iterator().next().properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.iterator().next().properties().peStatus()); - Assertions.assertEquals("mwcaddtgctxegtv", response.iterator().next().properties().sharedUserList().get(0)); - Assertions.assertEquals("yurbel", response.iterator().next().properties().target()); - Assertions.assertFalse(response.iterator().next().properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.iterator().next().properties().peStatus()); + Assertions.assertEquals("hpfixoskkzdf", response.iterator().next().properties().sharedUserList().get(0)); + Assertions.assertEquals("sujybsrwzz", 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/ProjectInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectInnerTests.java index e23ff3e37dc1..28750d6de6ec 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 @@ -18,30 +18,29 @@ public final class ProjectInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"quhiosrsjuivf\",\"description\":\"is\",\"endpoints\":{\"rxzbujr\":\"nxzhcze\",\"nlnzonzlrpi\":\"rhqvwrevkh\"},\"isDefault\":true},\"tags\":{\"tdhgbjkvrelj\":\"vjtszcofize\",\"shcxlpmjerbdk\":\"amurvzmlovuan\",\"bccxjmonfdgn\":\"lvidizozs\"},\"location\":\"cypuuwwlt\",\"etag\":\"qjctzenkeif\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"dasvfl\",\"principalId\":\"bxcudchx\",\"userAssignedIdentities\":{\"vacqpbtuodxesz\":{\"principalId\":\"oldforobw\",\"clientId\":\"vizbfhfo\"}}},\"id\":\"belawumuaslzkwr\",\"name\":\"woycqucwyha\",\"type\":\"nomdrkywuhpsv\"}") + "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"bkau\",\"description\":\"fshfph\",\"endpoints\":{\"wkojpllndnpd\":\"ulaiywzejywhs\",\"fugsnnfhyetefy\":\"rpqaf\",\"ctfjgtixr\":\"oc\",\"wolba\":\"vzuyturmlmu\"},\"isDefault\":false},\"tags\":{\"gajinnixjawrtmj\":\"ionszonwp\"},\"location\":\"myccx\",\"etag\":\"hcoxov\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"nlusfnrd\",\"principalId\":\"xtxrdcqtjvidt\",\"userAssignedIdentities\":{\"qfecjxeygtuhx\":{\"principalId\":\"uslvyjtcvuwkasi\",\"clientId\":\"esfuught\"}}},\"id\":\"cbuewmrswnjlxuz\",\"name\":\"hwpusxj\",\"type\":\"aqehg\"}") .toObject(ProjectInner.class); - Assertions.assertEquals("quhiosrsjuivf", model.properties().displayName()); - Assertions.assertEquals("is", model.properties().description()); - Assertions.assertEquals("vjtszcofize", model.tags().get("tdhgbjkvrelj")); - Assertions.assertEquals("cypuuwwlt", model.location()); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("bkau", model.properties().displayName()); + Assertions.assertEquals("fshfph", model.properties().description()); + Assertions.assertEquals("ionszonwp", model.tags().get("gajinnixjawrtmj")); + Assertions.assertEquals("myccx", model.location()); + Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, model.identity().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProjectInner model = new ProjectInner() - .withProperties(new ProjectProperties().withDisplayName("quhiosrsjuivf").withDescription("is")) - .withTags( - mapOf("tdhgbjkvrelj", "vjtszcofize", "shcxlpmjerbdk", "amurvzmlovuan", "bccxjmonfdgn", "lvidizozs")) - .withLocation("cypuuwwlt") - .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("vacqpbtuodxesz", new UserAssignedIdentity()))); + .withProperties(new ProjectProperties().withDisplayName("bkau").withDescription("fshfph")) + .withTags(mapOf("gajinnixjawrtmj", "ionszonwp")) + .withLocation("myccx") + .withIdentity(new Identity().withType(ResourceIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf("qfecjxeygtuhx", new UserAssignedIdentity()))); model = BinaryData.fromObject(model).toObject(ProjectInner.class); - Assertions.assertEquals("quhiosrsjuivf", model.properties().displayName()); - Assertions.assertEquals("is", model.properties().description()); - Assertions.assertEquals("vjtszcofize", model.tags().get("tdhgbjkvrelj")); - Assertions.assertEquals("cypuuwwlt", model.location()); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); + Assertions.assertEquals("bkau", model.properties().displayName()); + Assertions.assertEquals("fshfph", model.properties().description()); + Assertions.assertEquals("ionszonwp", model.tags().get("gajinnixjawrtmj")); + Assertions.assertEquals("myccx", model.location()); + Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, model.identity().type()); } // Use "Map.of" if available 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 d68c4e7416b1..d8e9dede5ccc 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\":\"xoqqpwcyyufmhrun\",\"value\":[{\"properties\":{\"provisioningState\":\"Moving\",\"displayName\":\"kcdqzhlct\",\"description\":\"unqndyfpchrqb\",\"endpoints\":{\"qqoli\":\"rcgegydcwboxjum\"},\"isDefault\":true},\"tags\":{\"rjtloq\":\"ouau\",\"rzpasccbiuimzdly\":\"fuojrngif\",\"fdvruz\":\"dfqwmkyoq\"},\"location\":\"zojhpctfnmd\",\"etag\":\"tngfdgugeyzihgr\",\"identity\":{\"type\":\"None\",\"tenantId\":\"absnmfpp\",\"principalId\":\"jee\",\"userAssignedIdentities\":{\"qgleohibetnluank\":{\"principalId\":\"hsgz\",\"clientId\":\"zbgomfgbeg\"},\"nw\":{\"principalId\":\"fxeeebtijvacvbm\",\"clientId\":\"bqqxlaj\"},\"inmfgvxirp\":{\"principalId\":\"cevehjkuyxoafg\",\"clientId\":\"qltfaey\"}}},\"id\":\"riypoqeyhlqhyk\",\"name\":\"rlpyznuciqdsmexi\",\"type\":\"tdfuxt\"}]}") + "{\"nextLink\":\"bnseqacjjvpilg\",\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"m\",\"description\":\"tg\",\"endpoints\":{\"qacsl\":\"ookjbsahrtdtpde\",\"jkgd\":\"otoebnfxofv\",\"vcopex\":\"razftxejwabmdujt\"},\"isDefault\":true},\"tags\":{\"srogtu\":\"buhhlkyqlt\",\"dfvclglxnfu\":\"kffdjktsys\"},\"location\":\"tkbu\",\"etag\":\"ogsf\",\"identity\":{\"type\":\"None\",\"tenantId\":\"ansharujtjiqxfz\",\"principalId\":\"qttv\",\"userAssignedIdentities\":{\"guaucmfdjwnla\":{\"principalId\":\"hjpenuygbq\",\"clientId\":\"qekewvnqvcd\"},\"sserxhtvsoxhlwn\":{\"principalId\":\"un\",\"clientId\":\"ikczvvitacgxmf\"},\"bnchrsziz\":{\"principalId\":\"j\",\"clientId\":\"rsxypruuu\"},\"lgmtrwahzjmucf\":{\"principalId\":\"uelyetndn\",\"clientId\":\"qyggagfl\"}}},\"id\":\"yrplrohkpigqfus\",\"name\":\"ckzmkwklsnox\",\"type\":\"xmqeqalh\"}]}") .toObject(ProjectListResult.class); - Assertions.assertEquals("xoqqpwcyyufmhrun", model.nextLink()); + Assertions.assertEquals("bnseqacjjvpilg", 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 851494afaea2..fe54de860635 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 @@ -12,17 +12,17 @@ public final class ProjectPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Creating\",\"displayName\":\"utlwexxwla\",\"description\":\"iexzsrzpge\",\"endpoints\":{\"wwpgdakchzyvlixq\":\"yb\",\"bn\":\"rkcxkj\",\"swqrntvlwijp\":\"mysu\"},\"isDefault\":true}") + "{\"provisioningState\":\"Canceled\",\"displayName\":\"zjqatucoig\",\"description\":\"xncnwfe\",\"endpoints\":{\"gcgbjb\":\"wgfmx\",\"flq\":\"dlfgtdysnaq\",\"zeqyjleziun\":\"ctqhamzjrwdk\",\"eg\":\"xdfzantkw\"},\"isDefault\":false}") .toObject(ProjectProperties.class); - Assertions.assertEquals("utlwexxwla", model.displayName()); - Assertions.assertEquals("iexzsrzpge", model.description()); + Assertions.assertEquals("zjqatucoig", model.displayName()); + Assertions.assertEquals("xncnwfe", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectProperties model = new ProjectProperties().withDisplayName("utlwexxwla").withDescription("iexzsrzpge"); + ProjectProperties model = new ProjectProperties().withDisplayName("zjqatucoig").withDescription("xncnwfe"); model = BinaryData.fromObject(model).toObject(ProjectProperties.class); - Assertions.assertEquals("utlwexxwla", model.displayName()); - Assertions.assertEquals("iexzsrzpge", model.description()); + Assertions.assertEquals("zjqatucoig", model.displayName()); + Assertions.assertEquals("xncnwfe", model.description()); } } 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 586a9ed9327f..7db62924ab9f 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 @@ -27,7 +27,7 @@ public final class ProjectsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"cbmkakmkookbp\",\"description\":\"mgvmuy\",\"endpoints\":{\"fowzkroyr\":\"lwk\",\"zqjim\":\"urxf\"},\"isDefault\":false},\"tags\":{\"fejlzuqloiw\":\"jxx\",\"qlhchwhrktjle\":\"ayyzivrmitc\"},\"location\":\"ibfiplhxfnsm\",\"etag\":\"jow\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"mudsqcmhnxl\",\"principalId\":\"uwod\",\"userAssignedIdentities\":{\"dllc\":{\"principalId\":\"bkvnrpbjrmvg\",\"clientId\":\"plehmumk\"}}},\"id\":\"prwnhkgqggoxsst\",\"name\":\"ivrakfrryn\",\"type\":\"cwmhlymgnukxrk\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"zvdov\",\"description\":\"blerlpr\",\"endpoints\":{\"c\":\"ccddcbnygd\",\"zlrz\":\"xwbpwyykdig\",\"mjqmv\":\"dasdni\"},\"isDefault\":false},\"tags\":{\"v\":\"qlarhqt\",\"pchggryelgfy\":\"azekdzdzffzjwzts\",\"gfrrkdknczgoryw\":\"tig\",\"ka\":\"vojtvmdevdlhqv\"},\"location\":\"pyhssrlvkpkpkoc\",\"etag\":\"ccebxxopyicyvspe\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"ykgvrccpumddhgaj\",\"principalId\":\"dyd\",\"userAssignedIdentities\":{\"xhgkordwzej\":{\"principalId\":\"c\",\"clientId\":\"vafnbfbqvenq\"},\"dluday\":{\"principalId\":\"cwzvc\",\"clientId\":\"p\"},\"uvigv\":{\"principalId\":\"ldidwmtffb\",\"clientId\":\"zldzchubagwnl\"}}},\"id\":\"hfrbzakpjt\",\"name\":\"q\",\"type\":\"aqpojpsucmximc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,22 +37,22 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Project response = manager.projects() - .define("saqjmkgx") - .withExistingAccount("nkkw", "yqshwyqxridtt") - .withRegion("grssgw") - .withTags(mapOf("r", "qqwypvn", "od", "b")) - .withProperties(new ProjectProperties().withDisplayName("uuylztpz").withDescription("zevjykofve")) - .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .define("xukuicjuftekio") + .withExistingAccount("pijpkhc", "oa") + .withRegion("spboxhifp") + .withTags(mapOf("yoptaei", "etjx", "rrabovrwwxywp", "whlbecgihzbpem")) + .withProperties(new ProjectProperties().withDisplayName("ewfhvpxjh").withDescription("ub")) + .withIdentity(new Identity().withType(ResourceIdentityType.USER_ASSIGNED) .withUserAssignedIdentities( - mapOf("ozonynp", new UserAssignedIdentity(), "asormrexzvdube", new UserAssignedIdentity(), "dbakr", - new UserAssignedIdentity(), "hrkombcdta", new UserAssignedIdentity()))) + mapOf("ogzmsimehtcuuwdh", new UserAssignedIdentity(), "wnwngh", new UserAssignedIdentity(), + "crtnuguefxxi", new UserAssignedIdentity(), "wepf", new UserAssignedIdentity()))) .create(); - Assertions.assertEquals("cbmkakmkookbp", response.properties().displayName()); - Assertions.assertEquals("mgvmuy", response.properties().description()); - Assertions.assertEquals("jxx", response.tags().get("fejlzuqloiw")); - Assertions.assertEquals("ibfiplhxfnsm", response.location()); - Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("zvdov", response.properties().displayName()); + Assertions.assertEquals("blerlpr", response.properties().description()); + Assertions.assertEquals("qlarhqt", response.tags().get("v")); + Assertions.assertEquals("pyhssrlvkpkpkoc", response.location()); + Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, 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 f91d198e1fec..120be9006db8 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("lcurzaqmnbx", "aehtd", "jmbnvynf", com.azure.core.util.Context.NONE); + manager.projects().delete("jcxgdqmrlhnzkwo", "swnyinxuprrxyxwj", "zbfqpl", 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 8a5863e5555d..3ba1ff6bb6d5 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\":\"Failed\",\"displayName\":\"hzic\",\"description\":\"fdjhyaaknyukibxi\",\"endpoints\":{\"piilhvtozy\":\"phzwxqte\",\"f\":\"gjjnxkbylhyyx\"},\"isDefault\":true},\"tags\":{\"wtrdgs\":\"z\"},\"location\":\"vq\",\"etag\":\"nsgnwxlwmez\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"thceopvkvtwfv\",\"principalId\":\"obpbokhmm\",\"userAssignedIdentities\":{\"kluwz\":{\"principalId\":\"arnggcjfwblqh\",\"clientId\":\"asmcolmugpyvaos\"},\"sqsqkpdmioyjpnml\":{\"principalId\":\"ygz\",\"clientId\":\"yevjhubnobguq\"},\"qojbxao\":{\"principalId\":\"qcpszp\",\"clientId\":\"vqdvrdmvxyrxdhg\"},\"muuv\":{\"principalId\":\"gbzxmbtplefoioy\",\"clientId\":\"oxznvgvd\"}}},\"id\":\"wsxmrszb\",\"name\":\"nimx\",\"type\":\"pnerxrzut\"}"; + = "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"vrtrfz\",\"description\":\"ezvhj\",\"endpoints\":{\"swtvd\":\"dyyrudma\",\"qjchivd\":\"xbqssgfenffdxbvw\"},\"isDefault\":false},\"tags\":{\"lmzjotprrmu\":\"xndmuvar\",\"pgarpfctw\":\"cuhtuzlxiwy\",\"esipiysnjq\":\"apczdojqyv\",\"dcndazabun\":\"owa\"},\"location\":\"se\",\"etag\":\"aupwhlzyckrem\",\"identity\":{\"type\":\"None\",\"tenantId\":\"vdorsirx\",\"principalId\":\"yrkqa\",\"userAssignedIdentities\":{\"hi\":{\"principalId\":\"jfrepr\",\"clientId\":\"mkinwteyrq\"},\"rrwcsp\":{\"principalId\":\"cejo\",\"clientId\":\"lblfs\"},\"dytzf\":{\"principalId\":\"tc\",\"clientId\":\"fx\"},\"xu\":{\"principalId\":\"xizhqikmgo\",\"clientId\":\"iqemcdiiisklbon\"}}},\"id\":\"xvtrkfk\",\"name\":\"enjqnnpjw\",\"type\":\"osnyxigfou\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Project response = manager.projects() - .getWithResponse("ihzqjjtsmuy", "qfttkacybdueur", "mcdcpkshl", com.azure.core.util.Context.NONE) + .getWithResponse("mjw", "njcytesmfucrtfod", "hua", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("hzic", response.properties().displayName()); - Assertions.assertEquals("fdjhyaaknyukibxi", response.properties().description()); - Assertions.assertEquals("z", response.tags().get("wtrdgs")); - Assertions.assertEquals("vq", response.location()); - Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("vrtrfz", response.properties().displayName()); + Assertions.assertEquals("ezvhj", response.properties().description()); + Assertions.assertEquals("xndmuvar", response.tags().get("lmzjotprrmu")); + Assertions.assertEquals("se", response.location()); + Assertions.assertEquals(ResourceIdentityType.NONE, 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 ecc38243ec47..4cb366913542 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\":\"Moving\",\"displayName\":\"dahzllrqm\",\"description\":\"pbyxroiduyqy\",\"endpoints\":{\"brjjtalxrdsjr\":\"mnoiicsudy\",\"pjwyblvtbdmvs\":\"oluqwgusxxhdo\",\"kmkwjfbo\":\"yidaelqpv\"},\"isDefault\":true},\"tags\":{\"ivuxcjkcoqwczs\":\"dusxurs\",\"qtnhjrfd\":\"iqrizfwihvaan\"},\"location\":\"dv\",\"etag\":\"aexxjfwtgdfkka\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"u\",\"principalId\":\"mczfedyuepsvplt\",\"userAssignedIdentities\":{\"svfnkwm\":{\"principalId\":\"jvyweo\",\"clientId\":\"kumcfjxokyelsy\"},\"cjdk\":{\"principalId\":\"jjekrknfdrugj\",\"clientId\":\"ckgtxkrdtulc\"}}},\"id\":\"tcsubmzoo\",\"name\":\"svobchkxfp\",\"type\":\"hdyslbklglm\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"dbxotfb\",\"description\":\"mp\",\"endpoints\":{\"strktgvpatrgj\":\"lannmxynlsuqbw\"},\"isDefault\":true},\"tags\":{\"kqicruoo\":\"nfhoksmmcul\"},\"location\":\"jflsgaojb\",\"etag\":\"pqsdoc\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"jzflmcdsgxc\",\"principalId\":\"uj\",\"userAssignedIdentities\":{\"pc\":{\"principalId\":\"lu\",\"clientId\":\"xhfwlfxzfwuge\"},\"pdz\":{\"principalId\":\"ecexkgrvfpsjdmn\",\"clientId\":\"yt\"},\"fopfjxdwdrpazqjk\":{\"principalId\":\"xcn\",\"clientId\":\"woxcgzbejqfb\"},\"hnnzme\":{\"principalId\":\"mbwotfcuu\",\"clientId\":\"tjigpgayiawohf\"}}},\"id\":\"jkmqenhaidzrpv\",\"name\":\"gloiovsl\",\"type\":\"ivqsuvwtenb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,13 @@ 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.projects().list("ooeactedc", "lsk", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.projects().list("yuekdcpvuftrsvjm", "svujnjktvolefcj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("dahzllrqm", response.iterator().next().properties().displayName()); - Assertions.assertEquals("pbyxroiduyqy", response.iterator().next().properties().description()); - Assertions.assertEquals("dusxurs", response.iterator().next().tags().get("ivuxcjkcoqwczs")); - Assertions.assertEquals("dv", response.iterator().next().location()); + Assertions.assertEquals("dbxotfb", response.iterator().next().properties().displayName()); + Assertions.assertEquals("mp", response.iterator().next().properties().description()); + Assertions.assertEquals("nfhoksmmcul", response.iterator().next().tags().get("kqicruoo")); + Assertions.assertEquals("jflsgaojb", response.iterator().next().location()); Assertions.assertEquals(ResourceIdentityType.SYSTEM_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 d590d36bfc74..bf32056a17cb 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,25 @@ public final class ProvisioningIssuePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProvisioningIssueProperties model = BinaryData.fromString( - "{\"issueType\":\"dhcxgkmoy\",\"severity\":\"dyuib\",\"description\":\"fdn\",\"suggestedResourceIds\":[\"dvfvfcjnaeoi\",\"rvhmgor\",\"fukiscvwmzhw\"],\"suggestedAccessRules\":[{\"name\":\"a\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"btgn\",\"nzeyqxtjj\"],\"subscriptions\":[{\"id\":\"qhycavodggxdbees\"},{\"id\":\"eknlra\"},{\"id\":\"aawiuagydwqfb\"}],\"networkSecurityPerimeters\":[{\"id\":\"fgiagtcojocqwo\",\"perimeterGuid\":\"nzjvusfzldm\",\"location\":\"uxylfsbtkadpy\"}],\"fullyQualifiedDomainNames\":[\"nbtgkbugrjqctoj\"]}},{\"name\":\"isofieypefojyqd\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"plcwkhi\"],\"subscriptions\":[{\"id\":\"hzdsqtzbsrgnow\"},{\"id\":\"hfgmvecactxm\"},{\"id\":\"teyowclu\"},{\"id\":\"vekqvgqo\"}],\"networkSecurityPerimeters\":[{\"id\":\"zmpjwyiv\",\"perimeterGuid\":\"kfxcvhrfs\",\"location\":\"uagrttikteusqc\"},{\"id\":\"vyklxuby\",\"perimeterGuid\":\"ff\",\"location\":\"fblcq\"},{\"id\":\"ubgq\",\"perimeterGuid\":\"rtalmet\",\"location\":\"wgdsl\"}],\"fullyQualifiedDomainNames\":[\"hhrmooizqsey\",\"xiutcx\"]}},{\"name\":\"zhyrpeto\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"slhvnhlab\",\"q\",\"kkzjcjbtrga\",\"hvv\"],\"subscriptions\":[{\"id\":\"jj\"},{\"id\":\"oqbeitpkxzt\"},{\"id\":\"ob\"},{\"id\":\"ft\"}],\"networkSecurityPerimeters\":[{\"id\":\"cwq\",\"perimeterGuid\":\"imaq\",\"location\":\"hemjy\"},{\"id\":\"hujswtwkozzwcul\",\"perimeterGuid\":\"awpfajnjwltlwtjj\",\"location\":\"ktalhsnvkcdmxz\"},{\"id\":\"oaimlnw\",\"perimeterGuid\":\"aomylwea\",\"location\":\"lcsethwwnpj\"},{\"id\":\"fz\",\"perimeterGuid\":\"pchwa\",\"location\":\"bousn\"}],\"fullyQualifiedDomainNames\":[\"gfewetwlyxgnc\",\"ykxhdjh\",\"immbcx\"]}}]}") + "{\"issueType\":\"tleipqxbkw\",\"severity\":\"gnzvdfbzdixzm\",\"description\":\"noda\",\"suggestedResourceIds\":[\"qhewj\"],\"suggestedAccessRules\":[{\"name\":\"gsbos\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"la\"],\"subscriptions\":[{\"id\":\"zlbiojlvfhrbbpn\"},{\"id\":\"vcwwyyurmochppr\"},{\"id\":\"snmokayzej\"}],\"networkSecurityPerimeters\":[{\"id\":\"kpbz\",\"perimeterGuid\":\"piljhahzvech\",\"location\":\"bnwieholew\"},{\"id\":\"iuubwefqsf\",\"perimeterGuid\":\"aqtferr\",\"location\":\"ex\"}],\"fullyQualifiedDomainNames\":[\"fxapjwogqqnobpu\",\"cdabtqwpwya\",\"bzasqbucljgkyexa\",\"guyaip\"]}},{\"name\":\"sdaultxij\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"azlnqnmcjngzqdqx\"],\"subscriptions\":[{\"id\":\"gny\"}],\"networkSecurityPerimeters\":[{\"id\":\"zsvtuikzhajqgl\",\"perimeterGuid\":\"hm\",\"location\":\"qryxyn\"}],\"fullyQualifiedDomainNames\":[\"rd\",\"sovwxznptgoeiyb\",\"abpfhvfs\",\"kvntjlrigjkskyri\"]}},{\"name\":\"vzidsxwaab\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"gznmmaxrizkzob\",\"opxlhslnelxieixy\",\"llxecwc\"],\"subscriptions\":[{\"id\":\"hslhca\"},{\"id\":\"u\"},{\"id\":\"fdwfmvigorqj\"}],\"networkSecurityPerimeters\":[{\"id\":\"h\",\"perimeterGuid\":\"glka\",\"location\":\"onqjujeickpzvcpo\"}],\"fullyQualifiedDomainNames\":[\"elnwclt\",\"jedexxmlf\"]}},{\"name\":\"qscazuawxtz\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"abzxrvxcushsp\",\"aivmxyasflvgs\",\"zwywako\",\"hknsmjbl\"],\"subscriptions\":[{\"id\":\"lnymzotqy\"},{\"id\":\"uzcbmqq\"},{\"id\":\"mv\"},{\"id\":\"gtayxonsupeujlz\"}],\"networkSecurityPerimeters\":[{\"id\":\"vsqltnzoibgsxg\",\"perimeterGuid\":\"fyq\",\"location\":\"mpqoxw\"},{\"id\":\"fdbxiqxeiiqbim\",\"perimeterGuid\":\"mwwinhehfqpofv\",\"location\":\"cblembnkbwv\"},{\"id\":\"xk\",\"perimeterGuid\":\"vqihebwtswbzuwf\",\"location\":\"urageg\"}],\"fullyQualifiedDomainNames\":[\"cjfelisdjubgg\",\"qigkx\",\"bsazgakg\",\"cyrcmjdmspo\"]}}]}") .toObject(ProvisioningIssueProperties.class); - Assertions.assertEquals("dhcxgkmoy", model.issueType()); - Assertions.assertEquals("dyuib", model.severity()); - Assertions.assertEquals("fdn", model.description()); - Assertions.assertEquals("dvfvfcjnaeoi", model.suggestedResourceIds().get(0)); - Assertions.assertEquals("a", model.suggestedAccessRules().get(0).name()); - Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, + Assertions.assertEquals("tleipqxbkw", model.issueType()); + Assertions.assertEquals("gnzvdfbzdixzm", model.severity()); + Assertions.assertEquals("noda", model.description()); + Assertions.assertEquals("qhewj", model.suggestedResourceIds().get(0)); + Assertions.assertEquals("gsbos", model.suggestedAccessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.suggestedAccessRules().get(0).properties().direction()); - Assertions.assertEquals("btgn", model.suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("qhycavodggxdbees", + Assertions.assertEquals("la", model.suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("zlbiojlvfhrbbpn", model.suggestedAccessRules().get(0).properties().subscriptions().get(0).id()); - Assertions.assertEquals("fgiagtcojocqwo", + Assertions.assertEquals("kpbz", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("nzjvusfzldm", + Assertions.assertEquals("piljhahzvech", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("uxylfsbtkadpy", + Assertions.assertEquals("bnwieholew", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("nbtgkbugrjqctoj", + Assertions.assertEquals("fxapjwogqqnobpu", 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 2b1724115f25..1caddc156a34 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\":\"mdy\",\"properties\":{\"issueType\":\"wdigumbnraauz\",\"severity\":\"tj\",\"description\":\"ysdzhez\",\"suggestedResourceIds\":[\"aiqyuvvfo\",\"kphhq\",\"ikvylauya\"],\"suggestedAccessRules\":[{\"name\":\"mncsttijfybvp\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"sgbdhuz\",\"gnjdgkynscliqhz\",\"h\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"u\",\"otppnv\",\"xz\"]}},{\"name\":\"ihfrbbcevqa\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"lfkqojpy\",\"vgtrdcnifmzzs\",\"ymbrnysuxmpraf\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"xvd\",\"ffwafq\",\"oudaspavehhrvk\",\"unzo\"]}}]}}") + "{\"name\":\"mqfoudorh\",\"properties\":{\"issueType\":\"yprotwyp\",\"severity\":\"d\",\"description\":\"xhugcm\",\"suggestedResourceIds\":[\"vlgo\"],\"suggestedAccessRules\":[{\"name\":\"tp\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"ltfvnz\",\"yj\",\"otp\",\"opv\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"qqihedsvqwthmk\",\"ibcysihsgqc\",\"dhohsdtmcdzsuf\"]}},{\"name\":\"hdxbzlm\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"vhdbevwqqxey\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"nkfkbgbzb\",\"wxeqocljmygvkzqk\",\"jeokbzefezrxccz\"]}}]}}") .toObject(ProvisioningIssue.class); - Assertions.assertEquals("mdy", model.name()); - Assertions.assertEquals("wdigumbnraauz", model.properties().issueType()); - Assertions.assertEquals("tj", model.properties().severity()); - Assertions.assertEquals("ysdzhez", model.properties().description()); - Assertions.assertEquals("aiqyuvvfo", model.properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("mncsttijfybvp", model.properties().suggestedAccessRules().get(0).name()); - Assertions.assertEquals(NspAccessRuleDirection.INBOUND, + Assertions.assertEquals("mqfoudorh", model.name()); + Assertions.assertEquals("yprotwyp", model.properties().issueType()); + Assertions.assertEquals("d", model.properties().severity()); + Assertions.assertEquals("xhugcm", model.properties().description()); + Assertions.assertEquals("vlgo", model.properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("tp", model.properties().suggestedAccessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.properties().suggestedAccessRules().get(0).properties().direction()); - Assertions.assertEquals("sgbdhuz", + Assertions.assertEquals("ltfvnz", model.properties().suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("u", + Assertions.assertEquals("qqihedsvqwthmk", 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 31d4bf036dea..48f10b979f1f 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\":\"munjdxvglnkvx\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-03-26T02:38:58Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"ivbgkcv\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2020-12-28T02:44:39Z\",\"upgradeUnavailabilityReason\":\"qdf\"}},\"id\":\"oniypfpubcpzgp\",\"name\":\"tivhjknidibgqjx\",\"type\":\"p\"}") + "{\"properties\":{\"currentTierName\":\"hxiidlopedb\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-09-29T16:17:54Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"bxubmdna\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-08-02T01:33:08Z\",\"upgradeUnavailabilityReason\":\"e\"}},\"id\":\"ela\",\"name\":\"acigel\",\"type\":\"ohdbvqvwzkj\"}") .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 a1581a70c2bb..ebb9adae7f8c 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\":\"glxxhljfpgpic\",\"value\":[{\"properties\":{\"currentTierName\":\"rgmqgjs\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-03-17T18:09:46Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"rmbodt\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-08-02T20:27:24Z\",\"upgradeUnavailabilityReason\":\"riibakclacj\"}},\"id\":\"nxo\",\"name\":\"sxauzlwvsgmwohqf\",\"type\":\"izvu\"},{\"properties\":{\"currentTierName\":\"kjsvthnwpzteko\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-08-29T03:37:08Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"ttgplucfotangcf\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-02-28T15:26:10Z\",\"upgradeUnavailabilityReason\":\"ugswvx\"}},\"id\":\"mzqwmvtxnjmxmcu\",\"name\":\"udtc\",\"type\":\"clxyn\"},{\"properties\":{\"currentTierName\":\"vgfab\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-10-31T09:48:01Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"zphdugneiknp\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-11-25T00:13:20Z\",\"upgradeUnavailabilityReason\":\"uqh\"}},\"id\":\"tozipqwj\",\"name\":\"d\",\"type\":\"urrxxgewpktv\"},{\"properties\":{\"currentTierName\":\"kmqp\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-09-02T03:19:29Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"cgwgcloxoebqinji\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-09-02T19:32:53Z\",\"upgradeUnavailabilityReason\":\"jqlafcbahhpzp\"}},\"id\":\"o\",\"name\":\"yjwpfilkmkkh\",\"type\":\"l\"}]}") + "{\"nextLink\":\"bsojk\",\"value\":[{\"properties\":{\"currentTierName\":\"dptysprqs\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-09-05T11:06:21Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"slsvjgpliu\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-03-01T00:59:22Z\",\"upgradeUnavailabilityReason\":\"xqvapcohh\"}},\"id\":\"cqpqojxcxzrzdc\",\"name\":\"dzbenri\",\"type\":\"cawetzqddt\"},{\"properties\":{\"currentTierName\":\"ljhznamtuatmzwcj\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-09-30T00:05:08Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"mizvgbgatzuuvbx\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-07-14T22:19Z\",\"upgradeUnavailabilityReason\":\"ggahtt\"}},\"id\":\"swvajqfu\",\"name\":\"lx\",\"type\":\"oqza\"},{\"properties\":{\"currentTierName\":\"wqrjzfrg\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-05-07T20:50:08Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"buocnjr\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-03-20T01:13:45Z\",\"upgradeUnavailabilityReason\":\"ryxameblydyvkfkm\"}},\"id\":\"cxneh\",\"name\":\"sm\",\"type\":\"odlfpyapucygvo\"}]}") .toObject(QuotaTierListResult.class); - Assertions.assertEquals("glxxhljfpgpic", model.nextLink()); + Assertions.assertEquals("bsojk", 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 6470477f937b..da7e6b6ed204 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,7 +13,7 @@ public final class QuotaTierPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaTierProperties model = BinaryData.fromString( - "{\"currentTierName\":\"hgovfgp\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-02-19T02:47:18Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"owjrmzvuporqz\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-11-17T18:49:22Z\",\"upgradeUnavailabilityReason\":\"vkfvxcnqmxqpswok\"}}") + "{\"currentTierName\":\"wbeonrlkwzdqy\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-08-23T09:44:14Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"cptsoqfyiase\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-11-03T05:48:08Z\",\"upgradeUnavailabilityReason\":\"tzrazisgyk\"}}") .toObject(QuotaTierProperties.class); 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 7e3ab01d83f7..a8b3366c07ab 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\":\"khlg\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-07-16T12:56:41Z\",\"upgradeUnavailabilityReason\":\"zqkzszuwi\"}") + "{\"nextTierName\":\"emv\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2020-12-21T13:58:30Z\",\"upgradeUnavailabilityReason\":\"hmnr\"}") .toObject(QuotaTierUpgradeEligibilityInfo.class); - Assertions.assertEquals("khlg", model.nextTierName()); - Assertions.assertEquals(UpgradeAvailabilityStatus.AVAILABLE, model.upgradeAvailabilityStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-16T12:56:41Z"), model.upgradeApplicableDate()); - Assertions.assertEquals("zqkzszuwi", model.upgradeUnavailabilityReason()); + Assertions.assertEquals("emv", model.nextTierName()); + Assertions.assertEquals(UpgradeAvailabilityStatus.NOT_AVAILABLE, model.upgradeAvailabilityStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-21T13:58:30Z"), model.upgradeApplicableDate()); + Assertions.assertEquals("hmnr", 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 54235662ae9a..b13d5fa071d8 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\":\"xlantolamlbijuxk\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-11-25T09:00Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"vwdtgckzdqiqdl\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-04-27T08:42:45Z\",\"upgradeUnavailabilityReason\":\"xoau\"}},\"id\":\"suykznhrfgsl\",\"name\":\"lhpryjfzihuio\",\"type\":\"eo\"}"; + = "{\"properties\":{\"currentTierName\":\"flvsmfjihv\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-02-21T09:34:08Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"j\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-06-27T17:52:10Z\",\"upgradeUnavailabilityReason\":\"j\"}},\"id\":\"feqb\",\"name\":\"vdostwyg\",\"type\":\"fm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,10 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); QuotaTier response = manager.quotaTiers() - .define("iyaxqvjweiwt") - .withProperties( - new QuotaTierProperties().withTierUpgradePolicy(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE)) + .define("tnylqu") + .withProperties(new QuotaTierProperties().withTierUpgradePolicy(TierUpgradePolicy.NO_AUTO_UPGRADE)) .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 181d1f7fcbee..a663fa29967d 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\":\"ttwfldsiuorini\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-09-12T04:01:17Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"riwmmtmqrxrzqv\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-05-04T07:33:29Z\",\"upgradeUnavailabilityReason\":\"yubtgmbxiqah\"}},\"id\":\"gpx\",\"name\":\"ibplnupoyryefqm\",\"type\":\"ovyzt\"}"; + = "{\"properties\":{\"currentTierName\":\"ekzouyvew\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-10-20T15:00:51Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"gldohgcandxfhh\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-04-05T22:09:32Z\",\"upgradeUnavailabilityReason\":\"qtdn\"}},\"id\":\"kkpljdsh\",\"name\":\"vfkdxccyijji\",\"type\":\"hijzrqnjxmvv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,8 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - QuotaTier response = manager.quotaTiers().getWithResponse("cboe", com.azure.core.util.Context.NONE).getValue(); + QuotaTier response = manager.quotaTiers().getWithResponse("hg", com.azure.core.util.Context.NONE).getValue(); - 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/QuotaTiersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java index b5e509b6311c..47a1b268d3db 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\":\"omfpb\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-09-10T12:31:48Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"ieztkutnjillu\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-11-22T12:59:20Z\",\"upgradeUnavailabilityReason\":\"htmjo\"}},\"id\":\"ifvulxf\",\"name\":\"ryrvjlgde\",\"type\":\"vjqwaho\"}]}"; + = "{\"value\":[{\"properties\":{\"currentTierName\":\"ydw\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-10-26T05:58:07Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"qldrd\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-05-23T02:59:52Z\",\"upgradeUnavailabilityReason\":\"i\"}},\"id\":\"qwqnghxnimvy\",\"name\":\"jrxgunnq\",\"type\":\"ypu\"}]}"; 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/RaiBlockListItemsResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java index 207f27788640..5bda16eb4cdf 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\":\"vtvudutncormr\",\"value\":[{\"properties\":{\"pattern\":\"cofudflvkgjub\",\"isRegex\":true},\"etag\":\"nqvsaznqnto\",\"tags\":{\"uwjuetaeburuvdmo\":\"sgsahmkycgr\"},\"id\":\"mz\",\"name\":\"xwabmqoe\",\"type\":\"kif\"},{\"properties\":{\"pattern\":\"puqujmqlgkfbtn\",\"isRegex\":false},\"etag\":\"n\",\"tags\":{\"ujitcjedftww\":\"cn\",\"foqouicybx\":\"ezkojvdcp\"},\"id\":\"zg\",\"name\":\"zuf\",\"type\":\"x\"},{\"properties\":{\"pattern\":\"opidoamciodh\",\"isRegex\":true},\"etag\":\"xkhnzbonlwnto\",\"tags\":{\"mrv\":\"kdwbwhkszz\",\"owtlmnguxawqald\":\"xztvbtqgsfraoyzk\"},\"id\":\"uuximerq\",\"name\":\"obwyznkb\",\"type\":\"kutwpf\"},{\"properties\":{\"pattern\":\"gmhrskdsnfdsdoak\",\"isRegex\":true},\"etag\":\"mkkzevdlhe\",\"tags\":{\"bbejdcngqqm\":\"sdsttwvog\",\"wr\":\"akufgmjz\"},\"id\":\"rtwaenuuzko\",\"name\":\"bminrfdwoyuhhzi\",\"type\":\"iefozbhdmsml\"}]}") + "{\"nextLink\":\"rhublwpcesutrg\",\"value\":[{\"properties\":{\"pattern\":\"utpwoqhihejqgw\",\"isRegex\":false},\"etag\":\"qntcypsxjvfoimwk\",\"tags\":{\"ceacvlhvygdy\":\"rcizjxvyd\",\"mrtwna\":\"t\",\"wkojgcyztsfmzn\":\"jslb\"},\"id\":\"eqphchqnrnr\",\"name\":\"x\",\"type\":\"huwrykqgaifm\"},{\"properties\":{\"pattern\":\"lb\",\"isRegex\":true},\"etag\":\"hbejdznxcvdsrhnj\",\"tags\":{\"qfzgemjdftul\":\"lvtno\",\"tmczuomejwcwwqi\":\"ltducea\",\"vpkjpr\":\"knssxmojm\"},\"id\":\"wcfzqljyxgt\",\"name\":\"zheydbsdshmk\",\"type\":\"maehvbbxurip\"}]}") .toObject(RaiBlockListItemsResult.class); - Assertions.assertEquals("vtvudutncormr", model.nextLink()); - Assertions.assertEquals("cofudflvkgjub", model.value().get(0).properties().pattern()); - Assertions.assertTrue(model.value().get(0).properties().isRegex()); - Assertions.assertEquals("sgsahmkycgr", model.value().get(0).tags().get("uwjuetaeburuvdmo")); + Assertions.assertEquals("rhublwpcesutrg", model.nextLink()); + Assertions.assertEquals("utpwoqhihejqgw", model.value().get(0).properties().pattern()); + Assertions.assertFalse(model.value().get(0).properties().isRegex()); + Assertions.assertEquals("rcizjxvyd", model.value().get(0).tags().get("ceacvlhvygdy")); } } 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 a2d73985c525..0ddc08cfa8e0 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\":\"gq\",\"value\":[{\"properties\":{\"description\":\"jhzi\"},\"etag\":\"gfpelolppvksrpqv\",\"tags\":{\"wib\":\"raehtwdwrft\",\"cstwity\":\"rcdlbhshfwpr\"},\"id\":\"evxccedcp\",\"name\":\"md\",\"type\":\"odn\"},{\"properties\":{\"description\":\"ltjcvnhltiugcxna\"},\"etag\":\"wxqibyq\",\"tags\":{\"lmdjrkvfgbvfvpdb\":\"owx\"},\"id\":\"acizsjqlhkrr\",\"name\":\"bdeibqipqk\",\"type\":\"hvxndzwmkrefajpj\"},{\"properties\":{\"description\":\"kqnyh\"},\"etag\":\"ij\",\"tags\":{\"bsystawfsdjpvk\":\"vfxzsjab\",\"jxbkzbzkdvn\":\"p\",\"zhjjklffhmouwq\":\"jabudurgkakmo\",\"eeyebi\":\"gzrf\"},\"id\":\"kayuhqlbjbs\",\"name\":\"bbqwrvtldg\",\"type\":\"fp\"}]}") + "{\"nextLink\":\"kkqfqjbvle\",\"value\":[{\"properties\":{\"description\":\"uiqtqzfavy\"},\"etag\":\"qqybarye\",\"tags\":{\"qgzsles\":\"jkqa\",\"vbquwr\":\"cbhernntiewdj\",\"uffkmrqemvvh\":\"ehwagoh\",\"futacoebjvewzc\":\"xtdr\"},\"id\":\"nmwcpmgu\",\"name\":\"adraufactkahzo\",\"type\":\"ajjziuxxpshne\"},{\"properties\":{\"description\":\"lfg\"},\"etag\":\"qubkw\",\"tags\":{\"inyflnorwmduvwp\":\"nrdsutujbazpjuoh\"},\"id\":\"vxwmygd\",\"name\":\"pgpqchiszepnnb\",\"type\":\"crxgibb\"},{\"properties\":{\"description\":\"confozauors\"},\"etag\":\"okwbqplh\",\"tags\":{\"yuqdu\":\"uuepzlrphwzsoldw\",\"biorktal\":\"vmnnrw\",\"miloxggdufiqndie\":\"wjhhgdnhxmsivf\"},\"id\":\"ao\",\"name\":\"jchvcyy\",\"type\":\"s\"},{\"properties\":{\"description\":\"otcubi\"},\"etag\":\"uipwoqonmacje\",\"tags\":{\"cimpevfg\":\"zshq\"},\"id\":\"lrri\",\"name\":\"bywdxsmicc\",\"type\":\"rwfscjfnynszquj\"}]}") .toObject(RaiBlockListResult.class); - Assertions.assertEquals("gq", model.nextLink()); - Assertions.assertEquals("jhzi", model.value().get(0).properties().description()); - Assertions.assertEquals("raehtwdwrft", model.value().get(0).tags().get("wib")); + Assertions.assertEquals("kkqfqjbvle", model.nextLink()); + Assertions.assertEquals("uiqtqzfavy", model.value().get(0).properties().description()); + Assertions.assertEquals("jkqa", model.value().get(0).tags().get("qgzsles")); } } 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 8c23286048a7..abe88fd7b20f 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\":\"eaivxwczel\",\"blocking\":false}") - .toObject(RaiBlocklistConfig.class); - Assertions.assertEquals("eaivxwczel", model.blocklistName()); + RaiBlocklistConfig model + = BinaryData.fromString("{\"blocklistName\":\"n\",\"blocking\":false}").toObject(RaiBlocklistConfig.class); + Assertions.assertEquals("n", model.blocklistName()); Assertions.assertFalse(model.blocking()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistConfig model = new RaiBlocklistConfig().withBlocklistName("eaivxwczel").withBlocking(false); + RaiBlocklistConfig model = new RaiBlocklistConfig().withBlocklistName("n").withBlocking(false); model = BinaryData.fromObject(model).toObject(RaiBlocklistConfig.class); - Assertions.assertEquals("eaivxwczel", model.blocklistName()); + Assertions.assertEquals("n", 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 18885c004731..2b841be60551 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\":\"whccs\"},\"etag\":\"kaivwit\",\"tags\":{\"wem\":\"ywuggwoluhcz\",\"sbrgz\":\"ai\",\"ggicccnxqhue\":\"wmsweypqwd\"},\"id\":\"ktt\",\"name\":\"stvlzywemhzrnc\",\"type\":\"dtclusiypb\"}") + "{\"properties\":{\"description\":\"ibthostgktstvd\"},\"etag\":\"clzedqbcvh\",\"tags\":{\"lkxt\":\"plodqkdlwwqfbu\"},\"id\":\"jfsmlmbtxhwgfwsr\",\"name\":\"a\",\"type\":\"coezbrhubskh\"}") .toObject(RaiBlocklistInner.class); - Assertions.assertEquals("whccs", model.properties().description()); - Assertions.assertEquals("ywuggwoluhcz", model.tags().get("wem")); + Assertions.assertEquals("ibthostgktstvd", model.properties().description()); + Assertions.assertEquals("plodqkdlwwqfbu", model.tags().get("lkxt")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiBlocklistInner model - = new RaiBlocklistInner().withProperties(new RaiBlocklistProperties().withDescription("whccs")) - .withTags(mapOf("wem", "ywuggwoluhcz", "sbrgz", "ai", "ggicccnxqhue", "wmsweypqwd")); + = new RaiBlocklistInner().withProperties(new RaiBlocklistProperties().withDescription("ibthostgktstvd")) + .withTags(mapOf("lkxt", "plodqkdlwwqfbu")); model = BinaryData.fromObject(model).toObject(RaiBlocklistInner.class); - Assertions.assertEquals("whccs", model.properties().description()); - Assertions.assertEquals("ywuggwoluhcz", model.tags().get("wem")); + Assertions.assertEquals("ibthostgktstvd", model.properties().description()); + Assertions.assertEquals("plodqkdlwwqfbu", model.tags().get("lkxt")); } // 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 b6e1dc7e8b6c..37c87cfab41b 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 @@ -13,20 +13,21 @@ public final class RaiBlocklistItemBulkRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlocklistItemBulkRequest model = BinaryData - .fromString("{\"name\":\"qhoftrmaequiah\",\"properties\":{\"pattern\":\"slfaoqzpiyyl\",\"isRegex\":false}}") + .fromString( + "{\"name\":\"fnhtbaxkgxyw\",\"properties\":{\"pattern\":\"pyklyhpluodpvru\",\"isRegex\":false}}") .toObject(RaiBlocklistItemBulkRequest.class); - Assertions.assertEquals("qhoftrmaequiah", model.name()); - Assertions.assertEquals("slfaoqzpiyyl", model.properties().pattern()); + Assertions.assertEquals("fnhtbaxkgxyw", model.name()); + Assertions.assertEquals("pyklyhpluodpvru", model.properties().pattern()); Assertions.assertFalse(model.properties().isRegex()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistItemBulkRequest model = new RaiBlocklistItemBulkRequest().withName("qhoftrmaequiah") - .withProperties(new RaiBlocklistItemProperties().withPattern("slfaoqzpiyyl").withIsRegex(false)); + RaiBlocklistItemBulkRequest model = new RaiBlocklistItemBulkRequest().withName("fnhtbaxkgxyw") + .withProperties(new RaiBlocklistItemProperties().withPattern("pyklyhpluodpvru").withIsRegex(false)); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemBulkRequest.class); - Assertions.assertEquals("qhoftrmaequiah", model.name()); - Assertions.assertEquals("slfaoqzpiyyl", model.properties().pattern()); + Assertions.assertEquals("fnhtbaxkgxyw", model.name()); + Assertions.assertEquals("pyklyhpluodpvru", model.properties().pattern()); Assertions.assertFalse(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 220c6ebba6e1..83b47e8d5422 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\":\"ncckw\",\"isRegex\":true},\"etag\":\"whxxbuyqax\",\"tags\":{\"iolxor\":\"qztpp\"},\"id\":\"lt\",\"name\":\"lmncw\",\"type\":\"obqwcsdbnwdcfh\"}") + "{\"properties\":{\"pattern\":\"pniyujviyl\",\"isRegex\":true},\"etag\":\"fssnrbgyefrymsga\",\"tags\":{\"otmrfhir\":\"mwn\",\"piwyczuhxacpqjl\":\"tymoxoftp\",\"yuspskas\":\"h\"},\"id\":\"lmfwdgzx\",\"name\":\"lucvpam\",\"type\":\"sreuzvxurisjnh\"}") .toObject(RaiBlocklistItemInner.class); - Assertions.assertEquals("ncckw", model.properties().pattern()); + Assertions.assertEquals("pniyujviyl", model.properties().pattern()); Assertions.assertTrue(model.properties().isRegex()); - Assertions.assertEquals("qztpp", model.tags().get("iolxor")); + Assertions.assertEquals("mwn", model.tags().get("otmrfhir")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiBlocklistItemInner model = new RaiBlocklistItemInner() - .withProperties(new RaiBlocklistItemProperties().withPattern("ncckw").withIsRegex(true)) - .withTags(mapOf("iolxor", "qztpp")); + .withProperties(new RaiBlocklistItemProperties().withPattern("pniyujviyl").withIsRegex(true)) + .withTags(mapOf("otmrfhir", "mwn", "piwyczuhxacpqjl", "tymoxoftp", "yuspskas", "h")); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemInner.class); - Assertions.assertEquals("ncckw", model.properties().pattern()); + Assertions.assertEquals("pniyujviyl", model.properties().pattern()); Assertions.assertTrue(model.properties().isRegex()); - Assertions.assertEquals("qztpp", model.tags().get("iolxor")); + Assertions.assertEquals("mwn", model.tags().get("otmrfhir")); } // 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 1299f32b3ea7..1fef268679aa 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,18 +11,17 @@ public final class RaiBlocklistItemPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiBlocklistItemProperties model = BinaryData.fromString("{\"pattern\":\"qdpfuvglsbjjca\",\"isRegex\":false}") + RaiBlocklistItemProperties model = BinaryData.fromString("{\"pattern\":\"txifqj\",\"isRegex\":false}") .toObject(RaiBlocklistItemProperties.class); - Assertions.assertEquals("qdpfuvglsbjjca", model.pattern()); + Assertions.assertEquals("txifqj", model.pattern()); Assertions.assertFalse(model.isRegex()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistItemProperties model - = new RaiBlocklistItemProperties().withPattern("qdpfuvglsbjjca").withIsRegex(false); + RaiBlocklistItemProperties model = new RaiBlocklistItemProperties().withPattern("txifqj").withIsRegex(false); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemProperties.class); - Assertions.assertEquals("qdpfuvglsbjjca", model.pattern()); + Assertions.assertEquals("txifqj", model.pattern()); Assertions.assertFalse(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 0ffc25a797e4..0cfea8d7d3ef 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\":\"roqksmfxm\"},\"etag\":\"prstvkitbfj\",\"tags\":{\"rqxw\":\"otnplfacqocc\",\"a\":\"tjtdrhutfd\",\"eh\":\"txop\"},\"id\":\"dkmdzgsszx\",\"name\":\"ctkbbxuha\",\"type\":\"lsi\"}"; + = "{\"properties\":{\"description\":\"cwn\"},\"etag\":\"tfmcqbsudzpgc\",\"tags\":{\"kynrceqavf\":\"gfqumjdjxhzghgo\",\"jdnaju\":\"bdfmm\"},\"id\":\"jyyqmkw\",\"name\":\"hvcw\",\"type\":\"oqdejkluxxr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,17 @@ public void testBatchAddWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - RaiBlocklist response = manager.raiBlocklistItems() - .batchAddWithResponse("oxudnmckap", "hknqiijge", "cdgmoqu", - Arrays.asList(new RaiBlocklistItemBulkRequest().withName("hkkyowltjouw") - .withProperties(new RaiBlocklistItemProperties().withPattern("x").withIsRegex(true))), - com.azure.core.util.Context.NONE) - .getValue(); + RaiBlocklist response + = manager.raiBlocklistItems() + .batchAddWithResponse("djiah", "qymjzucwwmejjqhd", "wvmqxi", + Arrays.asList(new RaiBlocklistItemBulkRequest().withName("kyfozkbnzxbyp") + .withProperties(new RaiBlocklistItemProperties().withPattern("gaixwrgrkkd").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("swqi") + .withProperties(new RaiBlocklistItemProperties().withPattern("pw").withIsRegex(true))), + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("roqksmfxm", response.properties().description()); - Assertions.assertEquals("otnplfacqocc", response.tags().get("rqxw")); + Assertions.assertEquals("cwn", response.properties().description()); + Assertions.assertEquals("gfqumjdjxhzghgo", response.tags().get("kynrceqavf")); } } 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 d8f68b012346..86ffbad82651 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("ncclabvoyngsuxxc", "bmyqjog", "dsaidjanormovdxx", - Arrays.asList("ntujmoilunwemhd"), com.azure.core.util.Context.NONE); + .batchDeleteWithResponse("zobuzmsxgamtdtk", "ppthuzdprmimrl", "dpoqfxyem", + Arrays.asList("ftb", "ewhtec", "oamfmxtllfltymqc"), 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 374630280302..267a5155089f 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\":\"mkjmyitrchwudlxe\",\"isRegex\":true},\"etag\":\"pmnoejhqlf\",\"tags\":{\"oyrfgxk\":\"b\",\"a\":\"dpmypgfqvmtywh\",\"lfxampqc\":\"xpejpewpy\"},\"id\":\"g\",\"name\":\"uqxbpiatwfauje\",\"type\":\"qdtadrakgdd\"}"; + = "{\"properties\":{\"pattern\":\"i\",\"isRegex\":false},\"etag\":\"uck\",\"tags\":{\"swt\":\"s\"},\"id\":\"qqcqikclsmal\",\"name\":\"sswoykdnona\",\"type\":\"xwmgzrujlqcwnyn\"}"; 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("jtv") - .withExistingRaiBlocklist("e", "jslkyozdsfzjue", "rhrhtsl") - .withTags(mapOf("ejgwe", "jqqwmtqsmoxsazu")) - .withProperties(new RaiBlocklistItemProperties().withPattern("xvgjbfi").withIsRegex(false)) + .define("rxqwqnjxrd") + .withExistingRaiBlocklist("rrfijhgg", "bqbgamklilirwdv", "fhsdpzouhkt") + .withTags(mapOf("ljphraspifleimi", "mlx", "hfgsmd", "lmdbgic", "okljm", "juqbpx")) + .withProperties(new RaiBlocklistItemProperties().withPattern("t").withIsRegex(true)) .create(); - Assertions.assertEquals("mkjmyitrchwudlxe", response.properties().pattern()); - Assertions.assertTrue(response.properties().isRegex()); - Assertions.assertEquals("b", response.tags().get("oyrfgxk")); + Assertions.assertEquals("i", response.properties().pattern()); + Assertions.assertFalse(response.properties().isRegex()); + Assertions.assertEquals("s", response.tags().get("swt")); } // 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 83cb2bf705d6..7f853bff2ea5 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\":\"cuselq\",\"isRegex\":true},\"etag\":\"zrhxuddqmdtf\",\"tags\":{\"khmwdmd\":\"jmr\",\"okwtjawhvagnqfqq\":\"gyqi\"},\"id\":\"cvmyolcaymjchtv\",\"name\":\"n\",\"type\":\"laqd\"}"; + = "{\"properties\":{\"pattern\":\"ayunomirhpfabenq\",\"isRegex\":true},\"etag\":\"mgewayxf\",\"tags\":{\"bhem\":\"cpjs\",\"eapdrbzyv\":\"cucsqsnxfbxu\",\"dulpodkaxpfobk\":\"su\"},\"id\":\"mhjdqlt\",\"name\":\"eluqr\",\"type\":\"jadhfztl\"}"; 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("zkjthfceyjn", "jmlfuyfjbp", "iddhlrufzc", "yjmqrf", com.azure.core.util.Context.NONE) + .getWithResponse("ctxegt", "gwyur", "elfnzzryiz", "bxgde", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("cuselq", response.properties().pattern()); + Assertions.assertEquals("ayunomirhpfabenq", response.properties().pattern()); Assertions.assertTrue(response.properties().isRegex()); - Assertions.assertEquals("jmr", response.tags().get("khmwdmd")); + Assertions.assertEquals("cpjs", response.tags().get("bhem")); } } 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 a37bf8c423bd..b15141a0bcce 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\":\"nwgwimaanea\",\"isRegex\":false},\"etag\":\"ho\",\"tags\":{\"voogxkfna\":\"anrfvqtvkh\",\"skbyhquhczygx\":\"aqymhcctopuowyr\"},\"id\":\"ajpxecxqnwhscoza\",\"name\":\"mvgxsmpknpwir\",\"type\":\"ljfewxqo\"}]}"; + = "{\"value\":[{\"properties\":{\"pattern\":\"ecjvxf\",\"isRegex\":true},\"etag\":\"qizjv\",\"tags\":{\"zxpxhn\":\"ooajeyyjmjjx\"},\"id\":\"slekc\",\"name\":\"tgzkjtyqpd\",\"type\":\"adeghztldsvc\"}]}"; 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("z", "zawatuwqkokbc", "othymgobl", com.azure.core.util.Context.NONE); + = manager.raiBlocklistItems().list("aysrkgzky", "udbkuwpzq", "lcwe", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nwgwimaanea", response.iterator().next().properties().pattern()); - Assertions.assertFalse(response.iterator().next().properties().isRegex()); - Assertions.assertEquals("anrfvqtvkh", response.iterator().next().tags().get("voogxkfna")); + Assertions.assertEquals("ecjvxf", response.iterator().next().properties().pattern()); + Assertions.assertTrue(response.iterator().next().properties().isRegex()); + Assertions.assertEquals("ooajeyyjmjjx", response.iterator().next().tags().get("zxpxhn")); } } 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 b910beb22784..56110b8cf5f4 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\":\"gytguslfead\"}").toObject(RaiBlocklistProperties.class); - Assertions.assertEquals("gytguslfead", model.description()); + = BinaryData.fromString("{\"description\":\"ygo\"}").toObject(RaiBlocklistProperties.class); + Assertions.assertEquals("ygo", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistProperties model = new RaiBlocklistProperties().withDescription("gytguslfead"); + RaiBlocklistProperties model = new RaiBlocklistProperties().withDescription("ygo"); model = BinaryData.fromObject(model).toObject(RaiBlocklistProperties.class); - Assertions.assertEquals("gytguslfead", model.description()); + Assertions.assertEquals("ygo", 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 8543d14c1d32..eb36c2f3fc0f 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\":\"jhjvmabzzbw\"},\"etag\":\"b\",\"tags\":{\"preojxrjnbsconxa\":\"afbgymqtn\"},\"id\":\"pney\",\"name\":\"hbjizqfsgnwdx\",\"type\":\"edpqlrfbo\"}"; + = "{\"properties\":{\"description\":\"iauesugmocpcjy\"},\"etag\":\"oelrgttwfl\",\"tags\":{\"riwmmtmqrxrzqv\":\"uorinikcedpk\",\"xiqahr\":\"yczyayubtgm\",\"ibplnupoyryefqm\":\"gpx\"},\"id\":\"vyztxlno\",\"name\":\"fpbjc\",\"type\":\"egvyieztkutnj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,14 +34,14 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklist response = manager.raiBlocklists() - .define("nm") - .withExistingAccount("qsdb", "oksz") - .withTags(mapOf("fcqpol", "ztsdetjygow")) - .withProperties(new RaiBlocklistProperties().withDescription("pter")) + .define("fmfws") + .withExistingAccount("pvdvatlzmgs", "hnzrsbkkzovlzdm") + .withTags(mapOf("tgelgwewikfy", "yrvap", "n", "qandmy", "vsfbp", "oqjum")) + .withProperties(new RaiBlocklistProperties().withDescription("ofuworimmovzwde")) .create(); - Assertions.assertEquals("jhjvmabzzbw", response.properties().description()); - Assertions.assertEquals("afbgymqtn", response.tags().get("preojxrjnbsconxa")); + Assertions.assertEquals("iauesugmocpcjy", response.properties().description()); + Assertions.assertEquals("uorinikcedpk", response.tags().get("riwmmtmqrxrzqv")); } // 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 6aeaaf17bc1e..35efef13ebe8 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\":\"n\"},\"etag\":\"bf\",\"tags\":{\"mlhxdfbklcii\":\"cstu\",\"gwxfkzsi\":\"hgjsysmvxo\",\"bwjtrdx\":\"cuvbdujgcwxvec\"},\"id\":\"zagbbgiarksykp\",\"name\":\"dqxwabzrwiqrxhac\",\"type\":\"cdosqkptj\"}"; + = "{\"properties\":{\"description\":\"uvjhxmnrqstjc\"},\"etag\":\"twmlg\",\"tags\":{\"i\":\"npvvdhgjnaqy\",\"vcdsvm\":\"slz\"},\"id\":\"itekdtfobvfiyb\",\"name\":\"qich\",\"type\":\"ybfzdqekivycp\"}"; 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("jkrukizyhgsqtnqs", "txqfpjbq", "gweeiwd", com.azure.core.util.Context.NONE) + .getWithResponse("lei", "bcbgv", "btsertoxa", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("n", response.properties().description()); - Assertions.assertEquals("cstu", response.tags().get("mlhxdfbklcii")); + Assertions.assertEquals("uvjhxmnrqstjc", response.properties().description()); + Assertions.assertEquals("npvvdhgjnaqy", response.tags().get("i")); } } 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 a1a834730250..9e5d056f1388 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\":\"bqwuntobuizazzel\"},\"etag\":\"vydjufbnk\",\"tags\":{\"abalfdxaglz\":\"axpegjw\"},\"id\":\"tlbtlqho\",\"name\":\"xouvmrs\",\"type\":\"flikyypzkgxfxfmy\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"pzl\"},\"etag\":\"yfmx\",\"tags\":{\"fkgilnoudccgnd\":\"t\",\"gqqyeqfcbuulpyuf\":\"gdpri\",\"igi\":\"qjfshtujcyo\",\"kqnqvkixnmbzme\":\"wdcsk\"},\"id\":\"yrzwim\",\"name\":\"zayspzvriet\",\"type\":\"fphmdzxplg\"}]}"; 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("gkifmmainwh", "d", com.azure.core.util.Context.NONE); + = manager.raiBlocklists().list("cv", "izulrqtbht", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bqwuntobuizazzel", response.iterator().next().properties().description()); - Assertions.assertEquals("axpegjw", response.iterator().next().tags().get("abalfdxaglz")); + Assertions.assertEquals("pzl", response.iterator().next().properties().description()); + Assertions.assertEquals("t", response.iterator().next().tags().get("fkgilnoudccgnd")); } } 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 83d0d99df029..33e30b639caa 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\":\"zslesjcbher\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"djc\",\"name\":\"bquwrbehw\",\"type\":\"gohbuffkmrq\"}") + "{\"properties\":{\"name\":\"gsftufqobrjlnacg\",\"isMultiLevelFilter\":true,\"source\":\"Prompt\"},\"id\":\"xkizvy\",\"name\":\"nrzvuljraaer\",\"type\":\"nok\"}") .toObject(RaiContentFilterInner.class); - Assertions.assertEquals("zslesjcbher", model.properties().name()); - Assertions.assertFalse(model.properties().isMultiLevelFilter()); + Assertions.assertEquals("gsftufqobrjlnacg", model.properties().name()); + Assertions.assertTrue(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 546c805bc10b..d666bc2200a7 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\":\"ebjvewzcjzn\",\"value\":[{\"properties\":{\"name\":\"guaadraufactkahz\",\"isMultiLevelFilter\":true,\"source\":\"PostToolCall\"},\"id\":\"iuxxpshneekulfg\",\"name\":\"lqubkwdlen\",\"type\":\"d\"},{\"properties\":{\"name\":\"ujbazpjuohminyfl\",\"isMultiLevelFilter\":false,\"source\":\"PreRun\"},\"id\":\"uvwpklvxwmyg\",\"name\":\"xpgpq\",\"type\":\"hiszepnnbjcrxgib\"},{\"properties\":{\"name\":\"xconfozauors\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"qplhlvnu\",\"name\":\"epzl\",\"type\":\"phwzsoldweyuqdu\"},{\"properties\":{\"name\":\"nnrwrbiork\",\"isMultiLevelFilter\":false,\"source\":\"PreRun\"},\"id\":\"hhg\",\"name\":\"nhxmsi\",\"type\":\"fomiloxgg\"}]}") + "{\"nextLink\":\"isdos\",\"value\":[{\"properties\":{\"name\":\"vgjrwhr\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"dclxgc\",\"name\":\"knfnwmbtmvpdv\",\"type\":\"dhttzaefedxihchr\"}]}") .toObject(RaiContentFilterListResult.class); - Assertions.assertEquals("ebjvewzcjzn", model.nextLink()); - Assertions.assertEquals("guaadraufactkahz", model.value().get(0).properties().name()); - Assertions.assertTrue(model.value().get(0).properties().isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.value().get(0).properties().source()); + Assertions.assertEquals("isdos", model.nextLink()); + Assertions.assertEquals("vgjrwhr", model.value().get(0).properties().name()); + Assertions.assertFalse(model.value().get(0).properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, 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 394f66af23ba..4ca288776adc 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 @@ -12,11 +12,11 @@ public final class RaiContentFilterPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiContentFilterProperties model - = BinaryData.fromString("{\"name\":\"vvhmxtdrj\",\"isMultiLevelFilter\":false,\"source\":\"PreToolCall\"}") - .toObject(RaiContentFilterProperties.class); - Assertions.assertEquals("vvhmxtdrj", model.name()); - Assertions.assertFalse(model.isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); + RaiContentFilterProperties model = BinaryData + .fromString("{\"name\":\"ukkjqnvbroyla\",\"isMultiLevelFilter\":true,\"source\":\"Completion\"}") + .toObject(RaiContentFilterProperties.class); + Assertions.assertEquals("ukkjqnvbroyla", model.name()); + Assertions.assertTrue(model.isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, 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 b1af1a89a4ea..1e8823cb112f 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\":\"eejdpdfhtw\",\"isMultiLevelFilter\":true,\"source\":\"PostToolCall\"},\"id\":\"r\",\"name\":\"qulw\",\"type\":\"trj\"}"; + = "{\"properties\":{\"name\":\"nfhkqytkztado\",\"isMultiLevelFilter\":true,\"source\":\"Completion\"},\"id\":\"jfcycrsvloyyhig\",\"name\":\"kzju\",\"type\":\"wqajquzxpixhy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,12 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - RaiContentFilter response - = manager.raiContentFilters().getWithResponse("rbtigap", "ya", com.azure.core.util.Context.NONE).getValue(); + RaiContentFilter response = manager.raiContentFilters() + .getWithResponse("uiyxfwkztsmsfb", "vy", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("eejdpdfhtw", response.properties().name()); + Assertions.assertEquals("nfhkqytkztado", response.properties().name()); Assertions.assertTrue(response.properties().isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, response.properties().source()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, 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 2e083fd31b10..c4affee420fa 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\":\"ensnaa\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"ejnglpwsadaxjsum\",\"name\":\"pezco\",\"type\":\"oyj\"}]}"; + = "{\"value\":[{\"properties\":{\"name\":\"sci\",\"isMultiLevelFilter\":false,\"source\":\"Completion\"},\"id\":\"bennmfkbp\",\"name\":\"nrtekw\",\"type\":\"nthropmdudsyiu\"}]}"; 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("eqkvyhzokpoyu", com.azure.core.util.Context.NONE); + = manager.raiContentFilters().list("ipnfdb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ensnaa", response.iterator().next().properties().name()); + Assertions.assertEquals("sci", response.iterator().next().properties().name()); Assertions.assertFalse(response.iterator().next().properties().isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.iterator().next().properties().source()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, response.iterator().next().properties().source()); } } 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 c00290ee5e3b..2b669aac3f69 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 @@ -32,7 +32,7 @@ public final class RaiPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"j\",\"contentFilters\":[{\"name\":\"cf\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"ANNOTATING\"},{\"name\":\"qlwixvtbougu\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"BLOCKING\"},{\"name\":\"sualapdlndbeaqbk\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PostToolCall\",\"action\":\"BLOCKING\"},{\"name\":\"qvzfj\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"BLOCKING\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"fkyezolgjzm\",\"blocking\":false},{\"source\":\"PreToolCall\",\"blocklistName\":\"ccn\",\"blocking\":true},{\"source\":\"PreRun\",\"blocklistName\":\"bui\",\"blocking\":true},{\"source\":\"PostRun\",\"blocklistName\":\"ecaatsdohzniuc\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"Completion\",\"safetyProviderName\":\"injdllwktlepo\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"uajgcqwulynk\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"uws\",\"blocking\":true},{\"source\":\"Completion\",\"safetyProviderName\":\"lhuulriqb\",\"blocking\":false}]},\"etag\":\"jgb\",\"tags\":{\"rsltt\":\"e\"},\"id\":\"hcdjwsuoardnagt\",\"name\":\"pufpbpgnrholhu\",\"type\":\"bfwxiplkys\"}"; + = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"kcoqwczsyiqrizf\",\"contentFilters\":[{\"name\":\"aangqtnhjrfdmfdv\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostToolCall\",\"action\":\"HITL\"},{\"name\":\"fkkauigvmua\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"ida\",\"blocking\":false},{\"source\":\"Prompt\",\"blocklistName\":\"ocfkumcfjxoky\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"vfnkwmygjjekrk\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PreToolCall\",\"safetyProviderName\":\"yckgtxkrdtulcrcj\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"subm\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"obc\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"hdyslbklglm\",\"blocking\":true}]},\"etag\":\"wayqshwyqxrid\",\"tags\":{\"wqu\":\"saqjmkgx\",\"izevjyk\":\"uuylztpz\"},\"id\":\"vezefkhkqtwqle\",\"name\":\"jjzkcasfwzc\",\"type\":\"togffjwajnrtwz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -42,65 +42,67 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiPolicy response = manager.raiPolicies() - .define("fhglhrfo") - .withExistingAccount("wot", "xl") - .withTags( - mapOf("p", "ejgoiutgwrmka", "mip", "hazyntacihnco", "i", "mliqmvlb", "sdfjyiesoc", "eaqgrvgpomxpupd")) + .define("isqsqkpdmioy") + .withExistingAccount("dkluwzxeygzvt", "evjhubnobgu") + .withTags(mapOf("duyqypf", "mtlpbyxro", "brjjtalxrdsjr", "mnoiicsudy", "pjwyblvtbdmvs", "oluqwgusxxhdo")) .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.DEFERRED) - .withBasePolicyName("nhpcselqx") + .withBasePolicyName("qcpszp") .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("qibukklvzrl") + new RaiPolicyContentFilter().withName("dv") .withEnabled(false) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_RUN) .withAction(RaiActionType.ANNOTATING), - new RaiPolicyContentFilter().withName("ivfqbqnasdsy") + new RaiPolicyContentFilter().withName("qojbxao") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_RUN) + .withAction(RaiActionType.BLOCKING), + new RaiPolicyContentFilter().withName("foioyidoxzn") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT) + .withAction(RaiActionType.RETRY), + new RaiPolicyContentFilter().withName("sxmrszbknimxlp") .withEnabled(true) .withSeverityThreshold(ContentLevel.LOW) .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withSource(RaiPolicyContentSource.COMPLETION) .withAction(RaiActionType.NONE))) .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("xlyzkxit") - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION), - new CustomBlocklistConfig().withBlocklistName("vkolrupjovmo") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_RUN), - new CustomBlocklistConfig().withBlocklistName("razwzlpzbt") + new CustomBlocklistConfig().withBlocklistName("mnb") .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_RUN))) - .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("fsdyepfnocmbeza") - .withBlocking(true) - .withSource(RaiPolicyContentSource.PROMPT), - new SafetyProviderConfig().withSafetyProviderName("azwyqejgaaokctgk") - .withBlocking(true) .withSource(RaiPolicyContentSource.POST_RUN), - new SafetyProviderConfig().withSafetyProviderName("kcy") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL)))) + new CustomBlocklistConfig().withBlocklistName("dbjmbnvynfa") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_RUN))) + .withSafetyProviders(Arrays.asList(new SafetyProviderConfig().withSafetyProviderName("cglskakdd") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_RUN)))) .create(); - Assertions.assertEquals(RaiPolicyMode.BLOCKING, response.properties().mode()); - Assertions.assertEquals("j", response.properties().basePolicyName()); - Assertions.assertEquals("cf", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.properties().mode()); + Assertions.assertEquals("kcoqwczsyiqrizf", response.properties().basePolicyName()); + Assertions.assertEquals("aangqtnhjrfdmfdv", 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.POST_RUN, + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("fkyezolgjzm", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(RaiActionType.HITL, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("ida", 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("injdllwktlepo", response.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + response.properties().customBlocklists().get(0).source()); + Assertions.assertEquals("yckgtxkrdtulcrcj", + 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("e", response.tags().get("rsltt")); + Assertions.assertEquals("saqjmkgx", response.tags().get("wqu")); } // 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 fa21f85e92da..cef166b5a355 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 @@ -25,7 +25,7 @@ public final class RaiPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"r\",\"contentFilters\":[{\"name\":\"eyttlrcxiv\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"BLOCKING\"},{\"name\":\"fluxynbpvz\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"gjs\",\"blocking\":true},{\"source\":\"PreToolCall\",\"blocklistName\":\"hwvixqqggljkybsj\",\"blocking\":false},{\"source\":\"PostRun\",\"blocklistName\":\"z\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"pjhxpcvrdn\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"eq\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"ahwriuomzczfk\",\"blocking\":false},{\"source\":\"Prompt\",\"safetyProviderName\":\"a\",\"blocking\":true}]},\"etag\":\"p\",\"tags\":{\"gzzromv\":\"ikhfjqebglcxk\",\"sem\":\"g\"},\"id\":\"esrfsvpinkzpatq\",\"name\":\"diswxspvckojazb\",\"type\":\"gspftesu\"}"; + = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"oizwxvs\",\"contentFilters\":[{\"name\":\"fyy\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"Prompt\",\"blocklistName\":\"wrtwletyveszr\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"Completion\",\"safetyProviderName\":\"nctaczcn\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"nvjxitzovnk\",\"blocking\":false},{\"source\":\"Prompt\",\"safetyProviderName\":\"mn\",\"blocking\":true}]},\"etag\":\"coqk\",\"tags\":{\"ud\":\"ibhyxwbg\"},\"id\":\"qdo\",\"name\":\"bccqcdhthojvl\",\"type\":\"rknucosawrdtnag\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,25 +35,26 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiPolicy response = manager.raiPolicies() - .getWithResponse("jhfrzgdkkagv", "ukhsusmmorf", "zhwilzzh", com.azure.core.util.Context.NONE) + .getWithResponse("uarigrj", "ljlkqhvk", "bzkuastaxklpr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.properties().mode()); - Assertions.assertEquals("r", response.properties().basePolicyName()); - Assertions.assertEquals("eyttlrcxiv", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.properties().mode()); + Assertions.assertEquals("oizwxvs", response.properties().basePolicyName()); + Assertions.assertEquals("fyy", response.properties().contentFilters().get(0).name()); Assertions.assertFalse(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.PRE_RUN, response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("gjs", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(ContentLevel.MEDIUM, 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.HITL, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("wrtwletyveszr", response.properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("pjhxpcvrdn", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals("nctaczcn", response.properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals("ikhfjqebglcxk", response.tags().get("gzzromv")); + Assertions.assertEquals("ibhyxwbg", response.tags().get("ud")); } } 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 ba89f8bb54a7..44f18b33d684 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 @@ -26,7 +26,7 @@ public final class RaiPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"uoswkjmdih\",\"contentFilters\":[{\"name\":\"yzlwhbwzjnufzrf\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PostToolCall\",\"action\":\"BLOCKING\"},{\"name\":\"tedzu\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"RETRY\"},{\"name\":\"jjvavdpww\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"nmhkscauwaz\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"Completion\",\"safetyProviderName\":\"gyb\",\"blocking\":true},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"scvgl\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"yfgwewqkj\",\"blocking\":true}]},\"etag\":\"wpxsoo\",\"tags\":{\"ugggzlfbgrdcgu\":\"xlcskltez\",\"zgczfcmfpfbode\":\"srtmdylperpiltt\"},\"id\":\"esrgvtshuvftwai\",\"name\":\"muqkevzgjypanhx\",\"type\":\"pdxxzetwwz\"}]}"; + = "{\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"kacybdueurgmcdcp\",\"contentFilters\":[{\"name\":\"ojermhzicsbfdjhy\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PreRun\",\"action\":\"None\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"zwxqtejpii\",\"blocking\":false},{\"source\":\"Completion\",\"blocklistName\":\"yagjjnxkbylhyyxg\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"wtrdgs\",\"blocking\":false},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"nsgnwxlwmez\",\"blocking\":true}]},\"etag\":\"pthceopvkv\",\"tags\":{\"bokhmmlcdyarng\":\"vesob\"},\"id\":\"jf\",\"name\":\"blqhxkasm\",\"type\":\"olmugpyvao\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,30 +36,30 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiPolicies().list("zpvpvdyly", "covqseusrfjbdxzf", com.azure.core.util.Context.NONE); + = manager.raiPolicies().list("lgpyaixihz", "jjtsm", com.azure.core.util.Context.NONE); - Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.iterator().next().properties().mode()); - Assertions.assertEquals("uoswkjmdih", response.iterator().next().properties().basePolicyName()); - Assertions.assertEquals("yzlwhbwzjnufzrf", + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.iterator().next().properties().mode()); + Assertions.assertEquals("kacybdueurgmcdcp", response.iterator().next().properties().basePolicyName()); + Assertions.assertEquals("ojermhzicsbfdjhy", response.iterator().next().properties().contentFilters().get(0).name()); Assertions.assertFalse(response.iterator().next().properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.LOW, + Assertions.assertEquals(ContentLevel.MEDIUM, response.iterator().next().properties().contentFilters().get(0).severityThreshold()); Assertions.assertFalse(response.iterator().next().properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.iterator().next().properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, + Assertions.assertEquals(RaiActionType.NONE, response.iterator().next().properties().contentFilters().get(0).action()); - Assertions.assertEquals("nmhkscauwaz", + Assertions.assertEquals("zwxqtejpii", response.iterator().next().properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.iterator().next().properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + Assertions.assertFalse(response.iterator().next().properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.iterator().next().properties().customBlocklists().get(0).source()); - Assertions.assertEquals("gyb", + Assertions.assertEquals("wtrdgs", response.iterator().next().properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(response.iterator().next().properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + Assertions.assertFalse(response.iterator().next().properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.iterator().next().properties().safetyProviders().get(0).source()); - Assertions.assertEquals("xlcskltez", response.iterator().next().tags().get("ugggzlfbgrdcgu")); + Assertions.assertEquals("vesob", response.iterator().next().tags().get("bokhmmlcdyarng")); } } 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 c50266ec68cf..083740ba365c 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\":\"xw\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"ANNOTATING\"}") + "{\"name\":\"kpnb\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"RETRY\"}") .toObject(RaiPolicyContentFilter.class); - Assertions.assertEquals("xw", model.name()); + Assertions.assertEquals("kpnb", model.name()); Assertions.assertFalse(model.enabled()); Assertions.assertEquals(ContentLevel.MEDIUM, model.severityThreshold()); - Assertions.assertTrue(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, model.action()); + Assertions.assertFalse(model.blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); + Assertions.assertEquals(RaiActionType.RETRY, model.action()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiPolicyContentFilter model = new RaiPolicyContentFilter().withName("xw") + RaiPolicyContentFilter model = new RaiPolicyContentFilter().withName("kpnb") .withEnabled(false) .withSeverityThreshold(ContentLevel.MEDIUM) - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) - .withAction(RaiActionType.ANNOTATING); + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT) + .withAction(RaiActionType.RETRY); model = BinaryData.fromObject(model).toObject(RaiPolicyContentFilter.class); - Assertions.assertEquals("xw", model.name()); + Assertions.assertEquals("kpnb", model.name()); Assertions.assertFalse(model.enabled()); Assertions.assertEquals(ContentLevel.MEDIUM, model.severityThreshold()); - Assertions.assertTrue(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, model.action()); + Assertions.assertFalse(model.blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); + Assertions.assertEquals(RaiActionType.RETRY, 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 d2624e6ed5d0..60ed56d01a87 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 @@ -23,89 +23,77 @@ public final class RaiPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"iftohqkvpu\",\"contentFilters\":[{\"name\":\"plsaknynfsynljph\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"RETRY\"},{\"name\":\"orzihle\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"c\",\"blocking\":true},{\"source\":\"PreToolCall\",\"blocklistName\":\"qioxi\",\"blocking\":false},{\"source\":\"PreToolCall\",\"blocklistName\":\"ynkedyatrwyhqmib\",\"blocking\":false},{\"source\":\"PreToolCall\",\"blocklistName\":\"smypyynpc\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"wznm\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"orgjhxbldt\",\"blocking\":false},{\"source\":\"Completion\",\"safetyProviderName\":\"dmtnc\",\"blocking\":false}]},\"etag\":\"tllxdyhgsyocogj\",\"tags\":{\"oocrkvcikhnv\":\"tbnnha\",\"gxk\":\"amqgxqquezikyw\"},\"id\":\"la\",\"name\":\"melwuipiccjz\",\"type\":\"z\"}") + "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"y\",\"contentFilters\":[{\"name\":\"fq\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"},{\"name\":\"gikdgsz\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PreToolCall\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"qrvqq\",\"blocking\":false},{\"source\":\"PostRun\",\"blocklistName\":\"rv\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"bfggjioolvr\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"k\",\"blocking\":true},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"ygvjayvblmh\",\"blocking\":true}]},\"etag\":\"hbxvvyhgsopbyrqu\",\"tags\":{\"fbn\":\"xuvw\"},\"id\":\"mctlpdngitv\",\"name\":\"bmhrixkwmyijejv\",\"type\":\"grhbpn\"}") .toObject(RaiPolicyInner.class); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.properties().mode()); - Assertions.assertEquals("iftohqkvpu", model.properties().basePolicyName()); - Assertions.assertEquals("plsaknynfsynljph", model.properties().contentFilters().get(0).name()); - Assertions.assertTrue(model.properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, model.properties().mode()); + Assertions.assertEquals("y", model.properties().basePolicyName()); + Assertions.assertEquals("fq", 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.assertTrue(model.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, - model.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.RETRY, model.properties().contentFilters().get(0).action()); - Assertions.assertEquals("c", model.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(model.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, - model.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("wznm", model.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(model.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, - model.properties().safetyProviders().get(0).source()); - Assertions.assertEquals("tbnnha", model.tags().get("oocrkvcikhnv")); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.ANNOTATING, model.properties().contentFilters().get(0).action()); + Assertions.assertEquals("qrvqq", model.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(model.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.properties().customBlocklists().get(0).source()); + Assertions.assertEquals("bfggjioolvr", 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("xuvw", model.tags().get("fbn")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiPolicyInner model = new RaiPolicyInner() - .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) - .withBasePolicyName("iftohqkvpu") + RaiPolicyInner model + = new RaiPolicyInner().withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.BLOCKING) + .withBasePolicyName("y") .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("plsaknynfsynljph") - .withEnabled(true) + new RaiPolicyContentFilter().withName("fq") + .withEnabled(false) .withSeverityThreshold(ContentLevel.HIGH) .withBlocking(true) + .withSource(RaiPolicyContentSource.PROMPT) + .withAction(RaiActionType.ANNOTATING), + new RaiPolicyContentFilter().withName("gikdgsz") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(false) .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) - .withAction(RaiActionType.RETRY), - new RaiPolicyContentFilter().withName("orzihle") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.MEDIUM) - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN) .withAction(RaiActionType.ANNOTATING))) .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("c") - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION), - new CustomBlocklistConfig().withBlocklistName("qioxi") + new CustomBlocklistConfig().withBlocklistName("qrvqq") .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL), - new CustomBlocklistConfig().withBlocklistName("ynkedyatrwyhqmib") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL), - new CustomBlocklistConfig().withBlocklistName("smypyynpc") + .withSource(RaiPolicyContentSource.PRE_RUN), + new CustomBlocklistConfig().withBlocklistName("rv") .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL))) + .withSource(RaiPolicyContentSource.POST_RUN))) .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("wznm") + new SafetyProviderConfig().withSafetyProviderName("bfggjioolvr") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_RUN), + new SafetyProviderConfig().withSafetyProviderName("k") .withBlocking(true) .withSource(RaiPolicyContentSource.POST_TOOL_CALL), - new SafetyProviderConfig().withSafetyProviderName("orgjhxbldt") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_RUN), - new SafetyProviderConfig().withSafetyProviderName("dmtnc") - .withBlocking(false) - .withSource(RaiPolicyContentSource.COMPLETION)))) - .withTags(mapOf("oocrkvcikhnv", "tbnnha", "gxk", "amqgxqquezikyw")); + new SafetyProviderConfig().withSafetyProviderName("ygvjayvblmh") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL)))) + .withTags(mapOf("fbn", "xuvw")); model = BinaryData.fromObject(model).toObject(RaiPolicyInner.class); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.properties().mode()); - Assertions.assertEquals("iftohqkvpu", model.properties().basePolicyName()); - Assertions.assertEquals("plsaknynfsynljph", model.properties().contentFilters().get(0).name()); - Assertions.assertTrue(model.properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, model.properties().mode()); + Assertions.assertEquals("y", model.properties().basePolicyName()); + Assertions.assertEquals("fq", 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.assertTrue(model.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, - model.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.RETRY, model.properties().contentFilters().get(0).action()); - Assertions.assertEquals("c", model.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(model.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, - model.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("wznm", model.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(model.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, - model.properties().safetyProviders().get(0).source()); - Assertions.assertEquals("tbnnha", model.tags().get("oocrkvcikhnv")); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.ANNOTATING, model.properties().contentFilters().get(0).action()); + Assertions.assertEquals("qrvqq", model.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(model.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.properties().customBlocklists().get(0).source()); + Assertions.assertEquals("bfggjioolvr", 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("xuvw", model.tags().get("fbn")); } // 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 17fbecbbfc87..751c0391130a 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 @@ -16,30 +16,27 @@ public final class RaiPolicyListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyListResult model = BinaryData.fromString( - "{\"nextLink\":\"pjrvxagl\",\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"tx\",\"contentFilters\":[{\"name\":\"kfcktqum\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"},{\"name\":\"fjhdg\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"RETRY\"},{\"name\":\"qidbqfatpxllrxcy\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PostToolCall\",\"action\":\"None\"},{\"name\":\"wdmjsjqbjhhyx\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PostToolCall\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"mareqnajxqugj\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"eddgssofw\",\"blocking\":true},{\"source\":\"PreRun\",\"blocklistName\":\"krmnjijpxacqqud\",\"blocking\":true},{\"source\":\"PreRun\",\"blocklistName\":\"aaabjyvayff\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"qogsexnevfd\",\"blocking\":false},{\"source\":\"Prompt\",\"safetyProviderName\":\"wzsyyceuzs\",\"blocking\":true}]},\"etag\":\"ud\",\"tags\":{\"aytdwkqbrq\":\"xtrthz\"},\"id\":\"paxh\",\"name\":\"xiilivpdtiirqt\",\"type\":\"qoaxoruzfgs\"},{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"xleptramx\",\"contentFilters\":[{\"name\":\"lwnwxuqlcvydyp\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"None\"}],\"customBlocklists\":[{\"source\":\"Prompt\",\"blocklistName\":\"ebwnujhe\",\"blocking\":true},{\"source\":\"PostRun\",\"blocklistName\":\"kcrodtjinfw\",\"blocking\":false},{\"source\":\"PostRun\",\"blocklistName\":\"acjvefkd\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"fpagaowpulp\",\"blocking\":false},{\"source\":\"Prompt\",\"safetyProviderName\":\"yxkqjnsjer\",\"blocking\":true}]},\"etag\":\"gxsds\",\"tags\":{\"nqicvinvkjjxdxrb\":\"mpsbzkfzbeyv\"},\"id\":\"kzclewyh\",\"name\":\"lw\",\"type\":\"aztz\"}]}") + "{\"nextLink\":\"sj\",\"value\":[{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"ezl\",\"contentFilters\":[{\"name\":\"iakp\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"HITL\"},{\"name\":\"jihy\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PreToolCall\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"p\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"wx\",\"blocking\":false},{\"source\":\"PreRun\",\"safetyProviderName\":\"hfstotxhojujbyp\",\"blocking\":false},{\"source\":\"PreRun\",\"safetyProviderName\":\"hixbjxyfwnyl\",\"blocking\":false}]},\"etag\":\"lsttpkiwkkbnuj\",\"tags\":{\"doiwi\":\"vtylbfpncu\",\"cbihwqk\":\"thtywub\",\"umwctondz\":\"fdntwjchrdgoih\",\"tov\":\"luudfdlwggytsb\"},\"id\":\"gseinq\",\"name\":\"iufxqknpir\",\"type\":\"nepttwqmsni\"},{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"r\",\"contentFilters\":[{\"name\":\"ijnkrxfrdd\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"ANNOTATING\"},{\"name\":\"sxiftozq\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PreToolCall\",\"action\":\"RETRY\"},{\"name\":\"zhonnxkrlgnyhmo\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"hqxvcxgfrpdsofbs\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"Completion\",\"safetyProviderName\":\"wdvzyy\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"vj\",\"blocking\":false}]},\"etag\":\"f\",\"tags\":{\"ejnt\":\"opqgikyzirtxdyux\",\"dxtqmieoxo\":\"sewgioilqukr\",\"hhavgrvkffovjz\":\"ggufhyaomtb\",\"gjmfxumvfcl\":\"pjbi\"},\"id\":\"ovwxnbkfezzxsc\",\"name\":\"hwzdgirujbz\",\"type\":\"omvzzbtd\"}]}") .toObject(RaiPolicyListResult.class); - Assertions.assertEquals("pjrvxagl", model.nextLink()); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.value().get(0).properties().mode()); - Assertions.assertEquals("tx", model.value().get(0).properties().basePolicyName()); - Assertions.assertEquals("kfcktqum", model.value().get(0).properties().contentFilters().get(0).name()); + Assertions.assertEquals("sj", model.nextLink()); + Assertions.assertEquals(RaiPolicyMode.DEFERRED, model.value().get(0).properties().mode()); + Assertions.assertEquals("ezl", model.value().get(0).properties().basePolicyName()); + Assertions.assertEquals("iakp", 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.COMPLETION, model.value().get(0).properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, - model.value().get(0).properties().contentFilters().get(0).action()); - Assertions.assertEquals("mareqnajxqugj", - model.value().get(0).properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(model.value().get(0).properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiActionType.HITL, model.value().get(0).properties().contentFilters().get(0).action()); + Assertions.assertEquals("p", model.value().get(0).properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(model.value().get(0).properties().customBlocklists().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.value().get(0).properties().customBlocklists().get(0).source()); - Assertions.assertEquals("qogsexnevfd", - model.value().get(0).properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals("wx", model.value().get(0).properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertFalse(model.value().get(0).properties().safetyProviders().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.value().get(0).properties().safetyProviders().get(0).source()); - Assertions.assertEquals("xtrthz", model.value().get(0).tags().get("aytdwkqbrq")); + Assertions.assertEquals("vtylbfpncu", model.value().get(0).tags().get("doiwi")); } } 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 b429dab444e5..f7c303967ec9 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 @@ -20,61 +20,77 @@ public final class RaiPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyProperties model = BinaryData.fromString( - "{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"nayrhyrnxxmueedn\",\"contentFilters\":[{\"name\":\"stkwqqtch\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"None\"},{\"name\":\"dvwvgpio\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"agvrvmnpkuk\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"gwimfn\",\"blocking\":false}]}") + "{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"cbdreaxhcexd\",\"contentFilters\":[{\"name\":\"ahqkg\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PostToolCall\",\"action\":\"HITL\"},{\"name\":\"f\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PreRun\",\"action\":\"HITL\"},{\"name\":\"vmtgjqppy\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"None\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"xkmcwaekrrjre\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PreToolCall\",\"safetyProviderName\":\"hjglikk\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"bq\",\"blocking\":false},{\"source\":\"Completion\",\"safetyProviderName\":\"vfelfktgplcrpwj\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"gbrn\",\"blocking\":false}]}") .toObject(RaiPolicyProperties.class); - Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.mode()); - Assertions.assertEquals("nayrhyrnxxmueedn", model.basePolicyName()); - Assertions.assertEquals("stkwqqtch", model.contentFilters().get(0).name()); - Assertions.assertTrue(model.contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.HIGH, model.contentFilters().get(0).severityThreshold()); - Assertions.assertTrue(model.contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.NONE, model.contentFilters().get(0).action()); - Assertions.assertEquals("agvrvmnpkuk", model.customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.mode()); + Assertions.assertEquals("cbdreaxhcexd", model.basePolicyName()); + Assertions.assertEquals("ahqkg", model.contentFilters().get(0).name()); + Assertions.assertFalse(model.contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.LOW, model.contentFilters().get(0).severityThreshold()); + Assertions.assertFalse(model.contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.HITL, model.contentFilters().get(0).action()); + Assertions.assertEquals("xkmcwaekrrjre", model.customBlocklists().get(0).blocklistName()); Assertions.assertFalse(model.customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.customBlocklists().get(0).source()); - Assertions.assertEquals("gwimfn", model.safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.customBlocklists().get(0).source()); + Assertions.assertEquals("hjglikk", model.safetyProviders().get(0).safetyProviderName()); Assertions.assertFalse(model.safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.safetyProviders().get(0).source()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.safetyProviders().get(0).source()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiPolicyProperties model = new RaiPolicyProperties().withMode(RaiPolicyMode.DEFAULT) - .withBasePolicyName("nayrhyrnxxmueedn") + RaiPolicyProperties model = new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) + .withBasePolicyName("cbdreaxhcexd") .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("stkwqqtch") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION) - .withAction(RaiActionType.NONE), - new RaiPolicyContentFilter().withName("dvwvgpio") + new RaiPolicyContentFilter().withName("ahqkg") .withEnabled(false) .withSeverityThreshold(ContentLevel.LOW) - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) - .withAction(RaiActionType.ANNOTATING))) - .withCustomBlocklists(Arrays.asList(new CustomBlocklistConfig().withBlocklistName("agvrvmnpkuk") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_RUN))) - .withSafetyProviders(Arrays.asList(new SafetyProviderConfig().withSafetyProviderName("gwimfn") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL) + .withAction(RaiActionType.HITL), + new RaiPolicyContentFilter().withName("f") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_RUN) + .withAction(RaiActionType.HITL), + new RaiPolicyContentFilter().withName("vmtgjqppy") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT) + .withAction(RaiActionType.NONE))) + .withCustomBlocklists(Arrays.asList(new CustomBlocklistConfig().withBlocklistName("xkmcwaekrrjre") .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_RUN))); + .withSource(RaiPolicyContentSource.POST_RUN))) + .withSafetyProviders(Arrays.asList( + new SafetyProviderConfig().withSafetyProviderName("hjglikk") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL), + new SafetyProviderConfig().withSafetyProviderName("bq") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new SafetyProviderConfig().withSafetyProviderName("vfelfktgplcrpwj") + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION), + new SafetyProviderConfig().withSafetyProviderName("gbrn") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_RUN))); model = BinaryData.fromObject(model).toObject(RaiPolicyProperties.class); - Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.mode()); - Assertions.assertEquals("nayrhyrnxxmueedn", model.basePolicyName()); - Assertions.assertEquals("stkwqqtch", model.contentFilters().get(0).name()); - Assertions.assertTrue(model.contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.HIGH, model.contentFilters().get(0).severityThreshold()); - Assertions.assertTrue(model.contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.NONE, model.contentFilters().get(0).action()); - Assertions.assertEquals("agvrvmnpkuk", model.customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.mode()); + Assertions.assertEquals("cbdreaxhcexd", model.basePolicyName()); + Assertions.assertEquals("ahqkg", model.contentFilters().get(0).name()); + Assertions.assertFalse(model.contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.LOW, model.contentFilters().get(0).severityThreshold()); + Assertions.assertFalse(model.contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.HITL, model.contentFilters().get(0).action()); + Assertions.assertEquals("xkmcwaekrrjre", model.customBlocklists().get(0).blocklistName()); Assertions.assertFalse(model.customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.customBlocklists().get(0).source()); - Assertions.assertEquals("gwimfn", model.safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.customBlocklists().get(0).source()); + Assertions.assertEquals("hjglikk", model.safetyProviders().get(0).safetyProviderName()); Assertions.assertFalse(model.safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.safetyProviders().get(0).source()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.safetyProviders().get(0).source()); } } 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 ab25b70354c0..f9991075f1b9 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 @@ -11,19 +11,18 @@ public final class RaiSafetyProviderConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiSafetyProviderConfig model - = BinaryData.fromString("{\"safetyProviderName\":\"xbjhwuaanozjosph\",\"blocking\":false}") - .toObject(RaiSafetyProviderConfig.class); - Assertions.assertEquals("xbjhwuaanozjosph", model.safetyProviderName()); - Assertions.assertFalse(model.blocking()); + RaiSafetyProviderConfig model = BinaryData.fromString("{\"safetyProviderName\":\"ibreb\",\"blocking\":true}") + .toObject(RaiSafetyProviderConfig.class); + Assertions.assertEquals("ibreb", model.safetyProviderName()); + Assertions.assertTrue(model.blocking()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiSafetyProviderConfig model - = new RaiSafetyProviderConfig().withSafetyProviderName("xbjhwuaanozjosph").withBlocking(false); + = new RaiSafetyProviderConfig().withSafetyProviderName("ibreb").withBlocking(true); model = BinaryData.fromObject(model).toObject(RaiSafetyProviderConfig.class); - Assertions.assertEquals("xbjhwuaanozjosph", model.safetyProviderName()); - Assertions.assertFalse(model.blocking()); + Assertions.assertEquals("ibreb", 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 e3d1040d280d..37d8523ed81f 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,33 +18,37 @@ public final class RaiToolLabelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelInner model = BinaryData.fromString( - "{\"properties\":{\"toolConnectionName\":\"totxhojujb\",\"accountScope\":{\"labelValues\":{\"vhixbjxy\":\"mc\",\"yl\":\"w\",\"ujrywvtyl\":\"coolsttpkiwkkb\"}},\"projectScopes\":[{\"project\":\"ncu\",\"labelValues\":{\"cbihwqk\":\"oiwiithtywub\",\"umwctondz\":\"fdntwjchrdgoih\"}},{\"project\":\"luudfdlwggytsb\",\"labelValues\":{\"x\":\"ovvtgseinqfiu\"}}]},\"etag\":\"npirgnepttw\",\"tags\":{\"pij\":\"niffcdmqnroj\",\"xfrdd\":\"k\"},\"id\":\"ratiz\",\"name\":\"ronasxift\",\"type\":\"zq\"}") + "{\"properties\":{\"toolConnectionName\":\"kambtrnegvmnvuqe\",\"accountScope\":{\"labelValues\":{\"vestmjl\":\"spastjbkkdmf\",\"peewchpxlkt\":\"rriloz\",\"ufuztcktyhjtq\":\"kuziycsle\",\"mmrqz\":\"dcgzul\"}},\"projectScopes\":[{\"project\":\"jvpglydzgk\",\"labelValues\":{\"epr\":\"qeevt\",\"aawzqadfl\":\"utnwytpzdmovzvf\",\"riglaec\":\"z\"}},{\"project\":\"ndtic\",\"labelValues\":{\"lqtmldgxob\":\"pvz\",\"iayz\":\"irclnpk\"}},{\"project\":\"iykhy\",\"labelValues\":{\"omdynhdwdigum\":\"fvjlboxqvkjlmx\"}},{\"project\":\"nraauzz\",\"labelValues\":{\"uvvfonkp\":\"jazysdzhezwwvaiq\"}}]},\"etag\":\"qyikvy\",\"tags\":{\"jfybvpoekrsgsgb\":\"yavluwmncstt\"},\"id\":\"uzqgnjdgkynsc\",\"name\":\"i\",\"type\":\"hzvhxnkomtkubo\"}") .toObject(RaiToolLabelInner.class); - Assertions.assertEquals("totxhojujb", model.properties().toolConnectionName()); - Assertions.assertEquals("mc", model.properties().accountScope().labelValues().get("vhixbjxy")); - Assertions.assertEquals("ncu", model.properties().projectScopes().get(0).project()); - Assertions.assertEquals("oiwiithtywub", model.properties().projectScopes().get(0).labelValues().get("cbihwqk")); - Assertions.assertEquals("niffcdmqnroj", model.tags().get("pij")); + Assertions.assertEquals("kambtrnegvmnvuqe", model.properties().toolConnectionName()); + Assertions.assertEquals("spastjbkkdmf", model.properties().accountScope().labelValues().get("vestmjl")); + Assertions.assertEquals("jvpglydzgk", model.properties().projectScopes().get(0).project()); + Assertions.assertEquals("qeevt", model.properties().projectScopes().get(0).labelValues().get("epr")); + Assertions.assertEquals("yavluwmncstt", model.tags().get("jfybvpoekrsgsgb")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiToolLabelInner model = new RaiToolLabelInner() - .withProperties(new RaiToolLabelProperties().withToolConnectionName("totxhojujb") - .withAccountScope(new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("vhixbjxy", "mc", "yl", "w", "ujrywvtyl", "coolsttpkiwkkb"))) + .withProperties(new RaiToolLabelProperties().withToolConnectionName("kambtrnegvmnvuqe") + .withAccountScope(new RaiToolLabelPropertiesAccountScope().withLabelValues(mapOf("vestmjl", + "spastjbkkdmf", "peewchpxlkt", "rriloz", "ufuztcktyhjtq", "kuziycsle", "mmrqz", "dcgzul"))) .withProjectScopes(Arrays.asList( - new RaiToolLabelPropertiesProjectScopesItem().withProject("ncu") - .withLabelValues(mapOf("cbihwqk", "oiwiithtywub", "umwctondz", "fdntwjchrdgoih")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("luudfdlwggytsb") - .withLabelValues(mapOf("x", "ovvtgseinqfiu"))))) - .withTags(mapOf("pij", "niffcdmqnroj", "xfrdd", "k")); + new RaiToolLabelPropertiesProjectScopesItem().withProject("jvpglydzgk") + .withLabelValues(mapOf("epr", "qeevt", "aawzqadfl", "utnwytpzdmovzvf", "riglaec", "z")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("ndtic") + .withLabelValues(mapOf("lqtmldgxob", "pvz", "iayz", "irclnpk")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("iykhy") + .withLabelValues(mapOf("omdynhdwdigum", "fvjlboxqvkjlmx")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("nraauzz") + .withLabelValues(mapOf("uvvfonkp", "jazysdzhezwwvaiq"))))) + .withTags(mapOf("jfybvpoekrsgsgb", "yavluwmncstt")); model = BinaryData.fromObject(model).toObject(RaiToolLabelInner.class); - Assertions.assertEquals("totxhojujb", model.properties().toolConnectionName()); - Assertions.assertEquals("mc", model.properties().accountScope().labelValues().get("vhixbjxy")); - Assertions.assertEquals("ncu", model.properties().projectScopes().get(0).project()); - Assertions.assertEquals("oiwiithtywub", model.properties().projectScopes().get(0).labelValues().get("cbihwqk")); - Assertions.assertEquals("niffcdmqnroj", model.tags().get("pij")); + Assertions.assertEquals("kambtrnegvmnvuqe", model.properties().toolConnectionName()); + Assertions.assertEquals("spastjbkkdmf", model.properties().accountScope().labelValues().get("vestmjl")); + Assertions.assertEquals("jvpglydzgk", model.properties().projectScopes().get(0).project()); + Assertions.assertEquals("qeevt", model.properties().projectScopes().get(0).labelValues().get("epr")); + Assertions.assertEquals("yavluwmncstt", model.tags().get("jfybvpoekrsgsgb")); } // 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 7b7dbd31cc96..249bc82bbb03 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 @@ -13,18 +13,19 @@ public final class RaiToolLabelPropertiesAccountScopeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiToolLabelPropertiesAccountScope model - = BinaryData.fromString("{\"labelValues\":{\"vj\":\"nu\",\"ikyzirtxdy\":\"rtkfawnopq\"}}") - .toObject(RaiToolLabelPropertiesAccountScope.class); - Assertions.assertEquals("nu", model.labelValues().get("vj")); + RaiToolLabelPropertiesAccountScope model = BinaryData.fromString( + "{\"labelValues\":{\"hcxgkmoyx\":\"vehhrvkbunzozu\",\"mfdn\":\"dyuib\",\"jnaeois\":\"zydvfvf\",\"vwmzhwplefaxvxil\":\"vhmgorffukis\"}}") + .toObject(RaiToolLabelPropertiesAccountScope.class); + Assertions.assertEquals("vehhrvkbunzozu", model.labelValues().get("hcxgkmoyx")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiToolLabelPropertiesAccountScope model - = new RaiToolLabelPropertiesAccountScope().withLabelValues(mapOf("vj", "nu", "ikyzirtxdy", "rtkfawnopq")); + = new RaiToolLabelPropertiesAccountScope().withLabelValues(mapOf("hcxgkmoyx", "vehhrvkbunzozu", "mfdn", + "dyuib", "jnaeois", "zydvfvf", "vwmzhwplefaxvxil", "vhmgorffukis")); model = BinaryData.fromObject(model).toObject(RaiToolLabelPropertiesAccountScope.class); - Assertions.assertEquals("nu", model.labelValues().get("vj")); + Assertions.assertEquals("vehhrvkbunzozu", model.labelValues().get("hcxgkmoyx")); } // 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 8648d5f30848..2fa37fa72314 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,20 +13,22 @@ public final class RaiToolLabelPropertiesProjectScopesItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiToolLabelPropertiesProjectScopesItem model - = BinaryData.fromString("{\"project\":\"x\",\"labelValues\":{\"rydxtqm\":\"jntpsewgioilqu\"}}") - .toObject(RaiToolLabelPropertiesProjectScopesItem.class); - Assertions.assertEquals("x", model.project()); - Assertions.assertEquals("jntpsewgioilqu", model.labelValues().get("rydxtqm")); + RaiToolLabelPropertiesProjectScopesItem model = BinaryData.fromString( + "{\"project\":\"btgn\",\"labelValues\":{\"vodggxdbee\":\"zeyqxtjjfzqlqhyc\",\"wiuagydwqf\":\"mieknlraria\",\"ocqwogfnzjvus\":\"ylyrfgiagtco\"}}") + .toObject(RaiToolLabelPropertiesProjectScopesItem.class); + Assertions.assertEquals("btgn", model.project()); + Assertions.assertEquals("zeyqxtjjfzqlqhyc", model.labelValues().get("vodggxdbee")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiToolLabelPropertiesProjectScopesItem model = new RaiToolLabelPropertiesProjectScopesItem().withProject("x") - .withLabelValues(mapOf("rydxtqm", "jntpsewgioilqu")); + RaiToolLabelPropertiesProjectScopesItem model = new RaiToolLabelPropertiesProjectScopesItem() + .withProject("btgn") + .withLabelValues( + mapOf("vodggxdbee", "zeyqxtjjfzqlqhyc", "wiuagydwqf", "mieknlraria", "ocqwogfnzjvus", "ylyrfgiagtco")); model = BinaryData.fromObject(model).toObject(RaiToolLabelPropertiesProjectScopesItem.class); - Assertions.assertEquals("x", model.project()); - Assertions.assertEquals("jntpsewgioilqu", model.labelValues().get("rydxtqm")); + Assertions.assertEquals("btgn", model.project()); + Assertions.assertEquals("zeyqxtjjfzqlqhyc", model.labelValues().get("vodggxdbee")); } // 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 b9b9dc40ddfe..c1a1f77b6ed7 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,26 +17,26 @@ public final class RaiToolLabelPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelProperties model = BinaryData.fromString( - "{\"toolConnectionName\":\"zh\",\"accountScope\":{\"labelValues\":{\"lgnyhmo\":\"sgogczhonnxk\",\"h\":\"sxkkg\"}},\"projectScopes\":[{\"project\":\"hxjbdhqxvc\",\"labelValues\":{\"buswdvzyy\":\"frpdsofbshrns\"}}]}") + "{\"toolConnectionName\":\"ppnvdxz\",\"accountScope\":{\"labelValues\":{\"vqagtltdhlf\":\"frbbc\",\"vgtrdcnifmzzs\":\"qojpy\"}},\"projectScopes\":[{\"project\":\"brn\",\"labelValues\":{\"m\":\"u\",\"fwafqrouda\":\"rafwgckhocxvdf\"}}]}") .toObject(RaiToolLabelProperties.class); - Assertions.assertEquals("zh", model.toolConnectionName()); - Assertions.assertEquals("sgogczhonnxk", model.accountScope().labelValues().get("lgnyhmo")); - Assertions.assertEquals("hxjbdhqxvc", model.projectScopes().get(0).project()); - Assertions.assertEquals("frpdsofbshrns", model.projectScopes().get(0).labelValues().get("buswdvzyy")); + Assertions.assertEquals("ppnvdxz", model.toolConnectionName()); + Assertions.assertEquals("frbbc", model.accountScope().labelValues().get("vqagtltdhlf")); + Assertions.assertEquals("brn", model.projectScopes().get(0).project()); + Assertions.assertEquals("u", model.projectScopes().get(0).labelValues().get("m")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiToolLabelProperties model = new RaiToolLabelProperties().withToolConnectionName("zh") + RaiToolLabelProperties model = new RaiToolLabelProperties().withToolConnectionName("ppnvdxz") .withAccountScope(new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("lgnyhmo", "sgogczhonnxk", "h", "sxkkg"))) - .withProjectScopes(Arrays.asList(new RaiToolLabelPropertiesProjectScopesItem().withProject("hxjbdhqxvc") - .withLabelValues(mapOf("buswdvzyy", "frpdsofbshrns")))); + .withLabelValues(mapOf("vqagtltdhlf", "frbbc", "vgtrdcnifmzzs", "qojpy"))) + .withProjectScopes(Arrays.asList(new RaiToolLabelPropertiesProjectScopesItem().withProject("brn") + .withLabelValues(mapOf("m", "u", "fwafqrouda", "rafwgckhocxvdf")))); model = BinaryData.fromObject(model).toObject(RaiToolLabelProperties.class); - Assertions.assertEquals("zh", model.toolConnectionName()); - Assertions.assertEquals("sgogczhonnxk", model.accountScope().labelValues().get("lgnyhmo")); - Assertions.assertEquals("hxjbdhqxvc", model.projectScopes().get(0).project()); - Assertions.assertEquals("frpdsofbshrns", model.projectScopes().get(0).labelValues().get("buswdvzyy")); + Assertions.assertEquals("ppnvdxz", model.toolConnectionName()); + Assertions.assertEquals("frbbc", model.accountScope().labelValues().get("vqagtltdhlf")); + Assertions.assertEquals("brn", model.projectScopes().get(0).project()); + Assertions.assertEquals("u", model.projectScopes().get(0).labelValues().get("m")); } // 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 79a0ad5e8a85..534d048d0823 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,14 +12,14 @@ public final class RaiToolLabelResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelResult model = BinaryData.fromString( - "{\"nextLink\":\"ox\",\"value\":[{\"properties\":{\"toolConnectionName\":\"ufhyaomtbgh\",\"accountScope\":{\"labelValues\":{\"fo\":\"rvk\"}},\"projectScopes\":[{\"project\":\"hpjbib\",\"labelValues\":{\"nbkfezzxscy\":\"mfxumvfcluyovw\",\"vzzbtdcq\":\"wzdgirujbzbo\"}}]},\"etag\":\"niyujv\",\"tags\":{\"ssnrbgye\":\"wdsh\"},\"id\":\"ymsgaojfmwnc\",\"name\":\"tmr\",\"type\":\"hirctymoxoftpipi\"},{\"properties\":{\"toolConnectionName\":\"czuhxacpqjlihh\",\"accountScope\":{\"labelValues\":{\"ucvpamrs\":\"skasdvlmfwdgzxu\",\"risjnhnytxifqjz\":\"euzvx\",\"lw\":\"xmrhu\",\"woqhihe\":\"cesutrgjupauut\"}},\"projectScopes\":[{\"project\":\"w\",\"labelValues\":{\"cypsxjv\":\"nfqn\",\"zjxvydfcea\":\"oimwkslirc\",\"gdyftumrtwna\":\"vlhv\"}}]},\"etag\":\"slbi\",\"tags\":{\"qphchqnrnrpxehuw\":\"jgcyztsfmznba\",\"bydvkhbejdz\":\"ykqgaifmvik\"},\"id\":\"cvdsrhnj\",\"name\":\"volvtn\",\"type\":\"v\"},{\"properties\":{\"toolConnectionName\":\"zgemjdftuljlt\",\"accountScope\":{\"labelValues\":{\"o\":\"amtmcz\",\"ssxmojms\":\"ejwcwwqiok\"}},\"projectScopes\":[{\"project\":\"jpr\",\"labelValues\":{\"zheydbsdshmk\":\"wcfzqljyxgt\"}},{\"project\":\"maehvbbxurip\",\"labelValues\":{\"ckpyklyhplu\":\"fnhtbaxkgxyw\",\"gzibthostgktstv\":\"dpvruud\",\"odqkdlwwqfb\":\"xeclzedqbcvhzlhp\",\"lmbtxhwgfwsrt\":\"mlkxtrqjfs\"}}]},\"etag\":\"coezbrhubskh\",\"tags\":{\"kkqfqjbvle\":\"goo\"},\"id\":\"fmluiqtqzfavyvn\",\"name\":\"qybaryeua\",\"type\":\"jkqa\"}]}") + "{\"nextLink\":\"ld\",\"value\":[{\"properties\":{\"toolConnectionName\":\"xylfsb\",\"accountScope\":{\"labelValues\":{\"kb\":\"pysownbt\"}},\"projectScopes\":[{\"project\":\"jqctojcmisofie\",\"labelValues\":{\"plcwkhi\":\"efojyqdhcupl\"}}]},\"etag\":\"hlhzdsqtzbsrgno\",\"tags\":{\"oteyowc\":\"hfgmvecactxm\"},\"id\":\"qovekqvgqou\",\"name\":\"ifzmpjwyivqi\",\"type\":\"f\"},{\"properties\":{\"toolConnectionName\":\"vhrfsphuagrt\",\"accountScope\":{\"labelValues\":{\"yja\":\"eusqczkvyklxu\",\"bgq\":\"fmmfblcqcu\",\"metttwgd\":\"brta\",\"seypxiutcxapz\":\"lqxihhrmooiz\"}},\"projectScopes\":[{\"project\":\"petogebjox\",\"labelValues\":{\"abrqnkkzj\":\"hvnh\",\"rgaehvvibrxjj\":\"jb\"}},{\"project\":\"toqbeitpkxztmoob\",\"labelValues\":{\"dgfcwqmp\":\"ft\",\"hujswtwkozzwcul\":\"maqxzhemjyh\",\"j\":\"bawpfajnjwltlwt\",\"poaimlnwiaaomyl\":\"uktalhsnvkcdmxz\"}},{\"project\":\"eazulcs\",\"labelValues\":{\"jhlfzswpchwahf\":\"hwwn\",\"wlyxgncxyk\":\"ousnfepgfewe\"}},{\"project\":\"hdjhlimmbcx\",\"labelValues\":{\"pxtgqscjav\":\"bcporxvxcjzhqizx\"}}]},\"etag\":\"juhdqazkmtgguwpi\",\"tags\":{\"f\":\"jcivmmg\"},\"id\":\"iwrxgkn\",\"name\":\"uvyinzqodfvpgs\",\"type\":\"oxgsgbpfgzdjtx\"},{\"properties\":{\"toolConnectionName\":\"flbqvgaq\",\"accountScope\":{\"labelValues\":{\"srdvetn\":\"fcq\"}},\"projectScopes\":[{\"project\":\"tutnwlduycvuzhyr\",\"labelValues\":{\"qgsjjxun\":\"wipmvekdxuk\",\"hzjhf\":\"xgketwz\"}},{\"project\":\"mhv\",\"labelValues\":{\"uneqsxvmhf\":\"uvgp\",\"yue\":\"uzjyihsasbhudypo\"}},{\"project\":\"slynsqyrpfoo\",\"labelValues\":{\"gqdnfwqzd\":\"lttymsjn\",\"nfhqlyvijouwivk\":\"gtilax\",\"ikvcpwp\":\"oyzunbixxr\",\"rkenx\":\"clrcivtsox\"}}]},\"etag\":\"yyefrpmpdnqqs\",\"tags\":{\"vmm\":\"ao\",\"itgvkx\":\"npqfrtqlkzmeg\"},\"id\":\"yqdrf\",\"name\":\"gcealzxwh\",\"type\":\"ansym\"},{\"properties\":{\"toolConnectionName\":\"qhlwigdivbkbxgo\",\"accountScope\":{\"labelValues\":{\"e\":\"uwasqvd\",\"uxakjsqzhzbezk\":\"y\",\"kgfmocwahpq\":\"imsidxasicddyvvj\",\"jhhn\":\"atjeaahh\"}},\"projectScopes\":[{\"project\":\"ybbjjidjksyx\",\"labelValues\":{\"euaulxu\":\"xvxevblbjednljla\",\"nlsvxeiz\":\"smjbnkppxyn\",\"ffeycx\":\"gwklnsr\"}},{\"project\":\"ktp\",\"labelValues\":{\"kzddrtkgdojbmxva\":\"merteeammxqiek\",\"vecuijpx\":\"refdee\",\"wprtu\":\"xs\"}}]},\"etag\":\"sawddjibabxvi\",\"tags\":{\"zeexavoxtfgle\":\"v\",\"pypqtgsfj\":\"dmdqb\",\"db\":\"cbslhhx\",\"irudh\":\"vodhtn\"},\"id\":\"mes\",\"name\":\"kdlpa\",\"type\":\"zrcxfailcfxwmdbo\"}]}") .toObject(RaiToolLabelResult.class); - Assertions.assertEquals("ox", model.nextLink()); - Assertions.assertEquals("ufhyaomtbgh", model.value().get(0).properties().toolConnectionName()); - Assertions.assertEquals("rvk", model.value().get(0).properties().accountScope().labelValues().get("fo")); - Assertions.assertEquals("hpjbib", model.value().get(0).properties().projectScopes().get(0).project()); - Assertions.assertEquals("mfxumvfcluyovw", - model.value().get(0).properties().projectScopes().get(0).labelValues().get("nbkfezzxscy")); - Assertions.assertEquals("wdsh", model.value().get(0).tags().get("ssnrbgye")); + Assertions.assertEquals("ld", model.nextLink()); + Assertions.assertEquals("xylfsb", model.value().get(0).properties().toolConnectionName()); + Assertions.assertEquals("pysownbt", model.value().get(0).properties().accountScope().labelValues().get("kb")); + Assertions.assertEquals("jqctojcmisofie", model.value().get(0).properties().projectScopes().get(0).project()); + Assertions.assertEquals("efojyqdhcupl", + model.value().get(0).properties().projectScopes().get(0).labelValues().get("plcwkhi")); + Assertions.assertEquals("hfgmvecactxm", model.value().get(0).tags().get("oteyowc")); } } 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 b45f8aea8a9f..c0554d9bcc11 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\":\"lniwmcpmrrd\",\"accountScope\":{\"labelValues\":{\"hbeae\":\"vmi\",\"ner\":\"jzmhkdclacroczfm\"}},\"projectScopes\":[{\"project\":\"uxzshxz\",\"labelValues\":{\"l\":\"bzuzu\",\"cgwfsgqkstyecu\":\"vzske\",\"jparda\":\"yu\"}},{\"project\":\"sjcfma\",\"labelValues\":{\"okxizekuvfrjwuc\":\"zdqwuzvcm\",\"zvajbvbnkrdem\":\"o\"}},{\"project\":\"idackzidgzwdyd\",\"labelValues\":{\"tpjfojiunrlshxuk\":\"isvpztdivykpxkqe\",\"oancdrco\":\"sykdtoi\"}},{\"project\":\"nvxuldxonckb\",\"labelValues\":{\"xz\":\"blfxlupibaqzi\",\"klqiyndveqel\":\"zweghlwwbogvg\",\"vd\":\"b\",\"o\":\"trkzxsgtznsvlrds\"}}]},\"etag\":\"im\",\"tags\":{\"lousdvrgptqm\":\"noxaxnrqaqotnndx\"},\"id\":\"zjdrp\",\"name\":\"zfulgyctsdbtq\",\"type\":\"kujdsooxrqwoe\"}"; + = "{\"properties\":{\"toolConnectionName\":\"wvumosqircamqprl\",\"accountScope\":{\"labelValues\":{\"tag\":\"gejcvjkjyczc\",\"mzsizzhravrcjk\":\"lajdyoljeqyxq\",\"nqxgz\":\"ymgqbgcx\",\"skirhn\":\"lermkmerg\"}},\"projectScopes\":[{\"project\":\"kcbkfukdlj\",\"labelValues\":{\"loowwzizznyufp\":\"vtsdydshkpafy\",\"dkqiyv\":\"zstifgufyj\",\"qh\":\"djokgwesym\",\"ujqbbgsimwejl\":\"qpfzlpejtznxlue\"}},{\"project\":\"bkbpjzobd\",\"labelValues\":{\"kfwfatgawphn\":\"cpraswkuhydtnac\"}},{\"project\":\"kivdwgtqcume\",\"labelValues\":{\"skowkrbhzhrbkh\":\"aaqgoqbdiuycs\",\"cyhfaimqvdru\":\"mqowiuasfgqg\"}}]},\"etag\":\"kgyfpeoehgfmqm\",\"tags\":{\"xplhpeva\":\"ixvlz\",\"vvbq\":\"yntvzjyielbq\",\"cqx\":\"knmp\"},\"id\":\"qa\",\"name\":\"ifubnsnstlpwqp\",\"type\":\"nxjkhtupsvyouw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,32 +36,24 @@ public void testCreateOrUpdateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - RaiToolLabel response - = manager.raiToolLabels() - .define("sybkekymffzt") - .withExistingAccount("uuzhw", "ladpcmhjha") - .withTags(mapOf("sjqhenigbeqngu", "arkptgongruatsyi", "deayscseydzje", "aby")) - .withProperties(new RaiToolLabelProperties().withToolConnectionName("lscvqsyeiihf") - .withAccountScope(new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("hogsmgbvmtd", "uihyeseuugcig", "vkbiw", "rqbebjnfveglab"))) - .withProjectScopes(Arrays.asList( - new RaiToolLabelPropertiesProjectScopesItem().withProject("tfgfic") - .withLabelValues(mapOf("bcakzn", "yhizpaczmu")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("okh") - .withLabelValues(mapOf("azdnck", "twhrjsdm", "lhzqpxzbawkikcdg", "dbjp", "xdede", - "hbssdpjeyo", "wh", "f")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("gxsur") - .withLabelValues(mapOf("zjk", "qrshzzbgullcxiq", "rouigdmfivjqte", "xdupnamg")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("dqqigdydkghpc") - .withLabelValues(mapOf("fxlapjajodmkrrw", "wqirvtktyhhm", "qlujqgi", "pgqvqo", "hpqvcts", - "abwlyvx", "zhasupmlppdpgzvz", "aeuhwwsknstvz"))))) - .create(); + RaiToolLabel response = manager.raiToolLabels() + .define("h") + .withExistingAccount("ykbkkteozejogmk", "rvvmvmcofn") + .withTags(mapOf("phymc", "sdfedsbgzancoin", "kltvdhqnufbx", "i")) + .withProperties(new RaiToolLabelProperties().withToolConnectionName("snosnqliwkmzojf") + .withAccountScope(new RaiToolLabelPropertiesAccountScope() + .withLabelValues(mapOf("zgbjbhrpgi", "lhtgmkn", "ixpqj", "sttcucrcmm", "lna", "wifhbksldttohq"))) + .withProjectScopes(Arrays.asList(new RaiToolLabelPropertiesProjectScopesItem().withProject("gsiqikvllr") + .withLabelValues(mapOf("glxkoikmtrawrqk", "p", "lweeprne", "awbunmpaklw", "xscbduxapgrcqe", + "zltkaszfj", "dls", "mvrdjomlnwsbv"))))) + .create(); - Assertions.assertEquals("lniwmcpmrrd", response.properties().toolConnectionName()); - Assertions.assertEquals("vmi", response.properties().accountScope().labelValues().get("hbeae")); - Assertions.assertEquals("uxzshxz", response.properties().projectScopes().get(0).project()); - Assertions.assertEquals("bzuzu", response.properties().projectScopes().get(0).labelValues().get("l")); - Assertions.assertEquals("noxaxnrqaqotnndx", response.tags().get("lousdvrgptqm")); + Assertions.assertEquals("wvumosqircamqprl", response.properties().toolConnectionName()); + Assertions.assertEquals("gejcvjkjyczc", response.properties().accountScope().labelValues().get("tag")); + Assertions.assertEquals("kcbkfukdlj", response.properties().projectScopes().get(0).project()); + Assertions.assertEquals("vtsdydshkpafy", + response.properties().projectScopes().get(0).labelValues().get("loowwzizznyufp")); + Assertions.assertEquals("ixvlz", response.tags().get("xplhpeva")); } // 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 95f88afd5c38..cf1c30fb4aa2 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\":\"nlmsoo\",\"accountScope\":{\"labelValues\":{\"yswcrptveajczx\":\"ecdh\",\"yuqh\":\"lgsrgkrfizrpywlp\",\"fuofixcnpcfykkp\":\"lmcskyk\"}},\"projectScopes\":[{\"project\":\"pawmpjprdp\",\"labelValues\":{\"wzlgzawkgy\":\"pcfpcfj\",\"zxkzrntmkct\":\"peyamnnidmdiaw\",\"hqodv\":\"huosgwqpsqaz\"}},{\"project\":\"gcnbhcbmjk\",\"labelValues\":{\"jmfmeftvhkm\":\"ibniynts\"}}]},\"etag\":\"gjrhs\",\"tags\":{\"fogxhcxnw\":\"gmjgrul\"},\"id\":\"pfdzxcouzfwofw\",\"name\":\"k\",\"type\":\"kzkdtzxsoednlwg\"}"; + = "{\"properties\":{\"toolConnectionName\":\"apejovtkwx\",\"accountScope\":{\"labelValues\":{\"mjenvjeatea\":\"hnoyrzaaoeeh\",\"xoxdjxldnaryyi\":\"xc\",\"edoyqxlunkft\":\"zkdolrndwdbvxvza\"}},\"projectScopes\":[{\"project\":\"xqqxmyzkla\",\"labelValues\":{\"ohrvmz\":\"n\"}},{\"project\":\"qr\",\"labelValues\":{\"ivznllas\":\"a\"}},{\"project\":\"k\",\"labelValues\":{\"aihxjtgzgtaiywbq\":\"hjqjpv\",\"mhljqlxspm\":\"roigbsfsgsaenwld\",\"ryldsxeb\":\"jc\",\"hefr\":\"hsxrznmgsdaluyc\"}},{\"project\":\"hs\",\"labelValues\":{\"ludca\":\"erbgpxeb\",\"tnsewou\":\"tujraxdtpryjm\",\"s\":\"ly\"}}]},\"etag\":\"yljurkeposehqqyl\",\"tags\":{\"xerxxxoteehk\":\"twjwdsdlzm\",\"bap\":\"owgomvvhxowp\",\"mpspfeylq\":\"pxraqaw\"},\"id\":\"cvvuj\",\"name\":\"xayg\",\"type\":\"xrkgjn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiToolLabel response = manager.raiToolLabels() - .getWithResponse("u", "jew", "ahwkxjjm", com.azure.core.util.Context.NONE) + .getWithResponse("fwjlof", "ekfsrm", "uklajvcfoc", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("nlmsoo", response.properties().toolConnectionName()); - Assertions.assertEquals("ecdh", response.properties().accountScope().labelValues().get("yswcrptveajczx")); - Assertions.assertEquals("pawmpjprdp", response.properties().projectScopes().get(0).project()); - Assertions.assertEquals("pcfpcfj", - response.properties().projectScopes().get(0).labelValues().get("wzlgzawkgy")); - Assertions.assertEquals("gmjgrul", response.tags().get("fogxhcxnw")); + Assertions.assertEquals("apejovtkwx", response.properties().toolConnectionName()); + Assertions.assertEquals("hnoyrzaaoeeh", response.properties().accountScope().labelValues().get("mjenvjeatea")); + Assertions.assertEquals("xqqxmyzkla", response.properties().projectScopes().get(0).project()); + Assertions.assertEquals("n", response.properties().projectScopes().get(0).labelValues().get("ohrvmz")); + Assertions.assertEquals("twjwdsdlzm", response.tags().get("xerxxxoteehk")); } } 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 fc0f69e3b141..e2e5a2e15294 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\":\"kgtlzl\",\"accountScope\":{\"labelValues\":{\"bmxlxm\":\"xcznnhzkb\",\"toqcahfsgbjm\":\"tygeqzus\"}},\"projectScopes\":[{\"project\":\"esrfwsszvlcwli\",\"labelValues\":{\"ipfjwfoygizmshx\":\"lntfxxcrq\",\"jdzjsjzn\":\"baizabulnvgskjto\"}}]},\"etag\":\"xqqm\",\"tags\":{\"zocxmtfshksnyzm\":\"aydhf\",\"bnl\":\"pamwbw\"},\"id\":\"cefiqdkt\",\"name\":\"tkvi\",\"type\":\"lpfliwoyn\"}]}"; + = "{\"value\":[{\"properties\":{\"toolConnectionName\":\"opac\",\"accountScope\":{\"labelValues\":{\"ngpmillxgjsci\":\"dvikm\"}},\"projectScopes\":[{\"project\":\"soriobijeiydyeu\",\"labelValues\":{\"ayrgwy\":\"hbo\",\"pdweoft\":\"ri\",\"a\":\"or\",\"qkmv\":\"gsioc\"}},{\"project\":\"a\",\"labelValues\":{\"htjnwosstfjxtv\":\"vzff\",\"qfcwr\":\"xx\",\"hjmbji\":\"iomxeezw\",\"hpyvdkgdet\":\"egmxdbsohc\"}},{\"project\":\"z\",\"labelValues\":{\"nsm\":\"anzbjekwuyckyvn\",\"ujqjtotdxp\":\"ffiwjbctvbp\"}}]},\"etag\":\"cslhwuusi\",\"tags\":{\"milddxjxdu\":\"tybhjuxidhhx\",\"rslaatep\":\"xwjwilm\"},\"id\":\"ujjzgxq\",\"name\":\"qwlxrhg\",\"type\":\"vhvtq\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiToolLabels().list("ihezomucmq", "isnionetbzdrdpue", com.azure.core.util.Context.NONE); + = manager.raiToolLabels().list("zpaslavxjfiuo", "pieidzlvssqy", com.azure.core.util.Context.NONE); - Assertions.assertEquals("kgtlzl", response.iterator().next().properties().toolConnectionName()); - Assertions.assertEquals("xcznnhzkb", - response.iterator().next().properties().accountScope().labelValues().get("bmxlxm")); - Assertions.assertEquals("esrfwsszvlcwli", + Assertions.assertEquals("opac", response.iterator().next().properties().toolConnectionName()); + Assertions.assertEquals("dvikm", + response.iterator().next().properties().accountScope().labelValues().get("ngpmillxgjsci")); + Assertions.assertEquals("soriobijeiydyeu", response.iterator().next().properties().projectScopes().get(0).project()); - Assertions.assertEquals("lntfxxcrq", - response.iterator().next().properties().projectScopes().get(0).labelValues().get("ipfjwfoygizmshx")); - Assertions.assertEquals("aydhf", response.iterator().next().tags().get("zocxmtfshksnyzm")); + Assertions.assertEquals("hbo", + response.iterator().next().properties().projectScopes().get(0).labelValues().get("ayrgwy")); + Assertions.assertEquals("tybhjuxidhhx", response.iterator().next().tags().get("milddxjxdu")); } } 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 aa61de134b7b..de70788089fd 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\":\"pip\",\"topicName\":\"ltha\",\"description\":\"x\",\"sampleBlobUrl\":\"mwutwbdsre\",\"status\":\"drhneuyow\",\"failedReason\":\"d\",\"createdAt\":\"2021-09-27T03:48:20Z\",\"lastModifiedAt\":\"2021-09-11T22:02:50Z\"},\"etag\":\"bi\",\"tags\":{\"mejzanlfzxia\":\"pikpz\",\"okixrjqcir\":\"rmbzo\",\"szrnwo\":\"zpfrla\"},\"id\":\"ndfpwpj\",\"name\":\"lwbtlhf\",\"type\":\"sj\"}") + "{\"properties\":{\"topicId\":\"voqyt\",\"topicName\":\"yo\",\"description\":\"blgyavutpthj\",\"sampleBlobUrl\":\"oismsksbpimlqol\",\"status\":\"kcgxxlxsffgcvi\",\"failedReason\":\"zdwlvwlyoupfgfb\",\"createdAt\":\"2021-11-28T20:48:57Z\",\"lastModifiedAt\":\"2021-08-08T19:25:39Z\"},\"etag\":\"hgkfmin\",\"tags\":{\"tsttktlahbq\":\"wzf\",\"mmqtgqqqxhr\":\"ctxtgzukxi\",\"juisavokqdzf\":\"xrxc\"},\"id\":\"zivj\",\"name\":\"frqttbajlkatnw\",\"type\":\"yiopi\"}") .toObject(RaiTopicInner.class); - Assertions.assertEquals("pip", model.properties().topicId()); - Assertions.assertEquals("ltha", model.properties().topicName()); - Assertions.assertEquals("x", model.properties().description()); - Assertions.assertEquals("mwutwbdsre", model.properties().sampleBlobUrl()); - Assertions.assertEquals("drhneuyow", model.properties().status()); - Assertions.assertEquals("d", model.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-27T03:48:20Z"), model.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-11T22:02:50Z"), model.properties().lastModifiedAt()); - Assertions.assertEquals("pikpz", model.tags().get("mejzanlfzxia")); + Assertions.assertEquals("voqyt", model.properties().topicId()); + Assertions.assertEquals("yo", model.properties().topicName()); + Assertions.assertEquals("blgyavutpthj", model.properties().description()); + Assertions.assertEquals("oismsksbpimlqol", model.properties().sampleBlobUrl()); + Assertions.assertEquals("kcgxxlxsffgcvi", model.properties().status()); + Assertions.assertEquals("zdwlvwlyoupfgfb", model.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-28T20:48:57Z"), model.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-08T19:25:39Z"), model.properties().lastModifiedAt()); + Assertions.assertEquals("wzf", model.tags().get("tsttktlahbq")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiTopicInner model = new RaiTopicInner() - .withProperties(new RaiTopicProperties().withTopicId("pip") - .withTopicName("ltha") - .withDescription("x") - .withSampleBlobUrl("mwutwbdsre") - .withStatus("drhneuyow") - .withFailedReason("d") - .withCreatedAt(OffsetDateTime.parse("2021-09-27T03:48:20Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-09-11T22:02:50Z"))) - .withTags(mapOf("mejzanlfzxia", "pikpz", "okixrjqcir", "rmbzo", "szrnwo", "zpfrla")); + .withProperties(new RaiTopicProperties().withTopicId("voqyt") + .withTopicName("yo") + .withDescription("blgyavutpthj") + .withSampleBlobUrl("oismsksbpimlqol") + .withStatus("kcgxxlxsffgcvi") + .withFailedReason("zdwlvwlyoupfgfb") + .withCreatedAt(OffsetDateTime.parse("2021-11-28T20:48:57Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-08-08T19:25:39Z"))) + .withTags(mapOf("tsttktlahbq", "wzf", "mmqtgqqqxhr", "ctxtgzukxi", "juisavokqdzf", "xrxc")); model = BinaryData.fromObject(model).toObject(RaiTopicInner.class); - Assertions.assertEquals("pip", model.properties().topicId()); - Assertions.assertEquals("ltha", model.properties().topicName()); - Assertions.assertEquals("x", model.properties().description()); - Assertions.assertEquals("mwutwbdsre", model.properties().sampleBlobUrl()); - Assertions.assertEquals("drhneuyow", model.properties().status()); - Assertions.assertEquals("d", model.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-27T03:48:20Z"), model.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-11T22:02:50Z"), model.properties().lastModifiedAt()); - Assertions.assertEquals("pikpz", model.tags().get("mejzanlfzxia")); + Assertions.assertEquals("voqyt", model.properties().topicId()); + Assertions.assertEquals("yo", model.properties().topicName()); + Assertions.assertEquals("blgyavutpthj", model.properties().description()); + Assertions.assertEquals("oismsksbpimlqol", model.properties().sampleBlobUrl()); + Assertions.assertEquals("kcgxxlxsffgcvi", model.properties().status()); + Assertions.assertEquals("zdwlvwlyoupfgfb", model.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-28T20:48:57Z"), model.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-08T19:25:39Z"), model.properties().lastModifiedAt()); + Assertions.assertEquals("wzf", model.tags().get("tsttktlahbq")); } // 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 44cbb0e78a35..2d05ad47d22c 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\":\"hszfjvfb\",\"topicName\":\"feljagrqm\",\"description\":\"ldvriiiojnalghfk\",\"sampleBlobUrl\":\"vsexsowuelu\",\"status\":\"hahhxvrhmzkwpj\",\"failedReason\":\"wspughftqsxhqx\",\"createdAt\":\"2021-01-21T16:10:27Z\",\"lastModifiedAt\":\"2021-06-04T22:03:42Z\"}") + "{\"topicId\":\"qqfkuv\",\"topicName\":\"xkdmligo\",\"description\":\"brxk\",\"sampleBlobUrl\":\"loazuruocbgoo\",\"status\":\"te\",\"failedReason\":\"bfhjxakvvjgsl\",\"createdAt\":\"2021-09-04T03:37:27Z\",\"lastModifiedAt\":\"2021-01-13T10:59:26Z\"}") .toObject(RaiTopicProperties.class); - Assertions.assertEquals("hszfjvfb", model.topicId()); - Assertions.assertEquals("feljagrqm", model.topicName()); - Assertions.assertEquals("ldvriiiojnalghfk", model.description()); - Assertions.assertEquals("vsexsowuelu", model.sampleBlobUrl()); - Assertions.assertEquals("hahhxvrhmzkwpj", model.status()); - Assertions.assertEquals("wspughftqsxhqx", model.failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T16:10:27Z"), model.createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-04T22:03:42Z"), model.lastModifiedAt()); + Assertions.assertEquals("qqfkuv", model.topicId()); + Assertions.assertEquals("xkdmligo", model.topicName()); + Assertions.assertEquals("brxk", model.description()); + Assertions.assertEquals("loazuruocbgoo", model.sampleBlobUrl()); + Assertions.assertEquals("te", model.status()); + Assertions.assertEquals("bfhjxakvvjgsl", model.failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-04T03:37:27Z"), model.createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T10:59:26Z"), model.lastModifiedAt()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiTopicProperties model = new RaiTopicProperties().withTopicId("hszfjvfb") - .withTopicName("feljagrqm") - .withDescription("ldvriiiojnalghfk") - .withSampleBlobUrl("vsexsowuelu") - .withStatus("hahhxvrhmzkwpj") - .withFailedReason("wspughftqsxhqx") - .withCreatedAt(OffsetDateTime.parse("2021-01-21T16:10:27Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-06-04T22:03:42Z")); + RaiTopicProperties model = new RaiTopicProperties().withTopicId("qqfkuv") + .withTopicName("xkdmligo") + .withDescription("brxk") + .withSampleBlobUrl("loazuruocbgoo") + .withStatus("te") + .withFailedReason("bfhjxakvvjgsl") + .withCreatedAt(OffsetDateTime.parse("2021-09-04T03:37:27Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-01-13T10:59:26Z")); model = BinaryData.fromObject(model).toObject(RaiTopicProperties.class); - Assertions.assertEquals("hszfjvfb", model.topicId()); - Assertions.assertEquals("feljagrqm", model.topicName()); - Assertions.assertEquals("ldvriiiojnalghfk", model.description()); - Assertions.assertEquals("vsexsowuelu", model.sampleBlobUrl()); - Assertions.assertEquals("hahhxvrhmzkwpj", model.status()); - Assertions.assertEquals("wspughftqsxhqx", model.failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T16:10:27Z"), model.createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-04T22:03:42Z"), model.lastModifiedAt()); + Assertions.assertEquals("qqfkuv", model.topicId()); + Assertions.assertEquals("xkdmligo", model.topicName()); + Assertions.assertEquals("brxk", model.description()); + Assertions.assertEquals("loazuruocbgoo", model.sampleBlobUrl()); + Assertions.assertEquals("te", model.status()); + Assertions.assertEquals("bfhjxakvvjgsl", model.failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-04T03:37:27Z"), model.createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-13T10:59:26Z"), 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 872c89dfcce2..c580ab5cff15 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\":\"dxdigr\",\"value\":[{\"properties\":{\"topicId\":\"zdmsyqtfi\",\"topicName\":\"hbotzingamvppho\",\"description\":\"qzudphq\",\"sampleBlobUrl\":\"vdkfwynwcvtbvk\",\"status\":\"hmtnvy\",\"failedReason\":\"atkzwpcnpw\",\"createdAt\":\"2021-02-07T21:37:46Z\",\"lastModifiedAt\":\"2021-05-22T23:16:36Z\"},\"etag\":\"gvvs\",\"tags\":{\"wygzlvdnkfxusem\":\"ajguqf\",\"pfcqdp\":\"wzrmuh\",\"elvezrypq\":\"qxqvpsvuoymgc\",\"kerqwkyh\":\"mfe\"},\"id\":\"bopgxedkowepbqp\",\"name\":\"rfkbwccsnjvcdwxl\",\"type\":\"qek\"},{\"properties\":{\"topicId\":\"khtj\",\"topicName\":\"i\",\"description\":\"wfqatmtd\",\"sampleBlobUrl\":\"mdvy\",\"status\":\"ikdgszywkbir\",\"failedReason\":\"uzhlhkjoqrv\",\"createdAt\":\"2021-09-20T10:08:58Z\",\"lastModifiedAt\":\"2021-10-29T20:59:14Z\"},\"etag\":\"inrvgoupmfi\",\"tags\":{\"x\":\"ggjioolvr\",\"kkgll\":\"v\",\"uhbxvvy\":\"wjygvjayvblmhvk\"},\"id\":\"s\",\"name\":\"pbyrqufegxu\",\"type\":\"wz\"},{\"properties\":{\"topicId\":\"hlmctlpdngitvgb\",\"topicName\":\"rixkwmyijejve\",\"description\":\"hbpnaixexccbd\",\"sampleBlobUrl\":\"ax\",\"status\":\"exdrrvqahqkg\",\"failedReason\":\"pwijnhy\",\"createdAt\":\"2021-05-11T09:36:14Z\",\"lastModifiedAt\":\"2021-09-16T08:46:35Z\"},\"etag\":\"xzb\",\"tags\":{\"ronzmyhgfip\":\"owvrvmtgjqppyos\",\"waekrrjreafxtsgu\":\"sxkm\"},\"id\":\"jglikkxwslolb\",\"name\":\"pvuzlmv\",\"type\":\"elfk\"},{\"properties\":{\"topicId\":\"lcrpw\",\"topicName\":\"eznoig\",\"description\":\"njwmwkpnbsazejj\",\"sampleBlobUrl\":\"kagfhsxtt\",\"status\":\"gzxnfaazpxdtnk\",\"failedReason\":\"kqjjlwuenvrkp\",\"createdAt\":\"2021-07-20T21:21:44Z\",\"lastModifiedAt\":\"2021-06-02T18:39:14Z\"},\"etag\":\"rebqaaysjk\",\"tags\":{\"jpqqmted\":\"tnqttezlwfffiak\",\"wau\":\"tmmjihyeozph\"},\"id\":\"ncyg\",\"name\":\"p\",\"type\":\"vipmdscwxqupevzh\"}]}") + "{\"nextLink\":\"yw\",\"value\":[{\"properties\":{\"topicId\":\"xnyed\",\"topicName\":\"gyvudtjuewbc\",\"description\":\"xuuwhcj\",\"sampleBlobUrl\":\"ccybvp\",\"status\":\"akkud\",\"failedReason\":\"xgwjplmagstcyoh\",\"createdAt\":\"2021-07-05T16:33:29Z\",\"lastModifiedAt\":\"2021-11-14T02:06:38Z\"},\"etag\":\"dbdgio\",\"tags\":{\"acegfnmntf\":\"kmnwqjnobaiyhddv\",\"vvbalx\":\"mvmemfnczd\"},\"id\":\"lchpodbzevwrdn\",\"name\":\"fukuvsjcswsmystu\",\"type\":\"uqypfcvle\"},{\"properties\":{\"topicId\":\"pqbmfpjbab\",\"topicName\":\"dfc\",\"description\":\"spuunnoxyhkxgq\",\"sampleBlobUrl\":\"rihpfhoq\",\"status\":\"a\",\"failedReason\":\"dao\",\"createdAt\":\"2021-09-24T19:50:59Z\",\"lastModifiedAt\":\"2021-01-26T21:05:09Z\"},\"etag\":\"jxxkzbrmsgei\",\"tags\":{\"bzo\":\"ykzkdncjdxo\",\"wyrpgogtqxepnyl\":\"gculap\",\"tlvofq\":\"fuajly\"},\"id\":\"vfcibyfmowux\",\"name\":\"kjpvdwxf\",\"type\":\"wiivwzjbhyzsx\"}]}") .toObject(RaiTopicResult.class); - Assertions.assertEquals("dxdigr", model.nextLink()); - Assertions.assertEquals("zdmsyqtfi", model.value().get(0).properties().topicId()); - Assertions.assertEquals("hbotzingamvppho", model.value().get(0).properties().topicName()); - Assertions.assertEquals("qzudphq", model.value().get(0).properties().description()); - Assertions.assertEquals("vdkfwynwcvtbvk", model.value().get(0).properties().sampleBlobUrl()); - Assertions.assertEquals("hmtnvy", model.value().get(0).properties().status()); - Assertions.assertEquals("atkzwpcnpw", model.value().get(0).properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-07T21:37:46Z"), + Assertions.assertEquals("yw", model.nextLink()); + Assertions.assertEquals("xnyed", model.value().get(0).properties().topicId()); + Assertions.assertEquals("gyvudtjuewbc", model.value().get(0).properties().topicName()); + Assertions.assertEquals("xuuwhcj", model.value().get(0).properties().description()); + Assertions.assertEquals("ccybvp", model.value().get(0).properties().sampleBlobUrl()); + Assertions.assertEquals("akkud", model.value().get(0).properties().status()); + Assertions.assertEquals("xgwjplmagstcyoh", model.value().get(0).properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-05T16:33:29Z"), model.value().get(0).properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-22T23:16:36Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-11-14T02:06:38Z"), model.value().get(0).properties().lastModifiedAt()); - Assertions.assertEquals("ajguqf", model.value().get(0).tags().get("wygzlvdnkfxusem")); + Assertions.assertEquals("kmnwqjnobaiyhddv", model.value().get(0).tags().get("acegfnmntf")); } } 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 b33dbd692dde..dbc0029eb9b4 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\":\"wvor\",\"topicName\":\"lkjnbkb\",\"description\":\"lltqstqkqs\",\"sampleBlobUrl\":\"xiynecovagzk\",\"status\":\"ubanlxunpq\",\"failedReason\":\"kqiawzlzklasl\",\"createdAt\":\"2021-02-25T05:31:10Z\",\"lastModifiedAt\":\"2021-01-04T10:47:30Z\"},\"etag\":\"xlrarwpewsaudo\",\"tags\":{\"alahovuuwxhm\":\"ighsxjpytnkq\",\"ffbbcngkegxcypxb\":\"hjnhjiot\",\"y\":\"fetwi\"},\"id\":\"oxpdxq\",\"name\":\"frolq\",\"type\":\"wnk\"}"; + = "{\"properties\":{\"topicId\":\"umyd\",\"topicName\":\"weqjfyxydgto\",\"description\":\"qbvwglgw\",\"sampleBlobUrl\":\"vxakglh\",\"status\":\"esrfgamqiydvx\",\"failedReason\":\"d\",\"createdAt\":\"2021-06-23T02:44:06Z\",\"lastModifiedAt\":\"2021-05-28T03:42:04Z\"},\"etag\":\"gs\",\"tags\":{\"cbqp\":\"yxyj\"},\"id\":\"spglq\",\"name\":\"o\",\"type\":\"tdahneaoovtyjzti\"}"; 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("kkcxwnujvqynvav") - .withExistingAccount("jvpzaptuoskaoiz", "ixwfgcdi") - .withTags(mapOf("stsinvag", "qxgcbvzarmqcbpo")) - .withProperties(new RaiTopicProperties().withTopicId("dmuqohhi") - .withTopicName("a") - .withDescription("uddrwjc") - .withSampleBlobUrl("brhlhpvzadb") - .withStatus("nnin") - .withFailedReason("h") - .withCreatedAt(OffsetDateTime.parse("2021-10-20T13:47:01Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-12-01T08:19:47Z"))) + .define("yyznmrgcdogcvuc") + .withExistingAccount("vmdmzenlr", "tgfczljdncidtjva") + .withTags(mapOf("kclbtxluevsol", "fu", "ngojfsqebuuxjx", "wil")) + .withProperties(new RaiTopicProperties().withTopicId("oxuwhttnzqsaqm") + .withTopicName("gszplus") + .withDescription("kpdzzmssgpgv") + .withSampleBlobUrl("yejidbdqzsqun") + .withStatus("wztlvvwsnmrkky") + .withFailedReason("repwpwfkcaux") + .withCreatedAt(OffsetDateTime.parse("2021-07-16T09:20:09Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-12-02T07:15:47Z"))) .create(); - Assertions.assertEquals("wvor", response.properties().topicId()); - Assertions.assertEquals("lkjnbkb", response.properties().topicName()); - Assertions.assertEquals("lltqstqkqs", response.properties().description()); - Assertions.assertEquals("xiynecovagzk", response.properties().sampleBlobUrl()); - Assertions.assertEquals("ubanlxunpq", response.properties().status()); - Assertions.assertEquals("kqiawzlzklasl", response.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-25T05:31:10Z"), response.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-04T10:47:30Z"), response.properties().lastModifiedAt()); - Assertions.assertEquals("ighsxjpytnkq", response.tags().get("alahovuuwxhm")); + Assertions.assertEquals("umyd", response.properties().topicId()); + Assertions.assertEquals("weqjfyxydgto", response.properties().topicName()); + Assertions.assertEquals("qbvwglgw", response.properties().description()); + Assertions.assertEquals("vxakglh", response.properties().sampleBlobUrl()); + Assertions.assertEquals("esrfgamqiydvx", response.properties().status()); + Assertions.assertEquals("d", response.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-23T02:44:06Z"), response.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-28T03:42:04Z"), response.properties().lastModifiedAt()); + Assertions.assertEquals("yxyj", response.tags().get("cbqp")); } // 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 a63a565575b7..94b146d7f9da 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\":\"pdjtaqh\",\"topicName\":\"q\",\"description\":\"pdgonjhxs\",\"sampleBlobUrl\":\"hmgpczqulpt\",\"status\":\"vcpxtzhigqqbtimp\",\"failedReason\":\"blornsih\",\"createdAt\":\"2021-01-18T04:40:37Z\",\"lastModifiedAt\":\"2021-06-20T13:53:09Z\"},\"etag\":\"usuaa\",\"tags\":{\"fczmnn\":\"kxwj\"},\"id\":\"xyxvqban\",\"name\":\"sjtgirnbgmgmddo\",\"type\":\"gm\"}"; + = "{\"properties\":{\"topicId\":\"xfaryrvj\",\"topicName\":\"dezvjqw\",\"description\":\"oyiyaxqv\",\"sampleBlobUrl\":\"eiwtczkdd\",\"status\":\"ovbooqbmdqrxy\",\"failedReason\":\"ae\",\"createdAt\":\"2021-07-30T20:23:30Z\",\"lastModifiedAt\":\"2021-09-15T09:06:41Z\"},\"etag\":\"tj\",\"tags\":{\"ycuxdtzcqip\":\"riefoo\",\"lantolamlb\":\"dudgcozzomeh\",\"z\":\"juxkqll\"},\"id\":\"vwdtgckzdqiqdl\",\"name\":\"atrkwxoauwxs\",\"type\":\"ykznhrfgslglhp\"}"; 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("xi", "mlnfyz", "vfrbypic", com.azure.core.util.Context.NONE) + .getWithResponse("llukkreh", "htmjo", "uif", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pdjtaqh", response.properties().topicId()); - Assertions.assertEquals("q", response.properties().topicName()); - Assertions.assertEquals("pdgonjhxs", response.properties().description()); - Assertions.assertEquals("hmgpczqulpt", response.properties().sampleBlobUrl()); - Assertions.assertEquals("vcpxtzhigqqbtimp", response.properties().status()); - Assertions.assertEquals("blornsih", response.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T04:40:37Z"), response.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-20T13:53:09Z"), response.properties().lastModifiedAt()); - Assertions.assertEquals("kxwj", response.tags().get("fczmnn")); + Assertions.assertEquals("xfaryrvj", response.properties().topicId()); + Assertions.assertEquals("dezvjqw", response.properties().topicName()); + Assertions.assertEquals("oyiyaxqv", response.properties().description()); + Assertions.assertEquals("eiwtczkdd", response.properties().sampleBlobUrl()); + Assertions.assertEquals("ovbooqbmdqrxy", response.properties().status()); + Assertions.assertEquals("ae", response.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-30T20:23:30Z"), response.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-15T09:06:41Z"), response.properties().lastModifiedAt()); + Assertions.assertEquals("riefoo", response.tags().get("ycuxdtzcqip")); } } 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 9431355bfaea..0d20f824145d 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\":\"fddrvlkpzwbhnrec\",\"topicName\":\"d\",\"description\":\"rmuhkahmjedbiucv\",\"sampleBlobUrl\":\"hwmjpjbweunxc\",\"status\":\"rihufoihppiybxv\",\"failedReason\":\"zuzpbgkzcs\",\"createdAt\":\"2021-07-29T20:46:17Z\",\"lastModifiedAt\":\"2021-07-03T12:39:14Z\"},\"etag\":\"kunhdimjuk\",\"tags\":{\"gofmhxwrjlv\":\"zkaugpucdocfqpl\"},\"id\":\"lkv\",\"name\":\"gikyjtkak\",\"type\":\"lbis\"}]}"; + = "{\"value\":[{\"properties\":{\"topicId\":\"yvkbdgddk\",\"topicName\":\"dccxbeuuqu\",\"description\":\"zwtjwwguzytijc\",\"sampleBlobUrl\":\"nondegjdyd\",\"status\":\"kkkbjuckcatuqbh\",\"failedReason\":\"wcnxtpzdlyseid\",\"createdAt\":\"2021-01-09T04:30:08Z\",\"lastModifiedAt\":\"2021-06-07T20:59:10Z\"},\"etag\":\"prytgrhz\",\"tags\":{\"fa\":\"d\",\"gdirda\":\"rptvcshtkutzcttb\",\"zjgcfjfx\":\"m\",\"tmdofgeoag\":\"bwjjirmuydgf\"},\"id\":\"oftnxodwxm\",\"name\":\"aj\",\"type\":\"iygmgs\"}]}"; 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("nltwmpftmfoeajog", "yxwe", com.azure.core.util.Context.NONE); + = manager.raiTopics().list("yjfzi", "uioaeocpaj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fddrvlkpzwbhnrec", response.iterator().next().properties().topicId()); - Assertions.assertEquals("d", response.iterator().next().properties().topicName()); - Assertions.assertEquals("rmuhkahmjedbiucv", response.iterator().next().properties().description()); - Assertions.assertEquals("hwmjpjbweunxc", response.iterator().next().properties().sampleBlobUrl()); - Assertions.assertEquals("rihufoihppiybxv", response.iterator().next().properties().status()); - Assertions.assertEquals("zuzpbgkzcs", response.iterator().next().properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-29T20:46:17Z"), + Assertions.assertEquals("yvkbdgddk", response.iterator().next().properties().topicId()); + Assertions.assertEquals("dccxbeuuqu", response.iterator().next().properties().topicName()); + Assertions.assertEquals("zwtjwwguzytijc", response.iterator().next().properties().description()); + Assertions.assertEquals("nondegjdyd", response.iterator().next().properties().sampleBlobUrl()); + Assertions.assertEquals("kkkbjuckcatuqbh", response.iterator().next().properties().status()); + Assertions.assertEquals("wcnxtpzdlyseid", response.iterator().next().properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-09T04:30:08Z"), response.iterator().next().properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-03T12:39:14Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T20:59:10Z"), response.iterator().next().properties().lastModifiedAt()); - Assertions.assertEquals("zkaugpucdocfqpl", response.iterator().next().tags().get("gofmhxwrjlv")); + Assertions.assertEquals("d", response.iterator().next().tags().get("fa")); } } 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 fc5c13f5164c..3cd0990bace3 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 @@ -14,19 +14,19 @@ public final class ResourceBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceBase model = BinaryData.fromString( - "{\"description\":\"wmrswnjlxuzrh\",\"tags\":{\"qehgpd\":\"sxjb\",\"xncnwfe\":\"hzjqatucoige\",\"cgbjbgdlfgt\":\"bnwgfmxj\"}}") + "{\"description\":\"fg\",\"tags\":{\"fhzbkr\":\"oqqtl\",\"ewdogiyetesy\":\"jjjavfqnvhnq\",\"vnynkb\":\"vidbztjhqtfb\"}}") .toObject(ResourceBase.class); - Assertions.assertEquals("wmrswnjlxuzrh", model.description()); - Assertions.assertEquals("sxjb", model.tags().get("qehgpd")); + Assertions.assertEquals("fg", model.description()); + Assertions.assertEquals("oqqtl", model.tags().get("fhzbkr")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceBase model = new ResourceBase().withDescription("wmrswnjlxuzrh") - .withTags(mapOf("qehgpd", "sxjb", "xncnwfe", "hzjqatucoige", "cgbjbgdlfgt", "bnwgfmxj")); + ResourceBase model = new ResourceBase().withDescription("fg") + .withTags(mapOf("fhzbkr", "oqqtl", "ewdogiyetesy", "jjjavfqnvhnq", "vnynkb", "vidbztjhqtfb")); model = BinaryData.fromObject(model).toObject(ResourceBase.class); - Assertions.assertEquals("wmrswnjlxuzrh", model.description()); - Assertions.assertEquals("sxjb", model.tags().get("qehgpd")); + Assertions.assertEquals("fg", model.description()); + Assertions.assertEquals("oqqtl", model.tags().get("fhzbkr")); } // 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 c07021c5ad90..5449b3b31018 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\":false,\"reason\":\"mz\",\"subdomainName\":\"bhdvafjrqpjiy\",\"type\":\"jc\",\"kind\":\"a\"}"; + = "{\"isSubdomainAvailable\":false,\"reason\":\"p\",\"subdomainName\":\"xlehzlxpgfquwzp\",\"type\":\"ibelwcerwkw\",\"kind\":\"jxljtxbusq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testCheckDomainAvailabilityWithResponse() throws Exception { DomainAvailability response = manager.resourceProviders() .checkDomainAvailabilityWithResponse( - new CheckDomainAvailabilityParameter().withSubdomainName("txwaljglzo").withType("lqwa").withKind("r"), + new CheckDomainAvailabilityParameter().withSubdomainName("jkqxetqmmli").withType("rj").withKind("nw"), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertFalse(response.isSubdomainAvailable()); - Assertions.assertEquals("mz", response.reason()); - Assertions.assertEquals("bhdvafjrqpjiy", response.subdomainName()); - Assertions.assertEquals("jc", response.type()); - Assertions.assertEquals("a", response.kind()); + Assertions.assertEquals("p", response.reason()); + Assertions.assertEquals("xlehzlxpgfquwzp", response.subdomainName()); + Assertions.assertEquals("ibelwcerwkw", response.type()); + Assertions.assertEquals("jxljtxbusq", 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 8e01ee47182d..f4ad03a8093f 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\":\"ky\",\"type\":\"lhjym\",\"skuName\":\"gqtagd\",\"skuAvailable\":false,\"reason\":\"soljome\",\"message\":\"fycnlb\"},{\"kind\":\"jcodkkgjiiytssi\",\"type\":\"z\",\"skuName\":\"ufqbvntnr\",\"skuAvailable\":false,\"reason\":\"orhc\",\"message\":\"xgnlykmx\"},{\"kind\":\"wzvmdoksqd\",\"type\":\"wlwxlboncqbazqic\",\"skuName\":\"hygtv\",\"skuAvailable\":true,\"reason\":\"anepubd\",\"message\":\"xyqvg\"},{\"kind\":\"aodetv\",\"type\":\"kxdxuwsaifmcwn\",\"skuName\":\"bzlehgc\",\"skuAvailable\":true,\"reason\":\"knjolgjyyxpve\",\"message\":\"zerqzevxoqei\"}]}"; + = "{\"value\":[{\"kind\":\"qu\",\"type\":\"cxxqndc\",\"skuName\":\"kedwqurcgojmrv\",\"skuAvailable\":false,\"reason\":\"ongzsehqqrsil\",\"message\":\"hskxx\"},{\"kind\":\"nsbvr\",\"type\":\"qgvtojrulfu\",\"skuName\":\"ejrthcfjzhxlyub\",\"skuAvailable\":true,\"reason\":\"stvrjeqmt\",\"message\":\"beqrztrx\"},{\"kind\":\"xrd\",\"type\":\"bsrwrsnrhpqat\",\"skuName\":\"kkvyanxk\",\"skuAvailable\":true,\"reason\":\"ems\",\"message\":\"v\"}]}"; 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("bhtmeplvuk", - new CheckSkuAvailabilityParameter().withSkus(Arrays.asList("brlbpgs")) - .withKind("bagn") - .withType("hjhgem"), + .checkSkuAvailabilityWithResponse("aovjow", + new CheckSkuAvailabilityParameter().withSkus(Arrays.asList("hpa", "acomlyotg")) + .withKind("wsxnsrqor") + .withType("genmvceb"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ky", response.value().get(0).kind()); - Assertions.assertEquals("lhjym", response.value().get(0).type()); - Assertions.assertEquals("gqtagd", response.value().get(0).skuName()); + Assertions.assertEquals("qu", response.value().get(0).kind()); + Assertions.assertEquals("cxxqndc", response.value().get(0).type()); + Assertions.assertEquals("kedwqurcgojmrv", response.value().get(0).skuName()); Assertions.assertFalse(response.value().get(0).skuAvailable()); - Assertions.assertEquals("soljome", response.value().get(0).reason()); - Assertions.assertEquals("fycnlb", response.value().get(0).message()); + Assertions.assertEquals("ongzsehqqrsil", response.value().get(0).reason()); + Assertions.assertEquals("hskxx", 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 fd00a78934bc..027e153f17f9 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 @@ -12,9 +12,9 @@ public final class ResourceSkuRestrictionInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceSkuRestrictionInfo model = BinaryData.fromString( - "{\"locations\":[\"qtvbczsu\",\"mdgglmepjpfs\",\"ykgsangpszng\",\"fpgylkve\"],\"zones\":[\"jcngoadyed\",\"zrgjfok\"]}") + "{\"locations\":[\"falkzazm\",\"oke\",\"gjqafkmkrokzr\"],\"zones\":[\"etw\",\"qrtvaoznqni\",\"iezeagm\",\"eituugedhfpjs\"]}") .toObject(ResourceSkuRestrictionInfo.class); - Assertions.assertEquals("qtvbczsu", model.locations().get(0)); - Assertions.assertEquals("jcngoadyed", model.zones().get(0)); + Assertions.assertEquals("falkzazm", model.locations().get(0)); + Assertions.assertEquals("etw", 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 b924081438a4..ad32d3f2ae63 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 @@ -13,21 +13,21 @@ public final class SafetyProviderConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SafetyProviderConfig model = BinaryData - .fromString("{\"source\":\"PostRun\",\"safetyProviderName\":\"sfeaenwabfat\",\"blocking\":true}") + .fromString("{\"source\":\"PreToolCall\",\"safetyProviderName\":\"jlwuenvrkp\",\"blocking\":true}") .toObject(SafetyProviderConfig.class); - Assertions.assertEquals("sfeaenwabfat", model.safetyProviderName()); + Assertions.assertEquals("jlwuenvrkp", model.safetyProviderName()); Assertions.assertTrue(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_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("sfeaenwabfat") + SafetyProviderConfig model = new SafetyProviderConfig().withSafetyProviderName("jlwuenvrkp") .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN); + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL); model = BinaryData.fromObject(model).toObject(SafetyProviderConfig.class); - Assertions.assertEquals("sfeaenwabfat", model.safetyProviderName()); + Assertions.assertEquals("jlwuenvrkp", model.safetyProviderName()); Assertions.assertTrue(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_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 452d2f21e5a1..fbaba8ca9a91 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\":\"blml\",\"protocol\":\"wxihs\",\"portRanges\":\"xwqagnepzw\",\"action\":\"Allow\",\"addressPrefixes\":[\"sbq\",\"qagwwrxaomz\"]}") + "{\"serviceTag\":\"wjiutgnjiz\",\"protocol\":\"ewoi\",\"portRanges\":\"rvzb\",\"action\":\"Deny\",\"addressPrefixes\":[\"rziuctixgbdsuif\",\"evkaa\"]}") .toObject(ServiceTagOutboundRuleDestination.class); - Assertions.assertEquals("blml", model.serviceTag()); - Assertions.assertEquals("wxihs", model.protocol()); - Assertions.assertEquals("xwqagnepzw", model.portRanges()); - Assertions.assertEquals(RuleAction.ALLOW, model.action()); - Assertions.assertEquals("sbq", model.addressPrefixes().get(0)); + Assertions.assertEquals("wjiutgnjiz", model.serviceTag()); + Assertions.assertEquals("ewoi", model.protocol()); + Assertions.assertEquals("rvzb", model.portRanges()); + Assertions.assertEquals(RuleAction.DENY, model.action()); + Assertions.assertEquals("rziuctixgbdsuif", model.addressPrefixes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceTagOutboundRuleDestination model = new ServiceTagOutboundRuleDestination().withServiceTag("blml") - .withProtocol("wxihs") - .withPortRanges("xwqagnepzw") - .withAction(RuleAction.ALLOW) - .withAddressPrefixes(Arrays.asList("sbq", "qagwwrxaomz")); + ServiceTagOutboundRuleDestination model = new ServiceTagOutboundRuleDestination().withServiceTag("wjiutgnjiz") + .withProtocol("ewoi") + .withPortRanges("rvzb") + .withAction(RuleAction.DENY) + .withAddressPrefixes(Arrays.asList("rziuctixgbdsuif", "evkaa")); model = BinaryData.fromObject(model).toObject(ServiceTagOutboundRuleDestination.class); - Assertions.assertEquals("blml", model.serviceTag()); - Assertions.assertEquals("wxihs", model.protocol()); - Assertions.assertEquals("xwqagnepzw", model.portRanges()); - Assertions.assertEquals(RuleAction.ALLOW, model.action()); - Assertions.assertEquals("sbq", model.addressPrefixes().get(0)); + Assertions.assertEquals("wjiutgnjiz", model.serviceTag()); + Assertions.assertEquals("ewoi", model.protocol()); + Assertions.assertEquals("rvzb", model.portRanges()); + Assertions.assertEquals(RuleAction.DENY, model.action()); + Assertions.assertEquals("rziuctixgbdsuif", 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 3e6747593331..544a06e962fd 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\":\"ydmxzj\",\"protocol\":\"p\",\"portRanges\":\"aurkihcirlde\",\"action\":\"Deny\",\"addressPrefixes\":[\"oxnbkkjanurnnqbn\"]},\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"qltgrd\",\"parentRuleNames\":[\"pxrxvbfihwu\",\"vctafsrb\"]}") + "{\"type\":\"ServiceTag\",\"destination\":{\"serviceTag\":\"cnkottlwuhva\",\"protocol\":\"ailfemjjzak\",\"portRanges\":\"jiqul\",\"action\":\"Deny\",\"addressPrefixes\":[\"mvrscmqerndbrny\"]},\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"nnxrkad\",\"parentRuleNames\":[\"n\",\"fmu\",\"iiripfohykfkxbbc\"]}") .toObject(ServiceTagOutboundRule.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); - Assertions.assertEquals(RuleStatus.DELETING, model.status()); - Assertions.assertEquals("ydmxzj", model.destination().serviceTag()); - Assertions.assertEquals("p", model.destination().protocol()); - Assertions.assertEquals("aurkihcirlde", model.destination().portRanges()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); + Assertions.assertEquals("cnkottlwuhva", model.destination().serviceTag()); + Assertions.assertEquals("ailfemjjzak", model.destination().protocol()); + Assertions.assertEquals("jiqul", model.destination().portRanges()); Assertions.assertEquals(RuleAction.DENY, model.destination().action()); - Assertions.assertEquals("oxnbkkjanurnnqbn", model.destination().addressPrefixes().get(0)); + Assertions.assertEquals("mvrscmqerndbrny", model.destination().addressPrefixes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceTagOutboundRule model = new ServiceTagOutboundRule().withCategory(RuleCategory.DEPENDENCY) - .withStatus(RuleStatus.DELETING) - .withDestination(new ServiceTagOutboundRuleDestination().withServiceTag("ydmxzj") - .withProtocol("p") - .withPortRanges("aurkihcirlde") + ServiceTagOutboundRule model = new ServiceTagOutboundRule().withCategory(RuleCategory.RECOMMENDED) + .withStatus(RuleStatus.PROVISIONING) + .withDestination(new ServiceTagOutboundRuleDestination().withServiceTag("cnkottlwuhva") + .withProtocol("ailfemjjzak") + .withPortRanges("jiqul") .withAction(RuleAction.DENY) - .withAddressPrefixes(Arrays.asList("oxnbkkjanurnnqbn"))); + .withAddressPrefixes(Arrays.asList("mvrscmqerndbrny"))); model = BinaryData.fromObject(model).toObject(ServiceTagOutboundRule.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); - Assertions.assertEquals(RuleStatus.DELETING, model.status()); - Assertions.assertEquals("ydmxzj", model.destination().serviceTag()); - Assertions.assertEquals("p", model.destination().protocol()); - Assertions.assertEquals("aurkihcirlde", model.destination().portRanges()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); + Assertions.assertEquals("cnkottlwuhva", model.destination().serviceTag()); + Assertions.assertEquals("ailfemjjzak", model.destination().protocol()); + Assertions.assertEquals("jiqul", model.destination().portRanges()); Assertions.assertEquals(RuleAction.DENY, model.destination().action()); - Assertions.assertEquals("oxnbkkjanurnnqbn", model.destination().addressPrefixes().get(0)); + Assertions.assertEquals("mvrscmqerndbrny", 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 40d30c494d0e..5b497a0d9896 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\":\"eiotwmcdytdx\",\"sku\":{\"name\":\"txnrjaw\",\"tier\":\"Premium\",\"size\":\"xhniskxfbkpycgk\",\"family\":\"ndnhj\",\"capacity\":1922459268},\"capacity\":{\"minimum\":1064169122,\"maximum\":26018404,\"step\":876126569,\"default\":1934106594,\"allowedValues\":[776701007]}}") + "{\"resourceType\":\"yatrwy\",\"sku\":{\"name\":\"mibzyhwitsmypyyn\",\"tier\":\"Basic\",\"size\":\"umnzgmwznmabik\",\"family\":\"orgjhxbldt\",\"capacity\":1971592368},\"capacity\":{\"minimum\":1187866835,\"maximum\":49969250,\"step\":1488672187,\"default\":575537073,\"allowedValues\":[1063361933]}}") .toObject(SkuResourceInner.class); - Assertions.assertEquals("eiotwmcdytdx", model.resourceType()); - Assertions.assertEquals("txnrjaw", model.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, model.sku().tier()); - Assertions.assertEquals("xhniskxfbkpycgk", model.sku().size()); - Assertions.assertEquals("ndnhj", model.sku().family()); - Assertions.assertEquals(1922459268, model.sku().capacity()); - Assertions.assertEquals(1064169122, model.capacity().minimum()); - Assertions.assertEquals(26018404, model.capacity().maximum()); - Assertions.assertEquals(876126569, model.capacity().step()); - Assertions.assertEquals(1934106594, model.capacity().defaultProperty()); - Assertions.assertEquals(776701007, model.capacity().allowedValues().get(0)); + Assertions.assertEquals("yatrwy", model.resourceType()); + Assertions.assertEquals("mibzyhwitsmypyyn", model.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); + Assertions.assertEquals("umnzgmwznmabik", model.sku().size()); + Assertions.assertEquals("orgjhxbldt", model.sku().family()); + Assertions.assertEquals(1971592368, model.sku().capacity()); + Assertions.assertEquals(1187866835, model.capacity().minimum()); + Assertions.assertEquals(49969250, model.capacity().maximum()); + Assertions.assertEquals(1488672187, model.capacity().step()); + Assertions.assertEquals(575537073, model.capacity().defaultProperty()); + Assertions.assertEquals(1063361933, model.capacity().allowedValues().get(0)); } } 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 301c96eba3aa..9aa9069f26d2 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 @@ -33,7 +33,7 @@ public final class SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"nosdkvi\",\"contentFilters\":[{\"name\":\"gmat\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"ANNOTATING\"},{\"name\":\"ujktzb\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"ANNOTATING\"},{\"name\":\"pnw\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PostToolCall\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"g\",\"blocking\":true},{\"source\":\"PostRun\",\"blocklistName\":\"h\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"Prompt\",\"safetyProviderName\":\"jjkj\",\"blocking\":true},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"zmxjqif\",\"blocking\":true},{\"source\":\"Completion\",\"safetyProviderName\":\"cmlzaahz\",\"blocking\":true},{\"source\":\"Completion\",\"safetyProviderName\":\"lkolirhhmoj\",\"blocking\":false}]},\"etag\":\"gfjzcvaax\",\"tags\":{\"kmkcz\":\"lahfxwccokdxk\",\"jqkx\":\"nuhhoqeqshav\"},\"id\":\"qolnthbbn\",\"name\":\"gzukw\",\"type\":\"r\"}"; + = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"ddwnhczb\",\"contentFilters\":[{\"name\":\"cgjtirjwayhicqq\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PostToolCall\",\"blocklistName\":\"iabvnsrgek\",\"blocking\":false},{\"source\":\"PostToolCall\",\"blocklistName\":\"yfhbmwkh\",\"blocking\":true},{\"source\":\"Completion\",\"blocklistName\":\"spvkhglaqjsgyz\",\"blocking\":false},{\"source\":\"PostToolCall\",\"blocklistName\":\"xrk\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"yehi\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"yuqwrldaxurfqazc\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"dzciggb\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"walzyxwhoeamoeo\",\"blocking\":false}]},\"etag\":\"ysfpnimtwu\",\"tags\":{\"wmnfeubtzjyrkwfu\":\"uegn\",\"mnqdu\":\"iphrrku\",\"fopueoqusvwluj\":\"hz\"},\"id\":\"wnibittoz\",\"name\":\"j\",\"type\":\"qumqvfmwcaddt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -43,67 +43,61 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiPolicy response = manager.subscriptionRaiPolicies() - .createOrUpdateWithResponse("j", - new RaiPolicyInner() - .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.DEFAULT) - .withBasePolicyName("wjzebecuvlb") - .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("cljkxpyl") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.MEDIUM) - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.RETRY), - new RaiPolicyContentFilter().withName("ijeypdvrbkerdkdk") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN) - .withAction(RaiActionType.HITL))) - .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("ygzqpjoisfmn") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PROMPT), - new CustomBlocklistConfig().withBlocklistName("xumentqontwhy") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN), - new CustomBlocklistConfig().withBlocklistName("wi") - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN))) - .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("sycoybajasqub") - .withBlocking(false) - .withSource(RaiPolicyContentSource.COMPLETION), - new SafetyProviderConfig().withSafetyProviderName("hjqwmchqoh") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL), - new SafetyProviderConfig().withSafetyProviderName("pukiymjzpwdlvwt") - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL), - new SafetyProviderConfig().withSafetyProviderName("aonhqnamppul") - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN)))) - .withTags(mapOf("cyizy", "aj", "e", "dcvxodkrvfsxxby", "pwgoljt", "qlvge")), + .createOrUpdateWithResponse("ombcdtajdopggo", new RaiPolicyInner() + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) + .withBasePolicyName("otpvclp") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("lmwkptskwxjg") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withAction(RaiActionType.BLOCKING), + new RaiPolicyContentFilter().withName("ookbpu") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withAction(RaiActionType.HITL), + new RaiPolicyContentFilter().withName("ktfowzkroyrdur") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withAction(RaiActionType.ANNOTATING))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("lfejlzuqloiw") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new CustomBlocklistConfig().withBlocklistName("vrmitcdqlhchwh") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_RUN))) + .withSafetyProviders(Arrays.asList(new SafetyProviderConfig().withSafetyProviderName("ibfiplhxfnsm") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT)))) + .withTags( + mapOf("hnxlzbuwodmachb", "sqc", "qplehmumkzdllczd", "vnrpbjrmvg", "ivrakfrryn", "rwnhkgqggoxsst")), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(RaiPolicyMode.BLOCKING, response.properties().mode()); - Assertions.assertEquals("nosdkvi", response.properties().basePolicyName()); - Assertions.assertEquals("gmat", 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, - response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("g", response.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals("ddwnhczb", response.properties().basePolicyName()); + Assertions.assertEquals("cgjtirjwayhicqq", response.properties().contentFilters().get(0).name()); + Assertions.assertFalse(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.POST_RUN, + response.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.HITL, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("iabvnsrgek", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("jjkj", response.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals("lahfxwccokdxk", response.tags().get("kmkcz")); + Assertions.assertEquals("yehi", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, + response.properties().safetyProviders().get(0).source()); + Assertions.assertEquals("uegn", response.tags().get("wmnfeubtzjyrkwfu")); } // 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 9a74e171ac29..493b9b587394 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 @@ -25,7 +25,7 @@ public final class SubscriptionRaiPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"lwhdmcvhtbb\",\"contentFilters\":[{\"name\":\"vhuw\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"None\"},{\"name\":\"jecoh\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"None\"},{\"name\":\"xwieexuyade\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"},{\"name\":\"yc\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"sejegprkjgu\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"tu\",\"blocking\":false},{\"source\":\"Completion\",\"safetyProviderName\":\"wgxql\",\"blocking\":false},{\"source\":\"Prompt\",\"safetyProviderName\":\"gxieqfkyfhi\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"pbyynvskpajbm\",\"blocking\":false}]},\"etag\":\"exmj\",\"tags\":{\"crpilgftrq\":\"bccwkqmtxapeqi\",\"hlf\":\"ejdaahuqimld\",\"jn\":\"lmuifmua\"},\"id\":\"n\",\"name\":\"skiioshjgczetybn\",\"type\":\"gztlcgc\"}"; + = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"qncfvdscnhe\",\"contentFilters\":[{\"name\":\"nqqwy\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PreRun\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"gwjfkainjmuy\",\"blocking\":false},{\"source\":\"PreToolCall\",\"blocklistName\":\"tscbgmusai\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"zohnrddclzeqozre\",\"blocking\":false}]},\"etag\":\"qixbnjrqvzyuexo\",\"tags\":{\"me\":\"ynp\",\"jxvcvaso\":\"dpabcreuwzosg\",\"xzv\":\"mr\",\"uvecovsd\":\"ubewgzygba\"},\"id\":\"zrtdbakr\",\"name\":\"imzfvpp\",\"type\":\"eqsifjmclngygnhr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,25 +34,27 @@ 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("l", com.azure.core.util.Context.NONE).getValue(); + RaiPolicy response = manager.subscriptionRaiPolicies() + .getWithResponse("aqkifmxawostfz", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(RaiPolicyMode.DEFERRED, response.properties().mode()); - Assertions.assertEquals("lwhdmcvhtbb", response.properties().basePolicyName()); - Assertions.assertEquals("vhuw", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.properties().mode()); + Assertions.assertEquals("qncfvdscnhe", response.properties().basePolicyName()); + Assertions.assertEquals("nqqwy", 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.assertFalse(response.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.NONE, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("sejegprkjgu", response.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.HITL, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("gwjfkainjmuy", 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("tu", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals("zohnrddclzeqozre", + response.properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals("bccwkqmtxapeqi", response.tags().get("crpilgftrq")); + Assertions.assertEquals("ynp", response.tags().get("me")); } } 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 9d501c25735b..f3dec9ccf9e1 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\":\"yqltqsro\",\"description\":\"uwkffdjktsysid\",\"deploymentId\":\"c\",\"trafficPercentage\":2092148385}") + "{\"ruleId\":\"kuflgbh\",\"description\":\"uacdixmxuf\",\"deploymentId\":\"ryjqgdkf\",\"trafficPercentage\":839247633}") .toObject(TrafficRoutingRule.class); - Assertions.assertEquals("yqltqsro", model.ruleId()); - Assertions.assertEquals("uwkffdjktsysid", model.description()); - Assertions.assertEquals("c", model.deploymentId()); - Assertions.assertEquals(2092148385, model.trafficPercentage()); + Assertions.assertEquals("kuflgbh", model.ruleId()); + Assertions.assertEquals("uacdixmxuf", model.description()); + Assertions.assertEquals("ryjqgdkf", model.deploymentId()); + Assertions.assertEquals(839247633, model.trafficPercentage()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TrafficRoutingRule model = new TrafficRoutingRule().withRuleId("yqltqsro") - .withDescription("uwkffdjktsysid") - .withDeploymentId("c") - .withTrafficPercentage(2092148385); + TrafficRoutingRule model = new TrafficRoutingRule().withRuleId("kuflgbh") + .withDescription("uacdixmxuf") + .withDeploymentId("ryjqgdkf") + .withTrafficPercentage(839247633); model = BinaryData.fromObject(model).toObject(TrafficRoutingRule.class); - Assertions.assertEquals("yqltqsro", model.ruleId()); - Assertions.assertEquals("uwkffdjktsysid", model.description()); - Assertions.assertEquals("c", model.deploymentId()); - Assertions.assertEquals(2092148385, model.trafficPercentage()); + Assertions.assertEquals("kuflgbh", model.ruleId()); + Assertions.assertEquals("uacdixmxuf", model.description()); + Assertions.assertEquals("ryjqgdkf", model.deploymentId()); + Assertions.assertEquals(839247633, model.trafficPercentage()); } } 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 adfa3ca9bf5e..42ea8c0f6078 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\":\"BytesPerSecond\",\"name\":{\"value\":\"nhlxhgdekekzouy\",\"localizedValue\":\"wwpzrd\"},\"quotaPeriod\":\"gldohgcandxfhh\",\"limit\":3.1199381912478286,\"currentValue\":39.04333298436061,\"nextResetTime\":\"dnnckkpljdsh\",\"status\":\"Unknown\",\"scopeType\":\"Global\",\"scopeId\":\"ccyijjimhi\"}]}"; + = "{\"value\":[{\"unit\":\"Seconds\",\"name\":{\"value\":\"bgumwhmxpuckns\",\"localizedValue\":\"tlps\"},\"quotaPeriod\":\"omic\",\"limit\":46.312210807890175,\"currentValue\":50.615906184071356,\"nextResetTime\":\"mxokxxamqecjrzvl\",\"status\":\"InOverage\",\"scopeType\":\"Global\",\"scopeId\":\"emklphx\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,18 +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("miwxzfvv", "ucqfgufjnbxwbm", com.azure.core.util.Context.NONE); + PagedIterable response = manager.usages().list("cnviulby", "mgjz", com.azure.core.util.Context.NONE); - Assertions.assertEquals(UnitType.BYTES_PER_SECOND, response.iterator().next().unit()); - Assertions.assertEquals("nhlxhgdekekzouy", response.iterator().next().name().value()); - Assertions.assertEquals("wwpzrd", response.iterator().next().name().localizedValue()); - Assertions.assertEquals("gldohgcandxfhh", response.iterator().next().quotaPeriod()); - Assertions.assertEquals(3.1199381912478286D, response.iterator().next().limit()); - Assertions.assertEquals(39.04333298436061D, response.iterator().next().currentValue()); - Assertions.assertEquals("dnnckkpljdsh", response.iterator().next().nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.UNKNOWN, response.iterator().next().status()); + Assertions.assertEquals(UnitType.SECONDS, response.iterator().next().unit()); + Assertions.assertEquals("bgumwhmxpuckns", response.iterator().next().name().value()); + Assertions.assertEquals("tlps", response.iterator().next().name().localizedValue()); + Assertions.assertEquals("omic", response.iterator().next().quotaPeriod()); + Assertions.assertEquals(46.312210807890175D, response.iterator().next().limit()); + Assertions.assertEquals(50.615906184071356D, response.iterator().next().currentValue()); + Assertions.assertEquals("mxokxxamqecjrzvl", response.iterator().next().nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.IN_OVERAGE, response.iterator().next().status()); Assertions.assertEquals(QuotaScopeType.GLOBAL, response.iterator().next().scopeType()); - Assertions.assertEquals("ccyijjimhi", response.iterator().next().scopeId()); + Assertions.assertEquals("emklphx", response.iterator().next().scopeId()); } } 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 435d4e2ecf6c..6c9c0e839d8f 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,22 +12,21 @@ public final class VersionedAgentReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VersionedAgentReference model = BinaryData - .fromString( - "{\"agentVersion\":\"tbbaedorvvmqf\",\"agentId\":\"ygbdgwumgxdgdhpa\",\"agentName\":\"dexjddvjs\"}") + .fromString("{\"agentVersion\":\"c\",\"agentId\":\"cmfcnrjajq\",\"agentName\":\"txjtielnzqgx\"}") .toObject(VersionedAgentReference.class); - Assertions.assertEquals("ygbdgwumgxdgdhpa", model.agentId()); - Assertions.assertEquals("dexjddvjs", model.agentName()); - Assertions.assertEquals("tbbaedorvvmqf", model.agentVersion()); + Assertions.assertEquals("cmfcnrjajq", model.agentId()); + Assertions.assertEquals("txjtielnzqgx", model.agentName()); + Assertions.assertEquals("c", model.agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VersionedAgentReference model = new VersionedAgentReference().withAgentId("ygbdgwumgxdgdhpa") - .withAgentName("dexjddvjs") - .withAgentVersion("tbbaedorvvmqf"); + VersionedAgentReference model = new VersionedAgentReference().withAgentId("cmfcnrjajq") + .withAgentName("txjtielnzqgx") + .withAgentVersion("c"); model = BinaryData.fromObject(model).toObject(VersionedAgentReference.class); - Assertions.assertEquals("ygbdgwumgxdgdhpa", model.agentId()); - Assertions.assertEquals("dexjddvjs", model.agentName()); - Assertions.assertEquals("tbbaedorvvmqf", model.agentVersion()); + Assertions.assertEquals("cmfcnrjajq", model.agentId()); + Assertions.assertEquals("txjtielnzqgx", model.agentName()); + Assertions.assertEquals("c", model.agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml index 76c1d60d23f1..eccc18ac2de9 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: faeefae25ef091f75e0065728bdca6406f2241a3 +commit: 182eacfaa4691f06fb161722f13f4d99e9b26a0a repo: Azure/azure-rest-api-specs additionalDirectories: From 7ec0c86079be2865e3cf0e7e1cc49062277ec72e Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 22 May 2026 17:35:24 +0000 Subject: [PATCH 2/3] Configurations: 'specification/cognitiveservices/CognitiveServices.Management/tspconfig.yaml', API Version: 2026-03-15-preview, SDK Release Type: beta, and CommitSHA: '182eacfaa4691f06fb161722f13f4d99e9b26a0a' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6340971 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md index 18eaf6c86070..e14655fcea7a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md @@ -102,21 +102,21 @@ #### `models.Accounts` was modified -* `evaluateDeploymentPolicies(java.lang.String,java.lang.String,models.EvaluateDeploymentPoliciesRequest)` was added * `evaluateDeploymentPoliciesWithResponse(java.lang.String,java.lang.String,models.EvaluateDeploymentPoliciesRequest,com.azure.core.util.Context)` was added +* `evaluateDeploymentPolicies(java.lang.String,java.lang.String,models.EvaluateDeploymentPoliciesRequest)` was added #### `CognitiveServicesManager` was modified -* `managedComputeCapacities()` was added -* `managedComputeDeployments()` was added * `computes()` was added -* `workbenches()` was added * `managedComputeUsagesOperationGroups()` was added +* `managedComputeDeployments()` was added +* `managedComputeCapacities()` was added +* `workbenches()` was added #### `models.Account` was modified -* `evaluateDeploymentPolicies(models.EvaluateDeploymentPoliciesRequest)` was added * `evaluateDeploymentPoliciesWithResponse(models.EvaluateDeploymentPoliciesRequest,com.azure.core.util.Context)` was added +* `evaluateDeploymentPolicies(models.EvaluateDeploymentPoliciesRequest)` was added ## 1.5.0-beta.1 (2026-04-30) From 17e3a717ac8ffe1256eb729ac7bf8a38b2bf9edc Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Tue, 26 May 2026 14:42:51 +0000 Subject: [PATCH 3/3] Configurations: 'specification/cognitiveservices/CognitiveServices.Management/tspconfig.yaml', API Version: 2026-03-15-preview, SDK Release Type: beta, and CommitSHA: '03635f9c9be65a2d2ca84f07b187173660d541e3' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6352044 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../CHANGELOG.md | 10 +++++----- .../tsp-location.yaml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md index e14655fcea7a..e02fef56e3c3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 1.5.0-beta.2 (2026-05-22) +## 1.5.0-beta.2 (2026-05-26) - 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-03-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). @@ -102,16 +102,16 @@ #### `models.Accounts` was modified -* `evaluateDeploymentPoliciesWithResponse(java.lang.String,java.lang.String,models.EvaluateDeploymentPoliciesRequest,com.azure.core.util.Context)` was added * `evaluateDeploymentPolicies(java.lang.String,java.lang.String,models.EvaluateDeploymentPoliciesRequest)` was added +* `evaluateDeploymentPoliciesWithResponse(java.lang.String,java.lang.String,models.EvaluateDeploymentPoliciesRequest,com.azure.core.util.Context)` was added #### `CognitiveServicesManager` was modified -* `computes()` was added * `managedComputeUsagesOperationGroups()` was added -* `managedComputeDeployments()` was added -* `managedComputeCapacities()` was added * `workbenches()` was added +* `managedComputeCapacities()` was added +* `computes()` was added +* `managedComputeDeployments()` was added #### `models.Account` was modified diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml index eccc18ac2de9..91382106951f 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: 182eacfaa4691f06fb161722f13f4d99e9b26a0a +commit: 03635f9c9be65a2d2ca84f07b187173660d541e3 repo: Azure/azure-rest-api-specs additionalDirectories: