diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 67523fb24289..fd521c145706 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -347,7 +347,7 @@ com.azure.resourcemanager:azure-resourcemanager-consumption;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-commerce;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-billing;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-signalr;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-cognitiveservices;1.4.0;1.5.0-beta.4 +com.azure.resourcemanager:azure-resourcemanager-cognitiveservices;1.4.0;1.5.0 com.azure.resourcemanager:azure-resourcemanager-customerinsights;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-databox;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-datamigration;1.2.0;1.3.0-beta.1 diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md index 46147de5bf45..81373416e0d1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md @@ -1,14 +1,1000 @@ # Release History -## 1.5.0-beta.4 (Unreleased) +## 1.5.0 (2026-08-04) -### Features Added +- Azure Resource Manager CognitiveServices client library for Java. This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package api-version 2026-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.CustomTopicConfig` was removed + +#### `models.DefenderForAISettingResult` was removed + +#### `models.AccountModelListResult` was removed + +#### `models.RaiContentFilterListResult` was removed + +#### `models.RaiTopicResult` was removed + +#### `models.CommitmentPlanAccountAssociationListResult` was removed + +#### `models.RaiBlockListItemsResult` was removed + +#### `models.DeploymentSkuListResult` was removed + +#### `models.NetworkSecurityPerimeterConfigurationList` was removed + +#### `models.DeploymentListResult` was removed + +#### `models.RaiPolicyListResult` was removed + +#### `models.AzureEntityResource` was removed + +#### `models.ProjectListResult` was removed + +#### `models.OperationListResult` was removed + +#### `models.EncryptionScopeListResult` was removed + +#### `models.ModelCapacityListResult` was removed + +#### `models.ModelListResult` was removed + +#### `models.CommitmentPlanListResult` was removed + +#### `models.AccountListResult` was removed + +#### `models.CommitmentTierListResult` was removed + +#### `models.RaiTopicConfig` was removed + +#### `models.ResourceSkuListResult` was removed + +#### `models.QuotaTierListResult` was removed + +#### `models.ConnectionPropertiesV2BasicResourceArmPaginatedResult` was removed + +#### `models.RaiBlockListResult` was removed + +#### `models.RegenerateKeyParameters` was modified + +* `validate()` was removed + +#### `models.Sku` was modified + +* `validate()` was removed + +#### `models.ResourceSkuRestrictions` was modified + +* `ResourceSkuRestrictions()` was changed to private access +* `withValues(java.util.List)` was removed +* `withReasonCode(models.ResourceSkuRestrictionsReasonCode)` was removed +* `withRestrictionInfo(models.ResourceSkuRestrictionInfo)` was removed +* `withType(models.ResourceSkuRestrictionsType)` was removed +* `validate()` was removed + +#### `models.ApiProperties` was modified + +* `validate()` was removed + +#### `models.NetworkSecurityPerimeterConfigurationProperties` was modified + +* `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access +* `validate()` was removed +* `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` was removed +* `withResourceAssociation(models.NetworkSecurityPerimeterConfigurationAssociationInfo)` was removed +* `withProfile(models.NetworkSecurityPerimeterProfileInfo)` was removed +* `withProvisioningIssues(java.util.List)` was removed + +#### `models.DeploymentCapacitySettings` was modified + +* `validate()` was removed + +#### `models.OperationDisplay` was modified + +* `OperationDisplay()` was changed to private access +* `validate()` was removed + +#### `models.CheckSkuAvailabilityParameter` was modified + +* `validate()` was removed + +#### `models.RaiBlocklistItems` was modified + +* `batchDelete(java.lang.String,java.lang.String,java.lang.String,java.lang.Object)` was removed +* `batchDeleteWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.Object,com.azure.core.util.Context)` was removed + +#### `models.NetworkSecurityPerimeterAccessRule` was modified + +* `NetworkSecurityPerimeterAccessRule()` was changed to private access +* `withName(java.lang.String)` was removed +* `withProperties(models.NetworkSecurityPerimeterAccessRuleProperties)` was removed +* `validate()` was removed + +#### `models.CapabilityHostProperties` was modified + +* `validate()` was removed + +#### `models.ConnectionPropertiesV2` was modified + +* `validate()` was removed + +#### `models.ConnectionAccessKey` was modified + +* `validate()` was removed + +#### `models.CustomKeysConnectionProperties` was modified + +* `validate()` was removed + +#### `models.PrivateLinkResource` was modified + +* `PrivateLinkResource()` was changed to private access +* `withProperties(models.PrivateLinkResourceProperties)` was removed +* `validate()` was removed + +#### `models.RaiBlocklistProperties` was modified + +* `validate()` was removed + +#### `models.SkuAvailability` was modified + +* `SkuAvailability()` was changed to private access +* `withSkuName(java.lang.String)` was removed +* `validate()` was removed +* `withMessage(java.lang.String)` was removed +* `withKind(java.lang.String)` was removed +* `withSkuAvailable(java.lang.Boolean)` was removed +* `withReason(java.lang.String)` was removed +* `withType(java.lang.String)` was removed + +#### `models.RequestMatchPattern` was modified + +* `RequestMatchPattern()` was changed to private access +* `validate()` was removed +* `withPath(java.lang.String)` was removed +* `withMethod(java.lang.String)` was removed + +#### `models.AccountKeyAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem` was modified + +* `NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem()` was changed to private access +* `withId(java.lang.String)` was removed +* `validate()` was removed + +#### `models.CommitmentQuota` was modified + +* `CommitmentQuota()` was changed to private access +* `validate()` was removed +* `withQuantity(java.lang.Long)` was removed +* `withUnit(java.lang.String)` was removed + +#### `models.AccessKeyAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.ConnectionApiKey` was modified + +* `validate()` was removed + +#### `models.ModelCapacityCalculatorWorkloadRequestParam` was modified + +* `validate()` was removed + +#### `models.ReplacementConfig` was modified + +* `ReplacementConfig()` was changed to private access +* `withTargetModelName(java.lang.String)` was removed +* `withAutoUpgradeStartDate(java.time.OffsetDateTime)` was removed +* `withTargetModelVersion(java.lang.String)` was removed +* `withUpgradeOnExpiryLeadTimeDays(java.lang.Integer)` was removed +* `validate()` was removed + +#### `models.CalculateModelCapacityParameter` was modified + +* `validate()` was removed + +#### `models.UserOwnedStorage` was modified + +* `validate()` was removed + +#### `models.CheckDomainAvailabilityParameter` was modified + +* `validate()` was removed + +#### `models.NetworkSecurityPerimeterProfileInfo` was modified + +* `NetworkSecurityPerimeterProfileInfo()` was changed to private access +* `withAccessRules(java.util.List)` was removed +* `validate()` was removed +* `withDiagnosticSettingsVersion(java.lang.Long)` was removed +* `withAccessRulesVersion(java.lang.Long)` was removed +* `withName(java.lang.String)` was removed +* `withEnabledLogCategories(java.util.List)` was removed + +#### `models.ModelSku` was modified + +* `ModelSku()` was changed to private access +* `withDeprecationDate(java.time.OffsetDateTime)` was removed +* `withRateLimits(java.util.List)` was removed +* `withUsageName(java.lang.String)` was removed +* `validate()` was removed +* `withName(java.lang.String)` was removed +* `withCost(java.util.List)` was removed +* `withCapacity(models.CapacityConfig)` was removed + +#### `models.ProjectProperties` was modified + +* `validate()` was removed + +#### `models.RaiBlocklistItemProperties` was modified + +* `validate()` was removed + +#### `models.CommitmentPlanAssociation` was modified + +* `CommitmentPlanAssociation()` was changed to private access +* `withCommitmentPlanLocation(java.lang.String)` was removed +* `validate()` was removed +* `withCommitmentPlanId(java.lang.String)` was removed + +#### `models.RaiPolicyProperties` was modified + +* `withCustomTopics(java.util.List)` was removed +* `validate()` was removed +* `customTopics()` was removed + +#### `models.SkuChangeInfo` was modified + +* `SkuChangeInfo()` was changed to private access +* `withCountOfUpgradesAfterDowngrades(java.lang.Float)` was removed +* `validate()` was removed +* `withCountOfDowngrades(java.lang.Float)` was removed +* `withLastChangeDate(java.lang.String)` was removed + +#### `models.NetworkSecurityPerimeterConfigurationAssociationInfo` was modified + +* `NetworkSecurityPerimeterConfigurationAssociationInfo()` was changed to private access +* `withAccessMode(java.lang.String)` was removed +* `validate()` was removed +* `withName(java.lang.String)` was removed -### Other Changes +#### `models.DeploymentProperties` was modified + +* `validate()` was removed + +#### `models.QuotaLimit` was modified + +* `QuotaLimit()` was changed to private access +* `validate()` was removed +* `withRules(java.util.List)` was removed +* `withRenewalPeriod(java.lang.Float)` was removed +* `withCount(java.lang.Float)` was removed + +#### `models.OAuth2AuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.ApiKeyAuthConnectionProperties` was modified + +* `validate()` was removed + +#### `models.RaiBlocklistItemBulkRequest` was modified + +* `validate()` was removed + +#### `models.MetricName` was modified + +* `MetricName()` was changed to private access +* `withValue(java.lang.String)` was removed +* `withLocalizedValue(java.lang.String)` was removed +* `validate()` was removed + +#### `models.AccountSku` was modified + +* `AccountSku()` was changed to private access +* `validate()` was removed +* `withResourceType(java.lang.String)` was removed +* `withSku(models.Sku)` was removed + +#### `models.MultiRegionSettings` was modified + +* `validate()` was removed + +#### `models.PatchResourceTags` was modified + +* `validate()` was removed + +#### `models.ConnectionUsernamePassword` was modified + +* `validate()` was removed + +#### `models.NetworkInjection` was modified + +* `validate()` was removed + +#### `models.ModelDeprecationInfo` was modified + +* `ModelDeprecationInfo()` was changed to private access +* `withDeprecationStatus(models.DeprecationStatus)` was removed +* `validate()` was removed +* `withInference(java.lang.String)` was removed +* `withFineTune(java.lang.String)` was removed + +#### `models.PrivateLinkServiceConnectionState` was modified + +* `validate()` was removed + +#### `models.QuotaTierUpgradeEligibilityInfo` was modified + +* `QuotaTierUpgradeEligibilityInfo()` was changed to private access +* `withUpgradeAvailabilityStatus(models.UpgradeAvailabilityStatus)` was removed +* `validate()` was removed +* `withNextTierName(java.lang.String)` was removed +* `withUpgradeApplicableDate(java.time.OffsetDateTime)` was removed +* `withUpgradeUnavailabilityReason(java.lang.String)` was removed + +#### `models.BillingMeterInfo` was modified + +* `BillingMeterInfo()` was changed to private access +* `validate()` was removed +* `withMeterId(java.lang.String)` was removed +* `withUnit(java.lang.String)` was removed +* `withName(java.lang.String)` was removed + +#### `models.ConnectionOAuth2` was modified + +* `validate()` was removed +* `java.util.UUID clientId()` -> `java.lang.String clientId()` +* `withClientId(java.util.UUID)` was removed + +#### `models.ConnectionServicePrincipal` was modified + +* `validate()` was removed + +#### `models.ConnectionSharedAccessSignature` was modified + +* `validate()` was removed + +#### `models.ProvisioningIssueProperties` was modified + +* `ProvisioningIssueProperties()` was changed to private access +* `withDescription(java.lang.String)` was removed +* `validate()` was removed +* `withSeverity(java.lang.String)` was removed +* `withSuggestedResourceIds(java.util.List)` was removed +* `withIssueType(java.lang.String)` was removed +* `withSuggestedAccessRules(java.util.List)` was removed + +#### `models.ResourceBase` was modified + +* `validate()` was removed + +#### `models.VirtualNetworkRule` was modified + +* `validate()` was removed + +#### `models.ServicePrincipalAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.ThrottlingRule` was modified + +* `ThrottlingRule()` was changed to private access +* `withKey(java.lang.String)` was removed +* `withCount(java.lang.Float)` was removed +* `validate()` was removed +* `withDynamicThrottlingEnabled(java.lang.Boolean)` was removed +* `withMinCount(java.lang.Float)` was removed +* `withRenewalPeriod(java.lang.Float)` was removed +* `withMatchPatterns(java.util.List)` was removed + +#### `models.AbusePenalty` was modified + +* `AbusePenalty()` was changed to private access +* `withRateLimitPercentage(java.lang.Float)` was removed +* `withExpiration(java.time.OffsetDateTime)` was removed +* `withAction(models.AbusePenaltyAction)` was removed +* `validate()` was removed + +#### `models.CommitmentCost` was modified + +* `CommitmentCost()` was changed to private access +* `withCommitmentMeterId(java.lang.String)` was removed +* `validate()` was removed +* `withOverageMeterId(java.lang.String)` was removed + +#### `models.NetworkSecurityPerimeterAccessRuleProperties` was modified + +* `NetworkSecurityPerimeterAccessRuleProperties()` was changed to private access +* `withSubscriptions(java.util.List)` was removed +* `validate()` was removed +* `withAddressPrefixes(java.util.List)` was removed +* `withDirection(models.NspAccessRuleDirection)` was removed +* `withFullyQualifiedDomainNames(java.util.List)` was removed +* `withNetworkSecurityPerimeters(java.util.List)` was removed + +#### `models.PatchResourceTagsAndSku` was modified + +* `validate()` was removed + +#### `models.CapacityConfig` was modified + +* `CapacityConfig()` was changed to private access +* `validate()` was removed +* `withMaximum(java.lang.Integer)` was removed +* `withStep(java.lang.Integer)` was removed +* `withAllowedValues(java.util.List)` was removed +* `withDefaultProperty(java.lang.Integer)` was removed +* `withMinimum(java.lang.Integer)` was removed + +#### `models.RaiContentFilterProperties` was modified + +* `RaiContentFilterProperties()` was changed to private access +* `withIsMultiLevelFilter(java.lang.Boolean)` was removed +* `withName(java.lang.String)` was removed +* `withSource(models.RaiPolicyContentSource)` was removed +* `validate()` was removed + +#### `models.ModelSkuCapacityProperties` was modified + +* `ModelSkuCapacityProperties()` was changed to private access +* `withSkuName(java.lang.String)` was removed +* `validate()` was removed +* `withAvailableCapacity(java.lang.Float)` was removed +* `withAvailableFinetuneCapacity(java.lang.Float)` was removed +* `withModel(models.DeploymentModel)` was removed + +#### `models.SkuCapability` was modified + +* `SkuCapability()` was changed to private access +* `withValue(java.lang.String)` was removed +* `withName(java.lang.String)` was removed +* `validate()` was removed + +#### `models.NetworkRuleSet` was modified + +* `validate()` was removed + +#### `models.Usage` was modified + +* `Usage()` was removed +* `java.lang.String quotaPeriod()` -> `java.lang.String quotaPeriod()` +* `withUnit(models.UnitType)` was removed +* `models.UnitType unit()` -> `models.UnitType unit()` +* `fromJson(com.azure.json.JsonReader)` was removed +* `models.MetricName name()` -> `models.MetricName name()` +* `models.QuotaUsageStatus status()` -> `models.QuotaUsageStatus status()` +* `validate()` was removed +* `withLimit(java.lang.Double)` was removed +* `withQuotaPeriod(java.lang.String)` was removed +* `java.lang.Double currentValue()` -> `java.lang.Double currentValue()` +* `withCurrentValue(java.lang.Double)` was removed +* `toJson(com.azure.json.JsonWriter)` was removed +* `java.lang.String nextResetTime()` -> `java.lang.String nextResetTime()` +* `withName(models.MetricName)` was removed +* `withStatus(models.QuotaUsageStatus)` was removed +* `withNextResetTime(java.lang.String)` was removed +* `java.lang.Double limit()` -> `java.lang.Double limit()` + +#### `models.Encryption` was modified + +* `validate()` was removed + +#### `models.PatAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.NoneAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.RaiBlocklistConfig` was modified + +* `validate()` was removed + +#### `models.RegionSetting` was modified + +* `validate()` was removed + +#### `models.ProvisioningIssue` was modified + +* `ProvisioningIssue()` was changed to private access +* `validate()` was removed +* `withProperties(models.ProvisioningIssueProperties)` was removed +* `withName(java.lang.String)` was removed + +#### `models.Identity` was modified + +* `validate()` was removed + +#### `models.CommitmentPeriod` was modified + +* `validate()` was removed + +#### `models.PrivateEndpoint` was modified + +* `validate()` was removed + +#### `models.NetworkSecurityPerimeter` was modified + +* `NetworkSecurityPerimeter()` was changed to private access +* `validate()` was removed +* `withLocation(java.lang.String)` was removed +* `withPerimeterGuid(java.lang.String)` was removed +* `withId(java.lang.String)` was removed + +#### `models.ConnectionUpdateContent` was modified + +* `validate()` was removed + +#### `models.ConnectionManagedIdentity` was modified + +* `validate()` was removed + +#### `models.RaiTopicProperties` was modified + +* `validate()` was removed + +#### `models.RaiPolicyContentFilter` was modified + +* `validate()` was removed + +#### `models.CustomKeys` was modified + +* `validate()` was removed + +#### `models.UserOwnedAmlWorkspace` was modified + +* `validate()` was removed + +#### `models.DeploymentModel` was modified + +* `validate()` was removed + +#### `models.RaiMonitorConfig` was modified + +* `validate()` was removed + +#### `models.AccountProperties` was modified + +* `validate()` was removed + +#### `models.ManagedIdentityAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.PrivateEndpointConnectionProperties` was modified + +* `validate()` was removed + +#### `models.ResourceSkuRestrictionInfo` was modified + +* `ResourceSkuRestrictionInfo()` was changed to private access +* `withZones(java.util.List)` was removed +* `validate()` was removed +* `withLocations(java.util.List)` was removed + +#### `models.CalculateModelCapacityResultEstimatedCapacity` was modified + +* `CalculateModelCapacityResultEstimatedCapacity()` was changed to private access +* `validate()` was removed +* `withValue(java.lang.Integer)` was removed +* `withDeployableValue(java.lang.Integer)` was removed + +#### `models.ModelCapacityCalculatorWorkload` was modified + +* `validate()` was removed + +#### `models.ProjectCapabilityHosts` was modified + +* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CapabilityHostInner,com.azure.core.util.Context)` was removed +* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CapabilityHostInner)` was removed +* `models.CapabilityHost get(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` -> `models.ProjectCapabilityHost get(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` + +#### `models.KeyVaultProperties` was modified + +* `validate()` was removed + +#### `models.EncryptionScopeProperties` was modified + +* `validate()` was removed + +#### `models.UserAssignedIdentity` was modified + +* `validate()` was removed + +#### `models.ConnectionAccountKey` was modified + +* `validate()` was removed + +#### `models.DeploymentScaleSettings` was modified + +* `validate()` was removed + +#### `models.SasAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.UsernamePasswordAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.AadAuthTypeConnectionProperties` was modified + +* `validate()` was removed + +#### `models.CallRateLimit` was modified + +* `CallRateLimit()` was changed to private access +* `withCount(java.lang.Float)` was removed +* `validate()` was removed +* `withRenewalPeriod(java.lang.Float)` was removed +* `withRules(java.util.List)` was removed + +#### `models.CommitmentPlanProperties` was modified + +* `validate()` was removed + +#### `models.PrivateLinkResourceProperties` was modified + +* `PrivateLinkResourceProperties()` was changed to private access +* `validate()` was removed +* `withRequiredZoneNames(java.util.List)` was removed + +#### `models.IpRule` was modified + +* `validate()` was removed + +#### `models.QuotaTierProperties` was modified + +* `validate()` was removed + +#### `models.CustomBlocklistConfig` was modified + +* `validate()` was removed + +#### `models.ConnectionPersonalAccessToken` was modified + +* `validate()` was removed + +### Features Added + +* `models.SafetyProviderConfig` was added + +* `models.ServiceTagOutboundRuleDestination` was added + +* `models.AgentApplication$Update` was added + +* `models.HostedAgentDeployment` was added + +* `models.AgentDeploymentType` was added + +* `models.ProjectCapabilityHostProperties` was added + +* `models.IdentityKind` was added + +* `models.AgenticApplicationProperties` was added + +* `models.PrivateEndpointOutboundRule` was added + +* `models.OutboundRuleBasicResource$Definition` was added + +* `models.AgentDeploymentProvisioningState` was added + +* `models.ProjectCapabilityHost` was added + +* `models.AgentReference` was added + +* `models.ProjectCapabilityHost$DefinitionStages` was added + +* `models.ApplicationTrafficRoutingPolicy` was added + +* `models.RaiExternalSafetyProviderSchema$DefinitionStages` was added + +* `models.ManagedNetworkSettings` was added + +* `models.AgentDeploymentProperties` was added + +* `models.TrafficRoutingProtocol` was added + +* `models.RaiToolLabels` was added + +* `models.RaiExternalSafetyProviderSchema$Definition` was added + +* `models.OutboundRuleBasicResource$UpdateStages` was added + +* `models.OutboundRules` was added + +* `models.ManagedNetworkSettingsProperties` was added + +* `models.RaiExternalSafetyProviderSchema$Update` was added + +* `models.RaiSafetyProviderConfig` was added + +* `models.ManagedNetworkSettingsPropertiesBasicResource` was added + +* `models.AgentReferenceResourceArmPaginatedResult` was added + +* `models.ProjectCapabilityHost$Definition` was added + +* `models.VersionedAgentReference` was added + +* `models.OutboundRuleBasicResource$DefinitionStages` was added + +* `models.IsolationMode` was added + +* `models.ManagedNetworkSettingsPropertiesBasicResource$UpdateStages` was added + +* `models.RaiToolLabel$DefinitionStages` was added + +* `models.AgentDeployment$UpdateStages` was added + +* `models.AgentApplications` was added + +* `models.OrganizationSharedBuiltInAuthorizationPolicy` was added + +* `models.ServiceTagOutboundRule` was added + +* `models.QuotaScopeType` was added + +* `models.ManagedNetworkProvisionOptions` was added + +* `models.RaiActionType` was added + +* `models.RaiExternalSafetyProviderSchemaProperties` was added + +* `models.AgentApplication$Definition` was added + +* `models.ManagedNetworkSettingsPropertiesBasicResource$DefinitionStages` was added + +* `models.ProjectCapabilityHost$Update` was added + +* `models.OutboundRulesOperations` was added + +* `models.RaiToolLabel` was added + +* `models.OutboundRuleBasicResource$Update` was added + +* `models.RuleStatus` was added + +* `models.ManagedNetworkStatus` was added + +* `models.IdentityManagementType` was added + +* `models.AgentDeployment$Definition` was added + +* `models.RaiExternalSafetyProviderSchema` was added + +* `models.RaiToolLabel$UpdateStages` was added + +* `models.RaiToolLabel$Definition` was added + +* `models.ServiceTier` was added + +* `models.OutboundRule` was added + +* `models.IdentityProvisioningState` was added + +* `models.RuleAction` was added + +* `models.ManagedNetworkProvisioningState` was added + +* `models.ApplicationAuthorizationPolicy` was added + +* `models.AgentApplication$UpdateStages` was added + +* `models.DeploymentState` was added + +* `models.AssignedIdentity` was added + +* `models.ManagedAgentDeployment` was added + +* `models.FirewallSku` was added + +* `models.PrivateEndpointOutboundRuleDestination` was added + +* `models.ManagedNetworkSettingsPropertiesBasicResource$Update` was added + +* `models.OutboundRuleBasicResource` was added + +* `models.RaiToolLabelPropertiesAccountScope` was added + +* `models.ManagedNetworkSettingsOperations` was added + +* `models.ChannelsBuiltInAuthorizationPolicy` was added + +* `models.AgentApplication$DefinitionStages` was added + +* `models.RoleBasedBuiltInAuthorizationPolicy` was added + +* `models.RaiExternalSafetyProvidersOperations` was added + +* `models.AgentProtocolVersion` was added + +* `models.FqdnOutboundRule` was added + +* `models.RoutingMode` was added + +* `models.AgentProtocol` was added + +* `models.ManagedNetworkSettingsBasicResource` was added + +* `models.AgentDeployment$DefinitionStages` was added + +* `models.RaiToolLabelPropertiesProjectScopesItem` was added + +* `models.ManagedNetworkProvisionStatus` was added + +* `models.AgentDeploymentState` was added + +* `models.RaiExternalSafetyProviders` was added + +* `models.ManagedNetworkKind` was added + +* `models.SubscriptionRaiPolicies` was added + +* `models.ProjectCapabilityHost$UpdateStages` was added + +* `models.ManagedNetworkSettingsEx` was added + +* `models.RaiExternalSafetyProviderSchema$UpdateStages` was added + +* `models.AgenticApplicationProvisioningState` was added + +* `models.AgentDeployment$Update` was added + +* `models.TrafficRoutingRule` was added + +* `models.AgentDeployment` was added + +* `models.RuleType` was added + +* `models.AgentReferenceProperties` was added + +* `models.AgentApplication` was added + +* `models.RaiToolLabelProperties` was added + +* `models.DeploymentRouting` was added + +* `models.RuleCategory` was added + +* `models.BuiltInAuthorizationScheme` was added + +* `models.ManagedNetworkSettingsPropertiesBasicResource$Definition` was added + +* `models.AgentDeployments` was added + +* `models.ManagedNetworkProvisions` was added + +* `models.TestRaiExternalSafetyProviders` was added + +* `models.RaiToolLabel$Update` was added + +#### `models.RaiBlocklistItems` was modified + +* `batchDeleteWithResponse(java.lang.String,java.lang.String,java.lang.String,java.util.List,com.azure.core.util.Context)` was added +* `batchDelete(java.lang.String,java.lang.String,java.lang.String,java.util.List)` was added + +#### `models.CapabilityHostProperties` was modified + +* `enablePublicHostingEnvironment()` was added +* `withEnablePublicHostingEnvironment(java.lang.Boolean)` was added + +#### `models.ConnectionAuthType` was modified + +* `AGENTIC_IDENTITY_TOKEN` was added +* `PROJECT_MANAGED_IDENTITY` was added +* `AGENTIC_USER` was added +* `AGENT_USER_IMPERSONATION` was added +* `USER_ENTRA_TOKEN` was added +* `ACCOUNT_MANAGED_IDENTITY` was added +* `DELEGATED_SAS` was added + +#### `CognitiveServicesManager` was modified + +* `agentApplications()` was added +* `managedNetworkSettingsOperations()` was added +* `raiExternalSafetyProvidersOperations()` was added +* `managedNetworkProvisions()` was added +* `agentDeployments()` was added +* `raiToolLabels()` was added +* `subscriptionRaiPolicies()` was added +* `outboundRulesOperations()` was added +* `raiExternalSafetyProviders()` was added +* `testRaiExternalSafetyProviders()` was added +* `outboundRules()` was added + +#### `models.RaiPolicyContentSource` was modified + +* `POST_RUN` was added +* `PRE_RUN` was added +* `POST_TOOL_CALL` was added +* `PRE_TOOL_CALL` was added + +#### `models.RaiPolicyProperties` was modified + +* `safetyProviders()` was added +* `withSafetyProviders(java.util.List)` was added + +#### `models.DeploymentProperties` was modified + +* `withRouting(models.DeploymentRouting)` was added +* `serviceTier()` was added +* `deploymentState()` was added +* `withServiceTier(models.ServiceTier)` was added +* `withDeploymentState(models.DeploymentState)` was added +* `routing()` was added + +#### `models.ConnectionOAuth2` was modified + +* `withClientId(java.lang.String)` was added + +#### `models.ModelSkuCapacityProperties` was modified + +* `scopeId()` was added +* `scopeType()` was added + +#### `models.Usage` was modified + +* `scopeId()` was added +* `scopeType()` was added +* `innerModel()` was added + +#### `models.AccountCapabilityHosts` was modified + +* `list(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `list(java.lang.String,java.lang.String)` was added + +#### `models.RaiPolicyContentFilter` was modified + +* `action()` was added +* `withAction(models.RaiActionType)` was added + +#### `models.Deployment` was modified + +* `pause()` was added +* `pauseWithResponse(com.azure.core.util.Context)` was added +* `resumeWithResponse(com.azure.core.util.Context)` was added +* `resume()` was added + +#### `models.ConnectionCategory` was modified + +* `DATABRICKS` was added +* `POWER_PLATFORM_ENVIRONMENT` was added +* `REMOTE_TOOL` was added +* `SHAREPOINT` was added +* `APP_INSIGHTS` was added +* `MICROSOFT_FABRIC` was added +* `GROUNDING_WITH_CUSTOM_SEARCH` was added +* `API_MANAGEMENT` was added +* `MODEL_GATEWAY` was added +* `AZURE_CONTAINER_APP_ENVIRONMENT` was added +* `REMOTE_A2A` was added +* `APP_CONFIG` was added +* `GROUNDING_WITH_BING_SEARCH` was added +* `AZURE_KEY_VAULT` was added + +#### `models.ProjectCapabilityHosts` was modified + +* `getById(java.lang.String)` was added +* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `define(java.lang.String)` was added +* `deleteById(java.lang.String)` was added +* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added +* `list(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `list(java.lang.String,java.lang.String,java.lang.String)` was added + +#### `models.Deployments` was modified + +* `resumeWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `pause(java.lang.String,java.lang.String,java.lang.String)` was added +* `resume(java.lang.String,java.lang.String,java.lang.String)` was added +* `pauseWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added ## 1.5.0-beta.3 (2026-06-26) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md index 6984bcf15139..66d7df4fdbbd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md @@ -2,7 +2,7 @@ Azure Resource Manager CognitiveServices client library for Java. -This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package api-version 2026-05-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package api-version 2026-07-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-cognitiveservices - 1.5.0-beta.3 + 1.5.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md index 2116f99d9304..16221513c96a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md @@ -20,7 +20,6 @@ - [Create](#accounts_create) - [Delete](#accounts_delete) -- [EvaluateDeploymentPolicies](#accounts_evaluatedeploymentpolicies) - [GetByResourceGroup](#accounts_getbyresourcegroup) - [List](#accounts_list) - [ListByResourceGroup](#accounts_listbyresourcegroup) @@ -71,21 +70,6 @@ - [List](#commitmenttiers_list) -## ComputeOperations - -- [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) @@ -121,22 +105,6 @@ - [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) @@ -294,17 +262,6 @@ ## 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 @@ -315,7 +272,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProperti */ public final class AccountCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-07-01/AccountCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Account CapabilityHost. @@ -343,7 +300,7 @@ public final class AccountCapabilityHostsCreateOrUpdateSamples { */ public final class AccountCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/delete.json + * x-ms-original-file: 2026-07-01/AccountCapabilityHost/delete.json */ /** * Sample code: Delete Account CapabilityHost. @@ -366,7 +323,7 @@ public final class AccountCapabilityHostsDeleteSamples { */ public final class AccountCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/get.json + * x-ms-original-file: 2026-07-01/AccountCapabilityHost/get.json */ /** * Sample code: Get Account CapabilityHost. @@ -389,7 +346,7 @@ public final class AccountCapabilityHostsGetSamples { */ public final class AccountCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/list.json + * x-ms-original-file: 2026-07-01/AccountCapabilityHost/list.json */ /** * Sample code: List Account CapabilityHosts. @@ -406,7 +363,6 @@ public final class AccountCapabilityHostsListSamples { ### AccountConnections_Create ```java -import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties; import java.time.OffsetDateTime; @@ -416,7 +372,7 @@ import java.time.OffsetDateTime; */ public final class AccountConnectionsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/create.json + * x-ms-original-file: 2026-07-01/AccountConnection/create.json */ /** * Sample code: CreateAccountConnection. @@ -426,12 +382,12 @@ public final class AccountConnectionsCreateSamples { public static void createAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.accountConnections() - .createWithResponse("resourceGroup-1", "account-1", "connection-1", - new ConnectionPropertiesV2BasicResourceInner().withProperties( - new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) - .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) - .withTarget("[target url]")), - com.azure.core.util.Context.NONE); + .define("connection-1") + .withExistingAccount("resourceGroup-1", "account-1") + .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) + .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) + .withTarget("[target url]")) + .create(); } } ``` @@ -444,7 +400,7 @@ public final class AccountConnectionsCreateSamples { */ public final class AccountConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/delete.json + * x-ms-original-file: 2026-07-01/AccountConnection/delete.json */ /** * Sample code: DeleteAccountConnection. @@ -467,7 +423,7 @@ public final class AccountConnectionsDeleteSamples { */ public final class AccountConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/get.json + * x-ms-original-file: 2026-07-01/AccountConnection/get.json */ /** * Sample code: GetAccountConnection. @@ -490,7 +446,7 @@ public final class AccountConnectionsGetSamples { */ public final class AccountConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/list.json + * x-ms-original-file: 2026-07-01/AccountConnection/list.json */ /** * Sample code: ListAccountConnections. @@ -512,7 +468,7 @@ public final class AccountConnectionsListSamples { import com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties; import com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -522,7 +478,7 @@ import java.util.Map; */ public final class AccountConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/update.json + * x-ms-original-file: 2026-07-01/AccountConnection/update.json */ /** * Sample code: UpdateAccountConnection. @@ -531,16 +487,17 @@ public final class AccountConnectionsUpdateSamples { */ public static void updateAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.accountConnections() - .updateWithResponse("test-rg", "account-1", "connection-1", - new ConnectionUpdateContent().withProperties( - new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) - .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .withMetadata(mapOf()) - .withTarget("some_string") - .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") - .withSecretAccessKey("fakeTokenPlaceholder"))), - com.azure.core.util.Context.NONE); + ConnectionPropertiesV2BasicResource resource = manager.accountConnections() + .getWithResponse("test-rg", "account-1", "connection-1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) + .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) + .withMetadata(mapOf()) + .withTarget("some_string") + .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") + .withSecretAccessKey("fakeTokenPlaceholder"))) + .apply(); } // Use "Map.of" if available @@ -575,7 +532,7 @@ import java.util.Arrays; */ public final class AccountsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateAccountMin.json + * x-ms-original-file: 2026-07-01/CreateAccountMin.json */ /** * Sample code: Create Account Min. @@ -595,7 +552,7 @@ public final class AccountsCreateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/CreateAccount.json + * x-ms-original-file: 2026-07-01/CreateAccount.json */ /** * Sample code: Create Account. @@ -630,7 +587,7 @@ public final class AccountsCreateSamples { */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteAccount.json + * x-ms-original-file: 2026-07-01/DeleteAccount.json */ /** * Sample code: Delete Account. @@ -643,47 +600,6 @@ 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-05-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 @@ -692,7 +608,7 @@ public final class AccountsEvaluateDeploymentPoliciesSamples { */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetAccount.json + * x-ms-original-file: 2026-07-01/GetAccount.json */ /** * Sample code: Get Account. @@ -714,7 +630,7 @@ public final class AccountsGetByResourceGroupSamples { */ public final class AccountsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountsBySubscription.json + * x-ms-original-file: 2026-07-01/ListAccountsBySubscription.json */ /** * Sample code: List Accounts by Subscription. @@ -736,7 +652,7 @@ public final class AccountsListSamples { */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountsByResourceGroup.json + * x-ms-original-file: 2026-07-01/ListAccountsByResourceGroup.json */ /** * Sample code: List Accounts by Resource Group. @@ -758,7 +674,7 @@ public final class AccountsListByResourceGroupSamples { */ public final class AccountsListKeysSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListKeys.json + * x-ms-original-file: 2026-07-01/ListKeys.json */ /** * Sample code: List Keys. @@ -779,7 +695,7 @@ public final class AccountsListKeysSamples { */ public final class AccountsListModelsSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountModels.json + * x-ms-original-file: 2026-07-01/ListAccountModels.json */ /** * Sample code: List AccountModels. @@ -800,7 +716,7 @@ public final class AccountsListModelsSamples { */ public final class AccountsListSkusSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSkus.json + * x-ms-original-file: 2026-07-01/ListSkus.json */ /** * Sample code: List SKUs. @@ -821,7 +737,7 @@ public final class AccountsListSkusSamples { */ public final class AccountsListUsagesSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetUsages.json + * x-ms-original-file: 2026-07-01/GetUsages.json */ /** * Sample code: Get Usages. @@ -834,7 +750,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesClassicScope.json + * x-ms-original-file: 2026-07-01/GetUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -848,7 +764,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesDataZoneScope.json + * x-ms-original-file: 2026-07-01/GetUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -862,7 +778,7 @@ public final class AccountsListUsagesSamples { } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesGlobalScope.json + * x-ms-original-file: 2026-07-01/GetUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. @@ -888,7 +804,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameter */ public final class AccountsRegenerateKeySamples { /* - * x-ms-original-file: 2026-05-15-preview/RegenerateKey.json + * x-ms-original-file: 2026-07-01/RegenerateKey.json */ /** * Sample code: Regenerate Keys. @@ -914,7 +830,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateAccount.json + * x-ms-original-file: 2026-07-01/UpdateAccount.json */ /** * Sample code: Update Account. @@ -942,7 +858,7 @@ import java.util.Map; */ public final class AgentApplicationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/createOrUpdate.json + * x-ms-original-file: 2026-07-01/AgentApplication/createOrUpdate.json */ /** * Sample code: Create or Update Account Agent Application. @@ -983,7 +899,7 @@ public final class AgentApplicationsCreateOrUpdateSamples { */ public final class AgentApplicationsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/delete.json + * x-ms-original-file: 2026-07-01/AgentApplication/delete.json */ /** * Sample code: Delete Account Agent Application. @@ -1007,7 +923,7 @@ public final class AgentApplicationsDeleteSamples { */ public final class AgentApplicationsDisableSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/disable.json + * x-ms-original-file: 2026-07-01/AgentApplication/disable.json */ /** * Sample code: Disable Agent Application. @@ -1031,7 +947,7 @@ public final class AgentApplicationsDisableSamples { */ public final class AgentApplicationsEnableSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/enable.json + * x-ms-original-file: 2026-07-01/AgentApplication/enable.json */ /** * Sample code: Enable Agent Application. @@ -1055,7 +971,7 @@ public final class AgentApplicationsEnableSamples { */ public final class AgentApplicationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/get.json + * x-ms-original-file: 2026-07-01/AgentApplication/get.json */ /** * Sample code: Get Account Agent Application. @@ -1081,7 +997,7 @@ import java.util.Arrays; */ public final class AgentApplicationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/list.json + * x-ms-original-file: 2026-07-01/AgentApplication/list.json */ /** * Sample code: List Account Agent Applications. @@ -1105,7 +1021,7 @@ public final class AgentApplicationsListSamples { */ public final class AgentApplicationsListAgentsSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/listAgents.json + * x-ms-original-file: 2026-07-01/AgentApplication/listAgents.json */ /** * Sample code: List Agents for Agent Application. @@ -1136,7 +1052,7 @@ import java.util.Arrays; */ public final class AgentDeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/createOrUpdate.json + * x-ms-original-file: 2026-07-01/AgentDeployment/createOrUpdate.json */ /** * Sample code: Create or Update Agent Deployment. @@ -1168,7 +1084,7 @@ public final class AgentDeploymentsCreateOrUpdateSamples { */ public final class AgentDeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/delete.json + * x-ms-original-file: 2026-07-01/AgentDeployment/delete.json */ /** * Sample code: Delete Agent Deployment. @@ -1192,7 +1108,7 @@ public final class AgentDeploymentsDeleteSamples { */ public final class AgentDeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/get.json + * x-ms-original-file: 2026-07-01/AgentDeployment/get.json */ /** * Sample code: Get Agent Deployment. @@ -1217,7 +1133,7 @@ public final class AgentDeploymentsGetSamples { */ public final class AgentDeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/list.json + * x-ms-original-file: 2026-07-01/AgentDeployment/list.json */ /** * Sample code: List Agent Deployments. @@ -1241,7 +1157,7 @@ public final class AgentDeploymentsListSamples { */ public final class AgentDeploymentsStartSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/start.json + * x-ms-original-file: 2026-07-01/AgentDeployment/start.json */ /** * Sample code: Start Agent Deployment. @@ -1265,7 +1181,7 @@ public final class AgentDeploymentsStartSamples { */ public final class AgentDeploymentsStopSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/stop.json + * x-ms-original-file: 2026-07-01/AgentDeployment/stop.json */ /** * Sample code: Stop Agent Deployment. @@ -1294,7 +1210,7 @@ import com.azure.resourcemanager.cognitiveservices.models.HostingModel; */ public final class CommitmentPlansCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutCommitmentPlan.json + * x-ms-original-file: 2026-07-01/PutCommitmentPlan.json */ /** * Sample code: PutCommitmentPlan. @@ -1322,7 +1238,7 @@ public final class CommitmentPlansCreateOrUpdateSamples { */ public final class CommitmentPlansCreateOrUpdateAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-01/CreateSharedCommitmentPlanAssociation.json */ /** * Sample code: PutCommitmentPlan. @@ -1353,7 +1269,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class CommitmentPlansCreateOrUpdatePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-01/CreateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. @@ -1385,7 +1301,7 @@ public final class CommitmentPlansCreateOrUpdatePlanSamples { */ public final class CommitmentPlansDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteCommitmentPlan.json + * x-ms-original-file: 2026-07-01/DeleteCommitmentPlan.json */ /** * Sample code: DeleteCommitmentPlan. @@ -1408,7 +1324,7 @@ public final class CommitmentPlansDeleteSamples { */ public final class CommitmentPlansDeleteAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-01/DeleteSharedCommitmentPlanAssociation.json */ /** * Sample code: DeleteCommitmentPlan. @@ -1432,7 +1348,7 @@ public final class CommitmentPlansDeleteAssociationSamples { */ public final class CommitmentPlansDeletePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-01/DeleteSharedCommitmentPlan.json */ /** * Sample code: Delete Commitment Plan. @@ -1455,7 +1371,7 @@ public final class CommitmentPlansDeletePlanSamples { */ public final class CommitmentPlansGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetCommitmentPlan.json + * x-ms-original-file: 2026-07-01/GetCommitmentPlan.json */ /** * Sample code: GetCommitmentPlan. @@ -1478,7 +1394,7 @@ public final class CommitmentPlansGetSamples { */ public final class CommitmentPlansGetAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-01/GetSharedCommitmentPlanAssociation.json */ /** * Sample code: GetCommitmentPlan. @@ -1501,7 +1417,7 @@ public final class CommitmentPlansGetAssociationSamples { */ public final class CommitmentPlansGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-01/GetSharedCommitmentPlan.json */ /** * Sample code: Get Commitment Plan. @@ -1524,7 +1440,7 @@ public final class CommitmentPlansGetByResourceGroupSamples { */ public final class CommitmentPlansListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListCommitmentPlans.json + * x-ms-original-file: 2026-07-01/ListCommitmentPlans.json */ /** * Sample code: ListCommitmentPlans. @@ -1546,7 +1462,7 @@ public final class CommitmentPlansListSamples { */ public final class CommitmentPlansListAssociationsSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlanAssociations.json + * x-ms-original-file: 2026-07-01/ListSharedCommitmentPlanAssociations.json */ /** * Sample code: ListCommitmentPlans. @@ -1569,7 +1485,7 @@ public final class CommitmentPlansListAssociationsSamples { */ public final class CommitmentPlansListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansByResourceGroup.json + * x-ms-original-file: 2026-07-01/ListSharedCommitmentPlansByResourceGroup.json */ /** * Sample code: List Commitment Plans by Resource Group. @@ -1591,7 +1507,7 @@ public final class CommitmentPlansListByResourceGroupSamples { */ public final class CommitmentPlansListPlansBySubscriptionSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansBySubscription.json + * x-ms-original-file: 2026-07-01/ListSharedCommitmentPlansBySubscription.json */ /** * Sample code: List Accounts by Subscription. @@ -1617,7 +1533,7 @@ import java.util.Map; */ public final class CommitmentPlansUpdatePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-01/UpdateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. @@ -1654,7 +1570,7 @@ public final class CommitmentPlansUpdatePlanSamples { */ public final class CommitmentTiersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListCommitmentTiers.json + * x-ms-original-file: 2026-07-01/ListCommitmentTiers.json */ /** * Sample code: ListCommitmentTiers. @@ -1668,295 +1584,6 @@ public final class CommitmentTiersListSamples { } ``` -### ComputeOperations_Get - -```java -/** - * Samples for ComputeOperations Get. - */ -public final class ComputeOperationsGetSamples { - /* - * x-ms-original-file: 2026-05-15-preview/GetComputeOperationStatus.json - */ - /** - * Sample code: GetComputeOperationStatus. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void - getComputeOperationStatus(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.computeOperations() - .getWithResponse("eastus", "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE); - } -} -``` - -### 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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-15-preview/UpdateCompute.json - */ - /** - * Sample code: UpdateCompute. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void updateCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - Compute resource = manager.computes() - .getWithResponse("rgcognitiveservices", "myAccount", "myCompute", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ClusterComputeProperties().withPools(Arrays.asList(new Pool().withName("default") - .withVmPriority(VmPriority.REGULAR) - .withInstanceType("Standard_DS3_v2") - .withNodeCount(4)))) - .apply(); - } -} -``` - ### DefenderForAISettings_CreateOrUpdate ```java @@ -1967,7 +1594,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingSt */ public final class DefenderForAISettingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutDefenderForAISetting.json + * x-ms-original-file: 2026-07-01/PutDefenderForAISetting.json */ /** * Sample code: PutDefenderForAISetting. @@ -1993,7 +1620,7 @@ public final class DefenderForAISettingsCreateOrUpdateSamples { */ public final class DefenderForAISettingsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDefenderForAISetting.json + * x-ms-original-file: 2026-07-01/GetDefenderForAISetting.json */ /** * Sample code: GetDefenderForAISetting. @@ -2016,7 +1643,7 @@ public final class DefenderForAISettingsGetSamples { */ public final class DefenderForAISettingsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDefenderForAISetting.json + * x-ms-original-file: 2026-07-01/ListDefenderForAISetting.json */ /** * Sample code: ListDefenderForAISetting. @@ -2041,7 +1668,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingSt */ public final class DefenderForAISettingsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateDefenderForAISetting.json + * x-ms-original-file: 2026-07-01/UpdateDefenderForAISetting.json */ /** * Sample code: UpdateDefenderForAISetting. @@ -2066,7 +1693,7 @@ public final class DefenderForAISettingsUpdateSamples { */ public final class DeletedAccountsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDeletedAccount.json + * x-ms-original-file: 2026-07-01/GetDeletedAccount.json */ /** * Sample code: Get Account. @@ -2088,7 +1715,7 @@ public final class DeletedAccountsGetSamples { */ public final class DeletedAccountsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeletedAccountsBySubscription.json + * x-ms-original-file: 2026-07-01/ListDeletedAccountsBySubscription.json */ /** * Sample code: List Deleted Accounts by Subscription. @@ -2110,7 +1737,7 @@ public final class DeletedAccountsListSamples { */ public final class DeletedAccountsPurgeSamples { /* - * x-ms-original-file: 2026-05-15-preview/PurgeDeletedAccount.json + * x-ms-original-file: 2026-07-01/PurgeDeletedAccount.json */ /** * Sample code: Delete Account. @@ -2128,7 +1755,6 @@ public final class DeletedAccountsPurgeSamples { ```java import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; import com.azure.resourcemanager.cognitiveservices.models.DeploymentProperties; -import com.azure.resourcemanager.cognitiveservices.models.DeploymentSpeculativeDecoding; import com.azure.resourcemanager.cognitiveservices.models.DeploymentState; import com.azure.resourcemanager.cognitiveservices.models.ServiceTier; import com.azure.resourcemanager.cognitiveservices.models.Sku; @@ -2138,7 +1764,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class DeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutDeployment.json + * x-ms-original-file: 2026-07-01/PutDeployment.json */ /** * Sample code: PutDeployment. @@ -2156,34 +1782,6 @@ public final class DeploymentsCreateOrUpdateSamples { .withSku(new Sku().withName("Standard").withCapacity(1)) .create(); } - - /* - * x-ms-original-file: 2026-05-15-preview/PutDeploymentWithSpeculativeDecoding.json - */ - /** - * Sample code: PutDeploymentWithSpeculativeDecoding. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void putDeploymentWithSpeculativeDecoding( - com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.deployments() - .define("deploymentName") - .withExistingAccount("resourceGroupName", "accountName") - .withProperties(new DeploymentProperties() - .withModel(new DeploymentModel().withFormat("Fireworks").withName("FW-Qwen3-14B").withVersion("1")) - .withSpeculativeDecoding(new DeploymentSpeculativeDecoding().withDraftModel(new DeploymentModel() - .withFormat("FireworksCustom") - .withName("testDraftModel") - .withVersion("1") - .withSource( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/projects/projectName")) - .withDraftTokenCount(4)) - .withServiceTier(ServiceTier.DEFAULT) - .withDeploymentState(DeploymentState.RUNNING)) - .withSku(new Sku().withName("GlobalProvisionedManaged").withCapacity(80)) - .create(); - } } ``` @@ -2195,7 +1793,7 @@ public final class DeploymentsCreateOrUpdateSamples { */ public final class DeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteDeployment.json + * x-ms-original-file: 2026-07-01/DeleteDeployment.json */ /** * Sample code: DeleteDeployment. @@ -2217,7 +1815,7 @@ public final class DeploymentsDeleteSamples { */ public final class DeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDeployment.json + * x-ms-original-file: 2026-07-01/GetDeployment.json */ /** * Sample code: GetDeployment. @@ -2239,7 +1837,7 @@ public final class DeploymentsGetSamples { */ public final class DeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeployments.json + * x-ms-original-file: 2026-07-01/ListDeployments.json */ /** * Sample code: ListDeployments. @@ -2260,7 +1858,7 @@ public final class DeploymentsListSamples { */ public final class DeploymentsListSkusSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeploymentSkus.json + * x-ms-original-file: 2026-07-01/ListDeploymentSkus.json */ /** * Sample code: ListDeploymentSkus. @@ -2283,7 +1881,7 @@ public final class DeploymentsListSkusSamples { */ public final class DeploymentsPauseSamples { /* - * x-ms-original-file: 2026-05-15-preview/PauseDeployment.json + * x-ms-original-file: 2026-07-01/PauseDeployment.json */ /** * Sample code: PauseDeployment. @@ -2305,7 +1903,7 @@ public final class DeploymentsPauseSamples { */ public final class DeploymentsResumeSamples { /* - * x-ms-original-file: 2026-05-15-preview/ResumeDeployment.json + * x-ms-original-file: 2026-07-01/ResumeDeployment.json */ /** * Sample code: ResumeDeployment. @@ -2330,7 +1928,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku; */ public final class DeploymentsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateDeployment.json + * x-ms-original-file: 2026-07-01/UpdateDeployment.json */ /** * Sample code: UpdateDeployment. @@ -2359,7 +1957,7 @@ import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties; */ public final class EncryptionScopesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutEncryptionScope.json + * x-ms-original-file: 2026-07-01/PutEncryptionScope.json */ /** * Sample code: PutEncryptionScope. @@ -2386,371 +1984,129 @@ public final class EncryptionScopesCreateOrUpdateSamples { ### EncryptionScopes_Delete ```java -/** - * Samples for EncryptionScopes Delete. - */ -public final class EncryptionScopesDeleteSamples { - /* - * x-ms-original-file: 2026-05-15-preview/DeleteEncryptionScope.json - */ - /** - * Sample code: DeleteEncryptionScope. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void - deleteEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.encryptionScopes() - .delete("resourceGroupName", "accountName", "encryptionScopeName", com.azure.core.util.Context.NONE); - } -} -``` - -### EncryptionScopes_Get - -```java -/** - * Samples for EncryptionScopes Get. - */ -public final class EncryptionScopesGetSamples { - /* - * x-ms-original-file: 2026-05-15-preview/GetEncryptionScope.json - */ - /** - * Sample code: GetEncryptionScope. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void - getEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.encryptionScopes() - .getWithResponse("resourceGroupName", "accountName", "encryptionScopeName", - com.azure.core.util.Context.NONE); - } -} -``` - -### EncryptionScopes_List - -```java -/** - * Samples for EncryptionScopes List. - */ -public final class EncryptionScopesListSamples { - /* - * x-ms-original-file: 2026-05-15-preview/ListEncryptionScopes.json - */ - /** - * Sample code: ListEncryptionScopes. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void - listEncryptionScopes(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.encryptionScopes().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); - } -} -``` - -### LocationBasedModelCapacities_List - -```java -/** - * Samples for LocationBasedModelCapacities List. - */ -public final class LocationBasedModelCapacitiesListSamples { - /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json - */ - /** - * Sample code: ListLocationBasedModelCapacities Global Scope. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void listLocationBasedModelCapacitiesGlobalScope( - com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesClassicScope.json - */ - /** - * Sample code: ListLocationBasedModelCapacities Classic Scope. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void listLocationBasedModelCapacitiesClassicScope( - com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json - */ - /** - * Sample code: ListLocationBasedModelCapacities DataZone Scope. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void listLocationBasedModelCapacitiesDataZoneScope( - com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacities.json - */ - /** - * Sample code: ListLocationBasedModelCapacities. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void - listLocationBasedModelCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); - } -} -``` - -### ManagedComputeCapacities_List - -```java -/** - * Samples for ManagedComputeCapacities List. - */ -public final class ManagedComputeCapacitiesListSamples { - /* - * x-ms-original-file: 2026-05-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-05-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-05-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-05-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-05-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); - } - +/** + * Samples for EncryptionScopes Delete. + */ +public final class EncryptionScopesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetManagedComputeDeployment.json + * x-ms-original-file: 2026-07-01/DeleteEncryptionScope.json */ /** - * Sample code: GetManagedComputeDeployment. + * Sample code: DeleteEncryptionScope. * * @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); + deleteEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes() + .delete("resourceGroupName", "accountName", "encryptionScopeName", com.azure.core.util.Context.NONE); } } ``` -### ManagedComputeDeployments_List +### EncryptionScopes_Get ```java /** - * Samples for ManagedComputeDeployments List. + * Samples for EncryptionScopes Get. */ -public final class ManagedComputeDeploymentsListSamples { +public final class EncryptionScopesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListVmManagedComputeDeployments.json + * x-ms-original-file: 2026-07-01/GetEncryptionScope.json */ /** - * Sample code: ListVmManagedComputeDeployments. + * Sample code: GetEncryptionScope. * * @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); + getEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes() + .getWithResponse("resourceGroupName", "accountName", "encryptionScopeName", + com.azure.core.util.Context.NONE); } +} +``` + +### EncryptionScopes_List +```java +/** + * Samples for EncryptionScopes List. + */ +public final class EncryptionScopesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListManagedComputeDeployments.json + * x-ms-original-file: 2026-07-01/ListEncryptionScopes.json */ /** - * Sample code: ListManagedComputeDeployments. + * Sample code: ListEncryptionScopes. * * @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); + listEncryptionScopes(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.encryptionScopes().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE); } } ``` -### ManagedComputeDeployments_Update +### LocationBasedModelCapacities_List ```java -import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployment; -import com.azure.resourcemanager.cognitiveservices.models.Sku; - /** - * Samples for ManagedComputeDeployments Update. + * Samples for LocationBasedModelCapacities List. */ -public final class ManagedComputeDeploymentsUpdateSamples { +public final class LocationBasedModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateVmManagedComputeDeployment.json + * x-ms-original-file: 2026-07-01/ListLocationBasedModelCapacitiesGlobalScope.json */ /** - * Sample code: UpdateVmManagedComputeDeployment. + * Sample code: ListLocationBasedModelCapacities Global Scope. * * @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(); + public static void listLocationBasedModelCapacitiesGlobalScope( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-05-15-preview/UpdateManagedComputeDeployment.json + * x-ms-original-file: 2026-07-01/ListLocationBasedModelCapacitiesClassicScope.json */ /** - * Sample code: UpdateManagedComputeDeployment. + * Sample code: ListLocationBasedModelCapacities Classic Scope. * * @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(); + public static void listLocationBasedModelCapacitiesClassicScope( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); } -} -``` -### ManagedComputeUsagesOperationGroup_List + /* + * x-ms-original-file: 2026-07-01/ListLocationBasedModelCapacitiesDataZoneScope.json + */ + /** + * Sample code: ListLocationBasedModelCapacities DataZone Scope. + * + * @param manager Entry point to CognitiveServicesManager. + */ + public static void listLocationBasedModelCapacitiesDataZoneScope( + com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); + } -```java -/** - * Samples for ManagedComputeUsagesOperationGroup List. - */ -public final class ManagedComputeUsagesOperationGroupListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListManagedComputeUsages.json + * x-ms-original-file: 2026-07-01/ListLocationBasedModelCapacities.json */ /** - * Sample code: List Managed Compute Usages. + * Sample code: ListLocationBasedModelCapacities. * * @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); + listLocationBasedModelCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { + manager.locationBasedModelCapacities().list("WestUS", "OpenAI", "ada", "1", com.azure.core.util.Context.NONE); } } ``` @@ -2765,7 +2121,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisio */ public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/provisionManagedNetwork.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/provisionManagedNetwork.json */ /** * Sample code: Provision ManagedNetwork. @@ -2789,7 +2145,7 @@ public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples { */ public final class ManagedNetworkSettingsOperationDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/deleteManagedNetworkV2.json */ /** * Sample code: Delete ManagedNetworkSettings. @@ -2812,7 +2168,7 @@ public final class ManagedNetworkSettingsOperationDeleteSamples { */ public final class ManagedNetworkSettingsOperationGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/getManagedNetworkV2.json */ /** * Sample code: Get ManagedNetworkSettings. @@ -2835,7 +2191,7 @@ public final class ManagedNetworkSettingsOperationGetSamples { */ public final class ManagedNetworkSettingsOperationListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/listManagedNetworkV2.json */ /** * Sample code: List ManagedNetworkSettings. @@ -2868,7 +2224,7 @@ import java.util.Map; */ public final class ManagedNetworkSettingsOperationPatchSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/patchManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/patchManagedNetworkV2.json */ /** * Sample code: Patch ManagedNetworkSettings. @@ -2921,7 +2277,7 @@ import java.util.Map; */ public final class ManagedNetworkSettingsOperationPutSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/createOrUpdateManagedNetworkV2.json */ /** * Sample code: Put ManagedNetworkSettings. @@ -2964,7 +2320,7 @@ public final class ManagedNetworkSettingsOperationPutSamples { */ public final class ModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacities.json + * x-ms-original-file: 2026-07-01/ListModelCapacities.json */ /** * Sample code: ListModelCapacities. @@ -2977,7 +2333,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-07-01/ListModelCapacitiesDataZoneScope.json */ /** * Sample code: ListModelCapacities DataZone Scope. @@ -2990,7 +2346,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-07-01/ListModelCapacitiesGlobalScope.json */ /** * Sample code: ListModelCapacities Global Scope. @@ -3003,7 +2359,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-07-01/ListModelCapacitiesClassicScope.json */ /** * Sample code: ListModelCapacities Classic Scope. @@ -3025,7 +2381,7 @@ public final class ModelCapacitiesListSamples { */ public final class ModelsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListLocationModels.json + * x-ms-original-file: 2026-07-01/ListLocationModels.json */ /** * Sample code: ListLocationModels. @@ -3047,7 +2403,7 @@ public final class ModelsListSamples { */ public final class NetworkSecurityPerimeterConfigurationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-01/GetNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: GetNetworkSecurityPerimeterConfigurations. @@ -3071,7 +2427,7 @@ public final class NetworkSecurityPerimeterConfigurationsGetSamples { */ public final class NetworkSecurityPerimeterConfigurationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-01/ListNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ListNetworkSecurityPerimeterConfigurations. @@ -3094,7 +2450,7 @@ public final class NetworkSecurityPerimeterConfigurationsListSamples { */ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { /* - * x-ms-original-file: 2026-05-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-01/ReconcileNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ReconcileNetworkSecurityPerimeterConfigurations. @@ -3117,7 +2473,7 @@ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetOperations.json + * x-ms-original-file: 2026-07-01/GetOperations.json */ /** * Sample code: Get Operations. @@ -3142,7 +2498,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RuleStatus; */ public final class OutboundRuleCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateRuleV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/createOrUpdateRuleV2.json */ /** * Sample code: CreateOrUpdate OutboundRule. @@ -3170,7 +2526,7 @@ public final class OutboundRuleCreateOrUpdateSamples { */ public final class OutboundRuleDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteRuleV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/deleteRuleV2.json */ /** * Sample code: Delete OutboundRule. @@ -3193,7 +2549,7 @@ public final class OutboundRuleDeleteSamples { */ public final class OutboundRuleGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getRuleV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/getRuleV2.json */ /** * Sample code: Get OutboundRule. @@ -3216,7 +2572,7 @@ public final class OutboundRuleGetSamples { */ public final class OutboundRuleListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listRuleV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/listRuleV2.json */ /** * Sample code: List OutboundRules. @@ -3246,7 +2602,7 @@ import java.util.Map; */ public final class OutboundRulesOperationPostSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/postOutboundRulesV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/postOutboundRulesV2.json */ /** * Sample code: Post OutboundRules. @@ -3291,7 +2647,7 @@ import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConn */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutPrivateEndpointConnection.json + * x-ms-original-file: 2026-07-01/PutPrivateEndpointConnection.json */ /** * Sample code: PutPrivateEndpointConnection. @@ -3319,7 +2675,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-07-01/DeletePrivateEndpointConnection.json */ /** * Sample code: DeletePrivateEndpointConnection. @@ -3342,7 +2698,7 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-07-01/GetPrivateEndpointConnection.json */ /** * Sample code: GetPrivateEndpointConnection. @@ -3365,7 +2721,7 @@ public final class PrivateEndpointConnectionsGetSamples { */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListPrivateEndpointConnections.json + * x-ms-original-file: 2026-07-01/ListPrivateEndpointConnections.json */ /** * Sample code: GetPrivateEndpointConnection. @@ -3387,7 +2743,7 @@ public final class PrivateEndpointConnectionsListSamples { */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListPrivateLinkResources.json + * x-ms-original-file: 2026-07-01/ListPrivateLinkResources.json */ /** * Sample code: ListPrivateLinkResources. @@ -3412,7 +2768,7 @@ import java.util.Arrays; */ public final class ProjectCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-07-01/ProjectCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Project CapabilityHost. @@ -3442,7 +2798,7 @@ public final class ProjectCapabilityHostsCreateOrUpdateSamples { */ public final class ProjectCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/delete.json + * x-ms-original-file: 2026-07-01/ProjectCapabilityHost/delete.json */ /** * Sample code: Delete Project CapabilityHost. @@ -3465,7 +2821,7 @@ public final class ProjectCapabilityHostsDeleteSamples { */ public final class ProjectCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/get.json + * x-ms-original-file: 2026-07-01/ProjectCapabilityHost/get.json */ /** * Sample code: Get Project CapabilityHost. @@ -3489,7 +2845,7 @@ public final class ProjectCapabilityHostsGetSamples { */ public final class ProjectCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/list.json + * x-ms-original-file: 2026-07-01/ProjectCapabilityHost/list.json */ /** * Sample code: List Project CapabilityHosts. @@ -3506,6 +2862,7 @@ public final class ProjectCapabilityHostsListSamples { ### ProjectConnections_Create ```java +import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties; import java.time.OffsetDateTime; @@ -3515,7 +2872,7 @@ import java.time.OffsetDateTime; */ public final class ProjectConnectionsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/create.json + * x-ms-original-file: 2026-07-01/ProjectConnection/create.json */ /** * Sample code: CreateProjectConnection. @@ -3525,12 +2882,12 @@ public final class ProjectConnectionsCreateSamples { public static void createProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.projectConnections() - .define("connection-1") - .withExistingProject("resourceGroup-1", "account-1", "project-1") - .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) - .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) - .withTarget("[target url]")) - .create(); + .createWithResponse("resourceGroup-1", "account-1", "project-1", "connection-1", + new ConnectionPropertiesV2BasicResourceInner().withProperties( + new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) + .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) + .withTarget("[target url]")), + com.azure.core.util.Context.NONE); } } ``` @@ -3543,7 +2900,7 @@ public final class ProjectConnectionsCreateSamples { */ public final class ProjectConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/delete.json + * x-ms-original-file: 2026-07-01/ProjectConnection/delete.json */ /** * Sample code: DeleteProjectConnection. @@ -3567,7 +2924,7 @@ public final class ProjectConnectionsDeleteSamples { */ public final class ProjectConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/get.json + * x-ms-original-file: 2026-07-01/ProjectConnection/get.json */ /** * Sample code: GetProjectConnection. @@ -3591,7 +2948,7 @@ public final class ProjectConnectionsGetSamples { */ public final class ProjectConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/list.json + * x-ms-original-file: 2026-07-01/ProjectConnection/list.json */ /** * Sample code: ListProjectConnection. @@ -3613,7 +2970,7 @@ public final class ProjectConnectionsListSamples { import com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties; import com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -3623,7 +2980,7 @@ import java.util.Map; */ public final class ProjectConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/update.json + * x-ms-original-file: 2026-07-01/ProjectConnection/update.json */ /** * Sample code: UpdateProjectConnection. @@ -3632,17 +2989,16 @@ public final class ProjectConnectionsUpdateSamples { */ public static void updateProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - ConnectionPropertiesV2BasicResource resource = manager.projectConnections() - .getWithResponse("test-rg", "account-1", "project-1", "connection-1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) - .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .withMetadata(mapOf()) - .withTarget("some_string") - .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") - .withSecretAccessKey("fakeTokenPlaceholder"))) - .apply(); + manager.projectConnections() + .updateWithResponse("test-rg", "account-1", "project-1", "connection-1", + new ConnectionUpdateContent().withProperties( + new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) + .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) + .withMetadata(mapOf()) + .withTarget("some_string") + .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") + .withSecretAccessKey("fakeTokenPlaceholder"))), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available @@ -3671,7 +3027,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType; */ public final class ProjectsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateProjectMin.json + * x-ms-original-file: 2026-07-01/CreateProjectMin.json */ /** * Sample code: Create Project Min. @@ -3689,7 +3045,7 @@ public final class ProjectsCreateSamples { } /* - * x-ms-original-file: 2026-05-15-preview/CreateProject.json + * x-ms-original-file: 2026-07-01/CreateProject.json */ /** * Sample code: Create Project. @@ -3717,7 +3073,7 @@ public final class ProjectsCreateSamples { */ public final class ProjectsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteProject.json + * x-ms-original-file: 2026-07-01/DeleteProject.json */ /** * Sample code: Delete Project. @@ -3738,7 +3094,7 @@ public final class ProjectsDeleteSamples { */ public final class ProjectsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetProject.json + * x-ms-original-file: 2026-07-01/GetProject.json */ /** * Sample code: Get Project. @@ -3760,7 +3116,7 @@ public final class ProjectsGetSamples { */ public final class ProjectsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListProjects.json + * x-ms-original-file: 2026-07-01/ListProjects.json */ /** * Sample code: List Project. @@ -3784,7 +3140,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties; */ public final class ProjectsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateProjects.json + * x-ms-original-file: 2026-07-01/UpdateProjects.json */ /** * Sample code: Update Project. @@ -3811,7 +3167,7 @@ import com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy; */ public final class QuotaTiersCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateOrUpdateQuotaTier.json + * x-ms-original-file: 2026-07-01/CreateOrUpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. @@ -3836,7 +3192,7 @@ public final class QuotaTiersCreateOrUpdateSamples { */ public final class QuotaTiersGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetQuotaTier.json + * x-ms-original-file: 2026-07-01/GetQuotaTier.json */ /** * Sample code: Get the Quota Tier information for a subscription. @@ -3858,7 +3214,7 @@ public final class QuotaTiersGetSamples { */ public final class QuotaTiersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListQuotaTiers.json + * x-ms-original-file: 2026-07-01/ListQuotaTiers.json */ /** * Sample code: List the Quota Tier for a subscription. @@ -3884,7 +3240,7 @@ import com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy; */ public final class QuotaTiersUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateQuotaTier.json + * x-ms-original-file: 2026-07-01/UpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. @@ -3914,7 +3270,7 @@ import java.util.Arrays; */ public final class RaiBlocklistItemsBatchAddSamples { /* - * x-ms-original-file: 2026-05-15-preview/AddRaiBlocklistItems.json + * x-ms-original-file: 2026-07-01/AddRaiBlocklistItems.json */ /** * Sample code: AddRaiBlocklistItems. @@ -3946,7 +3302,7 @@ import java.util.Arrays; */ public final class RaiBlocklistItemsBatchDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItems.json + * x-ms-original-file: 2026-07-01/DeleteRaiBlocklistItems.json */ /** * Sample code: DeleteRaiBlocklistItems. @@ -3972,7 +3328,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProper */ public final class RaiBlocklistItemsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiBlocklistItem.json + * x-ms-original-file: 2026-07-01/PutRaiBlocklistItem.json */ /** * Sample code: PutRaiBlocklistItem. @@ -3998,7 +3354,7 @@ public final class RaiBlocklistItemsCreateOrUpdateSamples { */ public final class RaiBlocklistItemsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItem.json + * x-ms-original-file: 2026-07-01/DeleteRaiBlocklistItem.json */ /** * Sample code: DeleteRaiBlocklistItem. @@ -4022,7 +3378,7 @@ public final class RaiBlocklistItemsDeleteSamples { */ public final class RaiBlocklistItemsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiBlocklistItem.json + * x-ms-original-file: 2026-07-01/GetRaiBlocklistItem.json */ /** * Sample code: GetRaiBlocklistItem. @@ -4046,7 +3402,7 @@ public final class RaiBlocklistItemsGetSamples { */ public final class RaiBlocklistItemsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListBlocklistItems.json + * x-ms-original-file: 2026-07-01/ListBlocklistItems.json */ /** * Sample code: ListBlocklistItems. @@ -4071,7 +3427,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties */ public final class RaiBlocklistsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiBlocklist.json + * x-ms-original-file: 2026-07-01/PutRaiBlocklist.json */ /** * Sample code: PutRaiBlocklist. @@ -4096,7 +3452,7 @@ public final class RaiBlocklistsCreateOrUpdateSamples { */ public final class RaiBlocklistsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklist.json + * x-ms-original-file: 2026-07-01/DeleteRaiBlocklist.json */ /** * Sample code: DeleteRaiBlocklist. @@ -4119,7 +3475,7 @@ public final class RaiBlocklistsDeleteSamples { */ public final class RaiBlocklistsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiBlocklist.json + * x-ms-original-file: 2026-07-01/GetRaiBlocklist.json */ /** * Sample code: GetRaiBlocklist. @@ -4141,7 +3497,7 @@ public final class RaiBlocklistsGetSamples { */ public final class RaiBlocklistsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListBlocklists.json + * x-ms-original-file: 2026-07-01/ListBlocklists.json */ /** * Sample code: ListBlocklists. @@ -4162,7 +3518,7 @@ public final class RaiBlocklistsListSamples { */ public final class RaiContentFiltersGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiContentFilter.json + * x-ms-original-file: 2026-07-01/GetRaiContentFilter.json */ /** * Sample code: GetRaiContentFilters. @@ -4184,7 +3540,7 @@ public final class RaiContentFiltersGetSamples { */ public final class RaiContentFiltersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiContentFilters.json + * x-ms-original-file: 2026-07-01/ListRaiContentFilters.json */ /** * Sample code: ListRaiContentFilters. @@ -4209,7 +3565,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProvi */ public final class RaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-01/PutRaiExternalSafetyProvider.json */ /** * Sample code: PutRaiExternalSafetyProvider. @@ -4240,7 +3596,7 @@ public final class RaiExternalSafetyProviderCreateOrUpdateSamples { */ public final class RaiExternalSafetyProviderDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-01/DeleteRaiExternalSafetyProvider.json */ /** * Sample code: DeleteRaiTopic. @@ -4261,7 +3617,7 @@ public final class RaiExternalSafetyProviderDeleteSamples { */ public final class RaiExternalSafetyProviderGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-01/GetRaiExternalSafetyProvider.json */ /** * Sample code: GetRaiExternalSafetyProvider. @@ -4283,7 +3639,7 @@ public final class RaiExternalSafetyProviderGetSamples { */ public final class RaiExternalSafetyProvidersOperationListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiExternalSafetyProviders.json + * x-ms-original-file: 2026-07-01/ListRaiExternalSafetyProviders.json */ /** * Sample code: ListRaiExternalSafetyProviders. @@ -4301,20 +3657,6 @@ public final class RaiExternalSafetyProvidersOperationListSamples { ```java import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderOperation; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderTransform; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderValueRef; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressManagedIdentityRef; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressScheme; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; @@ -4326,7 +3668,7 @@ import java.util.Arrays; */ public final class RaiPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiPolicy.json + * x-ms-original-file: 2026-07-01/PutRaiPolicy.json */ /** * Sample code: PutRaiPolicy. @@ -4398,56 +3740,6 @@ public final class RaiPoliciesCreateOrUpdateSamples { .withSource(RaiPolicyContentSource.PROMPT)))) .create(); } - - /* - * x-ms-original-file: 2026-05-15-preview/PutRaiPolicyWithEgress.json - */ - /** - * Sample code: PutRaiPolicyWithEgress. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void - putRaiPolicyWithEgress(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.raiPolicies() - .define("egress-baseline") - .withExistingAccount("resourceGroupName", "accountName") - .withProperties(new RaiPolicyProperties().withBasePolicyName("Microsoft.Default") - .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.DENY) - .withDescription("Corporate baseline egress policy for sandboxed agents") - .withRules(Arrays.asList( - new RaiEgressRule().withName("allow-openai") - .withDescription("Allow traffic to OpenAI API") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("*.openai.com")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW)), - new RaiEgressRule().withName("inject-auth-for-internal") - .withDescription("Inject managed identity token for internal services") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("*.internal.contoso.com")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM) - .withHeaders(Arrays - .asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) - .withName("Authorization") - .withValueRef(new RaiEgressHeaderValueRef() - .withManagedIdentityRef(new RaiEgressManagedIdentityRef() - .withResource("https://internal.contoso.com/.default") - .withFormat("Bearer {value}")))))), - new RaiEgressRule().withName("rewrite-legacy-api") - .withDescription("Rewrite legacy API hostname to new internal endpoint") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("legacy-api.contoso.com").withPath("/v1/*")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.REWRITE) - .withHeaders(Arrays - .asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) - .withName("X-Forwarded-Host") - .withValue("legacy-api.contoso.com"))) - .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) - .withHost("api-v2.internal.contoso.com") - .withPath("/v2/"))))))) - .create(); - } } ``` @@ -4459,7 +3751,7 @@ public final class RaiPoliciesCreateOrUpdateSamples { */ public final class RaiPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiPolicy.json + * x-ms-original-file: 2026-07-01/DeleteRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. @@ -4481,7 +3773,7 @@ public final class RaiPoliciesDeleteSamples { */ public final class RaiPoliciesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiPolicy.json + * x-ms-original-file: 2026-07-01/GetRaiPolicy.json */ /** * Sample code: GetRaiPolicy. @@ -4503,7 +3795,7 @@ public final class RaiPoliciesGetSamples { */ public final class RaiPoliciesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiPolicies.json + * x-ms-original-file: 2026-07-01/ListRaiPolicies.json */ /** * Sample code: ListRaiPolicies. @@ -4531,7 +3823,7 @@ import java.util.Map; */ public final class RaiToolLabelsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiToolLabel.json + * x-ms-original-file: 2026-07-01/PutRaiToolLabel.json */ /** * Sample code: PutRaiToolLabel. @@ -4575,7 +3867,7 @@ public final class RaiToolLabelsCreateOrUpdateSamples { */ public final class RaiToolLabelsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiToolLabel.json + * x-ms-original-file: 2026-07-01/DeleteRaiToolLabel.json */ /** * Sample code: DeleteRaiToolLabel. @@ -4598,7 +3890,7 @@ public final class RaiToolLabelsDeleteSamples { */ public final class RaiToolLabelsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiToolLabel.json + * x-ms-original-file: 2026-07-01/GetRaiToolLabel.json */ /** * Sample code: GetRaiToolLabel. @@ -4620,7 +3912,7 @@ public final class RaiToolLabelsGetSamples { */ public final class RaiToolLabelsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiToolLabels.json + * x-ms-original-file: 2026-07-01/ListRaiToolLabels.json */ /** * Sample code: ListRaiToolLabels. @@ -4643,7 +3935,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiTopicProperties; */ public final class RaiTopicsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiTopic.json + * x-ms-original-file: 2026-07-01/PutRaiTopic.json */ /** * Sample code: PutRaiTopic. @@ -4670,7 +3962,7 @@ public final class RaiTopicsCreateOrUpdateSamples { */ public final class RaiTopicsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiTopic.json + * x-ms-original-file: 2026-07-01/DeleteRaiTopic.json */ /** * Sample code: DeleteRaiTopic. @@ -4692,7 +3984,7 @@ public final class RaiTopicsDeleteSamples { */ public final class RaiTopicsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiTopic.json + * x-ms-original-file: 2026-07-01/GetRaiTopic.json */ /** * Sample code: GetRaiTopic. @@ -4714,7 +4006,7 @@ public final class RaiTopicsGetSamples { */ public final class RaiTopicsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiTopics.json + * x-ms-original-file: 2026-07-01/ListRaiTopics.json */ /** * Sample code: ListRaiTopics. @@ -4741,7 +4033,7 @@ import java.util.Arrays; */ public final class ResourceProviderCalculateModelCapacitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CalculateModelCapacity.json + * x-ms-original-file: 2026-07-01/CalculateModelCapacity.json */ /** * Sample code: Calculate Model Capacity. @@ -4776,7 +4068,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilit */ public final class ResourceProviderCheckDomainAvailabilitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CheckDomainAvailability.json + * x-ms-original-file: 2026-07-01/CheckDomainAvailability.json */ /** * Sample code: Check SKU Availability. @@ -4805,7 +4097,7 @@ import java.util.Arrays; */ public final class ResourceProviderCheckSkuAvailabilitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CheckSkuAvailability.json + * x-ms-original-file: 2026-07-01/CheckSkuAvailability.json */ /** * Sample code: Check SKU Availability. @@ -4832,7 +4124,7 @@ public final class ResourceProviderCheckSkuAvailabilitySamples { */ public final class ResourceSkusListSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSkus.json + * x-ms-original-file: 2026-07-01/GetSkus.json */ /** * Sample code: Regenerate Keys. @@ -4861,7 +4153,7 @@ import java.util.Arrays; */ public final class SubscriptionRaiPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-01/PutSubscriptionRaiPolicy.json */ /** * Sample code: PutRaiPolicy. @@ -4944,7 +4236,7 @@ public final class SubscriptionRaiPolicyCreateOrUpdateSamples { */ public final class SubscriptionRaiPolicyDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-01/DeleteSubscriptionRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. @@ -4965,7 +4257,7 @@ public final class SubscriptionRaiPolicyDeleteSamples { */ public final class SubscriptionRaiPolicyGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-01/GetSubscriptionRaiPolicy.json */ /** * Sample code: GetRaiPolicy. @@ -4988,7 +4280,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProvi */ public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/TestRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-01/TestRaiExternalSafetyProvider.json */ /** * Sample code: TestRaiExternalSafetyProvider. @@ -5021,7 +4313,7 @@ public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples { */ public final class UsagesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListUsages.json + * x-ms-original-file: 2026-07-01/ListUsages.json */ /** * Sample code: Get Usages. @@ -5033,7 +4325,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesClassicScope.json + * x-ms-original-file: 2026-07-01/ListUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -5046,7 +4338,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesDataZoneScope.json + * x-ms-original-file: 2026-07-01/ListUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -5059,7 +4351,7 @@ public final class UsagesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesGlobalScope.json + * x-ms-original-file: 2026-07-01/ListUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. @@ -5073,241 +4365,3 @@ 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-05-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-05-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-05-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-05-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-05-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-05-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-05-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-05-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 041a193bfbd6..cbaa9194ac92 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-cognitiveservices - 1.5.0-beta.4 + 1.5.0 jar Microsoft Azure SDK for CognitiveServices Management - This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package api-version 2026-05-15-preview. + This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package api-version 2026-07-01. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java index 43a40fd85e12..74bd2e61d6be 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 @@ -33,16 +33,11 @@ import com.azure.resourcemanager.cognitiveservices.implementation.CognitiveServicesManagementClientBuilder; 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; @@ -70,7 +65,6 @@ 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; @@ -78,16 +72,11 @@ import com.azure.resourcemanager.cognitiveservices.models.AgentDeployments; 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; @@ -115,7 +104,6 @@ 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; @@ -173,18 +161,6 @@ 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; @@ -654,7 +630,7 @@ public Projects projects() { } /** - * Gets the resource collection API of ProjectConnections. It manages ConnectionPropertiesV2BasicResource. + * Gets the resource collection API of ProjectConnections. * * @return Resource collection API of ProjectConnections. */ @@ -702,81 +678,6 @@ 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. - * - * @return Resource collection API of ComputeOperations. - */ - public ComputeOperations computeOperations() { - if (this.computeOperations == null) { - this.computeOperations = new ComputeOperationsImpl(clientObject.getComputeOperations(), this); - } - 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. * @@ -829,7 +730,7 @@ public RaiExternalSafetyProvidersOperations raiExternalSafetyProvidersOperations } /** - * Gets the resource collection API of AccountConnections. + * Gets the resource collection API of AccountConnections. It manages ConnectionPropertiesV2BasicResource. * * @return Resource collection API of AccountConnections. */ diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java index 165058be53d9..0e89180537dc 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,9 +15,7 @@ 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; /** @@ -432,35 +430,4 @@ 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 a4627997b782..543a81f51961 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,48 +200,6 @@ 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. - * - * @return the ComputeOperationsClient object. - */ - 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/ComputeOperationsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputeOperationsClient.java deleted file mode 100644 index 863b7ee341a7..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputeOperationsClient.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeOperationStatusInner; - -/** - * An instance of this class provides access to all the operations defined in ComputeOperationsClient. - */ -public interface ComputeOperationsClient { - /** - * Gets the status of a compute operation. - * - * @param location The name of the Azure region. - * @param operationId The ID of the compute operation. - * @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 status of a compute operation along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String location, String operationId, Context context); - - /** - * Gets the status of a compute operation. - * - * @param location The name of the Azure region. - * @param operationId The ID of the compute 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 status of a compute operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ComputeOperationStatusInner get(String location, String operationId); -} 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 deleted file mode 100644 index f10d17f244bc..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java +++ /dev/null @@ -1,461 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 34d323f9432a..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeCapacitiesClient.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index f64588c2a057..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeDeploymentsClient.java +++ /dev/null @@ -1,275 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 3ca36d9a9727..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeUsagesOperationGroupsClient.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index ada1d7322cf3..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/WorkbenchesClient.java +++ /dev/null @@ -1,503 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 6bdd7649390d..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java +++ /dev/null @@ -1,289 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/ComputeOperationStatusInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeOperationStatusInner.java deleted file mode 100644 index 259e9efef313..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeOperationStatusInner.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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.ComputeOperationStatusProperties; -import java.io.IOException; - -/** - * The status of an async compute operation. - */ -@Immutable -public final class ComputeOperationStatusInner extends ProxyResource { - /* - * The properties of the compute operation status. - */ - private ComputeOperationStatusProperties 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 ComputeOperationStatusInner class. - */ - private ComputeOperationStatusInner() { - } - - /** - * Get the properties property: The properties of the compute operation status. - * - * @return the properties value. - */ - public ComputeOperationStatusProperties 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 ComputeOperationStatusInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ComputeOperationStatusInner 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 ComputeOperationStatusInner. - */ - public static ComputeOperationStatusInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ComputeOperationStatusInner deserializedComputeOperationStatusInner = new ComputeOperationStatusInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedComputeOperationStatusInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedComputeOperationStatusInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedComputeOperationStatusInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedComputeOperationStatusInner.properties - = ComputeOperationStatusProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedComputeOperationStatusInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedComputeOperationStatusInner; - }); - } -} 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 deleted file mode 100644 index 3c4a513b409c..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EvaluateDeploymentPoliciesResponseInner.java +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 8b3b052e9080..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeCapacityInner.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 7d4d1d866f78..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeDeploymentInner.java +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index feadb95cca84..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeUsageInner.java +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 861a72603d33..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/WorkbenchInner.java +++ /dev/null @@ -1,259 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/AccountConnectionsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java index 1a0fdff296a1..3d8a25da368c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java @@ -13,7 +13,6 @@ import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.AccountConnections; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; public final class AccountConnectionsImpl implements AccountConnections { private static final ClientLogger LOGGER = new ClientLogger(AccountConnectionsImpl.class); @@ -47,45 +46,6 @@ public ConnectionPropertiesV2BasicResource get(String resourceGroupName, String } } - public Response createWithResponse(String resourceGroupName, - String accountName, String connectionName, ConnectionPropertiesV2BasicResourceInner connection, - Context context) { - Response inner = this.serviceClient() - .createWithResponse(resourceGroupName, accountName, connectionName, connection, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ConnectionPropertiesV2BasicResourceImpl(inner.getValue(), this.manager())); - } - - public ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, - String connectionName) { - ConnectionPropertiesV2BasicResourceInner inner - = this.serviceClient().create(resourceGroupName, accountName, connectionName); - if (inner != null) { - return new ConnectionPropertiesV2BasicResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response updateWithResponse(String resourceGroupName, - String accountName, String connectionName, ConnectionUpdateContent connection, Context context) { - Response inner = this.serviceClient() - .updateWithResponse(resourceGroupName, accountName, connectionName, connection, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ConnectionPropertiesV2BasicResourceImpl(inner.getValue(), this.manager())); - } - - public ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, - String connectionName) { - ConnectionPropertiesV2BasicResourceInner inner - = this.serviceClient().update(resourceGroupName, accountName, connectionName); - if (inner != null) { - return new ConnectionPropertiesV2BasicResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response deleteWithResponse(String resourceGroupName, String accountName, String connectionName, Context context) { return this.serviceClient().deleteWithResponse(resourceGroupName, accountName, connectionName, context); @@ -110,6 +70,82 @@ public PagedIterable list(String resourceGr inner1 -> new ConnectionPropertiesV2BasicResourceImpl(inner1, this.manager())); } + public ConnectionPropertiesV2BasicResource getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, connectionName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + return this.getWithResponse(resourceGroupName, accountName, connectionName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + this.deleteWithResponse(resourceGroupName, accountName, connectionName, Context.NONE); + } + + public Response deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); + if (accountName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); + } + String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); + if (connectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); + } + return this.deleteWithResponse(resourceGroupName, accountName, connectionName, context); + } + private AccountConnectionsClient serviceClient() { return this.innerClient; } @@ -117,4 +153,8 @@ private AccountConnectionsClient serviceClient() { private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { return this.serviceManager; } + + public ConnectionPropertiesV2BasicResourceImpl define(String name) { + return new ConnectionPropertiesV2BasicResourceImpl(name, this.manager()); + } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java index de2703cce5b3..a5df28d63d4c 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,8 +12,6 @@ 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; @@ -181,16 +179,6 @@ 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 bd9096ebc0db..ea31c10b88d5 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,11 +39,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.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; @@ -276,26 +274,6 @@ 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 }) @@ -1546,86 +1524,6 @@ 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 625765956fe8..1a5e65814871 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,15 +14,12 @@ 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; @@ -162,25 +159,6 @@ 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 600916975fca..33334e6d8522 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 @@ -34,16 +34,11 @@ import com.azure.resourcemanager.cognitiveservices.fluent.CognitiveServicesManagementClient; 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; @@ -71,7 +66,6 @@ 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; @@ -478,90 +472,6 @@ 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. - */ - private final ComputeOperationsClient computeOperations; - - /** - * Gets the ComputeOperationsClient object to access its operations. - * - * @return the ComputeOperationsClient object. - */ - 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. */ @@ -817,7 +727,7 @@ public ModelCapacitiesClient getModelCapacities() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-05-15-preview"; + this.apiVersion = "2026-07-01"; this.resourceProviders = new ResourceProvidersClientImpl(this); this.operations = new OperationsClientImpl(this); this.accounts = new AccountsClientImpl(this); @@ -840,12 +750,6 @@ 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 deleted file mode 100644 index 61838cb3cfe8..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/ComputeOperationStatusImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationStatusImpl.java deleted file mode 100644 index 55cabf001380..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationStatusImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.implementation; - -import com.azure.core.management.SystemData; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeOperationStatusInner; -import com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatus; -import com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatusProperties; - -public final class ComputeOperationStatusImpl implements ComputeOperationStatus { - private ComputeOperationStatusInner innerObject; - - private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; - - ComputeOperationStatusImpl(ComputeOperationStatusInner 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 ComputeOperationStatusProperties properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public ComputeOperationStatusInner 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/ComputeOperationsClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsClientImpl.java deleted file mode 100644 index c388974c8207..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsClientImpl.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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.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.ComputeOperationsClient; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeOperationStatusInner; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ComputeOperationsClient. - */ -public final class ComputeOperationsClientImpl implements ComputeOperationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ComputeOperationsService service; - - /** - * The service client containing this operation class. - */ - private final CognitiveServicesManagementClientImpl client; - - /** - * Initializes an instance of ComputeOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ComputeOperationsClientImpl(CognitiveServicesManagementClientImpl client) { - this.service - = RestProxy.create(ComputeOperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for CognitiveServicesManagementClientComputeOperations to be used by the - * proxy service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "CognitiveServicesManagementClientComputeOperations") - public interface ComputeOperationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/computeOperations/{operationId}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @PathParam("operationId") String operationId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/computeOperations/{operationId}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("location") String location, @PathParam("operationId") String operationId, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Gets the status of a compute operation. - * - * @param location The name of the Azure region. - * @param operationId The ID of the compute 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 status of a compute operation along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String location, String operationId) { - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, operationId, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Gets the status of a compute operation. - * - * @param location The name of the Azure region. - * @param operationId The ID of the compute 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 status of a compute operation on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String location, String operationId) { - return getWithResponseAsync(location, operationId).flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Gets the status of a compute operation. - * - * @param location The name of the Azure region. - * @param operationId The ID of the compute operation. - * @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 status of a compute operation along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String location, String operationId, Context context) { - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - location, operationId, accept, context); - } - - /** - * Gets the status of a compute operation. - * - * @param location The name of the Azure region. - * @param operationId The ID of the compute 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 status of a compute operation. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ComputeOperationStatusInner get(String location, String operationId) { - return getWithResponse(location, operationId, Context.NONE).getValue(); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsImpl.java deleted file mode 100644 index 8904257ecda3..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.implementation; - -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.ComputeOperationsClient; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeOperationStatusInner; -import com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatus; -import com.azure.resourcemanager.cognitiveservices.models.ComputeOperations; - -public final class ComputeOperationsImpl implements ComputeOperations { - private static final ClientLogger LOGGER = new ClientLogger(ComputeOperationsImpl.class); - - private final ComputeOperationsClient innerClient; - - private final com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager; - - public ComputeOperationsImpl(ComputeOperationsClient innerClient, - com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String location, String operationId, Context context) { - Response inner - = this.serviceClient().getWithResponse(location, operationId, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ComputeOperationStatusImpl(inner.getValue(), this.manager())); - } - - public ComputeOperationStatus get(String location, String operationId) { - ComputeOperationStatusInner inner = this.serviceClient().get(location, operationId); - if (inner != null) { - return new ComputeOperationStatusImpl(inner, this.manager()); - } else { - return null; - } - } - - private ComputeOperationsClient 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/ComputesClientImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java deleted file mode 100644 index 7561c16b0aaf..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java +++ /dev/null @@ -1,1551 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 4ba56e8e424e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesImpl.java +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/ConnectionPropertiesV2BasicResourceImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java index 36a4ebeea258..e03ac228de90 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java @@ -53,33 +53,28 @@ private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager man private String accountName; - private String projectName; - private String connectionName; private ConnectionUpdateContent updateConnection; - public ConnectionPropertiesV2BasicResourceImpl withExistingProject(String resourceGroupName, String accountName, - String projectName) { + public ConnectionPropertiesV2BasicResourceImpl withExistingAccount(String resourceGroupName, String accountName) { this.resourceGroupName = resourceGroupName; this.accountName = accountName; - this.projectName = projectName; return this; } public ConnectionPropertiesV2BasicResource create() { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .createWithResponse(resourceGroupName, accountName, projectName, connectionName, this.innerModel(), - Context.NONE) + .getAccountConnections() + .createWithResponse(resourceGroupName, accountName, connectionName, this.innerModel(), Context.NONE) .getValue(); return this; } public ConnectionPropertiesV2BasicResource create(Context context) { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .createWithResponse(resourceGroupName, accountName, projectName, connectionName, this.innerModel(), context) + .getAccountConnections() + .createWithResponse(resourceGroupName, accountName, connectionName, this.innerModel(), context) .getValue(); return this; } @@ -98,17 +93,16 @@ public ConnectionPropertiesV2BasicResourceImpl update() { public ConnectionPropertiesV2BasicResource apply() { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .updateWithResponse(resourceGroupName, accountName, projectName, connectionName, updateConnection, - Context.NONE) + .getAccountConnections() + .updateWithResponse(resourceGroupName, accountName, connectionName, updateConnection, Context.NONE) .getValue(); return this; } public ConnectionPropertiesV2BasicResource apply(Context context) { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .updateWithResponse(resourceGroupName, accountName, projectName, connectionName, updateConnection, context) + .getAccountConnections() + .updateWithResponse(resourceGroupName, accountName, connectionName, updateConnection, context) .getValue(); return this; } @@ -119,22 +113,21 @@ public ConnectionPropertiesV2BasicResource apply(Context context) { this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "accounts"); - this.projectName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "projects"); this.connectionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "connections"); } public ConnectionPropertiesV2BasicResource refresh() { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .getWithResponse(resourceGroupName, accountName, projectName, connectionName, Context.NONE) + .getAccountConnections() + .getWithResponse(resourceGroupName, accountName, connectionName, Context.NONE) .getValue(); return this; } public ConnectionPropertiesV2BasicResource refresh(Context context) { this.innerObject = serviceManager.serviceClient() - .getProjectConnections() - .getWithResponse(resourceGroupName, accountName, projectName, connectionName, context) + .getAccountConnections() + .getWithResponse(resourceGroupName, accountName, connectionName, context) .getValue(); return this; } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java deleted file mode 100644 index 7e0fd4377f0e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index c27e8b813013..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesClientImpl.java +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 30fb72330d9e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesImpl.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 55f46e65428e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacityImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index f144373f890e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentImpl.java +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index e62a84240b77..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsClientImpl.java +++ /dev/null @@ -1,999 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index abad03806b74..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsImpl.java +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 66a017172610..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsageImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 4fc86e1b0f42..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsClientImpl.java +++ /dev/null @@ -1,255 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 3d567db02332..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsImpl.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/ProjectConnectionsImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java index f86d10aa2c49..b78436ad1ea8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient; import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; import com.azure.resourcemanager.cognitiveservices.models.ProjectConnections; public final class ProjectConnectionsImpl implements ProjectConnections { @@ -46,6 +47,46 @@ public ConnectionPropertiesV2BasicResource get(String resourceGroupName, String } } + public Response createWithResponse(String resourceGroupName, + String accountName, String projectName, String connectionName, + ConnectionPropertiesV2BasicResourceInner connection, Context context) { + Response inner = this.serviceClient() + .createWithResponse(resourceGroupName, accountName, projectName, connectionName, connection, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ConnectionPropertiesV2BasicResourceImpl(inner.getValue(), this.manager())); + } + + public ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, String projectName, + String connectionName) { + ConnectionPropertiesV2BasicResourceInner inner + = this.serviceClient().create(resourceGroupName, accountName, projectName, connectionName); + if (inner != null) { + return new ConnectionPropertiesV2BasicResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response updateWithResponse(String resourceGroupName, + String accountName, String projectName, String connectionName, ConnectionUpdateContent connection, + Context context) { + Response inner = this.serviceClient() + .updateWithResponse(resourceGroupName, accountName, projectName, connectionName, connection, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ConnectionPropertiesV2BasicResourceImpl(inner.getValue(), this.manager())); + } + + public ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, String projectName, + String connectionName) { + ConnectionPropertiesV2BasicResourceInner inner + = this.serviceClient().update(resourceGroupName, accountName, projectName, connectionName); + if (inner != null) { + return new ConnectionPropertiesV2BasicResourceImpl(inner, this.manager()); + } else { + return null; + } + } + public Response deleteWithResponse(String resourceGroupName, String accountName, String projectName, String connectionName, Context context) { return this.serviceClient() @@ -72,103 +113,6 @@ public PagedIterable list(String resourceGr inner1 -> new ConnectionPropertiesV2BasicResourceImpl(inner1, this.manager())); } - public ConnectionPropertiesV2BasicResource getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); - } - String projectName = ResourceManagerUtils.getValueFromIdByName(id, "projects"); - if (projectName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); - } - String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); - if (connectionName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, projectName, connectionName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); - } - String projectName = ResourceManagerUtils.getValueFromIdByName(id, "projects"); - if (projectName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); - } - String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); - if (connectionName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, projectName, connectionName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); - } - String projectName = ResourceManagerUtils.getValueFromIdByName(id, "projects"); - if (projectName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); - } - String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); - if (connectionName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); - } - this.deleteWithResponse(resourceGroupName, accountName, projectName, connectionName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "accounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'accounts'.", id))); - } - String projectName = ResourceManagerUtils.getValueFromIdByName(id, "projects"); - if (projectName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'projects'.", id))); - } - String connectionName = ResourceManagerUtils.getValueFromIdByName(id, "connections"); - if (connectionName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'connections'.", id))); - } - return this.deleteWithResponse(resourceGroupName, accountName, projectName, connectionName, context); - } - private ProjectConnectionsClient serviceClient() { return this.innerClient; } @@ -176,8 +120,4 @@ private ProjectConnectionsClient serviceClient() { private com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager() { return this.serviceManager; } - - public ConnectionPropertiesV2BasicResourceImpl define(String name) { - return new ConnectionPropertiesV2BasicResourceImpl(name, this.manager()); - } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java deleted file mode 100644 index 3763baf1c763..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 8f7f63f65fd4..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesClientImpl.java +++ /dev/null @@ -1,1673 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index c82440a60924..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesImpl.java +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index e4769b66cda0..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ComputeListResult.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 5bcd04585019..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeCapacityListResult.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index c073cd2ee830..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeDeploymentListResult.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index d560e9ecbeee..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeUsageListResult.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 036412151742..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/WorkbenchListResult.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 3cbde0e79e98..1e5f47e59ca7 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,28 +415,4 @@ 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/AccountConnections.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java index 44119d8900fd..ee7fba79ce70 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java @@ -7,7 +7,6 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; /** * Resource collection API of AccountConnections. @@ -42,23 +41,22 @@ Response getWithResponse(String resourceGro ConnectionPropertiesV2BasicResource get(String resourceGroupName, String accountName, String connectionName); /** - * Create or update Cognitive Services account connection under the specified account. + * Delete Cognitive Services account connection by name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. * @param connectionName Friendly name of the connection. - * @param connection The object for creating or updating a new account connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection base resource schema along with {@link Response}. + * @return the {@link Response}. */ - Response createWithResponse(String resourceGroupName, String accountName, - String connectionName, ConnectionPropertiesV2BasicResourceInner connection, Context context); + Response deleteWithResponse(String resourceGroupName, String accountName, String connectionName, + Context context); /** - * Create or update Cognitive Services account connection under the specified account. + * Delete Cognitive Services account connection by name. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. @@ -66,93 +64,89 @@ Response createWithResponse(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection base resource schema. */ - ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, String connectionName); + void delete(String resourceGroupName, String accountName, String connectionName); /** - * Update Cognitive Services account connection under the specified account. + * Lists all the available Cognitive Services account connections under the specified account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. - * @param connectionName Friendly name of the connection. - * @param connection Parameters for account connection update. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection base resource schema along with {@link Response}. + * @return the paginated response with {@link PagedIterable}. */ - Response updateWithResponse(String resourceGroupName, String accountName, - String connectionName, ConnectionUpdateContent connection, Context context); + PagedIterable list(String resourceGroupName, String accountName); /** - * Update Cognitive Services account connection under the specified account. + * Lists all the available Cognitive Services account connections under the specified account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. - * @param connectionName Friendly name of the connection. + * @param target Target of the connection. + * @param category Category of the connection. + * @param includeAll query parameter that indicates if get connection call should return both connections and + * datastores. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection base resource schema. + * @return the paginated response with {@link PagedIterable}. */ - ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, String connectionName); + PagedIterable list(String resourceGroupName, String accountName, String target, + String category, Boolean includeAll, Context context); /** - * Delete Cognitive Services account connection by name. + * Lists Cognitive Services account connection by name. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param connectionName Friendly name of the connection. - * @param context The context to associate with this operation. + * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return connection base resource schema along with {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, String connectionName, - Context context); + ConnectionPropertiesV2BasicResource getById(String id); /** - * Delete Cognitive Services account connection by name. + * Lists Cognitive Services account connection by name. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param connectionName Friendly name of the connection. + * @param id the resource ID. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connection base resource schema along with {@link Response}. */ - void delete(String resourceGroupName, String accountName, String connectionName); + Response getByIdWithResponse(String id, Context context); /** - * Lists all the available Cognitive Services account connections under the specified account. + * Delete Cognitive Services account connection by name. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. + * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String accountName); + void deleteById(String id); /** - * Lists all the available Cognitive Services account connections under the specified account. + * Delete Cognitive Services account connection by name. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of Cognitive Services account. - * @param target Target of the connection. - * @param category Category of the connection. - * @param includeAll query parameter that indicates if get connection call should return both connections and - * datastores. + * @param id the resource ID. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the paginated response with {@link PagedIterable}. + * @return the {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName, String target, - String category, Boolean includeAll, Context context); + Response deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new ConnectionPropertiesV2BasicResource resource. + * + * @param name resource name. + * @return the first stage of the new ConnectionPropertiesV2BasicResource definition. + */ + ConnectionPropertiesV2BasicResource.DefinitionStages.Blank define(String name); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java index 70800672ab5f..494e11e1460f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java @@ -180,11 +180,6 @@ public final class AccountProperties implements JsonSerializable networkInjections; - /* - * Represents the foundry auto-upgrade configuration for a Cognitive Services account. - */ - private FoundryAutoUpgrade foundryAutoUpgrade; - /* * Specifies whether this resource support project management as child resources, used as containers for access * management, data isolation and cost in AI Foundry. @@ -686,28 +681,6 @@ public AccountProperties withNetworkInjections(List networkInj return this; } - /** - * Get the foundryAutoUpgrade property: Represents the foundry auto-upgrade configuration for a Cognitive Services - * account. - * - * @return the foundryAutoUpgrade value. - */ - public FoundryAutoUpgrade foundryAutoUpgrade() { - return this.foundryAutoUpgrade; - } - - /** - * Set the foundryAutoUpgrade property: Represents the foundry auto-upgrade configuration for a Cognitive Services - * account. - * - * @param foundryAutoUpgrade the foundryAutoUpgrade value to set. - * @return the AccountProperties object itself. - */ - public AccountProperties withFoundryAutoUpgrade(FoundryAutoUpgrade foundryAutoUpgrade) { - this.foundryAutoUpgrade = foundryAutoUpgrade; - return this; - } - /** * Get the allowProjectManagement property: Specifies whether this resource support project management as child * resources, used as containers for access management, data isolation and cost in AI Foundry. @@ -801,7 +774,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("raiMonitorConfig", this.raiMonitorConfig); jsonWriter.writeArrayField("networkInjections", this.networkInjections, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("foundryAutoUpgrade", this.foundryAutoUpgrade); jsonWriter.writeBooleanField("allowProjectManagement", this.allowProjectManagement); jsonWriter.writeStringField("defaultProject", this.defaultProject); jsonWriter.writeArrayField("associatedProjects", this.associatedProjects, @@ -902,8 +874,6 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti List networkInjections = reader.readArray(reader1 -> NetworkInjection.fromJson(reader1)); deserializedAccountProperties.networkInjections = networkInjections; - } else if ("foundryAutoUpgrade".equals(fieldName)) { - deserializedAccountProperties.foundryAutoUpgrade = FoundryAutoUpgrade.fromJson(reader); } else if ("allowProjectManagement".equals(fieldName)) { deserializedAccountProperties.allowProjectManagement = reader.getNullable(JsonReader::getBoolean); } else if ("defaultProject".equals(fieldName)) { 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 1952da4b0fd3..ab6b88335502 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,35 +242,6 @@ 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 deleted file mode 100644 index 03b0c92039b8..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 2c59af7f72d9..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java +++ /dev/null @@ -1,412 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/ComputeOperationStatus.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatus.java deleted file mode 100644 index e2a24cf118d3..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatus.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.management.SystemData; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeOperationStatusInner; - -/** - * An immutable client-side representation of ComputeOperationStatus. - */ -public interface ComputeOperationStatus { - /** - * 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: The properties of the compute operation status. - * - * @return the properties value. - */ - ComputeOperationStatusProperties 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.ComputeOperationStatusInner object. - * - * @return the inner object. - */ - ComputeOperationStatusInner innerModel(); -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusProperties.java deleted file mode 100644 index 43ae3f310b10..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusProperties.java +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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; - -/** - * The properties of a compute operation status. - */ -@Immutable -public final class ComputeOperationStatusProperties implements JsonSerializable { - /* - * The start time of the operation. - */ - private OffsetDateTime startTime; - - /* - * The end time of the operation. - */ - private OffsetDateTime endTime; - - /* - * The status of the operation. - */ - private ComputeOperationStatusType status; - - /* - * Error details if the operation failed. - */ - private ManagementError error; - - /** - * Creates an instance of ComputeOperationStatusProperties class. - */ - private ComputeOperationStatusProperties() { - } - - /** - * Get the startTime property: The start time of the operation. - * - * @return the startTime value. - */ - public OffsetDateTime startTime() { - return this.startTime; - } - - /** - * Get the endTime property: The end time of the operation. - * - * @return the endTime value. - */ - public OffsetDateTime endTime() { - return this.endTime; - } - - /** - * Get the status property: The status of the operation. - * - * @return the status value. - */ - public ComputeOperationStatusType status() { - return this.status; - } - - /** - * Get the error property: Error details if the operation failed. - * - * @return the error value. - */ - public ManagementError error() { - return this.error; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); - jsonWriter.writeJsonField("error", this.error); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ComputeOperationStatusProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ComputeOperationStatusProperties 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 ComputeOperationStatusProperties. - */ - public static ComputeOperationStatusProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ComputeOperationStatusProperties deserializedComputeOperationStatusProperties - = new ComputeOperationStatusProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("startTime".equals(fieldName)) { - deserializedComputeOperationStatusProperties.startTime = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("endTime".equals(fieldName)) { - deserializedComputeOperationStatusProperties.endTime = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("status".equals(fieldName)) { - deserializedComputeOperationStatusProperties.status - = ComputeOperationStatusType.fromString(reader.getString()); - } else if ("error".equals(fieldName)) { - deserializedComputeOperationStatusProperties.error = ManagementError.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedComputeOperationStatusProperties; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusType.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusType.java deleted file mode 100644 index fc0d7573e4d2..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusType.java +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The status type of a compute operation. - */ -public final class ComputeOperationStatusType extends ExpandableStringEnum { - /** - * The operation is in progress. - */ - public static final ComputeOperationStatusType IN_PROGRESS = fromString("InProgress"); - - /** - * The operation has succeeded. - */ - public static final ComputeOperationStatusType SUCCEEDED = fromString("Succeeded"); - - /** - * The operation has failed. - */ - public static final ComputeOperationStatusType FAILED = fromString("Failed"); - - /** - * The operation has been canceled. - */ - public static final ComputeOperationStatusType CANCELED = fromString("Canceled"); - - /** - * Creates a new instance of ComputeOperationStatusType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ComputeOperationStatusType() { - } - - /** - * Creates or finds a ComputeOperationStatusType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ComputeOperationStatusType. - */ - public static ComputeOperationStatusType fromString(String name) { - return fromString(name, ComputeOperationStatusType.class); - } - - /** - * Gets known ComputeOperationStatusType values. - * - * @return known ComputeOperationStatusType values. - */ - public static Collection values() { - return values(ComputeOperationStatusType.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperations.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperations.java deleted file mode 100644 index 9746c3c051ea..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperations.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ComputeOperations. - */ -public interface ComputeOperations { - /** - * Gets the status of a compute operation. - * - * @param location The name of the Azure region. - * @param operationId The ID of the compute operation. - * @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 status of a compute operation along with {@link Response}. - */ - Response getWithResponse(String location, String operationId, Context context); - - /** - * Gets the status of a compute operation. - * - * @param location The name of the Azure region. - * @param operationId The ID of the compute 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 status of a compute operation. - */ - ComputeOperationStatus get(String location, String operationId); -} 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 deleted file mode 100644 index c46ae8d05b79..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 56c2bc341c68..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProvisioningState.java +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index eddcf0e1ff35..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeType.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 4bba20888d7c..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Computes.java +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/ConnectionPropertiesV2BasicResource.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java index 58c66fe07127..f2c8bd54eaf2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java @@ -84,14 +84,13 @@ interface Blank extends WithParentResource { */ interface WithParentResource { /** - * Specifies resourceGroupName, accountName, projectName. + * Specifies resourceGroupName, accountName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. - * @param projectName The name of Cognitive Services account's project. * @return the next definition stage. */ - WithProperties withExistingProject(String resourceGroupName, String accountName, String projectName); + WithProperties withExistingAccount(String resourceGroupName, String accountName); } /** diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java deleted file mode 100644 index 50fb842564de..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 387288c4690d..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java +++ /dev/null @@ -1,220 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 74bf72bf119c..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentPolicyEvaluationResult.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/DeploymentProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java index 8ee26958e765..c43c7a5755ba 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java @@ -28,11 +28,6 @@ public final class DeploymentProperties 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/DeploymentSpeculativeDecoding.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSpeculativeDecoding.java deleted file mode 100644 index 706d178d26c4..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSpeculativeDecoding.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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; - -/** - * Speculative decoding settings for a deployment. - */ -@Fluent -public final class DeploymentSpeculativeDecoding implements JsonSerializable { - /* - * Draft model used to generate speculative decoding tokens. - */ - private DeploymentModel draftModel; - - /* - * The number of draft tokens attempted per speculation step. - */ - private Integer draftTokenCount; - - /** - * Creates an instance of DeploymentSpeculativeDecoding class. - */ - public DeploymentSpeculativeDecoding() { - } - - /** - * Get the draftModel property: Draft model used to generate speculative decoding tokens. - * - * @return the draftModel value. - */ - public DeploymentModel draftModel() { - return this.draftModel; - } - - /** - * Set the draftModel property: Draft model used to generate speculative decoding tokens. - * - * @param draftModel the draftModel value to set. - * @return the DeploymentSpeculativeDecoding object itself. - */ - public DeploymentSpeculativeDecoding withDraftModel(DeploymentModel draftModel) { - this.draftModel = draftModel; - return this; - } - - /** - * Get the draftTokenCount property: The number of draft tokens attempted per speculation step. - * - * @return the draftTokenCount value. - */ - public Integer draftTokenCount() { - return this.draftTokenCount; - } - - /** - * Set the draftTokenCount property: The number of draft tokens attempted per speculation step. - * - * @param draftTokenCount the draftTokenCount value to set. - * @return the DeploymentSpeculativeDecoding object itself. - */ - public DeploymentSpeculativeDecoding withDraftTokenCount(Integer draftTokenCount) { - this.draftTokenCount = draftTokenCount; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("draftModel", this.draftModel); - jsonWriter.writeNumberField("draftTokenCount", this.draftTokenCount); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of DeploymentSpeculativeDecoding from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of DeploymentSpeculativeDecoding 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 DeploymentSpeculativeDecoding. - */ - public static DeploymentSpeculativeDecoding fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - DeploymentSpeculativeDecoding deserializedDeploymentSpeculativeDecoding - = new DeploymentSpeculativeDecoding(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("draftModel".equals(fieldName)) { - deserializedDeploymentSpeculativeDecoding.draftModel = DeploymentModel.fromJson(reader); - } else if ("draftTokenCount".equals(fieldName)) { - deserializedDeploymentSpeculativeDecoding.draftTokenCount = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedDeploymentSpeculativeDecoding; - }); - } -} 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 deleted file mode 100644 index cbc82ee50b99..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeployment.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 2a0769827337..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeploymentProperties.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 4c1bbebcb377..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesRequest.java +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index ce7894dabeef..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesResponse.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/FoundryAutoUpgrade.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgrade.java deleted file mode 100644 index 452ad73e4645..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgrade.java +++ /dev/null @@ -1,177 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; - -/** - * Represents the foundry auto-upgrade configuration for a Cognitive Services account. - * Customers can opt out of auto-upgrade by setting mode to Disabled. - */ -@Fluent -public final class FoundryAutoUpgrade implements JsonSerializable { - /* - * Gets or sets the auto-upgrade mode. - */ - private FoundryAutoUpgradeMode mode; - - /* - * Gets or sets a value indicating whether the auto-upgrade is planned by Microsoft. - */ - private Boolean plannedByMicrosoft; - - /* - * Gets or sets the status reason for the auto-upgrade configuration. - */ - private String statusReason; - - /* - * Gets or sets the scheduled time for the auto-upgrade. - */ - private OffsetDateTime scheduledAt; - - /** - * Creates an instance of FoundryAutoUpgrade class. - */ - public FoundryAutoUpgrade() { - } - - /** - * Get the mode property: Gets or sets the auto-upgrade mode. - * - * @return the mode value. - */ - public FoundryAutoUpgradeMode mode() { - return this.mode; - } - - /** - * Set the mode property: Gets or sets the auto-upgrade mode. - * - * @param mode the mode value to set. - * @return the FoundryAutoUpgrade object itself. - */ - public FoundryAutoUpgrade withMode(FoundryAutoUpgradeMode mode) { - this.mode = mode; - return this; - } - - /** - * Get the plannedByMicrosoft property: Gets or sets a value indicating whether the auto-upgrade is planned by - * Microsoft. - * - * @return the plannedByMicrosoft value. - */ - public Boolean plannedByMicrosoft() { - return this.plannedByMicrosoft; - } - - /** - * Set the plannedByMicrosoft property: Gets or sets a value indicating whether the auto-upgrade is planned by - * Microsoft. - * - * @param plannedByMicrosoft the plannedByMicrosoft value to set. - * @return the FoundryAutoUpgrade object itself. - */ - public FoundryAutoUpgrade withPlannedByMicrosoft(Boolean plannedByMicrosoft) { - this.plannedByMicrosoft = plannedByMicrosoft; - return this; - } - - /** - * Get the statusReason property: Gets or sets the status reason for the auto-upgrade configuration. - * - * @return the statusReason value. - */ - public String statusReason() { - return this.statusReason; - } - - /** - * Set the statusReason property: Gets or sets the status reason for the auto-upgrade configuration. - * - * @param statusReason the statusReason value to set. - * @return the FoundryAutoUpgrade object itself. - */ - public FoundryAutoUpgrade withStatusReason(String statusReason) { - this.statusReason = statusReason; - return this; - } - - /** - * Get the scheduledAt property: Gets or sets the scheduled time for the auto-upgrade. - * - * @return the scheduledAt value. - */ - public OffsetDateTime scheduledAt() { - return this.scheduledAt; - } - - /** - * Set the scheduledAt property: Gets or sets the scheduled time for the auto-upgrade. - * - * @param scheduledAt the scheduledAt value to set. - * @return the FoundryAutoUpgrade object itself. - */ - public FoundryAutoUpgrade withScheduledAt(OffsetDateTime scheduledAt) { - this.scheduledAt = scheduledAt; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); - jsonWriter.writeBooleanField("plannedByMicrosoft", this.plannedByMicrosoft); - jsonWriter.writeStringField("statusReason", this.statusReason); - jsonWriter.writeStringField("scheduledAt", - this.scheduledAt == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.scheduledAt)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of FoundryAutoUpgrade from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of FoundryAutoUpgrade 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 FoundryAutoUpgrade. - */ - public static FoundryAutoUpgrade fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - FoundryAutoUpgrade deserializedFoundryAutoUpgrade = new FoundryAutoUpgrade(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("mode".equals(fieldName)) { - deserializedFoundryAutoUpgrade.mode = FoundryAutoUpgradeMode.fromString(reader.getString()); - } else if ("plannedByMicrosoft".equals(fieldName)) { - deserializedFoundryAutoUpgrade.plannedByMicrosoft = reader.getNullable(JsonReader::getBoolean); - } else if ("statusReason".equals(fieldName)) { - deserializedFoundryAutoUpgrade.statusReason = reader.getString(); - } else if ("scheduledAt".equals(fieldName)) { - deserializedFoundryAutoUpgrade.scheduledAt = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else { - reader.skipChildren(); - } - } - - return deserializedFoundryAutoUpgrade; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgradeMode.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgradeMode.java deleted file mode 100644 index bedd73a6489f..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgradeMode.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Represents the mode for foundry auto-upgrade configuration. - */ -public final class FoundryAutoUpgradeMode extends ExpandableStringEnum { - /** - * Auto-upgrade is enabled. - */ - public static final FoundryAutoUpgradeMode ENABLED = fromString("Enabled"); - - /** - * Auto-upgrade is disabled (opted out). - */ - public static final FoundryAutoUpgradeMode DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of FoundryAutoUpgradeMode value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public FoundryAutoUpgradeMode() { - } - - /** - * Creates or finds a FoundryAutoUpgradeMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding FoundryAutoUpgradeMode. - */ - public static FoundryAutoUpgradeMode fromString(String name) { - return fromString(name, FoundryAutoUpgradeMode.class); - } - - /** - * Gets known FoundryAutoUpgradeMode values. - * - * @return known FoundryAutoUpgradeMode values. - */ - public static Collection values() { - return values(FoundryAutoUpgradeMode.class); - } -} 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 deleted file mode 100644 index 655305f53df3..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacities.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 8b4918f667c2..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacity.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index d3bf322a5150..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacityProperties.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 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 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 ("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 deleted file mode 100644 index a4a9e3338fcd..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployment.java +++ /dev/null @@ -1,216 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index f82e5c45bcc5..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentInfo.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index cc49338f0fa1..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProperties.java +++ /dev/null @@ -1,361 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.Map; - -/** - * Properties of a Cognitive Services 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; - - /* - * Deployment capabilities represented as key-value pairs. - * Example: { assetsV2: "true" }. - */ - private Map capabilities; - - /* - * 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 capabilities property: Deployment capabilities represented as key-value pairs. - * Example: { assetsV2: "true" }. - * - * @return the capabilities value. - */ - public Map capabilities() { - return this.capabilities; - } - - /** - * 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 ("capabilities".equals(fieldName)) { - Map capabilities = reader.readMap(reader1 -> reader1.getString()); - deserializedManagedComputeDeploymentProperties.capabilities = capabilities; - } 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 deleted file mode 100644 index 7da878c5d6a6..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProvisioningDetails.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index e6d208af10ff..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentRoutes.java +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index eaecec8a1174..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployments.java +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index a5fba93e09de..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsage.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index e5af71c3cb9e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsagesOperationGroups.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 33fbeb8242db..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceSku.java +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 1613c45cb531..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyAssignmentEvaluationDetails.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index c55849b38796..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyEvaluationOutcome.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 4b303be83294..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyExpressionEvaluationDetails.java +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index f9142ab01827..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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/ProjectConnections.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java index 232f328ed24d..32ce4f887c12 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java @@ -7,6 +7,7 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; /** * Resource collection API of ProjectConnections. @@ -44,23 +45,25 @@ ConnectionPropertiesV2BasicResource get(String resourceGroupName, String account String connectionName); /** - * Delete Cognitive Services project connection by name. + * Create or update Cognitive Services project connection under the specified project. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. * @param projectName The name of Cognitive Services account's project. * @param connectionName Friendly name of the connection. + * @param connection The object for creating or updating a new account connection. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. + * @return connection base resource schema along with {@link Response}. */ - Response deleteWithResponse(String resourceGroupName, String accountName, String projectName, - String connectionName, Context context); + Response createWithResponse(String resourceGroupName, String accountName, + String projectName, String connectionName, ConnectionPropertiesV2BasicResourceInner connection, + Context context); /** - * Delete Cognitive Services project connection by name. + * Create or update Cognitive Services project connection under the specified project. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. @@ -69,92 +72,102 @@ Response deleteWithResponse(String resourceGroupName, String accountName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return connection base resource schema. */ - void delete(String resourceGroupName, String accountName, String projectName, String connectionName); + ConnectionPropertiesV2BasicResource create(String resourceGroupName, String accountName, String projectName, + String connectionName); /** - * Lists all the available Cognitive Services project connections under the specified project. + * Update Cognitive Services project connection under the specified project. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. * @param projectName The name of Cognitive Services account's project. + * @param connectionName Friendly name of the connection. + * @param connection Parameters for account connection update. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the paginated response with {@link PagedIterable}. + * @return connection base resource schema along with {@link Response}. */ - PagedIterable list(String resourceGroupName, String accountName, - String projectName); + Response updateWithResponse(String resourceGroupName, String accountName, + String projectName, String connectionName, ConnectionUpdateContent connection, Context context); /** - * Lists all the available Cognitive Services project connections under the specified project. + * Update Cognitive Services project connection under the specified project. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The name of Cognitive Services account. * @param projectName The name of Cognitive Services account's project. - * @param target Target of the connection. - * @param category Category of the connection. - * @param includeAll query parameter that indicates if get connection call should return both connections and - * datastores. - * @param context The context to associate with this operation. + * @param connectionName Friendly name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the paginated response with {@link PagedIterable}. + * @return connection base resource schema. */ - PagedIterable list(String resourceGroupName, String accountName, - String projectName, String target, String category, Boolean includeAll, Context context); + ConnectionPropertiesV2BasicResource update(String resourceGroupName, String accountName, String projectName, + String connectionName); /** - * Lists Cognitive Services project connection by name. + * Delete Cognitive Services project connection by name. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param projectName The name of Cognitive Services account's project. + * @param connectionName Friendly name of the connection. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection base resource schema along with {@link Response}. + * @return the {@link Response}. */ - ConnectionPropertiesV2BasicResource getById(String id); + Response deleteWithResponse(String resourceGroupName, String accountName, String projectName, + String connectionName, Context context); /** - * Lists Cognitive Services project connection by name. + * Delete Cognitive Services project connection by name. * - * @param id the resource ID. - * @param context The context to associate with this operation. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param projectName The name of Cognitive Services account's project. + * @param connectionName Friendly name of the connection. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connection base resource schema along with {@link Response}. */ - Response getByIdWithResponse(String id, Context context); + void delete(String resourceGroupName, String accountName, String projectName, String connectionName); /** - * Delete Cognitive Services project connection by name. + * Lists all the available Cognitive Services project connections under the specified project. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param projectName The name of Cognitive Services account's project. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the paginated response with {@link PagedIterable}. */ - void deleteById(String id); + PagedIterable list(String resourceGroupName, String accountName, + String projectName); /** - * Delete Cognitive Services project connection by name. + * Lists all the available Cognitive Services project connections under the specified project. * - * @param id the resource ID. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param accountName The name of Cognitive Services account. + * @param projectName The name of Cognitive Services account's project. + * @param target Target of the connection. + * @param category Category of the connection. + * @param includeAll query parameter that indicates if get connection call should return both connections and + * datastores. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ConnectionPropertiesV2BasicResource resource. - * - * @param name resource name. - * @return the first stage of the new ConnectionPropertiesV2BasicResource definition. + * @return the paginated response with {@link PagedIterable}. */ - ConnectionPropertiesV2BasicResource.DefinitionStages.Blank define(String name); + PagedIterable list(String resourceGroupName, String accountName, + String projectName, String target, String category, Boolean includeAll, Context context); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressDefaultAction.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressDefaultAction.java deleted file mode 100644 index 6dc9f5dbec72..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressDefaultAction.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The default action when no user-defined egress rules match. - */ -public final class RaiEgressDefaultAction extends ExpandableStringEnum { - /** - * Allow traffic by default when no rules match. - */ - public static final RaiEgressDefaultAction ALLOW = fromString("Allow"); - - /** - * Deny traffic by default when no rules match. - */ - public static final RaiEgressDefaultAction DENY = fromString("Deny"); - - /** - * Creates a new instance of RaiEgressDefaultAction value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RaiEgressDefaultAction() { - } - - /** - * Creates or finds a RaiEgressDefaultAction from its string representation. - * - * @param name a name to look for. - * @return the corresponding RaiEgressDefaultAction. - */ - public static RaiEgressDefaultAction fromString(String name) { - return fromString(name, RaiEgressDefaultAction.class); - } - - /** - * Gets known RaiEgressDefaultAction values. - * - * @return known RaiEgressDefaultAction values. - */ - public static Collection values() { - return values(RaiEgressDefaultAction.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderOperation.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderOperation.java deleted file mode 100644 index 8f701a68fe83..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderOperation.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The operation to apply to a header in a Transform or Rewrite action. - */ -public final class RaiEgressHeaderOperation extends ExpandableStringEnum { - /** - * Set or overwrite the header value, creating it if it does not exist. - */ - public static final RaiEgressHeaderOperation SET = fromString("Set"); - - /** - * Add the header only if it is not already present. - */ - public static final RaiEgressHeaderOperation INSERT = fromString("Insert"); - - /** - * Remove the header if present. - */ - public static final RaiEgressHeaderOperation REMOVE = fromString("Remove"); - - /** - * Creates a new instance of RaiEgressHeaderOperation value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RaiEgressHeaderOperation() { - } - - /** - * Creates or finds a RaiEgressHeaderOperation from its string representation. - * - * @param name a name to look for. - * @return the corresponding RaiEgressHeaderOperation. - */ - public static RaiEgressHeaderOperation fromString(String name) { - return fromString(name, RaiEgressHeaderOperation.class); - } - - /** - * Gets known RaiEgressHeaderOperation values. - * - * @return known RaiEgressHeaderOperation values. - */ - public static Collection values() { - return values(RaiEgressHeaderOperation.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderTransform.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderTransform.java deleted file mode 100644 index 474e89450dab..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderTransform.java +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 header transformation applied to matched traffic. - * For Set or Insert operations, exactly one of value or valueRef must be provided. - * For Remove operations, neither value nor valueRef should be set. - */ -@Fluent -public final class RaiEgressHeaderTransform implements JsonSerializable { - /* - * The operation to perform on this header. - */ - private RaiEgressHeaderOperation operation; - - /* - * The HTTP header name (e.g., "Authorization", "X-Custom-Auth"). - */ - private String name; - - /* - * - * A static header value. Write-only: accepted on create/update, never returned on read. - * If omitted on update, the existing value is preserved. Use this for non-sensitive values; - * for credentials, use valueRef instead. - */ - private String value; - - /* - * A dynamic header value resolved at request time from a secret or managed identity. - */ - private RaiEgressHeaderValueRef valueRef; - - /** - * Creates an instance of RaiEgressHeaderTransform class. - */ - public RaiEgressHeaderTransform() { - } - - /** - * Get the operation property: The operation to perform on this header. - * - * @return the operation value. - */ - public RaiEgressHeaderOperation operation() { - return this.operation; - } - - /** - * Set the operation property: The operation to perform on this header. - * - * @param operation the operation value to set. - * @return the RaiEgressHeaderTransform object itself. - */ - public RaiEgressHeaderTransform withOperation(RaiEgressHeaderOperation operation) { - this.operation = operation; - return this; - } - - /** - * Get the name property: The HTTP header name (e.g., "Authorization", "X-Custom-Auth"). - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: The HTTP header name (e.g., "Authorization", "X-Custom-Auth"). - * - * @param name the name value to set. - * @return the RaiEgressHeaderTransform object itself. - */ - public RaiEgressHeaderTransform withName(String name) { - this.name = name; - return this; - } - - /** - * Get the value property: - * A static header value. Write-only: accepted on create/update, never returned on read. - * If omitted on update, the existing value is preserved. Use this for non-sensitive values; - * for credentials, use valueRef instead. - * - * @return the value value. - */ - public String value() { - return this.value; - } - - /** - * Set the value property: - * A static header value. Write-only: accepted on create/update, never returned on read. - * If omitted on update, the existing value is preserved. Use this for non-sensitive values; - * for credentials, use valueRef instead. - * - * @param value the value value to set. - * @return the RaiEgressHeaderTransform object itself. - */ - public RaiEgressHeaderTransform withValue(String value) { - this.value = value; - return this; - } - - /** - * Get the valueRef property: A dynamic header value resolved at request time from a secret or managed identity. - * - * @return the valueRef value. - */ - public RaiEgressHeaderValueRef valueRef() { - return this.valueRef; - } - - /** - * Set the valueRef property: A dynamic header value resolved at request time from a secret or managed identity. - * - * @param valueRef the valueRef value to set. - * @return the RaiEgressHeaderTransform object itself. - */ - public RaiEgressHeaderTransform withValueRef(RaiEgressHeaderValueRef valueRef) { - this.valueRef = valueRef; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("operation", this.operation == null ? null : this.operation.toString()); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("value", this.value); - jsonWriter.writeJsonField("valueRef", this.valueRef); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressHeaderTransform from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressHeaderTransform 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 RaiEgressHeaderTransform. - */ - public static RaiEgressHeaderTransform fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressHeaderTransform deserializedRaiEgressHeaderTransform = new RaiEgressHeaderTransform(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("operation".equals(fieldName)) { - deserializedRaiEgressHeaderTransform.operation - = RaiEgressHeaderOperation.fromString(reader.getString()); - } else if ("name".equals(fieldName)) { - deserializedRaiEgressHeaderTransform.name = reader.getString(); - } else if ("value".equals(fieldName)) { - deserializedRaiEgressHeaderTransform.value = reader.getString(); - } else if ("valueRef".equals(fieldName)) { - deserializedRaiEgressHeaderTransform.valueRef = RaiEgressHeaderValueRef.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressHeaderTransform; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderValueRef.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderValueRef.java deleted file mode 100644 index 7252ef840470..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderValueRef.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 dynamic source for a header value. Exactly one of secretRef or managedIdentityRef must be set. - */ -@Fluent -public final class RaiEgressHeaderValueRef implements JsonSerializable { - /* - * Resolve the value from a stored secret. - */ - private RaiEgressSecretRef secretRef; - - /* - * Resolve the value from a managed-identity token. - */ - private RaiEgressManagedIdentityRef managedIdentityRef; - - /** - * Creates an instance of RaiEgressHeaderValueRef class. - */ - public RaiEgressHeaderValueRef() { - } - - /** - * Get the secretRef property: Resolve the value from a stored secret. - * - * @return the secretRef value. - */ - public RaiEgressSecretRef secretRef() { - return this.secretRef; - } - - /** - * Set the secretRef property: Resolve the value from a stored secret. - * - * @param secretRef the secretRef value to set. - * @return the RaiEgressHeaderValueRef object itself. - */ - public RaiEgressHeaderValueRef withSecretRef(RaiEgressSecretRef secretRef) { - this.secretRef = secretRef; - return this; - } - - /** - * Get the managedIdentityRef property: Resolve the value from a managed-identity token. - * - * @return the managedIdentityRef value. - */ - public RaiEgressManagedIdentityRef managedIdentityRef() { - return this.managedIdentityRef; - } - - /** - * Set the managedIdentityRef property: Resolve the value from a managed-identity token. - * - * @param managedIdentityRef the managedIdentityRef value to set. - * @return the RaiEgressHeaderValueRef object itself. - */ - public RaiEgressHeaderValueRef withManagedIdentityRef(RaiEgressManagedIdentityRef managedIdentityRef) { - this.managedIdentityRef = managedIdentityRef; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("secretRef", this.secretRef); - jsonWriter.writeJsonField("managedIdentityRef", this.managedIdentityRef); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressHeaderValueRef from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressHeaderValueRef 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 RaiEgressHeaderValueRef. - */ - public static RaiEgressHeaderValueRef fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressHeaderValueRef deserializedRaiEgressHeaderValueRef = new RaiEgressHeaderValueRef(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("secretRef".equals(fieldName)) { - deserializedRaiEgressHeaderValueRef.secretRef = RaiEgressSecretRef.fromJson(reader); - } else if ("managedIdentityRef".equals(fieldName)) { - deserializedRaiEgressHeaderValueRef.managedIdentityRef - = RaiEgressManagedIdentityRef.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressHeaderValueRef; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressManagedIdentityRef.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressManagedIdentityRef.java deleted file mode 100644 index 93f2a86dfadb..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressManagedIdentityRef.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 reference to a managed-identity token used as a header value. - */ -@Fluent -public final class RaiEgressManagedIdentityRef implements JsonSerializable { - /* - * The resource/audience the token is requested for. - */ - private String resource; - - /* - * Optional format for the resolved token; "{value}" is the placeholder, e.g. "Bearer {value}". - */ - private String format; - - /** - * Creates an instance of RaiEgressManagedIdentityRef class. - */ - public RaiEgressManagedIdentityRef() { - } - - /** - * Get the resource property: The resource/audience the token is requested for. - * - * @return the resource value. - */ - public String resource() { - return this.resource; - } - - /** - * Set the resource property: The resource/audience the token is requested for. - * - * @param resource the resource value to set. - * @return the RaiEgressManagedIdentityRef object itself. - */ - public RaiEgressManagedIdentityRef withResource(String resource) { - this.resource = resource; - return this; - } - - /** - * Get the format property: Optional format for the resolved token; "{value}" is the placeholder, e.g. "Bearer - * {value}". - * - * @return the format value. - */ - public String format() { - return this.format; - } - - /** - * Set the format property: Optional format for the resolved token; "{value}" is the placeholder, e.g. "Bearer - * {value}". - * - * @param format the format value to set. - * @return the RaiEgressManagedIdentityRef object itself. - */ - public RaiEgressManagedIdentityRef withFormat(String format) { - this.format = format; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("resource", this.resource); - jsonWriter.writeStringField("format", this.format); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressManagedIdentityRef from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressManagedIdentityRef 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 RaiEgressManagedIdentityRef. - */ - public static RaiEgressManagedIdentityRef fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressManagedIdentityRef deserializedRaiEgressManagedIdentityRef = new RaiEgressManagedIdentityRef(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("resource".equals(fieldName)) { - deserializedRaiEgressManagedIdentityRef.resource = reader.getString(); - } else if ("format".equals(fieldName)) { - deserializedRaiEgressManagedIdentityRef.format = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressManagedIdentityRef; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressMode.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressMode.java deleted file mode 100644 index ee31d1d792ab..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressMode.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The enforcement mode for egress rules. - * If omitted on create, the server defaults to Enforced. - */ -public final class RaiEgressMode extends ExpandableStringEnum { - /** - * Rules are enforced. Matching traffic is allowed or denied per rule actions. - */ - public static final RaiEgressMode ENFORCED = fromString("Enforced"); - - /** - * Rules are evaluated and logged but not enforced. Traffic is always forwarded regardless of - * rule action. A would-be Deny is logged but not applied. Transform and Rewrite actions are - * still applied to matching traffic (only Deny enforcement is suppressed). - */ - public static final RaiEgressMode AUDIT = fromString("Audit"); - - /** - * Creates a new instance of RaiEgressMode value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RaiEgressMode() { - } - - /** - * Creates or finds a RaiEgressMode from its string representation. - * - * @param name a name to look for. - * @return the corresponding RaiEgressMode. - */ - public static RaiEgressMode fromString(String name) { - return fromString(name, RaiEgressMode.class); - } - - /** - * Gets known RaiEgressMode values. - * - * @return known RaiEgressMode values. - */ - public static Collection values() { - return values(RaiEgressMode.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressPolicyConfig.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressPolicyConfig.java deleted file mode 100644 index f0825fd697fc..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressPolicyConfig.java +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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; - -/** - * Egress (outbound network) policy configuration nested within an RAI policy. - * Controls which external endpoints sandboxed agents can reach and what - * transformations (header injection, URL rewrite) are applied to matching traffic. - */ -@Fluent -public final class RaiEgressPolicyConfig implements JsonSerializable { - /* - * The enforcement mode for egress rules. - * If omitted on create, the server defaults to Enforced. On subsequent GET - * requests, the server always returns the effective mode. - */ - private RaiEgressMode mode; - - /* - * The default action when no user-defined rules match. - * Deny blocks unmatched traffic; Allow permits it. Transform and Rewrite rules - * are always applied to their matched traffic regardless of this setting — - * defaultAction only governs traffic that does not match any rule. - * If omitted on create, the server defaults to Deny (fail-closed). On subsequent - * GET requests, the server always returns the effective value. - */ - private RaiEgressDefaultAction defaultAction; - - /* - * Description of the egress policy. - */ - private String description; - - /* - * Ordered list of egress rules. First matching rule wins. - * Rules are evaluated in declaration order; the first rule whose match criteria - * are satisfied determines the action taken on the request. - */ - private List rules; - - /** - * Creates an instance of RaiEgressPolicyConfig class. - */ - public RaiEgressPolicyConfig() { - } - - /** - * Get the mode property: The enforcement mode for egress rules. - * If omitted on create, the server defaults to Enforced. On subsequent GET - * requests, the server always returns the effective mode. - * - * @return the mode value. - */ - public RaiEgressMode mode() { - return this.mode; - } - - /** - * Set the mode property: The enforcement mode for egress rules. - * If omitted on create, the server defaults to Enforced. On subsequent GET - * requests, the server always returns the effective mode. - * - * @param mode the mode value to set. - * @return the RaiEgressPolicyConfig object itself. - */ - public RaiEgressPolicyConfig withMode(RaiEgressMode mode) { - this.mode = mode; - return this; - } - - /** - * Get the defaultAction property: The default action when no user-defined rules match. - * Deny blocks unmatched traffic; Allow permits it. Transform and Rewrite rules - * are always applied to their matched traffic regardless of this setting — - * defaultAction only governs traffic that does not match any rule. - * If omitted on create, the server defaults to Deny (fail-closed). On subsequent - * GET requests, the server always returns the effective value. - * - * @return the defaultAction value. - */ - public RaiEgressDefaultAction defaultAction() { - return this.defaultAction; - } - - /** - * Set the defaultAction property: The default action when no user-defined rules match. - * Deny blocks unmatched traffic; Allow permits it. Transform and Rewrite rules - * are always applied to their matched traffic regardless of this setting — - * defaultAction only governs traffic that does not match any rule. - * If omitted on create, the server defaults to Deny (fail-closed). On subsequent - * GET requests, the server always returns the effective value. - * - * @param defaultAction the defaultAction value to set. - * @return the RaiEgressPolicyConfig object itself. - */ - public RaiEgressPolicyConfig withDefaultAction(RaiEgressDefaultAction defaultAction) { - this.defaultAction = defaultAction; - return this; - } - - /** - * Get the description property: Description of the egress policy. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Description of the egress policy. - * - * @param description the description value to set. - * @return the RaiEgressPolicyConfig object itself. - */ - public RaiEgressPolicyConfig withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the rules property: Ordered list of egress rules. First matching rule wins. - * Rules are evaluated in declaration order; the first rule whose match criteria - * are satisfied determines the action taken on the request. - * - * @return the rules value. - */ - public List rules() { - return this.rules; - } - - /** - * Set the rules property: Ordered list of egress rules. First matching rule wins. - * Rules are evaluated in declaration order; the first rule whose match criteria - * are satisfied determines the action taken on the request. - * - * @param rules the rules value to set. - * @return the RaiEgressPolicyConfig object itself. - */ - public RaiEgressPolicyConfig withRules(List rules) { - this.rules = rules; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); - jsonWriter.writeStringField("defaultAction", this.defaultAction == null ? null : this.defaultAction.toString()); - jsonWriter.writeStringField("description", this.description); - jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressPolicyConfig from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressPolicyConfig 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 RaiEgressPolicyConfig. - */ - public static RaiEgressPolicyConfig fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressPolicyConfig deserializedRaiEgressPolicyConfig = new RaiEgressPolicyConfig(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("mode".equals(fieldName)) { - deserializedRaiEgressPolicyConfig.mode = RaiEgressMode.fromString(reader.getString()); - } else if ("defaultAction".equals(fieldName)) { - deserializedRaiEgressPolicyConfig.defaultAction - = RaiEgressDefaultAction.fromString(reader.getString()); - } else if ("description".equals(fieldName)) { - deserializedRaiEgressPolicyConfig.description = reader.getString(); - } else if ("rules".equals(fieldName)) { - List rules = reader.readArray(reader1 -> RaiEgressRule.fromJson(reader1)); - deserializedRaiEgressPolicyConfig.rules = rules; - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressPolicyConfig; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRewriteTarget.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRewriteTarget.java deleted file mode 100644 index 4a5351f84d0d..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRewriteTarget.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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; - -/** - * Where a Rewrite action sends matched traffic. At least one field must be set; - * omitted fields retain the original request values. This constraint is enforced - * by the server (400 Bad Request if all fields are omitted). - */ -@Fluent -public final class RaiEgressRewriteTarget implements JsonSerializable { - /* - * Target scheme. Original scheme is kept if omitted. - */ - private RaiEgressScheme scheme; - - /* - * Target host. Original host is kept if omitted. - */ - private String host; - - /* - * Target path (literal string). Original path (and query) is kept if omitted. - */ - private String path; - - /** - * Creates an instance of RaiEgressRewriteTarget class. - */ - public RaiEgressRewriteTarget() { - } - - /** - * Get the scheme property: Target scheme. Original scheme is kept if omitted. - * - * @return the scheme value. - */ - public RaiEgressScheme scheme() { - return this.scheme; - } - - /** - * Set the scheme property: Target scheme. Original scheme is kept if omitted. - * - * @param scheme the scheme value to set. - * @return the RaiEgressRewriteTarget object itself. - */ - public RaiEgressRewriteTarget withScheme(RaiEgressScheme scheme) { - this.scheme = scheme; - return this; - } - - /** - * Get the host property: Target host. Original host is kept if omitted. - * - * @return the host value. - */ - public String host() { - return this.host; - } - - /** - * Set the host property: Target host. Original host is kept if omitted. - * - * @param host the host value to set. - * @return the RaiEgressRewriteTarget object itself. - */ - public RaiEgressRewriteTarget withHost(String host) { - this.host = host; - return this; - } - - /** - * Get the path property: Target path (literal string). Original path (and query) is kept if omitted. - * - * @return the path value. - */ - public String path() { - return this.path; - } - - /** - * Set the path property: Target path (literal string). Original path (and query) is kept if omitted. - * - * @param path the path value to set. - * @return the RaiEgressRewriteTarget object itself. - */ - public RaiEgressRewriteTarget withPath(String path) { - this.path = path; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("scheme", this.scheme == null ? null : this.scheme.toString()); - jsonWriter.writeStringField("host", this.host); - jsonWriter.writeStringField("path", this.path); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressRewriteTarget from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressRewriteTarget 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 RaiEgressRewriteTarget. - */ - public static RaiEgressRewriteTarget fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressRewriteTarget deserializedRaiEgressRewriteTarget = new RaiEgressRewriteTarget(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("scheme".equals(fieldName)) { - deserializedRaiEgressRewriteTarget.scheme = RaiEgressScheme.fromString(reader.getString()); - } else if ("host".equals(fieldName)) { - deserializedRaiEgressRewriteTarget.host = reader.getString(); - } else if ("path".equals(fieldName)) { - deserializedRaiEgressRewriteTarget.path = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressRewriteTarget; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRule.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRule.java deleted file mode 100644 index ae3957b1f907..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRule.java +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 single egress rule. Rules are evaluated in order; first match wins. - */ -@Fluent -public final class RaiEgressRule implements JsonSerializable { - /* - * Name of the rule. Must be unique within the policy. - */ - private String name; - - /* - * Description of the rule. - */ - private String description; - - /* - * The type of rule (e.g., Fqdn). Determines how match criteria are interpreted. - */ - private RaiEgressRuleType ruleType; - - /* - * The match criteria for this rule. - */ - private RaiEgressRuleMatch match; - - /* - * The action to take when this rule matches, including the action type and any - * type-specific configuration (headers for Transform, rewrite target for Rewrite). - */ - private RaiEgressRuleAction action; - - /** - * Creates an instance of RaiEgressRule class. - */ - public RaiEgressRule() { - } - - /** - * Get the name property: Name of the rule. Must be unique within the policy. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Set the name property: Name of the rule. Must be unique within the policy. - * - * @param name the name value to set. - * @return the RaiEgressRule object itself. - */ - public RaiEgressRule withName(String name) { - this.name = name; - return this; - } - - /** - * Get the description property: Description of the rule. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Description of the rule. - * - * @param description the description value to set. - * @return the RaiEgressRule object itself. - */ - public RaiEgressRule withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the ruleType property: The type of rule (e.g., Fqdn). Determines how match criteria are interpreted. - * - * @return the ruleType value. - */ - public RaiEgressRuleType ruleType() { - return this.ruleType; - } - - /** - * Set the ruleType property: The type of rule (e.g., Fqdn). Determines how match criteria are interpreted. - * - * @param ruleType the ruleType value to set. - * @return the RaiEgressRule object itself. - */ - public RaiEgressRule withRuleType(RaiEgressRuleType ruleType) { - this.ruleType = ruleType; - return this; - } - - /** - * Get the match property: The match criteria for this rule. - * - * @return the match value. - */ - public RaiEgressRuleMatch match() { - return this.match; - } - - /** - * Set the match property: The match criteria for this rule. - * - * @param match the match value to set. - * @return the RaiEgressRule object itself. - */ - public RaiEgressRule withMatch(RaiEgressRuleMatch match) { - this.match = match; - return this; - } - - /** - * Get the action property: The action to take when this rule matches, including the action type and any - * type-specific configuration (headers for Transform, rewrite target for Rewrite). - * - * @return the action value. - */ - public RaiEgressRuleAction action() { - return this.action; - } - - /** - * Set the action property: The action to take when this rule matches, including the action type and any - * type-specific configuration (headers for Transform, rewrite target for Rewrite). - * - * @param action the action value to set. - * @return the RaiEgressRule object itself. - */ - public RaiEgressRule withAction(RaiEgressRuleAction action) { - this.action = action; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("name", this.name); - jsonWriter.writeStringField("ruleType", this.ruleType == null ? null : this.ruleType.toString()); - jsonWriter.writeJsonField("action", this.action); - jsonWriter.writeStringField("description", this.description); - jsonWriter.writeJsonField("match", this.match); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressRule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressRule 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 RaiEgressRule. - */ - public static RaiEgressRule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressRule deserializedRaiEgressRule = new RaiEgressRule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedRaiEgressRule.name = reader.getString(); - } else if ("ruleType".equals(fieldName)) { - deserializedRaiEgressRule.ruleType = RaiEgressRuleType.fromString(reader.getString()); - } else if ("action".equals(fieldName)) { - deserializedRaiEgressRule.action = RaiEgressRuleAction.fromJson(reader); - } else if ("description".equals(fieldName)) { - deserializedRaiEgressRule.description = reader.getString(); - } else if ("match".equals(fieldName)) { - deserializedRaiEgressRule.match = RaiEgressRuleMatch.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressRule; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleAction.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleAction.java deleted file mode 100644 index 702e4884253b..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleAction.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.annotation.Fluent; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * The action an egress rule takes when it matches. - * - Allow/Deny: no additional fields needed; headers and rewrite must not be set. - * - Transform: headers is required with at least one entry; rewrite must not be set. - * - Rewrite: rewrite is required with at least one of scheme/host/path; - * headers is optional for injecting headers alongside the redirect. - */ -@Fluent -public final class RaiEgressRuleAction implements JsonSerializable { - /* - * The kind of action. - */ - private RaiEgressRuleActionType actionType; - - /* - * Header transforms to apply. Required for Transform; optional for Rewrite; - * not allowed for Allow or Deny. - */ - private List headers; - - /* - * Destination override. Required for Rewrite; not allowed otherwise. - */ - private RaiEgressRewriteTarget rewrite; - - /** - * Creates an instance of RaiEgressRuleAction class. - */ - public RaiEgressRuleAction() { - } - - /** - * Get the actionType property: The kind of action. - * - * @return the actionType value. - */ - public RaiEgressRuleActionType actionType() { - return this.actionType; - } - - /** - * Set the actionType property: The kind of action. - * - * @param actionType the actionType value to set. - * @return the RaiEgressRuleAction object itself. - */ - public RaiEgressRuleAction withActionType(RaiEgressRuleActionType actionType) { - this.actionType = actionType; - return this; - } - - /** - * Get the headers property: Header transforms to apply. Required for Transform; optional for Rewrite; - * not allowed for Allow or Deny. - * - * @return the headers value. - */ - public List headers() { - return this.headers; - } - - /** - * Set the headers property: Header transforms to apply. Required for Transform; optional for Rewrite; - * not allowed for Allow or Deny. - * - * @param headers the headers value to set. - * @return the RaiEgressRuleAction object itself. - */ - public RaiEgressRuleAction withHeaders(List headers) { - this.headers = headers; - return this; - } - - /** - * Get the rewrite property: Destination override. Required for Rewrite; not allowed otherwise. - * - * @return the rewrite value. - */ - public RaiEgressRewriteTarget rewrite() { - return this.rewrite; - } - - /** - * Set the rewrite property: Destination override. Required for Rewrite; not allowed otherwise. - * - * @param rewrite the rewrite value to set. - * @return the RaiEgressRuleAction object itself. - */ - public RaiEgressRuleAction withRewrite(RaiEgressRewriteTarget rewrite) { - this.rewrite = rewrite; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("actionType", this.actionType == null ? null : this.actionType.toString()); - jsonWriter.writeArrayField("headers", this.headers, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("rewrite", this.rewrite); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressRuleAction from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressRuleAction 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 RaiEgressRuleAction. - */ - public static RaiEgressRuleAction fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressRuleAction deserializedRaiEgressRuleAction = new RaiEgressRuleAction(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("actionType".equals(fieldName)) { - deserializedRaiEgressRuleAction.actionType = RaiEgressRuleActionType.fromString(reader.getString()); - } else if ("headers".equals(fieldName)) { - List headers - = reader.readArray(reader1 -> RaiEgressHeaderTransform.fromJson(reader1)); - deserializedRaiEgressRuleAction.headers = headers; - } else if ("rewrite".equals(fieldName)) { - deserializedRaiEgressRuleAction.rewrite = RaiEgressRewriteTarget.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressRuleAction; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleActionType.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleActionType.java deleted file mode 100644 index 2c2c53ba5c8d..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleActionType.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The kind of action an egress rule takes when it matches. - */ -public final class RaiEgressRuleActionType extends ExpandableStringEnum { - /** - * Allow the matched traffic. - */ - public static final RaiEgressRuleActionType ALLOW = fromString("Allow"); - - /** - * Deny the matched traffic. - */ - public static final RaiEgressRuleActionType DENY = fromString("Deny"); - - /** - * Forward the matched traffic after applying header transforms. Requires at least one header. - */ - public static final RaiEgressRuleActionType TRANSFORM = fromString("Transform"); - - /** - * Redirect the matched traffic to a new destination, optionally applying header transforms. Requires a rewrite - * target. - */ - public static final RaiEgressRuleActionType REWRITE = fromString("Rewrite"); - - /** - * Creates a new instance of RaiEgressRuleActionType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RaiEgressRuleActionType() { - } - - /** - * Creates or finds a RaiEgressRuleActionType from its string representation. - * - * @param name a name to look for. - * @return the corresponding RaiEgressRuleActionType. - */ - public static RaiEgressRuleActionType fromString(String name) { - return fromString(name, RaiEgressRuleActionType.class); - } - - /** - * Gets known RaiEgressRuleActionType values. - * - * @return known RaiEgressRuleActionType values. - */ - public static Collection values() { - return values(RaiEgressRuleActionType.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleMatch.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleMatch.java deleted file mode 100644 index 0d3d5837799a..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleMatch.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 match criteria for an egress rule. - * If both host and path are omitted, the rule matches all traffic. - * Host uses DNS wildcard syntax (e.g., "\*.openai.com" matches "api.openai.com"). - * Path uses URI prefix matching with an asterisk as a single-segment wildcard. - * For example, "/v1/\*" matches "/v1/chat". - */ -@Fluent -public final class RaiEgressRuleMatch implements JsonSerializable { - /* - * Host pattern to match using DNS wildcard syntax (e.g., "\*.openai.com"). - * A leading "\*." matches any subdomain. Omit to match all hosts. - */ - private String host; - - /* - * Path pattern to match using URI prefix matching. - * An asterisk serves as a single-segment wildcard. - * For example, "/v1/\*" matches "/v1/chat". Omit to match all paths. - */ - private String path; - - /** - * Creates an instance of RaiEgressRuleMatch class. - */ - public RaiEgressRuleMatch() { - } - - /** - * Get the host property: Host pattern to match using DNS wildcard syntax (e.g., "\*.openai.com"). - * A leading "\*." matches any subdomain. Omit to match all hosts. - * - * @return the host value. - */ - public String host() { - return this.host; - } - - /** - * Set the host property: Host pattern to match using DNS wildcard syntax (e.g., "\*.openai.com"). - * A leading "\*." matches any subdomain. Omit to match all hosts. - * - * @param host the host value to set. - * @return the RaiEgressRuleMatch object itself. - */ - public RaiEgressRuleMatch withHost(String host) { - this.host = host; - return this; - } - - /** - * Get the path property: Path pattern to match using URI prefix matching. - * An asterisk serves as a single-segment wildcard. - * For example, "/v1/\*" matches "/v1/chat". Omit to match all paths. - * - * @return the path value. - */ - public String path() { - return this.path; - } - - /** - * Set the path property: Path pattern to match using URI prefix matching. - * An asterisk serves as a single-segment wildcard. - * For example, "/v1/\*" matches "/v1/chat". Omit to match all paths. - * - * @param path the path value to set. - * @return the RaiEgressRuleMatch object itself. - */ - public RaiEgressRuleMatch withPath(String path) { - this.path = path; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("host", this.host); - jsonWriter.writeStringField("path", this.path); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressRuleMatch from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressRuleMatch 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 RaiEgressRuleMatch. - */ - public static RaiEgressRuleMatch fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressRuleMatch deserializedRaiEgressRuleMatch = new RaiEgressRuleMatch(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("host".equals(fieldName)) { - deserializedRaiEgressRuleMatch.host = reader.getString(); - } else if ("path".equals(fieldName)) { - deserializedRaiEgressRuleMatch.path = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressRuleMatch; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleType.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleType.java deleted file mode 100644 index 1d8bba338af4..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleType.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The type of an egress rule, determining what kind of traffic matching it performs. - */ -public final class RaiEgressRuleType extends ExpandableStringEnum { - /** - * Fully qualified domain name (FQDN) based rule matching on host and path patterns. - */ - public static final RaiEgressRuleType FQDN = fromString("Fqdn"); - - /** - * Creates a new instance of RaiEgressRuleType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RaiEgressRuleType() { - } - - /** - * Creates or finds a RaiEgressRuleType from its string representation. - * - * @param name a name to look for. - * @return the corresponding RaiEgressRuleType. - */ - public static RaiEgressRuleType fromString(String name) { - return fromString(name, RaiEgressRuleType.class); - } - - /** - * Gets known RaiEgressRuleType values. - * - * @return known RaiEgressRuleType values. - */ - public static Collection values() { - return values(RaiEgressRuleType.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressScheme.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressScheme.java deleted file mode 100644 index 3c3ef676ba0a..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressScheme.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * URL scheme for rewrite targets. Only HTTP and HTTPS are supported. - */ -public final class RaiEgressScheme extends ExpandableStringEnum { - /** - * HTTP scheme. - */ - public static final RaiEgressScheme HTTP = fromString("http"); - - /** - * HTTPS scheme. - */ - public static final RaiEgressScheme HTTPS = fromString("https"); - - /** - * Creates a new instance of RaiEgressScheme value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public RaiEgressScheme() { - } - - /** - * Creates or finds a RaiEgressScheme from its string representation. - * - * @param name a name to look for. - * @return the corresponding RaiEgressScheme. - */ - public static RaiEgressScheme fromString(String name) { - return fromString(name, RaiEgressScheme.class); - } - - /** - * Gets known RaiEgressScheme values. - * - * @return known RaiEgressScheme values. - */ - public static Collection values() { - return values(RaiEgressScheme.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressSecretRef.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressSecretRef.java deleted file mode 100644 index 3d0e08d393e1..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressSecretRef.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 reference to a stored secret used as a header value. - */ -@Fluent -public final class RaiEgressSecretRef implements JsonSerializable { - /* - * Identifier of the secret to inject. - */ - private String secretId; - - /* - * Optional key within the secret. - */ - private String secretKey; - - /* - * Optional format for the resolved value; "{value}" is the placeholder, e.g. "Bearer {value}". - */ - private String format; - - /** - * Creates an instance of RaiEgressSecretRef class. - */ - public RaiEgressSecretRef() { - } - - /** - * Get the secretId property: Identifier of the secret to inject. - * - * @return the secretId value. - */ - public String secretId() { - return this.secretId; - } - - /** - * Set the secretId property: Identifier of the secret to inject. - * - * @param secretId the secretId value to set. - * @return the RaiEgressSecretRef object itself. - */ - public RaiEgressSecretRef withSecretId(String secretId) { - this.secretId = secretId; - return this; - } - - /** - * Get the secretKey property: Optional key within the secret. - * - * @return the secretKey value. - */ - public String secretKey() { - return this.secretKey; - } - - /** - * Set the secretKey property: Optional key within the secret. - * - * @param secretKey the secretKey value to set. - * @return the RaiEgressSecretRef object itself. - */ - public RaiEgressSecretRef withSecretKey(String secretKey) { - this.secretKey = secretKey; - return this; - } - - /** - * Get the format property: Optional format for the resolved value; "{value}" is the placeholder, e.g. "Bearer - * {value}". - * - * @return the format value. - */ - public String format() { - return this.format; - } - - /** - * Set the format property: Optional format for the resolved value; "{value}" is the placeholder, e.g. "Bearer - * {value}". - * - * @param format the format value to set. - * @return the RaiEgressSecretRef object itself. - */ - public RaiEgressSecretRef withFormat(String format) { - this.format = format; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("secretId", this.secretId); - jsonWriter.writeStringField("secretKey", this.secretKey); - jsonWriter.writeStringField("format", this.format); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of RaiEgressSecretRef from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of RaiEgressSecretRef 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 RaiEgressSecretRef. - */ - public static RaiEgressSecretRef fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - RaiEgressSecretRef deserializedRaiEgressSecretRef = new RaiEgressSecretRef(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("secretId".equals(fieldName)) { - deserializedRaiEgressSecretRef.secretId = reader.getString(); - } else if ("secretKey".equals(fieldName)) { - deserializedRaiEgressSecretRef.secretKey = reader.getString(); - } else if ("format".equals(fieldName)) { - deserializedRaiEgressSecretRef.format = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedRaiEgressSecretRef; - }); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java index d2883b1856ad..855ba49d1a89 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java @@ -48,12 +48,6 @@ public final class RaiPolicyProperties implements JsonSerializable safetyProviders; - /* - * Egress (outbound network) policy controlling which external endpoints sandboxed - * agents can reach. Includes rules with Allow/Deny/Transform/Rewrite actions. - */ - private RaiEgressPolicyConfig egressPolicy; - /** * Creates an instance of RaiPolicyProperties class. */ @@ -173,28 +167,6 @@ public RaiPolicyProperties withSafetyProviders(List safety return this; } - /** - * Get the egressPolicy property: Egress (outbound network) policy controlling which external endpoints sandboxed - * agents can reach. Includes rules with Allow/Deny/Transform/Rewrite actions. - * - * @return the egressPolicy value. - */ - public RaiEgressPolicyConfig egressPolicy() { - return this.egressPolicy; - } - - /** - * Set the egressPolicy property: Egress (outbound network) policy controlling which external endpoints sandboxed - * agents can reach. Includes rules with Allow/Deny/Transform/Rewrite actions. - * - * @param egressPolicy the egressPolicy value to set. - * @return the RaiPolicyProperties object itself. - */ - public RaiPolicyProperties withEgressPolicy(RaiEgressPolicyConfig egressPolicy) { - this.egressPolicy = egressPolicy; - return this; - } - /** * {@inheritDoc} */ @@ -209,7 +181,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("safetyProviders", this.safetyProviders, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("egressPolicy", this.egressPolicy); return jsonWriter.writeEndObject(); } @@ -246,8 +217,6 @@ public static RaiPolicyProperties fromJson(JsonReader jsonReader) throws IOExcep List safetyProviders = reader.readArray(reader1 -> SafetyProviderConfig.fromJson(reader1)); deserializedRaiPolicyProperties.safetyProviders = safetyProviders; - } else if ("egressPolicy".equals(fieldName)) { - deserializedRaiPolicyProperties.egressPolicy = RaiEgressPolicyConfig.fromJson(reader); } else { reader.skipChildren(); } 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 deleted file mode 100644 index 4380a3e42cfc..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/SshSettings.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 892c2da6fdbd..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/VmPriority.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 812d823b0eea..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbench.java +++ /dev/null @@ -1,374 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index f654dd8acd71..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/WorkbenchProperties.java +++ /dev/null @@ -1,287 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 deleted file mode 100644 index 4ca872bf9a71..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbenches.java +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.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 d3f332388693..1afd860fb63b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/azure-resourcemanager-cognitiveservices_metadata.json +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/azure-resourcemanager-cognitiveservices_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.CognitiveServices":"2026-05-15-preview"},"crossLanguagePackageId":"Microsoft.CognitiveServices","crossLanguageVersion":"80649970687f","crossLanguageDefinitions":{"com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.CapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.beginDelete":"Microsoft.CognitiveServices.CapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.createOrUpdate":"Microsoft.CognitiveServices.CapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.delete":"Microsoft.CognitiveServices.CapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.get":"Microsoft.CognitiveServices.CapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.getWithResponse":"Microsoft.CognitiveServices.CapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountCapabilityHostsClient.list":"Microsoft.CognitiveServices.CapabilityHosts.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.create":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.createWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.delete":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.deleteWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.get":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.list":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.update":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountConnectionsClient.updateWithResponse":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResources.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient":"Microsoft.CognitiveServices.Accounts","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginCreate":"Microsoft.CognitiveServices.Accounts.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginDelete":"Microsoft.CognitiveServices.Accounts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.beginUpdate":"Microsoft.CognitiveServices.Accounts.update","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.create":"Microsoft.CognitiveServices.Accounts.create","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.delete":"Microsoft.CognitiveServices.Accounts.delete","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.evaluateDeploymentPolicies":"Microsoft.CognitiveServices.Accounts.evaluateDeploymentPolicies","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.evaluateDeploymentPoliciesWithResponse":"Microsoft.CognitiveServices.Accounts.evaluateDeploymentPolicies","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.getByResourceGroup":"Microsoft.CognitiveServices.Accounts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.getByResourceGroupWithResponse":"Microsoft.CognitiveServices.Accounts.get","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.list":"Microsoft.CognitiveServices.Accounts.list","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listByResourceGroup":"Microsoft.CognitiveServices.Accounts.listByResourceGroup","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listKeys":"Microsoft.CognitiveServices.Accounts.listKeys","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listKeysWithResponse":"Microsoft.CognitiveServices.Accounts.listKeys","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listModels":"Microsoft.CognitiveServices.Accounts.listModels","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listSkus":"Microsoft.CognitiveServices.Accounts.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listSkusWithResponse":"Microsoft.CognitiveServices.Accounts.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listUsages":"Microsoft.CognitiveServices.Accounts.listUsages","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.listUsagesWithResponse":"Microsoft.CognitiveServices.Accounts.listUsages","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.regenerateKey":"Microsoft.CognitiveServices.Accounts.regenerateKey","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.regenerateKeyWithResponse":"Microsoft.CognitiveServices.Accounts.regenerateKey","com.azure.resourcemanager.cognitiveservices.fluent.AccountsClient.update":"Microsoft.CognitiveServices.Accounts.update","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient":"Microsoft.CognitiveServices.AgentApplications","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.AgentApplications.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.beginDelete":"Microsoft.CognitiveServices.AgentApplications.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.createOrUpdate":"Microsoft.CognitiveServices.AgentApplications.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.delete":"Microsoft.CognitiveServices.AgentApplications.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.disable":"Microsoft.CognitiveServices.AgentApplications.disable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.disableWithResponse":"Microsoft.CognitiveServices.AgentApplications.disable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.enable":"Microsoft.CognitiveServices.AgentApplications.enable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.enableWithResponse":"Microsoft.CognitiveServices.AgentApplications.enable","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.get":"Microsoft.CognitiveServices.AgentApplications.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.getWithResponse":"Microsoft.CognitiveServices.AgentApplications.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.list":"Microsoft.CognitiveServices.AgentApplications.list","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.listAgents":"Microsoft.CognitiveServices.AgentApplications.listAgents","com.azure.resourcemanager.cognitiveservices.fluent.AgentApplicationsClient.listAgentsWithResponse":"Microsoft.CognitiveServices.AgentApplications.listAgents","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.AgentDeploymentResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.beginDelete":"Microsoft.CognitiveServices.AgentDeploymentResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.AgentDeploymentResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.delete":"Microsoft.CognitiveServices.AgentDeploymentResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.get":"Microsoft.CognitiveServices.AgentDeploymentResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.get","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.list":"Microsoft.CognitiveServices.AgentDeploymentResources.list","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.start":"Microsoft.CognitiveServices.AgentDeploymentResources.start","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.startWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.start","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.stop":"Microsoft.CognitiveServices.AgentDeploymentResources.stop","com.azure.resourcemanager.cognitiveservices.fluent.AgentDeploymentsClient.stopWithResponse":"Microsoft.CognitiveServices.AgentDeploymentResources.stop","com.azure.resourcemanager.cognitiveservices.fluent.CognitiveServicesManagementClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient":"Microsoft.CognitiveServices.CommitmentPlans","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginCreateOrUpdateAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.createOrUpdateAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginCreateOrUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.createOrUpdatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDelete":"Microsoft.CognitiveServices.CommitmentPlans.delete","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDeleteAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.deleteAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginDeletePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.deletePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.beginUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.updatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdate":"Microsoft.CognitiveServices.CommitmentPlans.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdateAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.createOrUpdateAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.createOrUpdatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.CommitmentPlans.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.delete":"Microsoft.CognitiveServices.CommitmentPlans.delete","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.deleteAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.deleteAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.deletePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.deletePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.get":"Microsoft.CognitiveServices.CommitmentPlans.get","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getAssociation":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.getAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getAssociationWithResponse":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.getAssociation","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getByResourceGroup":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.getPlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getByResourceGroupWithResponse":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.getPlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.getWithResponse":"Microsoft.CognitiveServices.CommitmentPlans.get","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.list":"Microsoft.CognitiveServices.CommitmentPlans.list","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listAssociations":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociations.listAssociations","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listByResourceGroup":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.listPlansByResourceGroup","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.listPlansBySubscription":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.listPlansBySubscription","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentPlansClient.updatePlan":"Microsoft.CognitiveServices.CommitmentPlanOperationGroup.updatePlan","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.CommitmentTiersClient.list":"Microsoft.CognitiveServices.CommitmentTiersOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient":"Microsoft.CognitiveServices.ComputeOperations","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient.get":"Microsoft.CognitiveServices.ComputeOperations.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputeOperationsClient.getWithResponse":"Microsoft.CognitiveServices.ComputeOperations.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient":"Microsoft.CognitiveServices.Computes","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Computes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginDelete":"Microsoft.CognitiveServices.Computes.delete","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginRestart":"Microsoft.CognitiveServices.Computes.restart","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginStart":"Microsoft.CognitiveServices.Computes.start","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginStop":"Microsoft.CognitiveServices.Computes.stop","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.beginUpdate":"Microsoft.CognitiveServices.Computes.update","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.createOrUpdate":"Microsoft.CognitiveServices.Computes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.delete":"Microsoft.CognitiveServices.Computes.delete","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.get":"Microsoft.CognitiveServices.Computes.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.getWithResponse":"Microsoft.CognitiveServices.Computes.get","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.list":"Microsoft.CognitiveServices.Computes.list","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.restart":"Microsoft.CognitiveServices.Computes.restart","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.start":"Microsoft.CognitiveServices.Computes.start","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.stop":"Microsoft.CognitiveServices.Computes.stop","com.azure.resourcemanager.cognitiveservices.fluent.ComputesClient.update":"Microsoft.CognitiveServices.Computes.update","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient":"Microsoft.CognitiveServices.DefenderForAISettings","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.createOrUpdate":"Microsoft.CognitiveServices.DefenderForAISettings.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.get":"Microsoft.CognitiveServices.DefenderForAISettings.get","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.getWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.get","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.list":"Microsoft.CognitiveServices.DefenderForAISettings.list","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.update":"Microsoft.CognitiveServices.DefenderForAISettings.update","com.azure.resourcemanager.cognitiveservices.fluent.DefenderForAISettingsClient.updateWithResponse":"Microsoft.CognitiveServices.DefenderForAISettings.update","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient":"Microsoft.CognitiveServices.DeletedAccounts","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.beginPurge":"Microsoft.CognitiveServices.DeletedAccounts.purge","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.get":"Microsoft.CognitiveServices.DeletedAccounts.get","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.getWithResponse":"Microsoft.CognitiveServices.DeletedAccounts.get","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.list":"Microsoft.CognitiveServices.DeletedAccounts.list","com.azure.resourcemanager.cognitiveservices.fluent.DeletedAccountsClient.purge":"Microsoft.CognitiveServices.DeletedAccounts.purge","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient":"Microsoft.CognitiveServices.Deployments","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Deployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginDelete":"Microsoft.CognitiveServices.Deployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.beginUpdate":"Microsoft.CognitiveServices.Deployments.update","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.Deployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.delete":"Microsoft.CognitiveServices.Deployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.get":"Microsoft.CognitiveServices.Deployments.get","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.Deployments.get","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.list":"Microsoft.CognitiveServices.Deployments.list","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.listSkus":"Microsoft.CognitiveServices.Deployments.listSkus","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.pause":"Microsoft.CognitiveServices.Deployments.pause","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.pauseWithResponse":"Microsoft.CognitiveServices.Deployments.pause","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.resume":"Microsoft.CognitiveServices.Deployments.resume","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.resumeWithResponse":"Microsoft.CognitiveServices.Deployments.resume","com.azure.resourcemanager.cognitiveservices.fluent.DeploymentsClient.update":"Microsoft.CognitiveServices.Deployments.update","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient":"Microsoft.CognitiveServices.EncryptionScopes","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.beginDelete":"Microsoft.CognitiveServices.EncryptionScopes.delete","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.createOrUpdate":"Microsoft.CognitiveServices.EncryptionScopes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.EncryptionScopes.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.delete":"Microsoft.CognitiveServices.EncryptionScopes.delete","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.get":"Microsoft.CognitiveServices.EncryptionScopes.get","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.getWithResponse":"Microsoft.CognitiveServices.EncryptionScopes.get","com.azure.resourcemanager.cognitiveservices.fluent.EncryptionScopesClient.list":"Microsoft.CognitiveServices.EncryptionScopes.list","com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.LocationBasedModelCapacitiesClient.list":"Microsoft.CognitiveServices.LocationBasedModelCapacitiesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient":"Microsoft.CognitiveServices.ManagedComputeCapacities","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeCapacitiesClient.list":"Microsoft.CognitiveServices.ManagedComputeCapacities.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient":"Microsoft.CognitiveServices.ManagedComputeDeployments","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginDelete":"Microsoft.CognitiveServices.ManagedComputeDeployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.beginUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.update","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.createOrUpdate":"Microsoft.CognitiveServices.ManagedComputeDeployments.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.delete":"Microsoft.CognitiveServices.ManagedComputeDeployments.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.get":"Microsoft.CognitiveServices.ManagedComputeDeployments.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.getWithResponse":"Microsoft.CognitiveServices.ManagedComputeDeployments.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.list":"Microsoft.CognitiveServices.ManagedComputeDeployments.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeDeploymentsClient.update":"Microsoft.CognitiveServices.ManagedComputeDeployments.update","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient":"Microsoft.CognitiveServices.ManagedComputeUsagesOperationGroup","com.azure.resourcemanager.cognitiveservices.fluent.ManagedComputeUsagesOperationGroupsClient.list":"Microsoft.CognitiveServices.ManagedComputeUsagesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient.beginProvisionManagedNetwork":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.provisionManagedNetwork","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkProvisionsClient.provisionManagedNetwork":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.provisionManagedNetwork","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginDelete":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginPatch":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.patch","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.beginPut":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.put","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.delete":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.get":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.getWithResponse":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.list":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.patch":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.patch","com.azure.resourcemanager.cognitiveservices.fluent.ManagedNetworkSettingsOperationsClient.put":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.put","com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ModelCapacitiesClient.list":"Microsoft.CognitiveServices.ModelCapacitiesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.ModelsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ModelsClient.list":"Microsoft.CognitiveServices.ModelsOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.beginReconcile":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.reconcile","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.get":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.get","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.getWithResponse":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.get","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.list":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.list","com.azure.resourcemanager.cognitiveservices.fluent.NetworkSecurityPerimeterConfigurationsClient.reconcile":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurations.reconcile","com.azure.resourcemanager.cognitiveservices.fluent.OperationsClient":"Microsoft.CognitiveServices.Operations","com.azure.resourcemanager.cognitiveservices.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.OutboundRuleBasicResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.beginDelete":"Microsoft.CognitiveServices.OutboundRuleBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.createOrUpdate":"Microsoft.CognitiveServices.OutboundRuleBasicResources.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.delete":"Microsoft.CognitiveServices.OutboundRuleBasicResources.delete","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.get":"Microsoft.CognitiveServices.OutboundRuleBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.getWithResponse":"Microsoft.CognitiveServices.OutboundRuleBasicResources.get","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesClient.list":"Microsoft.CognitiveServices.OutboundRuleBasicResources.list","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.OutboundRulesOperationsClient.post":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResources.post","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient":"Microsoft.CognitiveServices.PrivateEndpointConnections","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.PrivateEndpointConnections.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.CognitiveServices.PrivateEndpointConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.createOrUpdate":"Microsoft.CognitiveServices.PrivateEndpointConnections.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.CognitiveServices.PrivateEndpointConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.CognitiveServices.PrivateEndpointConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.PrivateEndpointConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.list":"Microsoft.CognitiveServices.PrivateEndpointConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.PrivateEndpointConnectionsClient.listWithResponse":"Microsoft.CognitiveServices.PrivateEndpointConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient.list":"Microsoft.CognitiveServices.Accounts.privateLinkResourcesList","com.azure.resourcemanager.cognitiveservices.fluent.PrivateLinkResourcesClient.listWithResponse":"Microsoft.CognitiveServices.Accounts.privateLinkResourcesList","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient":"Microsoft.CognitiveServices.ProjectCapabilityHosts","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.ProjectCapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.beginDelete":"Microsoft.CognitiveServices.ProjectCapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.createOrUpdate":"Microsoft.CognitiveServices.ProjectCapabilityHosts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.delete":"Microsoft.CognitiveServices.ProjectCapabilityHosts.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.get":"Microsoft.CognitiveServices.ProjectCapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.getWithResponse":"Microsoft.CognitiveServices.ProjectCapabilityHosts.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectCapabilityHostsClient.list":"Microsoft.CognitiveServices.ProjectCapabilityHosts.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient":"Microsoft.CognitiveServices.ProjectConnections","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.create":"Microsoft.CognitiveServices.ProjectConnections.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.createWithResponse":"Microsoft.CognitiveServices.ProjectConnections.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.delete":"Microsoft.CognitiveServices.ProjectConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.deleteWithResponse":"Microsoft.CognitiveServices.ProjectConnections.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.get":"Microsoft.CognitiveServices.ProjectConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.getWithResponse":"Microsoft.CognitiveServices.ProjectConnections.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.list":"Microsoft.CognitiveServices.ProjectConnections.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.update":"Microsoft.CognitiveServices.ProjectConnections.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectConnectionsClient.updateWithResponse":"Microsoft.CognitiveServices.ProjectConnections.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient":"Microsoft.CognitiveServices.Projects","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginCreate":"Microsoft.CognitiveServices.Projects.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginDelete":"Microsoft.CognitiveServices.Projects.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.beginUpdate":"Microsoft.CognitiveServices.Projects.update","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.create":"Microsoft.CognitiveServices.Projects.create","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.delete":"Microsoft.CognitiveServices.Projects.delete","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.get":"Microsoft.CognitiveServices.Projects.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.getWithResponse":"Microsoft.CognitiveServices.Projects.get","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.list":"Microsoft.CognitiveServices.Projects.list","com.azure.resourcemanager.cognitiveservices.fluent.ProjectsClient.update":"Microsoft.CognitiveServices.Projects.update","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient":"Microsoft.CognitiveServices.QuotaTiers","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.createOrUpdate":"Microsoft.CognitiveServices.QuotaTiers.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.QuotaTiers.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.get":"Microsoft.CognitiveServices.QuotaTiers.get","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.getWithResponse":"Microsoft.CognitiveServices.QuotaTiers.get","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.list":"Microsoft.CognitiveServices.QuotaTiers.listBySubscription","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.update":"Microsoft.CognitiveServices.QuotaTiers.update","com.azure.resourcemanager.cognitiveservices.fluent.QuotaTiersClient.updateWithResponse":"Microsoft.CognitiveServices.QuotaTiers.update","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient":"Microsoft.CognitiveServices.RaiBlocklistItems","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchAdd":"Microsoft.CognitiveServices.RaiBlocklists.batchAdd","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchAddWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.batchAdd","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchDelete":"Microsoft.CognitiveServices.RaiBlocklists.batchDelete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.batchDeleteWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.batchDelete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.beginDelete":"Microsoft.CognitiveServices.RaiBlocklistItems.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiBlocklistItems.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiBlocklistItems.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.delete":"Microsoft.CognitiveServices.RaiBlocklistItems.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.get":"Microsoft.CognitiveServices.RaiBlocklistItems.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.getWithResponse":"Microsoft.CognitiveServices.RaiBlocklistItems.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistItemsClient.list":"Microsoft.CognitiveServices.RaiBlocklistItems.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient":"Microsoft.CognitiveServices.RaiBlocklists","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.beginDelete":"Microsoft.CognitiveServices.RaiBlocklists.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiBlocklists.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.delete":"Microsoft.CognitiveServices.RaiBlocklists.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.get":"Microsoft.CognitiveServices.RaiBlocklists.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.getWithResponse":"Microsoft.CognitiveServices.RaiBlocklists.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiBlocklistsClient.list":"Microsoft.CognitiveServices.RaiBlocklists.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient":"Microsoft.CognitiveServices.RaiContentFilters","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.get":"Microsoft.CognitiveServices.RaiContentFilters.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.getWithResponse":"Microsoft.CognitiveServices.RaiContentFilters.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiContentFiltersClient.list":"Microsoft.CognitiveServices.RaiContentFilters.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.beginDelete":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.createOrUpdate":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.delete":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.get":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersClient.getWithResponse":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersOperationsClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.RaiExternalSafetyProvidersOperationsClient.list":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemas.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient":"Microsoft.CognitiveServices.RaiPolicies","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.beginDelete":"Microsoft.CognitiveServices.RaiPolicies.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.createOrUpdate":"Microsoft.CognitiveServices.RaiPolicies.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiPolicies.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.delete":"Microsoft.CognitiveServices.RaiPolicies.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.get":"Microsoft.CognitiveServices.RaiPolicies.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.getWithResponse":"Microsoft.CognitiveServices.RaiPolicies.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiPoliciesClient.list":"Microsoft.CognitiveServices.RaiPolicies.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient":"Microsoft.CognitiveServices.RaiToolLabels","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.beginDelete":"Microsoft.CognitiveServices.RaiToolLabels.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiToolLabels.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiToolLabels.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.delete":"Microsoft.CognitiveServices.RaiToolLabels.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.get":"Microsoft.CognitiveServices.RaiToolLabels.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.getWithResponse":"Microsoft.CognitiveServices.RaiToolLabels.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiToolLabelsClient.list":"Microsoft.CognitiveServices.RaiToolLabels.list","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient":"Microsoft.CognitiveServices.RaiTopics","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.beginDelete":"Microsoft.CognitiveServices.RaiTopics.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.createOrUpdate":"Microsoft.CognitiveServices.RaiTopics.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.RaiTopics.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.delete":"Microsoft.CognitiveServices.RaiTopics.delete","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.get":"Microsoft.CognitiveServices.RaiTopics.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.getWithResponse":"Microsoft.CognitiveServices.RaiTopics.get","com.azure.resourcemanager.cognitiveservices.fluent.RaiTopicsClient.list":"Microsoft.CognitiveServices.RaiTopics.list","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.calculateModelCapacity":"Microsoft.CognitiveServices.calculateModelCapacity","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.calculateModelCapacityWithResponse":"Microsoft.CognitiveServices.calculateModelCapacity","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkDomainAvailability":"Microsoft.CognitiveServices.checkDomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkDomainAvailabilityWithResponse":"Microsoft.CognitiveServices.checkDomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkSkuAvailability":"Microsoft.CognitiveServices.checkSkuAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceProvidersClient.checkSkuAvailabilityWithResponse":"Microsoft.CognitiveServices.checkSkuAvailability","com.azure.resourcemanager.cognitiveservices.fluent.ResourceSkusClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.ResourceSkusClient.list":"Microsoft.CognitiveServices.ResourceSkusOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient":"Microsoft.CognitiveServices.SubscriptionRaiPolicy","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.beginDelete":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.delete","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.createOrUpdate":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.delete":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.delete","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.get":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.get","com.azure.resourcemanager.cognitiveservices.fluent.SubscriptionRaiPoliciesClient.getWithResponse":"Microsoft.CognitiveServices.SubscriptionRaiPolicy.get","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient.createOrUpdate":"Microsoft.CognitiveServices.Accounts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.TestRaiExternalSafetyProvidersClient.createOrUpdateWithResponse":"Microsoft.CognitiveServices.Accounts.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.fluent.UsagesClient.list":"Microsoft.CognitiveServices.UsagesOperationGroup.list","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient":"Microsoft.CognitiveServices.Workbenches","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginCreateOrUpdate":"Microsoft.CognitiveServices.Workbenches.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginDelete":"Microsoft.CognitiveServices.Workbenches.delete","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginRestart":"Microsoft.CognitiveServices.Workbenches.restart","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginStart":"Microsoft.CognitiveServices.Workbenches.start","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginStop":"Microsoft.CognitiveServices.Workbenches.stop","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.beginUpdate":"Microsoft.CognitiveServices.Workbenches.update","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.createOrUpdate":"Microsoft.CognitiveServices.Workbenches.createOrUpdate","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.delete":"Microsoft.CognitiveServices.Workbenches.delete","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.get":"Microsoft.CognitiveServices.Workbenches.get","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.getWithResponse":"Microsoft.CognitiveServices.Workbenches.get","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.list":"Microsoft.CognitiveServices.Workbenches.list","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.restart":"Microsoft.CognitiveServices.Workbenches.restart","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.start":"Microsoft.CognitiveServices.Workbenches.start","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.stop":"Microsoft.CognitiveServices.Workbenches.stop","com.azure.resourcemanager.cognitiveservices.fluent.WorkbenchesClient.update":"Microsoft.CognitiveServices.Workbenches.update","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountInner":"Microsoft.CognitiveServices.Account","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountModelInner":"Microsoft.CognitiveServices.AccountModel","com.azure.resourcemanager.cognitiveservices.fluent.models.AccountSkuListResultInner":"Microsoft.CognitiveServices.AccountSkuListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentApplicationInner":"Microsoft.CognitiveServices.AgentApplication","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentDeploymentInner":"Microsoft.CognitiveServices.AgentDeployment","com.azure.resourcemanager.cognitiveservices.fluent.models.AgentReferenceResourceArmPaginatedResultInner":"Microsoft.CognitiveServices.AgentReferenceResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.fluent.models.ApiKeysInner":"Microsoft.CognitiveServices.ApiKeys","com.azure.resourcemanager.cognitiveservices.fluent.models.CalculateModelCapacityResultInner":"Microsoft.CognitiveServices.CalculateModelCapacityResult","com.azure.resourcemanager.cognitiveservices.fluent.models.CapabilityHostInner":"Microsoft.CognitiveServices.CapabilityHost","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationInner":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociation","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanAccountAssociationProperties":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociationProperties","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanInner":"Microsoft.CognitiveServices.CommitmentPlan","com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentTierInner":"Microsoft.CognitiveServices.CommitmentTier","com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeInner":"Microsoft.CognitiveServices.Compute","com.azure.resourcemanager.cognitiveservices.fluent.models.ComputeOperationStatusInner":"Microsoft.CognitiveServices.ComputeOperationStatus","com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingInner":"Microsoft.CognitiveServices.DefenderForAISetting","com.azure.resourcemanager.cognitiveservices.fluent.models.DefenderForAISettingProperties":"Microsoft.CognitiveServices.DefenderForAISettingProperties","com.azure.resourcemanager.cognitiveservices.fluent.models.DeploymentInner":"Microsoft.CognitiveServices.Deployment","com.azure.resourcemanager.cognitiveservices.fluent.models.DomainAvailabilityInner":"Microsoft.CognitiveServices.DomainAvailability","com.azure.resourcemanager.cognitiveservices.fluent.models.EncryptionScopeInner":"Microsoft.CognitiveServices.EncryptionScope","com.azure.resourcemanager.cognitiveservices.fluent.models.EvaluateDeploymentPoliciesResponseInner":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesResponse","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeCapacityInner":"Microsoft.CognitiveServices.ManagedComputeCapacity","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeDeploymentInner":"Microsoft.CognitiveServices.ManagedComputeDeployment","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedComputeUsageInner":"Microsoft.CognitiveServices.ManagedComputeUsage","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkProvisionStatusInner":"Microsoft.CognitiveServices.ManagedNetworkProvisionStatus","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsBasicResourceInner":"Microsoft.CognitiveServices.ManagedNetworkSettingsBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsInner":"Microsoft.CognitiveServices.ManagedNetworkSettings","com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsPropertiesBasicResourceInner":"Microsoft.CognitiveServices.ManagedNetworkSettingsPropertiesBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.ModelCapacityListResultValueItemInner":"Microsoft.CognitiveServices.ModelCapacityListResultValueItem","com.azure.resourcemanager.cognitiveservices.fluent.models.ModelInner":"Microsoft.CognitiveServices.Model","com.azure.resourcemanager.cognitiveservices.fluent.models.NetworkSecurityPerimeterConfigurationInner":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfiguration","com.azure.resourcemanager.cognitiveservices.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.cognitiveservices.fluent.models.OutboundRuleBasicResourceInner":"Microsoft.CognitiveServices.OutboundRuleBasicResource","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateEndpointConnectionInner":"Microsoft.CognitiveServices.PrivateEndpointConnection","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateEndpointConnectionListResultInner":"Microsoft.CognitiveServices.PrivateEndpointConnectionListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.PrivateLinkResourceListResultInner":"Microsoft.CognitiveServices.PrivateLinkResourceListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.ProjectCapabilityHostInner":"Microsoft.CognitiveServices.ProjectCapabilityHost","com.azure.resourcemanager.cognitiveservices.fluent.models.ProjectInner":"Microsoft.CognitiveServices.Project","com.azure.resourcemanager.cognitiveservices.fluent.models.QuotaTierInner":"Microsoft.CognitiveServices.QuotaTier","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistInner":"Microsoft.CognitiveServices.RaiBlocklist","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiBlocklistItemInner":"Microsoft.CognitiveServices.RaiBlocklistItem","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiContentFilterInner":"Microsoft.CognitiveServices.RaiContentFilter","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiExternalSafetyProviderSchemaInner":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchema","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner":"Microsoft.CognitiveServices.RaiPolicy","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiToolLabelInner":"Microsoft.CognitiveServices.RaiToolLabel","com.azure.resourcemanager.cognitiveservices.fluent.models.RaiTopicInner":"Microsoft.CognitiveServices.RaiTopic","com.azure.resourcemanager.cognitiveservices.fluent.models.ResourceSkuInner":"Microsoft.CognitiveServices.ResourceSku","com.azure.resourcemanager.cognitiveservices.fluent.models.SkuAvailabilityListResultInner":"Microsoft.CognitiveServices.SkuAvailabilityListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.SkuResourceInner":"Microsoft.CognitiveServices.SkuResource","com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner":"Microsoft.CognitiveServices.Usage","com.azure.resourcemanager.cognitiveservices.fluent.models.UsageListResultInner":"Microsoft.CognitiveServices.UsageListResult","com.azure.resourcemanager.cognitiveservices.fluent.models.WorkbenchInner":"Microsoft.CognitiveServices.Workbench","com.azure.resourcemanager.cognitiveservices.implementation.CognitiveServicesManagementClientBuilder":"Microsoft.CognitiveServices","com.azure.resourcemanager.cognitiveservices.implementation.models.AccountListResult":"Microsoft.CognitiveServices.AccountListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AccountModelListResult":"Microsoft.CognitiveServices.AccountModelListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AgentApplicationResourceArmPaginatedResult":"Microsoft.CognitiveServices.AgentApplicationResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.AgentDeploymentResourceArmPaginatedResult":"Microsoft.CognitiveServices.AgentDeploymentResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CapabilityHostResourceArmPaginatedResult":"Microsoft.CognitiveServices.CapabilityHostResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentPlanAccountAssociationListResult":"Microsoft.CognitiveServices.CommitmentPlanAccountAssociationListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentPlanListResult":"Microsoft.CognitiveServices.CommitmentPlanListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.CommitmentTierListResult":"Microsoft.CognitiveServices.CommitmentTierListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ComputeListResult":"Microsoft.CognitiveServices.ComputeListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ConnectionPropertiesV2BasicResourceArmPaginatedResult":"Microsoft.CognitiveServices.ConnectionPropertiesV2BasicResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DefenderForAISettingResult":"Microsoft.CognitiveServices.DefenderForAISettingResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DeploymentListResult":"Microsoft.CognitiveServices.DeploymentListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.DeploymentSkuListResult":"Microsoft.CognitiveServices.DeploymentSkuListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.EncryptionScopeListResult":"Microsoft.CognitiveServices.EncryptionScopeListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeCapacityListResult":"Microsoft.CognitiveServices.ManagedComputeCapacityListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeDeploymentListResult":"Microsoft.CognitiveServices.ManagedComputeDeploymentListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedComputeUsageListResult":"Microsoft.CognitiveServices.ManagedComputeUsageListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ManagedNetworkListResult":"Microsoft.CognitiveServices.ManagedNetworkListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ModelCapacityListResult":"Microsoft.CognitiveServices.ModelCapacityListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ModelListResult":"Microsoft.CognitiveServices.ModelListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.NetworkSecurityPerimeterConfigurationList":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationList","com.azure.resourcemanager.cognitiveservices.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.OutboundRuleListResult":"Microsoft.CognitiveServices.OutboundRuleListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ProjectCapabilityHostResourceArmPaginatedResult":"Microsoft.CognitiveServices.ProjectCapabilityHostResourceArmPaginatedResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ProjectListResult":"Microsoft.CognitiveServices.ProjectListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.QuotaTierListResult":"Microsoft.CognitiveServices.QuotaTierListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiBlockListItemsResult":"Microsoft.CognitiveServices.RaiBlockListItemsResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiBlockListResult":"Microsoft.CognitiveServices.RaiBlockListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiContentFilterListResult":"Microsoft.CognitiveServices.RaiContentFilterListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiExternalSafetyProviderResult":"Microsoft.CognitiveServices.RaiExternalSafetyProviderResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiPolicyListResult":"Microsoft.CognitiveServices.RaiPolicyListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiToolLabelResult":"Microsoft.CognitiveServices.RaiToolLabelResult","com.azure.resourcemanager.cognitiveservices.implementation.models.RaiTopicResult":"Microsoft.CognitiveServices.RaiTopicResult","com.azure.resourcemanager.cognitiveservices.implementation.models.ResourceSkuListResult":"Microsoft.CognitiveServices.ResourceSkuListResult","com.azure.resourcemanager.cognitiveservices.implementation.models.WorkbenchListResult":"Microsoft.CognitiveServices.WorkbenchListResult","com.azure.resourcemanager.cognitiveservices.models.AadAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AADAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AbusePenalty":"Microsoft.CognitiveServices.AbusePenalty","com.azure.resourcemanager.cognitiveservices.models.AbusePenaltyAction":"Microsoft.CognitiveServices.AbusePenaltyAction","com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AccessKeyAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AccountKeyAuthTypeConnectionProperties":"Microsoft.CognitiveServices.AccountKeyAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.AccountProperties":"Microsoft.CognitiveServices.AccountProperties","com.azure.resourcemanager.cognitiveservices.models.AccountSku":"Microsoft.CognitiveServices.AccountSku","com.azure.resourcemanager.cognitiveservices.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentProperties":"Microsoft.CognitiveServices.AgentDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentProvisioningState":"Microsoft.CognitiveServices.AgentDeploymentProvisioningState","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentState":"Microsoft.CognitiveServices.AgentDeploymentState","com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentType":"Microsoft.CognitiveServices.AgentDeploymentType","com.azure.resourcemanager.cognitiveservices.models.AgentProtocol":"Microsoft.CognitiveServices.AgentProtocol","com.azure.resourcemanager.cognitiveservices.models.AgentProtocolVersion":"Microsoft.CognitiveServices.AgentProtocolVersion","com.azure.resourcemanager.cognitiveservices.models.AgentReference":"Microsoft.CognitiveServices.AgentReference","com.azure.resourcemanager.cognitiveservices.models.AgentReferenceProperties":"Microsoft.CognitiveServices.AgentReferenceProperties","com.azure.resourcemanager.cognitiveservices.models.AgenticApplicationProperties":"Microsoft.CognitiveServices.AgenticApplicationProperties","com.azure.resourcemanager.cognitiveservices.models.AgenticApplicationProvisioningState":"Microsoft.CognitiveServices.AgenticApplicationProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ApiKeyAuthConnectionProperties":"Microsoft.CognitiveServices.ApiKeyAuthConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ApiProperties":"Microsoft.CognitiveServices.ApiProperties","com.azure.resourcemanager.cognitiveservices.models.ApplicationAuthorizationPolicy":"Microsoft.CognitiveServices.ApplicationAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.ApplicationTrafficRoutingPolicy":"Microsoft.CognitiveServices.ApplicationTrafficRoutingPolicy","com.azure.resourcemanager.cognitiveservices.models.AssignedIdentity":"Microsoft.CognitiveServices.AssignedIdentity","com.azure.resourcemanager.cognitiveservices.models.BillingMeterInfo":"Microsoft.CognitiveServices.BillingMeterInfo","com.azure.resourcemanager.cognitiveservices.models.BuiltInAuthorizationScheme":"Microsoft.CognitiveServices.BuiltInAuthorizationScheme","com.azure.resourcemanager.cognitiveservices.models.ByPassSelection":"Microsoft.CognitiveServices.ByPassSelection","com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityParameter":"Microsoft.CognitiveServices.CalculateModelCapacityParameter","com.azure.resourcemanager.cognitiveservices.models.CalculateModelCapacityResultEstimatedCapacity":"Microsoft.CognitiveServices.CalculateModelCapacityResultEstimatedCapacity","com.azure.resourcemanager.cognitiveservices.models.CallRateLimit":"Microsoft.CognitiveServices.CallRateLimit","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostKind":"Microsoft.CognitiveServices.CapabilityHostKind","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProperties":"Microsoft.CognitiveServices.CapabilityHostProperties","com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProvisioningState":"Microsoft.CognitiveServices.CapabilityHostProvisioningState","com.azure.resourcemanager.cognitiveservices.models.CapacityConfig":"Microsoft.CognitiveServices.CapacityConfig","com.azure.resourcemanager.cognitiveservices.models.ChannelsBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.ChannelsBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilityParameter":"Microsoft.CognitiveServices.CheckDomainAvailabilityParameter","com.azure.resourcemanager.cognitiveservices.models.CheckSkuAvailabilityParameter":"Microsoft.CognitiveServices.CheckSkuAvailabilityParameter","com.azure.resourcemanager.cognitiveservices.models.ClusterComputeProperties":"Microsoft.CognitiveServices.ClusterComputeProperties","com.azure.resourcemanager.cognitiveservices.models.CommitmentCost":"Microsoft.CognitiveServices.CommitmentCost","com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod":"Microsoft.CognitiveServices.CommitmentPeriod","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanAssociation":"Microsoft.CognitiveServices.CommitmentPlanAssociation","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties":"Microsoft.CognitiveServices.CommitmentPlanProperties","com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProvisioningState":"Microsoft.CognitiveServices.CommitmentPlanProvisioningState","com.azure.resourcemanager.cognitiveservices.models.CommitmentQuota":"Microsoft.CognitiveServices.CommitmentQuota","com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatusProperties":"Microsoft.CognitiveServices.ComputeOperationStatusProperties","com.azure.resourcemanager.cognitiveservices.models.ComputeOperationStatusType":"Microsoft.CognitiveServices.ComputeOperationStatusType","com.azure.resourcemanager.cognitiveservices.models.ComputeProperties":"Microsoft.CognitiveServices.ComputeProperties","com.azure.resourcemanager.cognitiveservices.models.ComputeProvisioningState":"Microsoft.CognitiveServices.ComputeProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ComputeType":"Microsoft.CognitiveServices.ComputeType","com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey":"Microsoft.CognitiveServices.ConnectionAccessKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionAccountKey":"Microsoft.CognitiveServices.ConnectionAccountKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionApiKey":"Microsoft.CognitiveServices.ConnectionApiKey","com.azure.resourcemanager.cognitiveservices.models.ConnectionAuthType":"Microsoft.CognitiveServices.ConnectionAuthType","com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory":"Microsoft.CognitiveServices.ConnectionCategory","com.azure.resourcemanager.cognitiveservices.models.ConnectionGroup":"Microsoft.CognitiveServices.ConnectionGroup","com.azure.resourcemanager.cognitiveservices.models.ConnectionManagedIdentity":"Microsoft.CognitiveServices.ConnectionManagedIdentity","com.azure.resourcemanager.cognitiveservices.models.ConnectionOAuth2":"Microsoft.CognitiveServices.ConnectionOAuth2","com.azure.resourcemanager.cognitiveservices.models.ConnectionPersonalAccessToken":"Microsoft.CognitiveServices.ConnectionPersonalAccessToken","com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2":"Microsoft.CognitiveServices.ConnectionPropertiesV2","com.azure.resourcemanager.cognitiveservices.models.ConnectionServicePrincipal":"Microsoft.CognitiveServices.ConnectionServicePrincipal","com.azure.resourcemanager.cognitiveservices.models.ConnectionSharedAccessSignature":"Microsoft.CognitiveServices.ConnectionSharedAccessSignature","com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent":"Microsoft.CognitiveServices.ConnectionUpdateContent","com.azure.resourcemanager.cognitiveservices.models.ConnectionUsernamePassword":"Microsoft.CognitiveServices.ConnectionUsernamePassword","com.azure.resourcemanager.cognitiveservices.models.ConnectivityEndpoints":"Microsoft.CognitiveServices.ConnectivityEndpoints","com.azure.resourcemanager.cognitiveservices.models.ContainerInstanceComputeProperties":"Microsoft.CognitiveServices.ContainerInstanceComputeProperties","com.azure.resourcemanager.cognitiveservices.models.ContentLevel":"Microsoft.CognitiveServices.ContentLevel","com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig":"Microsoft.CognitiveServices.CustomBlocklistConfig","com.azure.resourcemanager.cognitiveservices.models.CustomKeys":"Microsoft.CognitiveServices.CustomKeys","com.azure.resourcemanager.cognitiveservices.models.CustomKeysConnectionProperties":"Microsoft.CognitiveServices.CustomKeysConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingState":"Microsoft.CognitiveServices.DefenderForAISettingState","com.azure.resourcemanager.cognitiveservices.models.DeploymentCapacitySettings":"Microsoft.CognitiveServices.DeploymentCapacitySettings","com.azure.resourcemanager.cognitiveservices.models.DeploymentModel":"Microsoft.CognitiveServices.DeploymentModel","com.azure.resourcemanager.cognitiveservices.models.DeploymentModelVersionUpgradeOption":"Microsoft.CognitiveServices.DeploymentModelVersionUpgradeOption","com.azure.resourcemanager.cognitiveservices.models.DeploymentPolicyEvaluationResult":"Microsoft.CognitiveServices.DeploymentPolicyEvaluationResult","com.azure.resourcemanager.cognitiveservices.models.DeploymentProperties":"Microsoft.CognitiveServices.DeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.DeploymentProvisioningState":"Microsoft.CognitiveServices.DeploymentProvisioningState","com.azure.resourcemanager.cognitiveservices.models.DeploymentRouting":"Microsoft.CognitiveServices.DeploymentRouting","com.azure.resourcemanager.cognitiveservices.models.DeploymentScaleSettings":"Microsoft.CognitiveServices.DeploymentScaleSettings","com.azure.resourcemanager.cognitiveservices.models.DeploymentScaleType":"Microsoft.CognitiveServices.DeploymentScaleType","com.azure.resourcemanager.cognitiveservices.models.DeploymentSizeCapacity":"Microsoft.CognitiveServices.DeploymentSizeCapacity","com.azure.resourcemanager.cognitiveservices.models.DeploymentSpeculativeDecoding":"Microsoft.CognitiveServices.DeploymentSpeculativeDecoding","com.azure.resourcemanager.cognitiveservices.models.DeploymentState":"Microsoft.CognitiveServices.DeploymentState","com.azure.resourcemanager.cognitiveservices.models.DeprecationStatus":"Microsoft.CognitiveServices.DeprecationStatus","com.azure.resourcemanager.cognitiveservices.models.Encryption":"Microsoft.CognitiveServices.Encryption","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties":"Microsoft.CognitiveServices.EncryptionScopeProperties","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProvisioningState":"Microsoft.CognitiveServices.EncryptionScopeProvisioningState","com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeState":"Microsoft.CognitiveServices.EncryptionScopeState","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeployment":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesDeployment","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesDeploymentProperties":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.EvaluateDeploymentPoliciesRequest":"Microsoft.CognitiveServices.EvaluateDeploymentPoliciesRequest","com.azure.resourcemanager.cognitiveservices.models.FirewallSku":"Microsoft.CognitiveServices.FirewallSku","com.azure.resourcemanager.cognitiveservices.models.FoundryAutoUpgrade":"Microsoft.CognitiveServices.FoundryAutoUpgrade","com.azure.resourcemanager.cognitiveservices.models.FoundryAutoUpgradeMode":"Microsoft.CognitiveServices.FoundryAutoUpgradeMode","com.azure.resourcemanager.cognitiveservices.models.FqdnOutboundRule":"Microsoft.CognitiveServices.FqdnOutboundRule","com.azure.resourcemanager.cognitiveservices.models.HostedAgentDeployment":"Microsoft.CognitiveServices.HostedAgentDeployment","com.azure.resourcemanager.cognitiveservices.models.HostingModel":"Microsoft.CognitiveServices.HostingModel","com.azure.resourcemanager.cognitiveservices.models.Identity":"Microsoft.CognitiveServices.Identity","com.azure.resourcemanager.cognitiveservices.models.IdentityKind":"Microsoft.CognitiveServices.IdentityKind","com.azure.resourcemanager.cognitiveservices.models.IdentityManagementType":"Microsoft.CognitiveServices.IdentityManagementType","com.azure.resourcemanager.cognitiveservices.models.IdentityProvisioningState":"Microsoft.CognitiveServices.IdentityProvisioningState","com.azure.resourcemanager.cognitiveservices.models.IpRule":"Microsoft.CognitiveServices.IpRule","com.azure.resourcemanager.cognitiveservices.models.IsolationMode":"Microsoft.CognitiveServices.IsolationMode","com.azure.resourcemanager.cognitiveservices.models.KeyName":"Microsoft.CognitiveServices.KeyName","com.azure.resourcemanager.cognitiveservices.models.KeySource":"Microsoft.CognitiveServices.KeySource","com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties":"Microsoft.CognitiveServices.KeyVaultProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedAgentDeployment":"Microsoft.CognitiveServices.ManagedAgentDeployment","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeCapacityProperties":"Microsoft.CognitiveServices.ManagedComputeCapacityProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentInfo":"Microsoft.CognitiveServices.ManagedComputeDeploymentInfo","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProperties":"Microsoft.CognitiveServices.ManagedComputeDeploymentProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentProvisioningDetails":"Microsoft.CognitiveServices.ManagedComputeDeploymentProvisioningDetails","com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeploymentRoutes":"Microsoft.CognitiveServices.ManagedComputeDeploymentRoutes","com.azure.resourcemanager.cognitiveservices.models.ManagedIdentityAuthTypeConnectionProperties":"Microsoft.CognitiveServices.ManagedIdentityAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkKind":"Microsoft.CognitiveServices.ManagedNetworkKind","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisionOptions":"Microsoft.CognitiveServices.ManagedNetworkProvisionOptions","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisioningState":"Microsoft.CognitiveServices.ManagedNetworkProvisioningState","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsEx":"Microsoft.CognitiveServices.ManagedNetworkSettingsEx","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsProperties":"Microsoft.CognitiveServices.ManagedNetworkSettingsProperties","com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkStatus":"Microsoft.CognitiveServices.ManagedNetworkStatus","com.azure.resourcemanager.cognitiveservices.models.ManagedPERequirement":"Microsoft.CognitiveServices.ManagedPERequirement","com.azure.resourcemanager.cognitiveservices.models.ManagedPEStatus":"Microsoft.CognitiveServices.ManagedPEStatus","com.azure.resourcemanager.cognitiveservices.models.MetricName":"Microsoft.CognitiveServices.MetricName","com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkload":"Microsoft.CognitiveServices.ModelCapacityCalculatorWorkload","com.azure.resourcemanager.cognitiveservices.models.ModelCapacityCalculatorWorkloadRequestParam":"Microsoft.CognitiveServices.ModelCapacityCalculatorWorkloadRequestParam","com.azure.resourcemanager.cognitiveservices.models.ModelDeprecationInfo":"Microsoft.CognitiveServices.ModelDeprecationInfo","com.azure.resourcemanager.cognitiveservices.models.ModelLifecycleStatus":"Microsoft.CognitiveServices.ModelLifecycleStatus","com.azure.resourcemanager.cognitiveservices.models.ModelSku":"Microsoft.CognitiveServices.ModelSku","com.azure.resourcemanager.cognitiveservices.models.ModelSkuCapacityProperties":"Microsoft.CognitiveServices.ModelSkuCapacityProperties","com.azure.resourcemanager.cognitiveservices.models.MultiRegionSettings":"Microsoft.CognitiveServices.MultiRegionSettings","com.azure.resourcemanager.cognitiveservices.models.NetworkInjection":"Microsoft.CognitiveServices.NetworkInjection","com.azure.resourcemanager.cognitiveservices.models.NetworkRuleAction":"Microsoft.CognitiveServices.NetworkRuleAction","com.azure.resourcemanager.cognitiveservices.models.NetworkRuleSet":"Microsoft.CognitiveServices.NetworkRuleSet","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeter":"Microsoft.CognitiveServices.NetworkSecurityPerimeter","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRule":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRule","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRuleProperties":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRuleProperties","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem":"Microsoft.CognitiveServices.NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationAssociationInfo":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationAssociationInfo","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurationProperties":"Microsoft.CognitiveServices.NetworkSecurityPerimeterConfigurationProperties","com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterProfileInfo":"Microsoft.CognitiveServices.NetworkSecurityPerimeterProfileInfo","com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties":"Microsoft.CognitiveServices.NoneAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.NspAccessRuleDirection":"Microsoft.CognitiveServices.NspAccessRuleDirection","com.azure.resourcemanager.cognitiveservices.models.OAuth2AuthTypeConnectionProperties":"Microsoft.CognitiveServices.OAuth2AuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.cognitiveservices.models.OrganizationSharedBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.OrganizationSharedBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.cognitiveservices.models.OutboundRule":"Microsoft.CognitiveServices.OutboundRule","com.azure.resourcemanager.cognitiveservices.models.PatAuthTypeConnectionProperties":"Microsoft.CognitiveServices.PATAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.PatchResourceSku":"Microsoft.CognitiveServices.PatchResourceSku","com.azure.resourcemanager.cognitiveservices.models.PatchResourceTags":"Microsoft.CognitiveServices.PatchResourceTags","com.azure.resourcemanager.cognitiveservices.models.PatchResourceTagsAndSku":"Microsoft.CognitiveServices.PatchResourceTagsAndSku","com.azure.resourcemanager.cognitiveservices.models.PolicyAssignmentEvaluationDetails":"Microsoft.CognitiveServices.PolicyAssignmentEvaluationDetails","com.azure.resourcemanager.cognitiveservices.models.PolicyEvaluationOutcome":"Microsoft.CognitiveServices.PolicyEvaluationOutcome","com.azure.resourcemanager.cognitiveservices.models.PolicyExpressionEvaluationDetails":"Microsoft.CognitiveServices.PolicyExpressionEvaluationDetails","com.azure.resourcemanager.cognitiveservices.models.Pool":"Microsoft.CognitiveServices.Pool","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnectionProperties":"Microsoft.CognitiveServices.PrivateEndpointConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointOutboundRule":"Microsoft.CognitiveServices.PrivateEndpointOutboundRule","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointOutboundRuleDestination":"Microsoft.CognitiveServices.PrivateEndpointOutboundRuleDestination","com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResource":"Microsoft.CognitiveServices.PrivateLinkResource","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResourceProperties":"Microsoft.CognitiveServices.PrivateLinkResourceProperties","com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.cognitiveservices.models.ProjectCapabilityHostProperties":"Microsoft.CognitiveServices.ProjectCapabilityHostProperties","com.azure.resourcemanager.cognitiveservices.models.ProjectProperties":"Microsoft.CognitiveServices.ProjectProperties","com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssue":"Microsoft.CognitiveServices.ProvisioningIssue","com.azure.resourcemanager.cognitiveservices.models.ProvisioningIssueProperties":"Microsoft.CognitiveServices.ProvisioningIssueProperties","com.azure.resourcemanager.cognitiveservices.models.ProvisioningState":"Microsoft.CognitiveServices.ProvisioningState","com.azure.resourcemanager.cognitiveservices.models.PublicNetworkAccess":"Microsoft.CognitiveServices.PublicNetworkAccess","com.azure.resourcemanager.cognitiveservices.models.QuotaLimit":"Microsoft.CognitiveServices.QuotaLimit","com.azure.resourcemanager.cognitiveservices.models.QuotaScopeType":"Microsoft.CognitiveServices.QuotaScopeType","com.azure.resourcemanager.cognitiveservices.models.QuotaTierProperties":"Microsoft.CognitiveServices.QuotaTierProperties","com.azure.resourcemanager.cognitiveservices.models.QuotaTierUpgradeEligibilityInfo":"Microsoft.CognitiveServices.QuotaTierUpgradeEligibilityInfo","com.azure.resourcemanager.cognitiveservices.models.QuotaUsageStatus":"Microsoft.CognitiveServices.QuotaUsageStatus","com.azure.resourcemanager.cognitiveservices.models.RaiActionType":"Microsoft.CognitiveServices.RaiActionType","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistConfig":"Microsoft.CognitiveServices.RaiBlocklistConfig","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemBulkRequest":"Microsoft.CognitiveServices.RaiBlocklistItemBulkRequest","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProperties":"Microsoft.CognitiveServices.RaiBlocklistItemProperties","com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties":"Microsoft.CognitiveServices.RaiBlocklistProperties","com.azure.resourcemanager.cognitiveservices.models.RaiContentFilterProperties":"Microsoft.CognitiveServices.RaiContentFilterProperties","com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction":"Microsoft.CognitiveServices.RaiEgressDefaultAction","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderOperation":"Microsoft.CognitiveServices.RaiEgressHeaderOperation","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderTransform":"Microsoft.CognitiveServices.RaiEgressHeaderTransform","com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderValueRef":"Microsoft.CognitiveServices.RaiEgressHeaderValueRef","com.azure.resourcemanager.cognitiveservices.models.RaiEgressManagedIdentityRef":"Microsoft.CognitiveServices.RaiEgressManagedIdentityRef","com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode":"Microsoft.CognitiveServices.RaiEgressMode","com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig":"Microsoft.CognitiveServices.RaiEgressPolicyConfig","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget":"Microsoft.CognitiveServices.RaiEgressRewriteTarget","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule":"Microsoft.CognitiveServices.RaiEgressRule","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction":"Microsoft.CognitiveServices.RaiEgressRuleAction","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType":"Microsoft.CognitiveServices.RaiEgressRuleActionType","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch":"Microsoft.CognitiveServices.RaiEgressRuleMatch","com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType":"Microsoft.CognitiveServices.RaiEgressRuleType","com.azure.resourcemanager.cognitiveservices.models.RaiEgressScheme":"Microsoft.CognitiveServices.RaiEgressScheme","com.azure.resourcemanager.cognitiveservices.models.RaiEgressSecretRef":"Microsoft.CognitiveServices.RaiEgressSecretRef","com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProviderSchemaProperties":"Microsoft.CognitiveServices.RaiExternalSafetyProviderSchemaProperties","com.azure.resourcemanager.cognitiveservices.models.RaiMonitorConfig":"Microsoft.CognitiveServices.RaiMonitorConfig","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter":"Microsoft.CognitiveServices.RaiPolicyContentFilter","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource":"Microsoft.CognitiveServices.RaiPolicyContentSource","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode":"Microsoft.CognitiveServices.RaiPolicyMode","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties":"Microsoft.CognitiveServices.RaiPolicyProperties","com.azure.resourcemanager.cognitiveservices.models.RaiPolicyType":"Microsoft.CognitiveServices.RaiPolicyType","com.azure.resourcemanager.cognitiveservices.models.RaiSafetyProviderConfig":"Microsoft.CognitiveServices.RaiSafetyProviderConfig","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelProperties":"Microsoft.CognitiveServices.RaiToolLabelProperties","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelPropertiesAccountScope":"Microsoft.CognitiveServices.RaiToolLabelPropertiesAccountScope","com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelPropertiesProjectScopesItem":"Microsoft.CognitiveServices.RaiToolLabelPropertiesProjectScopesItem","com.azure.resourcemanager.cognitiveservices.models.RaiTopicProperties":"Microsoft.CognitiveServices.RaiTopicProperties","com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameters":"Microsoft.CognitiveServices.RegenerateKeyParameters","com.azure.resourcemanager.cognitiveservices.models.RegionSetting":"Microsoft.CognitiveServices.RegionSetting","com.azure.resourcemanager.cognitiveservices.models.ReplacementConfig":"Microsoft.CognitiveServices.ReplacementConfig","com.azure.resourcemanager.cognitiveservices.models.RequestMatchPattern":"Microsoft.CognitiveServices.RequestMatchPattern","com.azure.resourcemanager.cognitiveservices.models.ResourceBase":"Microsoft.CognitiveServices.ResourceBase","com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType":"Microsoft.CognitiveServices.ResourceIdentityType","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionInfo":"Microsoft.CognitiveServices.ResourceSkuRestrictionInfo","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictions":"Microsoft.CognitiveServices.ResourceSkuRestrictions","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionsReasonCode":"Microsoft.CognitiveServices.ResourceSkuRestrictionsReasonCode","com.azure.resourcemanager.cognitiveservices.models.ResourceSkuRestrictionsType":"Microsoft.CognitiveServices.ResourceSkuRestrictionsType","com.azure.resourcemanager.cognitiveservices.models.RoleBasedBuiltInAuthorizationPolicy":"Microsoft.CognitiveServices.RoleBasedBuiltInAuthorizationPolicy","com.azure.resourcemanager.cognitiveservices.models.RoutingMethods":"Microsoft.CognitiveServices.RoutingMethods","com.azure.resourcemanager.cognitiveservices.models.RoutingMode":"Microsoft.CognitiveServices.RoutingMode","com.azure.resourcemanager.cognitiveservices.models.RuleAction":"Microsoft.CognitiveServices.RuleAction","com.azure.resourcemanager.cognitiveservices.models.RuleCategory":"Microsoft.CognitiveServices.RuleCategory","com.azure.resourcemanager.cognitiveservices.models.RuleStatus":"Microsoft.CognitiveServices.RuleStatus","com.azure.resourcemanager.cognitiveservices.models.RuleType":"Microsoft.CognitiveServices.RuleType","com.azure.resourcemanager.cognitiveservices.models.SafetyProviderConfig":"Microsoft.CognitiveServices.SafetyProviderConfig","com.azure.resourcemanager.cognitiveservices.models.SasAuthTypeConnectionProperties":"Microsoft.CognitiveServices.SASAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ScenarioType":"Microsoft.CognitiveServices.ScenarioType","com.azure.resourcemanager.cognitiveservices.models.ServicePrincipalAuthTypeConnectionProperties":"Microsoft.CognitiveServices.ServicePrincipalAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.ServiceTagOutboundRule":"Microsoft.CognitiveServices.ServiceTagOutboundRule","com.azure.resourcemanager.cognitiveservices.models.ServiceTagOutboundRuleDestination":"Microsoft.CognitiveServices.ServiceTagOutboundRuleDestination","com.azure.resourcemanager.cognitiveservices.models.ServiceTier":"Microsoft.CognitiveServices.ServiceTier","com.azure.resourcemanager.cognitiveservices.models.Sku":"Microsoft.CognitiveServices.Sku","com.azure.resourcemanager.cognitiveservices.models.SkuAvailability":"Microsoft.CognitiveServices.SkuAvailability","com.azure.resourcemanager.cognitiveservices.models.SkuCapability":"Microsoft.CognitiveServices.SkuCapability","com.azure.resourcemanager.cognitiveservices.models.SkuChangeInfo":"Microsoft.CognitiveServices.SkuChangeInfo","com.azure.resourcemanager.cognitiveservices.models.SkuTier":"Microsoft.CognitiveServices.SkuTier","com.azure.resourcemanager.cognitiveservices.models.SshSettings":"Microsoft.CognitiveServices.SshSettings","com.azure.resourcemanager.cognitiveservices.models.ThrottlingRule":"Microsoft.CognitiveServices.ThrottlingRule","com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy":"Microsoft.CognitiveServices.TierUpgradePolicy","com.azure.resourcemanager.cognitiveservices.models.TrafficRoutingProtocol":"Microsoft.CognitiveServices.TrafficRoutingProtocol","com.azure.resourcemanager.cognitiveservices.models.TrafficRoutingRule":"Microsoft.CognitiveServices.TrafficRoutingRule","com.azure.resourcemanager.cognitiveservices.models.UnitType":"Microsoft.CognitiveServices.UnitType","com.azure.resourcemanager.cognitiveservices.models.UpgradeAvailabilityStatus":"Microsoft.CognitiveServices.UpgradeAvailabilityStatus","com.azure.resourcemanager.cognitiveservices.models.UserAssignedIdentity":"Microsoft.CognitiveServices.UserAssignedIdentity","com.azure.resourcemanager.cognitiveservices.models.UserOwnedAmlWorkspace":"Microsoft.CognitiveServices.UserOwnedAmlWorkspace","com.azure.resourcemanager.cognitiveservices.models.UserOwnedStorage":"Microsoft.CognitiveServices.UserOwnedStorage","com.azure.resourcemanager.cognitiveservices.models.UsernamePasswordAuthTypeConnectionProperties":"Microsoft.CognitiveServices.UsernamePasswordAuthTypeConnectionProperties","com.azure.resourcemanager.cognitiveservices.models.VersionedAgentReference":"Microsoft.CognitiveServices.VersionedAgentReference","com.azure.resourcemanager.cognitiveservices.models.VirtualNetworkRule":"Microsoft.CognitiveServices.VirtualNetworkRule","com.azure.resourcemanager.cognitiveservices.models.VmPriority":"Microsoft.CognitiveServices.VmPriority","com.azure.resourcemanager.cognitiveservices.models.WorkbenchProperties":"Microsoft.CognitiveServices.WorkbenchProperties"},"generatedFiles":["src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountCapabilityHostsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentApplicationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentDeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CognitiveServicesManagementClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentPlansClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentTiersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputeOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeletedAccountsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeDeploymentsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedComputeUsagesOperationGroupsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkProvisionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkSettingsOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectCapabilityHostsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectConnectionsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/QuotaTiersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersOperationsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiToolLabelsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiTopicsClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceSkusClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/SubscriptionRaiPoliciesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/TestRaiExternalSafetyProvidersClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/WorkbenchesClient.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountSkuListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentApplicationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentDeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentReferenceResourceArmPaginatedResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ApiKeysInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CapabilityHostInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentTierInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ComputeOperationStatusInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ConnectionPropertiesV2BasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DefenderForAISettingProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/DomainAvailabilityInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EncryptionScopeInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/EvaluateDeploymentPoliciesResponseInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeCapacityInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeDeploymentInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedComputeUsageInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkProvisionStatusInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ManagedNetworkSettingsPropertiesBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelCapacityListResultValueItemInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ModelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/OutboundRuleBasicResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateEndpointConnectionListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/PrivateLinkResourceListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ProjectCapabilityHostInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ProjectInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/QuotaTierInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiBlocklistItemInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiContentFilterInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiExternalSafetyProviderSchemaInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiPolicyInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiToolLabelInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/RaiTopicInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ResourceSkuInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuAvailabilityListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/SkuResourceInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/UsageListResultInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/WorkbenchInner.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountCapabilityHostsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountCapabilityHostsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountModelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountSkuListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AccountsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentApplicationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentDeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/AgentReferenceResourceArmPaginatedResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ApiKeysImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CalculateModelCapacityResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CapabilityHostImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CognitiveServicesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanAccountAssociationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlanImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlansClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentPlansImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTierImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTiersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/CommitmentTiersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationStatusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputeOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ComputesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ConnectionPropertiesV2BasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DefenderForAISettingsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeletedAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeletedAccountsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/DomainAvailabilityImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopeImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EncryptionScopesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/EvaluateDeploymentPoliciesResponseImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/LocationBasedModelCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeCapacityImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeDeploymentsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsageImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedComputeUsagesOperationGroupsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionStatusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkProvisionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ManagedNetworkSettingsPropertiesBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacitiesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelCapacityListResultValueItemImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ModelsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/NetworkSecurityPerimeterConfigurationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRuleBasicResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/OutboundRulesOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourceListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectCapabilityHostsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectConnectionsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ProjectsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTierImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTiersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/QuotaTiersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistItemsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiBlocklistsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFilterImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiContentFiltersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProviderSchemaImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiExternalSafetyProvidersOperationsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPoliciesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiPolicyImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiToolLabelsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicsClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/RaiTopicsImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkuImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkusClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/ResourceSkusImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuAvailabilityListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SkuResourceImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SubscriptionRaiPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/SubscriptionRaiPoliciesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/TestRaiExternalSafetyProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/TestRaiExternalSafetyProvidersImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsageListResultImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/UsagesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesClientImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/WorkbenchesImpl.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AccountListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AccountModelListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AgentApplicationResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/AgentDeploymentResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CapabilityHostResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentPlanAccountAssociationListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentPlanListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/CommitmentTierListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ComputeListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ConnectionPropertiesV2BasicResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DefenderForAISettingResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DeploymentListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/DeploymentSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/EncryptionScopeListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeCapacityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeDeploymentListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedComputeUsageListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ManagedNetworkListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ModelCapacityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ModelListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/NetworkSecurityPerimeterConfigurationList.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/OutboundRuleListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ProjectCapabilityHostResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ProjectListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/QuotaTierListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiBlockListItemsResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiBlockListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiContentFilterListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiExternalSafetyProviderResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiPolicyListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiToolLabelResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/RaiTopicResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/ResourceSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/models/WorkbenchListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/implementation/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AadAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AbusePenalty.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AbusePenaltyAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccessKeyAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Account.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountCapabilityHosts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountKeyAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AccountSkuListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Accounts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentApplication.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentApplications.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeploymentType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentDeployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentProtocol.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentProtocolVersion.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReference.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReferenceProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgentReferenceResourceArmPaginatedResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgenticApplicationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AgenticApplicationProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiKeyAuthConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiKeys.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApiProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApplicationAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ApplicationTrafficRoutingPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/AssignedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/BillingMeterInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/BuiltInAuthorizationScheme.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ByPassSelection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CalculateModelCapacityResultEstimatedCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CallRateLimit.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapabilityHostProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CapacityConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ChannelsBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckDomainAvailabilityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CheckSkuAvailabilityParameter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ClusterComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentCost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPeriod.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlan.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAccountAssociation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanAssociation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlanProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentPlans.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentQuota.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CommitmentTiers.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Compute.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperationStatusType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ComputeType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Computes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAccessKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAccountKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionApiKey.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionAuthType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionCategory.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionGroup.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionManagedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionOAuth2.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPersonalAccessToken.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionPropertiesV2BasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionServicePrincipal.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionSharedAccessSignature.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionUpdateContent.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectionUsernamePassword.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ConnectivityEndpoints.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContainerInstanceComputeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ContentLevel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomBlocklistConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomKeys.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/CustomKeysConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISetting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettingState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DefenderForAISettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeletedAccounts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentCapacitySettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentModelVersionUpgradeOption.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentPolicyEvaluationResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentRouting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentScaleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSizeCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentSpeculativeDecoding.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeploymentState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Deployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DeprecationStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/DomainAvailability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Encryption.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScope.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopeState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EncryptionScopes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesRequest.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/EvaluateDeploymentPoliciesResponse.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FirewallSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgrade.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FoundryAutoUpgradeMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/FqdnOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostedAgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostingModel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Identity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityManagementType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IdentityProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IpRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/IsolationMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeyName.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeySource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/LocationBasedModelCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedAgentDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeCapacityProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployment.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentProvisioningDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeploymentRoutes.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeDeployments.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedComputeUsagesOperationGroups.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedIdentityAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkKind.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisionOptions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisionStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkProvisions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsEx.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkSettingsPropertiesBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedNetworkStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedPERequirement.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedPEStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/MetricName.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Model.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacities.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkload.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityCalculatorWorkloadRequestParam.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelCapacityListResultValueItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelDeprecationInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelLifecycleStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ModelSkuCapacityProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Models.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/MultiRegionSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkInjection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkRuleSet.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRuleProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfiguration.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationAssociationInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterConfigurations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NetworkSecurityPerimeterProfileInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NoneAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/NspAccessRuleDirection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OAuth2AuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Operation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Operations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OrganizationSharedBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Origin.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRuleBasicResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRules.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/OutboundRulesOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceTags.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PatchResourceTagsAndSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyAssignmentEvaluationDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyEvaluationOutcome.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PolicyExpressionEvaluationDetails.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Pool.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointOutboundRuleDestination.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Project.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHost.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHostProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectCapabilityHosts.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectConnections.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProjectProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Projects.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaLimit.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaScopeType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTierProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTierUpgradeEligibilityInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaTiers.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/QuotaUsageStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklist.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemBulkRequest.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItemProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistItems.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklistProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiBlocklists.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilterProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiContentFilters.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressDefaultAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderOperation.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderTransform.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressHeaderValueRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressManagedIdentityRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressPolicyConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRewriteTarget.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleActionType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleMatch.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressRuleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressScheme.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiEgressSecretRef.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviderSchema.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviderSchemaProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiExternalSafetyProvidersOperations.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiMonitorConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicies.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentFilter.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyContentSource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiPolicyType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiSafetyProviderConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabel.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelPropertiesAccountScope.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabelPropertiesProjectScopesItem.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiToolLabels.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopic.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopicProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RaiTopics.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RegenerateKeyParameters.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RegionSetting.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ReplacementConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RequestMatchPattern.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceBase.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictions.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionsReasonCode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkuRestrictionsType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ResourceSkus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoleBasedBuiltInAuthorizationPolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoutingMethods.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RoutingMode.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleAction.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleCategory.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/RuleType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SafetyProviderConfig.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SasAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ScenarioType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServicePrincipalAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTagOutboundRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTagOutboundRuleDestination.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ServiceTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Sku.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuAvailability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuAvailabilityListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuCapability.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuChangeInfo.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuResource.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SkuTier.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SshSettings.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/SubscriptionRaiPolicies.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TestRaiExternalSafetyProviders.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/ThrottlingRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TierUpgradePolicy.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TrafficRoutingProtocol.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/TrafficRoutingRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UnitType.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UpgradeAvailabilityStatus.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UsageListResult.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Usages.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedAmlWorkspace.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UserOwnedStorage.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/UsernamePasswordAuthTypeConnectionProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VersionedAgentReference.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VirtualNetworkRule.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/VmPriority.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbench.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/WorkbenchProperties.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/Workbenches.java","src/main/java/com/azure/resourcemanager/cognitiveservices/models/package-info.java","src/main/java/com/azure/resourcemanager/cognitiveservices/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.CognitiveServices":"2026-07-01"},"crossLanguagePackageId":"Microsoft.CognitiveServices","crossLanguageVersion":"20f66ac28761","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.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.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.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.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/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/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/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/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/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 diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json index 7434ab0c14a8..852e4a9fef5a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-cognitiveservices/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.cognitiveservices.implementation.AccountCapabilityHostsClientImpl$AccountCapabilityHostsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AccountConnectionsClientImpl$AccountConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AgentApplicationsClientImpl$AgentApplicationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AgentDeploymentsClientImpl$AgentDeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansClientImpl$CommitmentPlansService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersClientImpl$CommitmentTiersService"],["com.azure.resourcemanager.cognitiveservices.implementation.ComputeOperationsClientImpl$ComputeOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ComputesClientImpl$ComputesService"],["com.azure.resourcemanager.cognitiveservices.implementation.DefenderForAISettingsClientImpl$DefenderForAISettingsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeletedAccountsClientImpl$DeletedAccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.DeploymentsClientImpl$DeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.EncryptionScopesClientImpl$EncryptionScopesService"],["com.azure.resourcemanager.cognitiveservices.implementation.LocationBasedModelCapacitiesClientImpl$LocationBasedModelCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeCapacitiesClientImpl$ManagedComputeCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeDeploymentsClientImpl$ManagedComputeDeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedComputeUsagesOperationGroupsClientImpl$ManagedComputeUsagesOperationGroupsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkProvisionsClientImpl$ManagedNetworkProvisionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkSettingsOperationsClientImpl$ManagedNetworkSettingsOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelCapacitiesClientImpl$ModelCapacitiesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ModelsClientImpl$ModelsService"],["com.azure.resourcemanager.cognitiveservices.implementation.NetworkSecurityPerimeterConfigurationsClientImpl$NetworkSecurityPerimeterConfigurationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.OutboundRulesClientImpl$OutboundRulesService"],["com.azure.resourcemanager.cognitiveservices.implementation.OutboundRulesOperationsClientImpl$OutboundRulesOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectCapabilityHostsClientImpl$ProjectCapabilityHostsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectConnectionsClientImpl$ProjectConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ProjectsClientImpl$ProjectsService"],["com.azure.resourcemanager.cognitiveservices.implementation.QuotaTiersClientImpl$QuotaTiersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistItemsClientImpl$RaiBlocklistItemsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistsClientImpl$RaiBlocklistsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiContentFiltersClientImpl$RaiContentFiltersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiExternalSafetyProvidersClientImpl$RaiExternalSafetyProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiExternalSafetyProvidersOperationsClientImpl$RaiExternalSafetyProvidersOperationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiPoliciesClientImpl$RaiPoliciesService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiToolLabelsClientImpl$RaiToolLabelsService"],["com.azure.resourcemanager.cognitiveservices.implementation.RaiTopicsClientImpl$RaiTopicsService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.ResourceSkusClientImpl$ResourceSkusService"],["com.azure.resourcemanager.cognitiveservices.implementation.SubscriptionRaiPoliciesClientImpl$SubscriptionRaiPoliciesService"],["com.azure.resourcemanager.cognitiveservices.implementation.TestRaiExternalSafetyProvidersClientImpl$TestRaiExternalSafetyProvidersService"],["com.azure.resourcemanager.cognitiveservices.implementation.UsagesClientImpl$UsagesService"],["com.azure.resourcemanager.cognitiveservices.implementation.WorkbenchesClientImpl$WorkbenchesService"]] \ No newline at end of file +[["com.azure.resourcemanager.cognitiveservices.implementation.AccountCapabilityHostsClientImpl$AccountCapabilityHostsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AccountConnectionsClientImpl$AccountConnectionsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AgentApplicationsClientImpl$AgentApplicationsService"],["com.azure.resourcemanager.cognitiveservices.implementation.AgentDeploymentsClientImpl$AgentDeploymentsService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentPlansClientImpl$CommitmentPlansService"],["com.azure.resourcemanager.cognitiveservices.implementation.CommitmentTiersClientImpl$CommitmentTiersService"],["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 diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateSamples.java index e6fa5d8e32d9..37c42f2c9b4d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class AccountCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-07-01/AccountCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Account CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsDeleteSamples.java index 2fed637ce7ef..30e464220c4d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AccountCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/delete.json + * x-ms-original-file: 2026-07-01/AccountCapabilityHost/delete.json */ /** * Sample code: Delete Account CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetSamples.java index 517bdaa7c131..c960d3dec5bd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AccountCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/get.json + * x-ms-original-file: 2026-07-01/AccountCapabilityHost/get.json */ /** * Sample code: Get Account CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListSamples.java index 005c5e96abd0..89a44427d9cd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListSamples.java @@ -9,7 +9,7 @@ */ public final class AccountCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountCapabilityHost/list.json + * x-ms-original-file: 2026-07-01/AccountCapabilityHost/list.json */ /** * Sample code: List Account CapabilityHosts. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateSamples.java index 7a95ca3b5647..e78c8f09a631 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.cognitiveservices.generated; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties; import java.time.OffsetDateTime; @@ -14,7 +13,7 @@ */ public final class AccountConnectionsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/create.json + * x-ms-original-file: 2026-07-01/AccountConnection/create.json */ /** * Sample code: CreateAccountConnection. @@ -24,11 +23,11 @@ public final class AccountConnectionsCreateSamples { public static void createAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.accountConnections() - .createWithResponse("resourceGroup-1", "account-1", "connection-1", - new ConnectionPropertiesV2BasicResourceInner().withProperties( - new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) - .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) - .withTarget("[target url]")), - com.azure.core.util.Context.NONE); + .define("connection-1") + .withExistingAccount("resourceGroup-1", "account-1") + .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) + .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) + .withTarget("[target url]")) + .create(); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteSamples.java index 24ddb0def666..6dee06ff1195 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AccountConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/delete.json + * x-ms-original-file: 2026-07-01/AccountConnection/delete.json */ /** * Sample code: DeleteAccountConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetSamples.java index e744c303ab23..cfab5f03aeea 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AccountConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/get.json + * x-ms-original-file: 2026-07-01/AccountConnection/get.json */ /** * Sample code: GetAccountConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListSamples.java index 7813c3811137..7efd38afcb93 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class AccountConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/list.json + * x-ms-original-file: 2026-07-01/AccountConnection/list.json */ /** * Sample code: ListAccountConnections. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateSamples.java index f9cc388920c3..6af012bc7739 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateSamples.java @@ -7,7 +7,7 @@ import com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties; import com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -17,7 +17,7 @@ */ public final class AccountConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AccountConnection/update.json + * x-ms-original-file: 2026-07-01/AccountConnection/update.json */ /** * Sample code: UpdateAccountConnection. @@ -26,16 +26,17 @@ public final class AccountConnectionsUpdateSamples { */ public static void updateAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.accountConnections() - .updateWithResponse("test-rg", "account-1", "connection-1", - new ConnectionUpdateContent().withProperties( - new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) - .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .withMetadata(mapOf()) - .withTarget("some_string") - .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") - .withSecretAccessKey("fakeTokenPlaceholder"))), - com.azure.core.util.Context.NONE); + ConnectionPropertiesV2BasicResource resource = manager.accountConnections() + .getWithResponse("test-rg", "account-1", "connection-1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) + .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) + .withMetadata(mapOf()) + .withTarget("some_string") + .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") + .withSecretAccessKey("fakeTokenPlaceholder"))) + .apply(); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsCreateSamples.java index 56a3ea94e5a3..833b46c91f3a 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-05-15-preview/CreateAccountMin.json + * x-ms-original-file: 2026-07-01/CreateAccountMin.json */ /** * Sample code: Create Account Min. @@ -39,7 +39,7 @@ public static void createAccountMin(com.azure.resourcemanager.cognitiveservices. } /* - * x-ms-original-file: 2026-05-15-preview/CreateAccount.json + * x-ms-original-file: 2026-07-01/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 7a9820aebea2..955c723e67d6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteAccount.json + * x-ms-original-file: 2026-07-01/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 deleted file mode 100644 index ead084195a58..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesSamples.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.resourcemanager.cognitiveservices.models.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-05-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 9c70e8e4394b..0578b0bb5f89 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetAccount.json + * x-ms-original-file: 2026-07-01/GetAccount.json */ /** * Sample code: Get Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java index dba47dd07778..3452334f98a4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountsByResourceGroup.json + * x-ms-original-file: 2026-07-01/ListAccountsByResourceGroup.json */ /** * Sample code: List Accounts by Resource Group. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java index fa2dffc92a75..28cb5684d0da 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListKeysSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListKeysSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListKeys.json + * x-ms-original-file: 2026-07-01/ListKeys.json */ /** * Sample code: List Keys. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java index 6979dbbb790e..a43477f6e7af 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListModelsSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListModelsSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountModels.json + * x-ms-original-file: 2026-07-01/ListAccountModels.json */ /** * Sample code: List AccountModels. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java index 521449c942dc..956cf97695f5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListAccountsBySubscription.json + * x-ms-original-file: 2026-07-01/ListAccountsBySubscription.json */ /** * Sample code: List Accounts by Subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java index d15ff0c73d49..4a89c3c098d0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListSkusSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSkus.json + * x-ms-original-file: 2026-07-01/ListSkus.json */ /** * Sample code: List SKUs. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java index 528140309a1e..ba423d05ff63 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListUsagesSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetUsages.json + * x-ms-original-file: 2026-07-01/GetUsages.json */ /** * Sample code: Get Usages. @@ -22,7 +22,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesClassicScope.json + * x-ms-original-file: 2026-07-01/GetUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -36,7 +36,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesDataZoneScope.json + * x-ms-original-file: 2026-07-01/GetUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -50,7 +50,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/GetUsagesGlobalScope.json + * x-ms-original-file: 2026-07-01/GetUsagesGlobalScope.json */ /** * Sample code: Get Usages Global Scope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java index 037c89c5dce5..981cc4804ba3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsRegenerateKeySamples.java @@ -12,7 +12,7 @@ */ public final class AccountsRegenerateKeySamples { /* - * x-ms-original-file: 2026-05-15-preview/RegenerateKey.json + * x-ms-original-file: 2026-07-01/RegenerateKey.json */ /** * Sample code: Regenerate Keys. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java index 668ad0161777..270777416b04 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateAccount.json + * x-ms-original-file: 2026-07-01/UpdateAccount.json */ /** * Sample code: Update Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsCreateOrUpdateSamples.java index 005e778b5cc5..b95ae13772bb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class AgentApplicationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/createOrUpdate.json + * x-ms-original-file: 2026-07-01/AgentApplication/createOrUpdate.json */ /** * Sample code: Create or Update Account Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDeleteSamples.java index 2bcb992adfcc..24e320ab8051 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/delete.json + * x-ms-original-file: 2026-07-01/AgentApplication/delete.json */ /** * Sample code: Delete Account Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableSamples.java index 870361ff4eda..fb32faa5d905 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsDisableSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/disable.json + * x-ms-original-file: 2026-07-01/AgentApplication/disable.json */ /** * Sample code: Disable Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableSamples.java index 905989c91951..3893475482f4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsEnableSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/enable.json + * x-ms-original-file: 2026-07-01/AgentApplication/enable.json */ /** * Sample code: Enable Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsGetSamples.java index 5fe70c9e4030..a09b07d01e50 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/get.json + * x-ms-original-file: 2026-07-01/AgentApplication/get.json */ /** * Sample code: Get Account Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsSamples.java index adb8affe948a..e33dc3e4a319 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsSamples.java @@ -9,7 +9,7 @@ */ public final class AgentApplicationsListAgentsSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/listAgents.json + * x-ms-original-file: 2026-07-01/AgentApplication/listAgents.json */ /** * Sample code: List Agents for Agent Application. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListSamples.java index 4c8b497e6788..05251b7a5863 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListSamples.java @@ -11,7 +11,7 @@ */ public final class AgentApplicationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentApplication/list.json + * x-ms-original-file: 2026-07-01/AgentApplication/list.json */ /** * Sample code: List Account Agent Applications. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateSamples.java index fc34c538bb13..4c42e53779f7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class AgentDeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/createOrUpdate.json + * x-ms-original-file: 2026-07-01/AgentDeployment/createOrUpdate.json */ /** * Sample code: Create or Update Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsDeleteSamples.java index 64cac962aba1..38e70ef6822d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/delete.json + * x-ms-original-file: 2026-07-01/AgentDeployment/delete.json */ /** * Sample code: Delete Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetSamples.java index 3f1d5766e9b1..402ae4556b9e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/get.json + * x-ms-original-file: 2026-07-01/AgentDeployment/get.json */ /** * Sample code: Get Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListSamples.java index 9b0f733c410b..bd498c7baf34 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/list.json + * x-ms-original-file: 2026-07-01/AgentDeployment/list.json */ /** * Sample code: List Agent Deployments. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartSamples.java index a3a485682c9a..5fc4dbe36478 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsStartSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/start.json + * x-ms-original-file: 2026-07-01/AgentDeployment/start.json */ /** * Sample code: Start Agent Deployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopSamples.java index 964e8e12417d..d9326ea24d52 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopSamples.java @@ -9,7 +9,7 @@ */ public final class AgentDeploymentsStopSamples { /* - * x-ms-original-file: 2026-05-15-preview/AgentDeployment/stop.json + * x-ms-original-file: 2026-07-01/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 70a18729b7ee..7ceb527c327b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansCreateOrUpdateAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-01/CreateSharedCommitmentPlanAssociation.json */ /** * Sample code: PutCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java index 3c54b759eca1..9841841a84a7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanSamples.java @@ -14,7 +14,7 @@ */ public final class CommitmentPlansCreateOrUpdatePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-01/CreateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java index c14eb30e3f5f..4245a94c4e31 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class CommitmentPlansCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutCommitmentPlan.json + * x-ms-original-file: 2026-07-01/PutCommitmentPlan.json */ /** * Sample code: PutCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java index 06133a147fe0..f929ab01ebcd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansDeleteAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-01/DeleteSharedCommitmentPlanAssociation.json */ /** * Sample code: DeleteCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java index fda854e13b36..39f40ef76416 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansDeletePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-01/DeleteSharedCommitmentPlan.json */ /** * Sample code: Delete Commitment Plan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java index 6b01e4a0004f..b85160a6936d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteCommitmentPlan.json + * x-ms-original-file: 2026-07-01/DeleteCommitmentPlan.json */ /** * Sample code: DeleteCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java index 9844e44dede6..d09b42c5cbef 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansGetAssociationSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlanAssociation.json + * x-ms-original-file: 2026-07-01/GetSharedCommitmentPlanAssociation.json */ /** * Sample code: GetCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java index eeae1e2158a1..a191f7205af0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-01/GetSharedCommitmentPlan.json */ /** * Sample code: Get Commitment Plan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java index 9ee169c662fb..a1fdef763ced 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetCommitmentPlan.json + * x-ms-original-file: 2026-07-01/GetCommitmentPlan.json */ /** * Sample code: GetCommitmentPlan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java index aafec09d56c5..6c8cde9189c4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansListAssociationsSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlanAssociations.json + * x-ms-original-file: 2026-07-01/ListSharedCommitmentPlanAssociations.json */ /** * Sample code: ListCommitmentPlans. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java index 53dfca5dfe97..8453ca5ef528 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansByResourceGroup.json + * x-ms-original-file: 2026-07-01/ListSharedCommitmentPlansByResourceGroup.json */ /** * Sample code: List Commitment Plans by Resource Group. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java index 30acdd54e1d2..c4c021d5546e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansListPlansBySubscriptionSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListSharedCommitmentPlansBySubscription.json + * x-ms-original-file: 2026-07-01/ListSharedCommitmentPlansBySubscription.json */ /** * Sample code: List Accounts by Subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java index 723ae6fe4c70..7b388385fd9d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentPlansListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListCommitmentPlans.json + * x-ms-original-file: 2026-07-01/ListCommitmentPlans.json */ /** * Sample code: ListCommitmentPlans. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java index 1b2a80c73b6e..60bce7d4e327 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansUpdatePlanSamples.java @@ -13,7 +13,7 @@ */ public final class CommitmentPlansUpdatePlanSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateSharedCommitmentPlan.json + * x-ms-original-file: 2026-07-01/UpdateSharedCommitmentPlan.json */ /** * Sample code: Create Commitment Plan. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java index cd44d809293c..c5063fbd24f6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListSamples.java @@ -9,7 +9,7 @@ */ public final class CommitmentTiersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListCommitmentTiers.json + * x-ms-original-file: 2026-07-01/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 deleted file mode 100644 index 2cb3534a9380..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputeOperationsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for ComputeOperations Get. - */ -public final class ComputeOperationsGetSamples { - /* - * x-ms-original-file: 2026-05-15-preview/GetComputeOperationStatus.json - */ - /** - * Sample code: GetComputeOperationStatus. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void - getComputeOperationStatus(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.computeOperations() - .getWithResponse("eastus", "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE); - } -} 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 deleted file mode 100644 index e680d1c709c2..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesCreateOrUpdateSamples.java +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.resourcemanager.cognitiveservices.models.ClusterComputeProperties; -import com.azure.resourcemanager.cognitiveservices.models.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-05-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-05-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 deleted file mode 100644 index 900e213a0ec5..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesDeleteSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Computes Delete. - */ -public final class ComputesDeleteSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index d52c8968ddce..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesGetSamples.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Computes Get. - */ -public final class ComputesGetSamples { - /* - * x-ms-original-file: 2026-05-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-05-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 deleted file mode 100644 index 6cf3db3467de..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesListSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Computes List. - */ -public final class ComputesListSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index 3a1be2a008a9..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesRestartSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Computes Restart. - */ -public final class ComputesRestartSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index 119246b41bae..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStartSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Computes Start. - */ -public final class ComputesStartSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index f5ef317c3246..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesStopSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Computes Stop. - */ -public final class ComputesStopSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index 0c73cef94d1d..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ComputesUpdateSamples.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.resourcemanager.cognitiveservices.models.ClusterComputeProperties; -import com.azure.resourcemanager.cognitiveservices.models.Compute; -import com.azure.resourcemanager.cognitiveservices.models.Pool; -import com.azure.resourcemanager.cognitiveservices.models.VmPriority; -import java.util.Arrays; - -/** - * Samples for Computes Update. - */ -public final class ComputesUpdateSamples { - /* - * x-ms-original-file: 2026-05-15-preview/UpdateCompute.json - */ - /** - * Sample code: UpdateCompute. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void updateCompute(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - Compute resource = manager.computes() - .getWithResponse("rgcognitiveservices", "myAccount", "myCompute", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ClusterComputeProperties().withPools(Arrays.asList(new Pool().withName("default") - .withVmPriority(VmPriority.REGULAR) - .withInstanceType("Standard_DS3_v2") - .withNodeCount(4)))) - .apply(); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java index b0075d79184a..254393339bd6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class DefenderForAISettingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutDefenderForAISetting.json + * x-ms-original-file: 2026-07-01/PutDefenderForAISetting.json */ /** * Sample code: PutDefenderForAISetting. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java index 34bde5e1687a..6453664fe636 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DefenderForAISettingsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDefenderForAISetting.json + * x-ms-original-file: 2026-07-01/GetDefenderForAISetting.json */ /** * Sample code: GetDefenderForAISetting. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java index ce81fbc73c68..b362d17ec849 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListSamples.java @@ -9,7 +9,7 @@ */ public final class DefenderForAISettingsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDefenderForAISetting.json + * x-ms-original-file: 2026-07-01/ListDefenderForAISetting.json */ /** * Sample code: ListDefenderForAISetting. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java index 6be3ed539a60..01e0ba352ac2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class DefenderForAISettingsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateDefenderForAISetting.json + * x-ms-original-file: 2026-07-01/UpdateDefenderForAISetting.json */ /** * Sample code: UpdateDefenderForAISetting. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java index 2ef3062452b9..566d230a9aa2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedAccountsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDeletedAccount.json + * x-ms-original-file: 2026-07-01/GetDeletedAccount.json */ /** * Sample code: Get Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java index 2f51c8843bcb..59ca89a33108 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsListSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedAccountsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeletedAccountsBySubscription.json + * x-ms-original-file: 2026-07-01/ListDeletedAccountsBySubscription.json */ /** * Sample code: List Deleted Accounts by Subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java index a763818cbc4d..d1ece4f3b0d2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedAccountsPurgeSamples { /* - * x-ms-original-file: 2026-05-15-preview/PurgeDeletedAccount.json + * x-ms-original-file: 2026-07-01/PurgeDeletedAccount.json */ /** * Sample code: Delete Account. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsCreateOrUpdateSamples.java index 84ec2ee0000b..d7452c9e3881 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 @@ -6,7 +6,6 @@ import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel; import com.azure.resourcemanager.cognitiveservices.models.DeploymentProperties; -import com.azure.resourcemanager.cognitiveservices.models.DeploymentSpeculativeDecoding; import com.azure.resourcemanager.cognitiveservices.models.DeploymentState; import com.azure.resourcemanager.cognitiveservices.models.ServiceTier; import com.azure.resourcemanager.cognitiveservices.models.Sku; @@ -16,7 +15,7 @@ */ public final class DeploymentsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutDeployment.json + * x-ms-original-file: 2026-07-01/PutDeployment.json */ /** * Sample code: PutDeployment. @@ -34,32 +33,4 @@ public static void putDeployment(com.azure.resourcemanager.cognitiveservices.Cog .withSku(new Sku().withName("Standard").withCapacity(1)) .create(); } - - /* - * x-ms-original-file: 2026-05-15-preview/PutDeploymentWithSpeculativeDecoding.json - */ - /** - * Sample code: PutDeploymentWithSpeculativeDecoding. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void putDeploymentWithSpeculativeDecoding( - com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.deployments() - .define("deploymentName") - .withExistingAccount("resourceGroupName", "accountName") - .withProperties(new DeploymentProperties() - .withModel(new DeploymentModel().withFormat("Fireworks").withName("FW-Qwen3-14B").withVersion("1")) - .withSpeculativeDecoding(new DeploymentSpeculativeDecoding().withDraftModel(new DeploymentModel() - .withFormat("FireworksCustom") - .withName("testDraftModel") - .withVersion("1") - .withSource( - "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/projects/projectName")) - .withDraftTokenCount(4)) - .withServiceTier(ServiceTier.DEFAULT) - .withDeploymentState(DeploymentState.RUNNING)) - .withSku(new Sku().withName("GlobalProvisionedManaged").withCapacity(80)) - .create(); - } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java index 327e79bd5dca..71bc8dd61269 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteDeployment.json + * x-ms-original-file: 2026-07-01/DeleteDeployment.json */ /** * Sample code: DeleteDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java index f70e1d93c3dd..7482398d30b1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsGetSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetDeployment.json + * x-ms-original-file: 2026-07-01/GetDeployment.json */ /** * Sample code: GetDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java index 89eee765f7ca..f27f0ccf8c1f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeployments.json + * x-ms-original-file: 2026-07-01/ListDeployments.json */ /** * Sample code: ListDeployments. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java index 4d18fc093149..c415d002ae10 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsListSkusSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListDeploymentSkus.json + * x-ms-original-file: 2026-07-01/ListDeploymentSkus.json */ /** * Sample code: ListDeploymentSkus. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsPauseSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsPauseSamples.java index 66ec3d91b2e0..365429851826 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsPauseSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsPauseSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsPauseSamples { /* - * x-ms-original-file: 2026-05-15-preview/PauseDeployment.json + * x-ms-original-file: 2026-07-01/PauseDeployment.json */ /** * Sample code: PauseDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsResumeSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsResumeSamples.java index fec046cc4fcb..0e46429d34dc 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsResumeSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsResumeSamples.java @@ -9,7 +9,7 @@ */ public final class DeploymentsResumeSamples { /* - * x-ms-original-file: 2026-05-15-preview/ResumeDeployment.json + * x-ms-original-file: 2026-07-01/ResumeDeployment.json */ /** * Sample code: ResumeDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java index 5cc991bb07d1..c3c2174c9ad5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class DeploymentsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateDeployment.json + * x-ms-original-file: 2026-07-01/UpdateDeployment.json */ /** * Sample code: UpdateDeployment. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java index 1aba783397d5..07bbf127ff97 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class EncryptionScopesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutEncryptionScope.json + * x-ms-original-file: 2026-07-01/PutEncryptionScope.json */ /** * Sample code: PutEncryptionScope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java index a280d483512b..6e881f071c22 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class EncryptionScopesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteEncryptionScope.json + * x-ms-original-file: 2026-07-01/DeleteEncryptionScope.json */ /** * Sample code: DeleteEncryptionScope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java index 51720b53352e..189a832c66e7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesGetSamples.java @@ -9,7 +9,7 @@ */ public final class EncryptionScopesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetEncryptionScope.json + * x-ms-original-file: 2026-07-01/GetEncryptionScope.json */ /** * Sample code: GetEncryptionScope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java index a4572e6ff23f..7e53097d3e45 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/EncryptionScopesListSamples.java @@ -9,7 +9,7 @@ */ public final class EncryptionScopesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListEncryptionScopes.json + * x-ms-original-file: 2026-07-01/ListEncryptionScopes.json */ /** * Sample code: ListEncryptionScopes. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java index e71539cc8ee0..5b069f8da0b6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListSamples.java @@ -9,7 +9,7 @@ */ public final class LocationBasedModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-07-01/ListLocationBasedModelCapacitiesGlobalScope.json */ /** * Sample code: ListLocationBasedModelCapacities Global Scope. @@ -22,7 +22,7 @@ public static void listLocationBasedModelCapacitiesGlobalScope( } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-07-01/ListLocationBasedModelCapacitiesClassicScope.json */ /** * Sample code: ListLocationBasedModelCapacities Classic Scope. @@ -35,7 +35,7 @@ public static void listLocationBasedModelCapacitiesClassicScope( } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-07-01/ListLocationBasedModelCapacitiesDataZoneScope.json */ /** * Sample code: ListLocationBasedModelCapacities DataZone Scope. @@ -48,7 +48,7 @@ public static void listLocationBasedModelCapacitiesDataZoneScope( } /* - * x-ms-original-file: 2026-05-15-preview/ListLocationBasedModelCapacities.json + * x-ms-original-file: 2026-07-01/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 deleted file mode 100644 index ab0da1850021..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for ManagedComputeCapacities List. - */ -public final class ManagedComputeCapacitiesListSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index f2a5b297d96a..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateSamples.java +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.resourcemanager.cognitiveservices.models.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-05-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-05-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 deleted file mode 100644 index 4fda929c504a..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for ManagedComputeDeployments Delete. - */ -public final class ManagedComputeDeploymentsDeleteSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index 3a29b93864dc..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetSamples.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for ManagedComputeDeployments Get. - */ -public final class ManagedComputeDeploymentsGetSamples { - /* - * x-ms-original-file: 2026-05-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-05-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 deleted file mode 100644 index 94e893fcfcff..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListSamples.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for ManagedComputeDeployments List. - */ -public final class ManagedComputeDeploymentsListSamples { - /* - * x-ms-original-file: 2026-05-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-05-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 deleted file mode 100644 index 98cb7c2fb52e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsUpdateSamples.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.resourcemanager.cognitiveservices.models.ManagedComputeDeployment; -import com.azure.resourcemanager.cognitiveservices.models.Sku; - -/** - * Samples for ManagedComputeDeployments Update. - */ -public final class ManagedComputeDeploymentsUpdateSamples { - /* - * x-ms-original-file: 2026-05-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-05-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 deleted file mode 100644 index 0ac8a1c2bb88..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupListSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for ManagedComputeUsagesOperationGroup List. - */ -public final class ManagedComputeUsagesOperationGroupListSamples { - /* - * x-ms-original-file: 2026-05-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 adea972c557e..e850ce7e0fd8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/provisionManagedNetwork.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/provisionManagedNetwork.json */ /** * Sample code: Provision ManagedNetwork. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationDeleteSamples.java index b41ed3982216..b09f96cd65cd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNetworkSettingsOperationDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/deleteManagedNetworkV2.json */ /** * Sample code: Delete ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationGetSamples.java index 9e3ab67ef844..bce9aa3ff3dd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNetworkSettingsOperationGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/getManagedNetworkV2.json */ /** * Sample code: Get ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationListSamples.java index 7689969894d2..8938d133c33e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNetworkSettingsOperationListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/listManagedNetworkV2.json */ /** * Sample code: List ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPatchSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPatchSamples.java index 5a9af27fe7af..105562cc5752 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPatchSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPatchSamples.java @@ -19,7 +19,7 @@ */ public final class ManagedNetworkSettingsOperationPatchSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/patchManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/patchManagedNetworkV2.json */ /** * Sample code: Patch ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPutSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPutSamples.java index 9db5dac9be85..1585bf7557bd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPutSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationPutSamples.java @@ -18,7 +18,7 @@ */ public final class ManagedNetworkSettingsOperationPutSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/createOrUpdateManagedNetworkV2.json */ /** * Sample code: Put ManagedNetworkSettings. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java index e36a2b7883f8..593032ee2e41 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListSamples.java @@ -9,7 +9,7 @@ */ public final class ModelCapacitiesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacities.json + * x-ms-original-file: 2026-07-01/ListModelCapacities.json */ /** * Sample code: ListModelCapacities. @@ -22,7 +22,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesDataZoneScope.json + * x-ms-original-file: 2026-07-01/ListModelCapacitiesDataZoneScope.json */ /** * Sample code: ListModelCapacities DataZone Scope. @@ -35,7 +35,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesGlobalScope.json + * x-ms-original-file: 2026-07-01/ListModelCapacitiesGlobalScope.json */ /** * Sample code: ListModelCapacities Global Scope. @@ -48,7 +48,7 @@ public final class ModelCapacitiesListSamples { } /* - * x-ms-original-file: 2026-05-15-preview/ListModelCapacitiesClassicScope.json + * x-ms-original-file: 2026-07-01/ListModelCapacitiesClassicScope.json */ /** * Sample code: ListModelCapacities Classic Scope. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java index 9b4c4c12104f..2141750826f7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ModelsListSamples.java @@ -9,7 +9,7 @@ */ public final class ModelsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListLocationModels.json + * x-ms-original-file: 2026-07-01/ListLocationModels.json */ /** * Sample code: ListLocationModels. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java index 561f2f55cdee..48c0a61bb923 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-01/GetNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: GetNetworkSecurityPerimeterConfigurations. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java index d22d1477926d..e6ad7815ad51 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-01/ListNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ListNetworkSecurityPerimeterConfigurations. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java index ee1a1df24a59..596932591ec8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { /* - * x-ms-original-file: 2026-05-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json + * x-ms-original-file: 2026-07-01/ReconcileNetworkSecurityPerimeterConfigurations.json */ /** * Sample code: ReconcileNetworkSecurityPerimeterConfigurations. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java index 4c241603fd5a..9839096c4605 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetOperations.json + * x-ms-original-file: 2026-07-01/GetOperations.json */ /** * Sample code: Get Operations. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleCreateOrUpdateSamples.java index 0cdbc3655b26..970246d15056 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class OutboundRuleCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/createOrUpdateRuleV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/createOrUpdateRuleV2.json */ /** * Sample code: CreateOrUpdate OutboundRule. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleDeleteSamples.java index 7b9aad9899f5..181d168eeae7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class OutboundRuleDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/deleteRuleV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/deleteRuleV2.json */ /** * Sample code: Delete OutboundRule. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleGetSamples.java index d06ec96179d1..0a2ecdf11772 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleGetSamples.java @@ -9,7 +9,7 @@ */ public final class OutboundRuleGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/getRuleV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/getRuleV2.json */ /** * Sample code: Get OutboundRule. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListSamples.java index 9f7610ceaf40..9b53befe2740 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListSamples.java @@ -9,7 +9,7 @@ */ public final class OutboundRuleListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/listRuleV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/listRuleV2.json */ /** * Sample code: List OutboundRules. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesOperationPostSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesOperationPostSamples.java index 56f7a8d94ecf..42a09acc0418 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesOperationPostSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesOperationPostSamples.java @@ -18,7 +18,7 @@ */ public final class OutboundRulesOperationPostSamples { /* - * x-ms-original-file: 2026-05-15-preview/ManagedNetwork/postOutboundRulesV2.json + * x-ms-original-file: 2026-07-01/ManagedNetwork/postOutboundRulesV2.json */ /** * Sample code: Post OutboundRules. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index 648317812cfe..db3cca3a525d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutPrivateEndpointConnection.json + * x-ms-original-file: 2026-07-01/PutPrivateEndpointConnection.json */ /** * Sample code: PutPrivateEndpointConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java index c4891524ac73..3b6a017d3315 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-07-01/DeletePrivateEndpointConnection.json */ /** * Sample code: DeletePrivateEndpointConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java index 981d76d9a1fd..047a7b79bf82 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-07-01/GetPrivateEndpointConnection.json */ /** * Sample code: GetPrivateEndpointConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java index 20c652388774..ff84681459d6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListPrivateEndpointConnections.json + * x-ms-original-file: 2026-07-01/ListPrivateEndpointConnections.json */ /** * Sample code: GetPrivateEndpointConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java index e250dfeb8403..26e7e715724a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListPrivateLinkResources.json + * x-ms-original-file: 2026-07-01/ListPrivateLinkResources.json */ /** * Sample code: ListPrivateLinkResources. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateSamples.java index 712dfece8a49..ee4efa5d5aab 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class ProjectCapabilityHostsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/createOrUpdate.json + * x-ms-original-file: 2026-07-01/ProjectCapabilityHost/createOrUpdate.json */ /** * Sample code: CreateOrUpdate Project CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsDeleteSamples.java index 45b435c82213..2126541616f6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectCapabilityHostsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/delete.json + * x-ms-original-file: 2026-07-01/ProjectCapabilityHost/delete.json */ /** * Sample code: Delete Project CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetSamples.java index 1ef7be9c70ad..94497232004e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectCapabilityHostsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/get.json + * x-ms-original-file: 2026-07-01/ProjectCapabilityHost/get.json */ /** * Sample code: Get Project CapabilityHost. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListSamples.java index 379a8d0eb687..1ce480545a31 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectCapabilityHostsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectCapabilityHost/list.json + * x-ms-original-file: 2026-07-01/ProjectCapabilityHost/list.json */ /** * Sample code: List Project CapabilityHosts. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateSamples.java index da72125cc0bd..08d453d564de 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateSamples.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.cognitiveservices.generated; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.NoneAuthTypeConnectionProperties; import java.time.OffsetDateTime; @@ -13,7 +14,7 @@ */ public final class ProjectConnectionsCreateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/create.json + * x-ms-original-file: 2026-07-01/ProjectConnection/create.json */ /** * Sample code: CreateProjectConnection. @@ -23,11 +24,11 @@ public final class ProjectConnectionsCreateSamples { public static void createProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { manager.projectConnections() - .define("connection-1") - .withExistingProject("resourceGroup-1", "account-1", "project-1") - .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) - .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) - .withTarget("[target url]")) - .create(); + .createWithResponse("resourceGroup-1", "account-1", "project-1", "connection-1", + new ConnectionPropertiesV2BasicResourceInner().withProperties( + new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY) + .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z")) + .withTarget("[target url]")), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteSamples.java index 859d51d68ba3..5cabac66d466 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/delete.json + * x-ms-original-file: 2026-07-01/ProjectConnection/delete.json */ /** * Sample code: DeleteProjectConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetSamples.java index 99479ee3c96f..d26bc74f5aca 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectConnectionsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/get.json + * x-ms-original-file: 2026-07-01/ProjectConnection/get.json */ /** * Sample code: GetProjectConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListSamples.java index 870a98ee592e..bd0d15024c36 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectConnectionsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/list.json + * x-ms-original-file: 2026-07-01/ProjectConnection/list.json */ /** * Sample code: ListProjectConnection. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateSamples.java index e77449052710..ba8819a3d0d8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateSamples.java @@ -7,7 +7,7 @@ import com.azure.resourcemanager.cognitiveservices.models.AccessKeyAuthTypeConnectionProperties; import com.azure.resourcemanager.cognitiveservices.models.ConnectionAccessKey; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; -import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; +import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent; import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; @@ -17,7 +17,7 @@ */ public final class ProjectConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/ProjectConnection/update.json + * x-ms-original-file: 2026-07-01/ProjectConnection/update.json */ /** * Sample code: UpdateProjectConnection. @@ -26,17 +26,16 @@ public final class ProjectConnectionsUpdateSamples { */ public static void updateProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - ConnectionPropertiesV2BasicResource resource = manager.projectConnections() - .getWithResponse("test-rg", "account-1", "project-1", "connection-1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) - .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) - .withMetadata(mapOf()) - .withTarget("some_string") - .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") - .withSecretAccessKey("fakeTokenPlaceholder"))) - .apply(); + manager.projectConnections() + .updateWithResponse("test-rg", "account-1", "project-1", "connection-1", + new ConnectionUpdateContent().withProperties( + new AccessKeyAuthTypeConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2) + .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z")) + .withMetadata(mapOf()) + .withTarget("some_string") + .withCredentials(new ConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder") + .withSecretAccessKey("fakeTokenPlaceholder"))), + com.azure.core.util.Context.NONE); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsCreateSamples.java index 3c8140ae8e3d..dbb26faaa98d 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-05-15-preview/CreateProjectMin.json + * x-ms-original-file: 2026-07-01/CreateProjectMin.json */ /** * Sample code: Create Project Min. @@ -31,7 +31,7 @@ public static void createProjectMin(com.azure.resourcemanager.cognitiveservices. } /* - * x-ms-original-file: 2026-05-15-preview/CreateProject.json + * x-ms-original-file: 2026-07-01/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 aac9ce10b85d..1d3279ebf82c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteProject.json + * x-ms-original-file: 2026-07-01/DeleteProject.json */ /** * Sample code: Delete Project. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetSamples.java index dcf6761f5f12..bb4efc8edfce 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetProject.json + * x-ms-original-file: 2026-07-01/GetProject.json */ /** * Sample code: Get Project. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListSamples.java index 8ee37e1f0e43..1528a17746dd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListSamples.java @@ -9,7 +9,7 @@ */ public final class ProjectsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListProjects.json + * x-ms-original-file: 2026-07-01/ListProjects.json */ /** * Sample code: List Project. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsUpdateSamples.java index 70f0a267950f..1cd4043b569e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class ProjectsUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateProjects.json + * x-ms-original-file: 2026-07-01/UpdateProjects.json */ /** * Sample code: Update Project. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateSamples.java index aef91d3dc38d..1bf62e04acb2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class QuotaTiersCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/CreateOrUpdateQuotaTier.json + * x-ms-original-file: 2026-07-01/CreateOrUpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetSamples.java index 446dd11746ec..a100da7a78c9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetSamples.java @@ -9,7 +9,7 @@ */ public final class QuotaTiersGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetQuotaTier.json + * x-ms-original-file: 2026-07-01/GetQuotaTier.json */ /** * Sample code: Get the Quota Tier information for a subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListSamples.java index 10492b2b47e8..e09a753a6cce 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListSamples.java @@ -9,7 +9,7 @@ */ public final class QuotaTiersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListQuotaTiers.json + * x-ms-original-file: 2026-07-01/ListQuotaTiers.json */ /** * Sample code: List the Quota Tier for a subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersUpdateSamples.java index f0c58cd816dd..e979a060b1c0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class QuotaTiersUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/UpdateQuotaTier.json + * x-ms-original-file: 2026-07-01/UpdateQuotaTier.json */ /** * Sample code: Update the quota tier resource for a subscription. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java index d00db0349b7b..bdfd4223f738 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddSamples.java @@ -13,7 +13,7 @@ */ public final class RaiBlocklistItemsBatchAddSamples { /* - * x-ms-original-file: 2026-05-15-preview/AddRaiBlocklistItems.json + * x-ms-original-file: 2026-07-01/AddRaiBlocklistItems.json */ /** * Sample code: AddRaiBlocklistItems. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java index bd16721490a7..1ef1b6b6a63e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteSamples.java @@ -11,7 +11,7 @@ */ public final class RaiBlocklistItemsBatchDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItems.json + * x-ms-original-file: 2026-07-01/DeleteRaiBlocklistItems.json */ /** * Sample code: DeleteRaiBlocklistItems. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java index 51c488fe1bf4..050d20e8bca7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class RaiBlocklistItemsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiBlocklistItem.json + * x-ms-original-file: 2026-07-01/PutRaiBlocklistItem.json */ /** * Sample code: PutRaiBlocklistItem. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java index 1d626146124d..945f08ef6eb9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistItemsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklistItem.json + * x-ms-original-file: 2026-07-01/DeleteRaiBlocklistItem.json */ /** * Sample code: DeleteRaiBlocklistItem. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java index bd89db1e5028..9cd0237aff40 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistItemsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiBlocklistItem.json + * x-ms-original-file: 2026-07-01/GetRaiBlocklistItem.json */ /** * Sample code: GetRaiBlocklistItem. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java index a234e1e2b5c6..e0b180ff639a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistItemsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListBlocklistItems.json + * x-ms-original-file: 2026-07-01/ListBlocklistItems.json */ /** * Sample code: ListBlocklistItems. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java index 2f1963039d7b..96c12331a2af 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class RaiBlocklistsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiBlocklist.json + * x-ms-original-file: 2026-07-01/PutRaiBlocklist.json */ /** * Sample code: PutRaiBlocklist. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java index 75aa966dc026..e11102bd5338 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiBlocklist.json + * x-ms-original-file: 2026-07-01/DeleteRaiBlocklist.json */ /** * Sample code: DeleteRaiBlocklist. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java index 24ebd6f18bd0..47237a1a565a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiBlocklist.json + * x-ms-original-file: 2026-07-01/GetRaiBlocklist.json */ /** * Sample code: GetRaiBlocklist. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java index 94cb32b5048c..efb2564f72fa 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiBlocklistsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListBlocklists.json + * x-ms-original-file: 2026-07-01/ListBlocklists.json */ /** * Sample code: ListBlocklists. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java index 18c4184e1981..d19299dc5fa6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiContentFiltersGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiContentFilter.json + * x-ms-original-file: 2026-07-01/GetRaiContentFilter.json */ /** * Sample code: GetRaiContentFilters. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java index d6654b37a2cd..2ede7c9fe59b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiContentFiltersListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiContentFilters.json + * x-ms-original-file: 2026-07-01/ListRaiContentFilters.json */ /** * Sample code: ListRaiContentFilters. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderCreateOrUpdateSamples.java index bc4420390c8b..2b5330cecf28 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class RaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-01/PutRaiExternalSafetyProvider.json */ /** * Sample code: PutRaiExternalSafetyProvider. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderDeleteSamples.java index b46796a417ae..830fb76af6a0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiExternalSafetyProviderDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-01/DeleteRaiExternalSafetyProvider.json */ /** * Sample code: DeleteRaiTopic. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderGetSamples.java index 7d4e691d521d..a4a75e193c95 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProviderGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiExternalSafetyProviderGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-01/GetRaiExternalSafetyProvider.json */ /** * Sample code: GetRaiExternalSafetyProvider. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProvidersOperationListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProvidersOperationListSamples.java index 539b08b7bbbf..91342b63271e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProvidersOperationListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiExternalSafetyProvidersOperationListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiExternalSafetyProvidersOperationListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiExternalSafetyProviders.json + * x-ms-original-file: 2026-07-01/ListRaiExternalSafetyProviders.json */ /** * Sample code: ListRaiExternalSafetyProviders. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateSamples.java index a59fc375612b..ede3c0ba3c87 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 @@ -5,20 +5,6 @@ package com.azure.resourcemanager.cognitiveservices.generated; import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderOperation; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderTransform; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderValueRef; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressManagedIdentityRef; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressScheme; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; @@ -30,7 +16,7 @@ */ public final class RaiPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiPolicy.json + * x-ms-original-file: 2026-07-01/PutRaiPolicy.json */ /** * Sample code: PutRaiPolicy. @@ -102,54 +88,4 @@ public static void putRaiPolicy(com.azure.resourcemanager.cognitiveservices.Cogn .withSource(RaiPolicyContentSource.PROMPT)))) .create(); } - - /* - * x-ms-original-file: 2026-05-15-preview/PutRaiPolicyWithEgress.json - */ - /** - * Sample code: PutRaiPolicyWithEgress. - * - * @param manager Entry point to CognitiveServicesManager. - */ - public static void - putRaiPolicyWithEgress(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) { - manager.raiPolicies() - .define("egress-baseline") - .withExistingAccount("resourceGroupName", "accountName") - .withProperties(new RaiPolicyProperties().withBasePolicyName("Microsoft.Default") - .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.DENY) - .withDescription("Corporate baseline egress policy for sandboxed agents") - .withRules(Arrays.asList( - new RaiEgressRule().withName("allow-openai") - .withDescription("Allow traffic to OpenAI API") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("*.openai.com")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW)), - new RaiEgressRule().withName("inject-auth-for-internal") - .withDescription("Inject managed identity token for internal services") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("*.internal.contoso.com")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM) - .withHeaders(Arrays - .asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) - .withName("Authorization") - .withValueRef(new RaiEgressHeaderValueRef() - .withManagedIdentityRef(new RaiEgressManagedIdentityRef() - .withResource("https://internal.contoso.com/.default") - .withFormat("Bearer {value}")))))), - new RaiEgressRule().withName("rewrite-legacy-api") - .withDescription("Rewrite legacy API hostname to new internal endpoint") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("legacy-api.contoso.com").withPath("/v1/*")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.REWRITE) - .withHeaders(Arrays - .asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) - .withName("X-Forwarded-Host") - .withValue("legacy-api.contoso.com"))) - .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) - .withHost("api-v2.internal.contoso.com") - .withPath("/v2/"))))))) - .create(); - } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java index 865743577f7e..4abe18d798cb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiPolicy.json + * x-ms-original-file: 2026-07-01/DeleteRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java index c5ccc5d2cc9e..ad57e9d29b86 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiPoliciesGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiPolicy.json + * x-ms-original-file: 2026-07-01/GetRaiPolicy.json */ /** * Sample code: GetRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java index 5c26ad1240cb..65cf7db0b2ff 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiPoliciesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiPolicies.json + * x-ms-original-file: 2026-07-01/ListRaiPolicies.json */ /** * Sample code: ListRaiPolicies. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateSamples.java index 1085d2232ab6..6dd2527d6f1f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class RaiToolLabelsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiToolLabel.json + * x-ms-original-file: 2026-07-01/PutRaiToolLabel.json */ /** * Sample code: PutRaiToolLabel. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsDeleteSamples.java index cc4e9ef2fb77..fb0ddebfdbae 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiToolLabelsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiToolLabel.json + * x-ms-original-file: 2026-07-01/DeleteRaiToolLabel.json */ /** * Sample code: DeleteRaiToolLabel. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetSamples.java index f0ce017e4f16..f7c736ec8dca 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiToolLabelsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiToolLabel.json + * x-ms-original-file: 2026-07-01/GetRaiToolLabel.json */ /** * Sample code: GetRaiToolLabel. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListSamples.java index 747158538fbe..9d5e591eb09f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiToolLabelsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiToolLabels.json + * x-ms-original-file: 2026-07-01/ListRaiToolLabels.json */ /** * Sample code: ListRaiToolLabels. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateSamples.java index 368df7aee44c..48a736c7b983 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class RaiTopicsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutRaiTopic.json + * x-ms-original-file: 2026-07-01/PutRaiTopic.json */ /** * Sample code: PutRaiTopic. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsDeleteSamples.java index e6bd2e47f436..2f9259421dd9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class RaiTopicsDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteRaiTopic.json + * x-ms-original-file: 2026-07-01/DeleteRaiTopic.json */ /** * Sample code: DeleteRaiTopic. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetSamples.java index 02a3f0f6f792..5ab0bcd2749b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RaiTopicsGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetRaiTopic.json + * x-ms-original-file: 2026-07-01/GetRaiTopic.json */ /** * Sample code: GetRaiTopic. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListSamples.java index 1b9e2a0c14b6..2ae08b04c443 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListSamples.java @@ -9,7 +9,7 @@ */ public final class RaiTopicsListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListRaiTopics.json + * x-ms-original-file: 2026-07-01/ListRaiTopics.json */ /** * Sample code: ListRaiTopics. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java index a335e372482d..67b7e6fbf144 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCalculateModelCapacitySamples.java @@ -15,7 +15,7 @@ */ public final class ResourceProviderCalculateModelCapacitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CalculateModelCapacity.json + * x-ms-original-file: 2026-07-01/CalculateModelCapacity.json */ /** * Sample code: Calculate Model Capacity. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java index 520efa6c8735..2edb20d3c05e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckDomainAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class ResourceProviderCheckDomainAvailabilitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CheckDomainAvailability.json + * x-ms-original-file: 2026-07-01/CheckDomainAvailability.json */ /** * Sample code: Check SKU Availability. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java index c136cb191cc7..871a6ecc5f42 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProviderCheckSkuAvailabilitySamples.java @@ -12,7 +12,7 @@ */ public final class ResourceProviderCheckSkuAvailabilitySamples { /* - * x-ms-original-file: 2026-05-15-preview/CheckSkuAvailability.json + * x-ms-original-file: 2026-07-01/CheckSkuAvailability.json */ /** * Sample code: Check SKU Availability. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java index cee9b81cd76f..44d44ab3e2d0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkusListSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceSkusListSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSkus.json + * x-ms-original-file: 2026-07-01/GetSkus.json */ /** * Sample code: Regenerate Keys. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyCreateOrUpdateSamples.java index a2807fd65e24..837ec16dc270 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class SubscriptionRaiPolicyCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/PutSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-01/PutSubscriptionRaiPolicy.json */ /** * Sample code: PutRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyDeleteSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyDeleteSamples.java index b0b880f6e72c..4fd8c0370b30 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyDeleteSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SubscriptionRaiPolicyDeleteSamples { /* - * x-ms-original-file: 2026-05-15-preview/DeleteSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-01/DeleteSubscriptionRaiPolicy.json */ /** * Sample code: DeleteRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyGetSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyGetSamples.java index 8f34c5a2edae..b6c97c5cf256 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyGetSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPolicyGetSamples.java @@ -9,7 +9,7 @@ */ public final class SubscriptionRaiPolicyGetSamples { /* - * x-ms-original-file: 2026-05-15-preview/GetSubscriptionRaiPolicy.json + * x-ms-original-file: 2026-07-01/GetSubscriptionRaiPolicy.json */ /** * Sample code: GetRaiPolicy. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/TestRaiExternalSafetyProviderCreateOrUpdateSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/TestRaiExternalSafetyProviderCreateOrUpdateSamples.java index daa2ff61146d..d601728df290 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/TestRaiExternalSafetyProviderCreateOrUpdateSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/TestRaiExternalSafetyProviderCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-05-15-preview/TestRaiExternalSafetyProvider.json + * x-ms-original-file: 2026-07-01/TestRaiExternalSafetyProvider.json */ /** * Sample code: TestRaiExternalSafetyProvider. diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java index b660f07a3424..c9673512ed73 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListSamples.java @@ -9,7 +9,7 @@ */ public final class UsagesListSamples { /* - * x-ms-original-file: 2026-05-15-preview/ListUsages.json + * x-ms-original-file: 2026-07-01/ListUsages.json */ /** * Sample code: Get Usages. @@ -21,7 +21,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesClassicScope.json + * x-ms-original-file: 2026-07-01/ListUsagesClassicScope.json */ /** * Sample code: Get Usages Classic Scope. @@ -34,7 +34,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesDataZoneScope.json + * x-ms-original-file: 2026-07-01/ListUsagesDataZoneScope.json */ /** * Sample code: Get Usages DataZone Scope. @@ -47,7 +47,7 @@ public static void getUsages(com.azure.resourcemanager.cognitiveservices.Cogniti } /* - * x-ms-original-file: 2026-05-15-preview/ListUsagesGlobalScope.json + * x-ms-original-file: 2026-07-01/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 deleted file mode 100644 index 3c4486bda22a..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesCreateOrUpdateSamples.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.resourcemanager.cognitiveservices.models.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-05-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 deleted file mode 100644 index 453deb29073f..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesDeleteSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Workbenches Delete. - */ -public final class WorkbenchesDeleteSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index 82df37617257..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Workbenches Get. - */ -public final class WorkbenchesGetSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index b41d381eb5bb..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesListSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Workbenches List. - */ -public final class WorkbenchesListSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index 3be963cff4ff..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesRestartSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Workbenches Restart. - */ -public final class WorkbenchesRestartSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index e46f58229d75..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStartSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Workbenches Start. - */ -public final class WorkbenchesStartSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index 87ff3e416903..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesStopSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -/** - * Samples for Workbenches Stop. - */ -public final class WorkbenchesStopSamples { - /* - * x-ms-original-file: 2026-05-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 deleted file mode 100644 index 0898f67b6097..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/samples/java/com/azure/resourcemanager/cognitiveservices/generated/WorkbenchesUpdateSamples.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.resourcemanager.cognitiveservices.models.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-05-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 d22f800ec605..4f7bec0e3abc 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,45 +19,44 @@ public final class AadAuthTypeConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AadAuthTypeConnectionProperties model = BinaryData.fromString( - "{\"authType\":\"AAD\",\"category\":\"AzureKeyVault\",\"createdByWorkspaceArmId\":\"fhjirwgdnqzbrfk\",\"error\":\"zhzmtksjci\",\"expiryTime\":\"2021-07-31T03:36:59Z\",\"group\":\"NoSQL\",\"isSharedToAll\":true,\"metadata\":{\"plkeuachtomflryt\":\"l\",\"mskwhqjjysl\":\"wfpfmdgycx\",\"edwqslsrh\":\"rlpshhkv\",\"wwsko\":\"pq\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"muvqejosovyr\",\"leaesi\",\"uqtljqobbpih\",\"hcecybmrqbr\"],\"target\":\"bmpxdlvykfrexc\",\"useWorkspaceManagedIdentity\":false}") + "{\"authType\":\"AAD\",\"category\":\"Hive\",\"createdByWorkspaceArmId\":\"ltnzoibgsxg\",\"error\":\"fyq\",\"expiryTime\":\"2021-01-20T15:12:39Z\",\"group\":\"File\",\"isSharedToAll\":false,\"metadata\":{\"dbxiqx\":\"o\",\"htmwwinh\":\"iiqbi\",\"bcblemb\":\"hfqpofv\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"xk\",\"ivqiheb\",\"tswbzuwfmd\",\"ragegi\"],\"target\":\"cjfelisdjubgg\",\"useWorkspaceManagedIdentity\":true}") .toObject(AadAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.AZURE_KEY_VAULT, model.category()); - Assertions.assertEquals("zhzmtksjci", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T03:36:59Z"), model.expiryTime()); - Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("l", model.metadata().get("plkeuachtomflryt")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("muvqejosovyr", model.sharedUserList().get(0)); - Assertions.assertEquals("bmpxdlvykfrexc", model.target()); - Assertions.assertFalse(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals(ConnectionCategory.HIVE, model.category()); + Assertions.assertEquals("fyq", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T15:12:39Z"), model.expiryTime()); + Assertions.assertFalse(model.isSharedToAll()); + Assertions.assertEquals("o", model.metadata().get("dbxiqx")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); + Assertions.assertEquals("xk", model.sharedUserList().get(0)); + Assertions.assertEquals("cjfelisdjubgg", model.target()); + Assertions.assertTrue(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AadAuthTypeConnectionProperties model - = new AadAuthTypeConnectionProperties().withCategory(ConnectionCategory.AZURE_KEY_VAULT) - .withError("zhzmtksjci") - .withExpiryTime(OffsetDateTime.parse("2021-07-31T03:36:59Z")) - .withIsSharedToAll(true) - .withMetadata( - mapOf("plkeuachtomflryt", "l", "mskwhqjjysl", "wfpfmdgycx", "edwqslsrh", "rlpshhkv", "wwsko", "pq")) - .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("muvqejosovyr", "leaesi", "uqtljqobbpih", "hcecybmrqbr")) - .withTarget("bmpxdlvykfrexc") - .withUseWorkspaceManagedIdentity(false); + = new AadAuthTypeConnectionProperties().withCategory(ConnectionCategory.HIVE) + .withError("fyq") + .withExpiryTime(OffsetDateTime.parse("2021-01-20T15:12:39Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("dbxiqx", "o", "htmwwinh", "iiqbi", "bcblemb", "hfqpofv")) + .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) + .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) + .withSharedUserList(Arrays.asList("xk", "ivqiheb", "tswbzuwfmd", "ragegi")) + .withTarget("cjfelisdjubgg") + .withUseWorkspaceManagedIdentity(true); model = BinaryData.fromObject(model).toObject(AadAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.AZURE_KEY_VAULT, model.category()); - Assertions.assertEquals("zhzmtksjci", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T03:36:59Z"), model.expiryTime()); - Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("l", model.metadata().get("plkeuachtomflryt")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("muvqejosovyr", model.sharedUserList().get(0)); - Assertions.assertEquals("bmpxdlvykfrexc", model.target()); - Assertions.assertFalse(model.useWorkspaceManagedIdentity()); + Assertions.assertEquals(ConnectionCategory.HIVE, model.category()); + Assertions.assertEquals("fyq", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T15:12:39Z"), model.expiryTime()); + Assertions.assertFalse(model.isSharedToAll()); + Assertions.assertEquals("o", model.metadata().get("dbxiqx")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.peStatus()); + Assertions.assertEquals("xk", model.sharedUserList().get(0)); + Assertions.assertEquals("cjfelisdjubgg", model.target()); + Assertions.assertTrue(model.useWorkspaceManagedIdentity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateMockTests.java index ae164e775f8e..7a2174fe8217 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class AccountCapabilityHostsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"aiServicesConnections\":[\"dpu\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"gefxlieggo\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"ss\",\"nwhz\"],\"threadStorageConnections\":[\"hecknfmkcuft\"],\"vectorStoreConnections\":[\"wuzrono\",\"vhzfkdnwy\",\"odcikgxk\"],\"enablePublicHostingEnvironment\":true,\"description\":\"zdjekebawnx\",\"tags\":{\"gcjf\":\"wyfixi\",\"pjkakrxifqnf\":\"iwu\"}},\"id\":\"rxsqtz\",\"name\":\"gxbsal\",\"type\":\"wguxcmmhipbvskci\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"nwqsttewu\",\"cysje\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"flpd\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"npiyuxlv\",\"h\"],\"threadStorageConnections\":[\"vbwonleqf\",\"vtlrvbstph\",\"ykunin\"],\"vectorStoreConnections\":[\"nrjdszdbu\"],\"enablePublicHostingEnvironment\":true,\"description\":\"qppoqvgpnew\",\"tags\":{\"essfepgckncj\":\"fwjnoxuoxtfn\"}},\"id\":\"vsnvbtqdxfmj\",\"name\":\"mjnhjlu\",\"type\":\"llbsupubdxc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,27 +36,27 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapabilityHost response = manager.accountCapabilityHosts() - .define("wlbg") - .withExistingAccount("komwdzpzlhcuexlq", "wwvmbjec") - .withProperties(new CapabilityHostProperties().withDescription("mkiqhypwtmz") - .withTags(mapOf("mzqlnaag", "yut")) - .withAiServicesConnections(Arrays.asList("frwxohlydsn", "zpchiy", "bfhmihi", "tqozewbrsrjzgkbr")) + .define("j") + .withExistingAccount("hqmomfeco", "kfrocgbmxl") + .withProperties(new CapabilityHostProperties().withDescription("uurbor") + .withTags(mapOf("rnqujywzcqy", "vzielb", "qiwy", "gmnwsvhbn")) + .withAiServicesConnections(Arrays.asList("zbjesylslur")) .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("oufq") - .withStorageConnections(Arrays.asList("xg", "wsrerukbuu")) - .withThreadStorageConnections(Arrays.asList("zwkwkjxla", "cedikqelssyb")) - .withVectorStoreConnections(Arrays.asList("vgb")) + .withCustomerSubnet("g") + .withStorageConnections(Arrays.asList("dzuqscag")) + .withThreadStorageConnections(Arrays.asList("ouprs", "tqzsslhmgwfnivr")) + .withVectorStoreConnections(Arrays.asList("duiolh", "yqvpbfjpo", "z", "cfzlu")) .withEnablePublicHostingEnvironment(false)) .create(); - Assertions.assertEquals("zdjekebawnx", response.properties().description()); - Assertions.assertEquals("wyfixi", response.properties().tags().get("gcjf")); - Assertions.assertEquals("dpu", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("qppoqvgpnew", response.properties().description()); + Assertions.assertEquals("fwjnoxuoxtfn", response.properties().tags().get("essfepgckncj")); + Assertions.assertEquals("nwqsttewu", response.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.properties().capabilityHostKind()); - Assertions.assertEquals("gefxlieggo", response.properties().customerSubnet()); - Assertions.assertEquals("ss", response.properties().storageConnections().get(0)); - Assertions.assertEquals("hecknfmkcuft", response.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("wuzrono", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("flpd", response.properties().customerSubnet()); + Assertions.assertEquals("npiyuxlv", response.properties().storageConnections().get(0)); + Assertions.assertEquals("vbwonleqf", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("nrjdszdbu", response.properties().vectorStoreConnections().get(0)); Assertions.assertTrue(response.properties().enablePublicHostingEnvironment()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetWithResponseMockTests.java index b92ac13b2943..70aaed77726c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class AccountCapabilityHostsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"aiServicesConnections\":[\"epkwzzzkueruwcj\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"vwkaujttwyk\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"ofxxdplrelfk\",\"gahcbt\",\"xlbpxrhrfjenrazw\"],\"threadStorageConnections\":[\"ktlhqash\",\"ostjixyz\"],\"vectorStoreConnections\":[\"i\"],\"enablePublicHostingEnvironment\":true,\"description\":\"wjtacfvv\",\"tags\":{\"mcsaugbr\":\"cbpzf\",\"te\":\"fiwltkfysu\"}},\"id\":\"klx\",\"name\":\"hcvasyy\",\"type\":\"gqokjbmsrk\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"yazkjpir\",\"zxvbczwhyegbthms\",\"i\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"iggrunoz\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"jthoivsdwsngkr\",\"ihscjvakmhzbhw\"],\"threadStorageConnections\":[\"bwihbnnxemvynu\",\"qkotauratn\"],\"vectorStoreConnections\":[\"pfzsclefyrl\",\"tndqlmf\",\"ggnbbuypwovvvsfl\"],\"enablePublicHostingEnvironment\":true,\"description\":\"oqayrehjuqwv\",\"tags\":{\"zihacen\":\"rlzh\",\"zubfo\":\"qzlxn\",\"cwtewfhxwyrkb\":\"fdbgmkfwm\"}},\"id\":\"hzlrynjpchamkae\",\"name\":\"lr\",\"type\":\"jub\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapabilityHost response = manager.accountCapabilityHosts() - .getWithResponse("laqcwggchxvlqg", "brveci", "aovphirlzbipi", com.azure.core.util.Context.NONE) + .getWithResponse("qzqvabmhvsex", "uetbapfczew", "trlq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wjtacfvv", response.properties().description()); - Assertions.assertEquals("cbpzf", response.properties().tags().get("mcsaugbr")); - Assertions.assertEquals("epkwzzzkueruwcj", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("oqayrehjuqwv", response.properties().description()); + Assertions.assertEquals("rlzh", response.properties().tags().get("zihacen")); + Assertions.assertEquals("yazkjpir", response.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.properties().capabilityHostKind()); - Assertions.assertEquals("vwkaujttwyk", response.properties().customerSubnet()); - Assertions.assertEquals("ofxxdplrelfk", response.properties().storageConnections().get(0)); - Assertions.assertEquals("ktlhqash", response.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("i", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("iggrunoz", response.properties().customerSubnet()); + Assertions.assertEquals("jthoivsdwsngkr", response.properties().storageConnections().get(0)); + Assertions.assertEquals("bwihbnnxemvynu", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("pfzsclefyrl", response.properties().vectorStoreConnections().get(0)); Assertions.assertTrue(response.properties().enablePublicHostingEnvironment()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListMockTests.java index c53dc7ffae60..fcc07e01b10c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountCapabilityHostsListMockTests.java @@ -23,7 +23,7 @@ public final class AccountCapabilityHostsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"ozsxagyso\",\"liiksybv\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"hyl\",\"provisioningState\":\"Deleting\",\"storageConnections\":[\"cydyllmxv\",\"stizsyqag\",\"llcbrva\"],\"threadStorageConnections\":[\"lkyhtrrqwfyybpt\",\"jjrnogykugdlavsa\",\"gthkslgeu\",\"fkbzbfbxjblajy\"],\"vectorStoreConnections\":[\"bycsbtoi\",\"azdjmofsvpzxg\"],\"enablePublicHostingEnvironment\":true,\"description\":\"uymlfjymgw\",\"tags\":{\"e\":\"zcfyzq\",\"furdpagknxmao\":\"re\",\"kycjcg\":\"rgihlnzffewv\",\"abhgclejqzhpvh\":\"ipqxxsdyafwtydsm\"}},\"id\":\"badjze\",\"name\":\"llgfy\",\"type\":\"gtqscjpvqerq\"}]}"; + = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"kmwlaok\",\"fnisyxgu\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"re\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"stjcyyuvtzr\",\"zhclecwwtzq\",\"cloyhy\"],\"threadStorageConnections\":[\"idhz\"],\"vectorStoreConnections\":[\"esgzs\"],\"enablePublicHostingEnvironment\":false,\"description\":\"byorjplb\",\"tags\":{\"siuepm\":\"chakvyrfbqvumkxq\",\"pf\":\"xfnzlpq\"}},\"id\":\"efvulblmr\",\"name\":\"uxyprhfcaeooifqd\",\"type\":\"wjflobh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,17 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.accountCapabilityHosts().list("xyxxhwr", "qomaqsyilpzzbrw", com.azure.core.util.Context.NONE); + = manager.accountCapabilityHosts().list("wuyw", "vtjr", com.azure.core.util.Context.NONE); - Assertions.assertEquals("uymlfjymgw", response.iterator().next().properties().description()); - Assertions.assertEquals("zcfyzq", response.iterator().next().properties().tags().get("e")); - Assertions.assertEquals("ozsxagyso", response.iterator().next().properties().aiServicesConnections().get(0)); + Assertions.assertEquals("byorjplb", response.iterator().next().properties().description()); + Assertions.assertEquals("chakvyrfbqvumkxq", response.iterator().next().properties().tags().get("siuepm")); + Assertions.assertEquals("kmwlaok", response.iterator().next().properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, response.iterator().next().properties().capabilityHostKind()); - Assertions.assertEquals("hyl", response.iterator().next().properties().customerSubnet()); - Assertions.assertEquals("cydyllmxv", response.iterator().next().properties().storageConnections().get(0)); - Assertions.assertEquals("lkyhtrrqwfyybpt", - response.iterator().next().properties().threadStorageConnections().get(0)); - Assertions.assertEquals("bycsbtoi", response.iterator().next().properties().vectorStoreConnections().get(0)); - Assertions.assertTrue(response.iterator().next().properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("re", response.iterator().next().properties().customerSubnet()); + Assertions.assertEquals("stjcyyuvtzr", response.iterator().next().properties().storageConnections().get(0)); + Assertions.assertEquals("idhz", response.iterator().next().properties().threadStorageConnections().get(0)); + Assertions.assertEquals("esgzs", 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 c50372bd34ab..a003de03d31d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsCreateWithResponseMockTests.java @@ -10,7 +10,6 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; -import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; @@ -29,7 +28,7 @@ public final class AccountConnectionsCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Netezza\",\"createdByWorkspaceArmId\":\"uvbgtzqzqweuy\",\"error\":\"bnairvhpqsv\",\"expiryTime\":\"2021-12-05T05:14:01Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":true,\"metadata\":{\"csjvjnkoiznzsqbi\":\"cnqnvncpr\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"ovjtmvwrmj\",\"y\",\"uod\"],\"target\":\"czbassqfyylwpp\",\"useWorkspaceManagedIdentity\":true},\"id\":\"bzbloasyb\",\"name\":\"h\",\"type\":\"vovdpmht\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Hive\",\"createdByWorkspaceArmId\":\"mlitqdsj\",\"error\":\"dvisco\",\"expiryTime\":\"2021-10-22T11:42:56Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"dslvrqo\":\"f\",\"deotmfx\":\"mwsieeailwdqmqf\",\"g\":\"kd\",\"uafixlxicwgp\":\"gnamkuuyiu\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"z\",\"fasfod\"],\"target\":\"palvngtw\",\"useWorkspaceManagedIdentity\":false},\"id\":\"wgqrntaum\",\"name\":\"rcjlvkrkegtyczup\",\"type\":\"iyxlzmiydde\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,31 +38,30 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.accountConnections() - .createWithResponse("hdyxz", "vwywjvrlgqpwwlzp", "darcb", - new ConnectionPropertiesV2BasicResourceInner() - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.FTP_SERVER) - .withError("mstbdoprwk") - .withExpiryTime(OffsetDateTime.parse("2020-12-24T16:42:16Z")) - .withIsSharedToAll(false) - .withMetadata(mapOf("udrcycm", "dzn", "l", "huzymhlhihqk", "aiildcpud", "kmnbzko")) - .withPeRequirement(ManagedPERequirement.REQUIRED) - .withPeStatus(ManagedPEStatus.INACTIVE) - .withSharedUserList(Arrays.asList("jofpg", "edrobujnjgybuxm", "xigi", "ullnjgcpskgrhny")) - .withTarget("lgsazuqzn") - .withUseWorkspaceManagedIdentity(true)), - com.azure.core.util.Context.NONE) - .getValue(); + .define("mlf") + .withExistingAccount("gfdt", "cmspsanmameubkqi") + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.MANAGED_ONLINE_ENDPOINT) + .withError("u") + .withExpiryTime(OffsetDateTime.parse("2020-12-22T06:53:02Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("rpahuuonjkkxuk", "rq", "oegcjoj", "uehvvpx")) + .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) + .withPeStatus(ManagedPEStatus.ACTIVE) + .withSharedUserList(Arrays.asList("mt", "nvhgnhtmeplh", "pjbap")) + .withTarget("mmmkvavucgjiuaiq") + .withUseWorkspaceManagedIdentity(false)) + .create(); - Assertions.assertEquals(ConnectionCategory.NETEZZA, response.properties().category()); - Assertions.assertEquals("bnairvhpqsv", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-05T05:14:01Z"), response.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.HIVE, response.properties().category()); + Assertions.assertEquals("dvisco", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-22T11:42:56Z"), response.properties().expiryTime()); Assertions.assertTrue(response.properties().isSharedToAll()); - Assertions.assertEquals("cnqnvncpr", response.properties().metadata().get("csjvjnkoiznzsqbi")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.properties().peStatus()); - Assertions.assertEquals("ovjtmvwrmj", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("czbassqfyylwpp", response.properties().target()); - Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("f", response.properties().metadata().get("dslvrqo")); + 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("palvngtw", 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/AccountConnectionsDeleteWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsDeleteWithResponseMockTests.java index b7d515b2c7a8..445ee0f7d0f5 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 @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.accountConnections() - .deleteWithResponse("hrvybn", "bnvmshfuzzlapy", "xlvzcgulaebxiauq", com.azure.core.util.Context.NONE); + .deleteWithResponse("pmpv", "nogehlufbort", "nukkfaxzsvb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetWithResponseMockTests.java index 117484a9feb2..a2dbd05afd9b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class AccountConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"MongoDbV2\",\"createdByWorkspaceArmId\":\"eqvhskbmpw\",\"error\":\"lajggfzgae\",\"expiryTime\":\"2021-08-16T17:13:53Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"wi\":\"y\",\"vj\":\"rnicupdyttqmi\",\"s\":\"l\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"qmtxynoflqobf\",\"xngxebihexhnkin\",\"iqcdolrpg\"],\"target\":\"sjlbsmndaf\",\"useWorkspaceManagedIdentity\":true},\"id\":\"yjeykcnhpplzhc\",\"name\":\"zxjziuu\",\"type\":\"rlnewnuwkkfzzetl\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Odbc\",\"createdByWorkspaceArmId\":\"zfvbennmfkbpj\",\"error\":\"tekwwnthropm\",\"expiryTime\":\"2021-11-10T03:30:36Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"youergaghp\":\"tvktjhffecqko\",\"gyedzfzqi\":\"zxkpyehhfdyld\",\"a\":\"uqhtdereuno\",\"mxrfomckew\":\"zwhpjlwyxedz\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"xfjjtpdyzout\"],\"target\":\"pt\",\"useWorkspaceManagedIdentity\":false},\"id\":\"nuywe\",\"name\":\"ygv\",\"type\":\"dgaaqwvkgjpy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,18 +34,18 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.accountConnections() - .getWithResponse("zfaxskdvu", "lumodpegqxsorc", "azrqoxz", com.azure.core.util.Context.NONE) + .getWithResponse("xhyoip", "f", "bgsosc", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.MONGO_DB_V2, response.properties().category()); - Assertions.assertEquals("lajggfzgae", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-16T17:13:53Z"), response.properties().expiryTime()); - Assertions.assertTrue(response.properties().isSharedToAll()); - Assertions.assertEquals("y", response.properties().metadata().get("wi")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, response.properties().peRequirement()); + Assertions.assertEquals(ConnectionCategory.ODBC, response.properties().category()); + Assertions.assertEquals("tekwwnthropm", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T03:30:36Z"), response.properties().expiryTime()); + Assertions.assertFalse(response.properties().isSharedToAll()); + Assertions.assertEquals("tvktjhffecqko", response.properties().metadata().get("youergaghp")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.properties().peStatus()); - Assertions.assertEquals("qmtxynoflqobf", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("sjlbsmndaf", response.properties().target()); - Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("xfjjtpdyzout", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("pt", response.properties().target()); + Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListMockTests.java index 87e7385ca561..2e5ab8f49dc5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsListMockTests.java @@ -25,7 +25,7 @@ public final class AccountConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"CustomKeys\",\"createdByWorkspaceArmId\":\"jwjkqonbwhiiey\",\"error\":\"vrc\",\"expiryTime\":\"2021-03-16T16:02:25Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"oarx\":\"gqefgzjvbxqcb\"},\"peRequirement\":\"Required\",\"peStatus\":\"Active\",\"sharedUserList\":[\"vkdlhuduklbjoafm\",\"fex\",\"lvoepknarse\"],\"target\":\"ncsqoacbuqd\",\"useWorkspaceManagedIdentity\":false},\"id\":\"leqfgkxenvszg\",\"name\":\"vya\",\"type\":\"eszsuuv\"}]}"; + = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Sharepoint\",\"createdByWorkspaceArmId\":\"bdxmd\",\"error\":\"sbrujbjpppktlpdi\",\"expiryTime\":\"2021-06-24T13:55:29Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":true,\"metadata\":{\"min\":\"nejr\",\"r\":\"qplgtkihonikz\",\"f\":\"f\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"ntog\",\"ensckhbmcarm\",\"yfxxkwykuqdnd\"],\"target\":\"ykhkg\",\"useWorkspaceManagedIdentity\":false},\"id\":\"dgtfpeersc\",\"name\":\"xrnrnjrcufmbga\",\"type\":\"n\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,18 +35,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.accountConnections() - .list("uptessjlwjta", "pv", "lskxgxqaygaslkv", "vwpvlcj", false, com.azure.core.util.Context.NONE); + .list("xyji", "skobqoclflioewy", "xessmvrk", "p", false, com.azure.core.util.Context.NONE); - Assertions.assertEquals(ConnectionCategory.CUSTOM_KEYS, response.iterator().next().properties().category()); - Assertions.assertEquals("vrc", response.iterator().next().properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-16T16:02:25Z"), + Assertions.assertEquals(ConnectionCategory.SHAREPOINT, response.iterator().next().properties().category()); + Assertions.assertEquals("sbrujbjpppktlpdi", response.iterator().next().properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-24T13:55:29Z"), response.iterator().next().properties().expiryTime()); - Assertions.assertFalse(response.iterator().next().properties().isSharedToAll()); - Assertions.assertEquals("gqefgzjvbxqcb", response.iterator().next().properties().metadata().get("oarx")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.iterator().next().properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, response.iterator().next().properties().peStatus()); - Assertions.assertEquals("vkdlhuduklbjoafm", response.iterator().next().properties().sharedUserList().get(0)); - Assertions.assertEquals("ncsqoacbuqd", response.iterator().next().properties().target()); + Assertions.assertTrue(response.iterator().next().properties().isSharedToAll()); + Assertions.assertEquals("nejr", response.iterator().next().properties().metadata().get("min")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, + response.iterator().next().properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.iterator().next().properties().peStatus()); + Assertions.assertEquals("ntog", response.iterator().next().properties().sharedUserList().get(0)); + Assertions.assertEquals("ykhkg", response.iterator().next().properties().target()); Assertions.assertFalse(response.iterator().next().properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuListResultInnerTests.java index 75032e5addd1..ca3e858637d4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuListResultInnerTests.java @@ -13,13 +13,13 @@ public final class AccountSkuListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AccountSkuListResultInner model = BinaryData.fromString( - "{\"value\":[{\"resourceType\":\"qgtz\",\"sku\":{\"name\":\"pnqbqqwxrjfe\",\"tier\":\"Basic\",\"size\":\"wsubisnja\",\"family\":\"mngnzscxaqw\",\"capacity\":2024300309}},{\"resourceType\":\"cbonqvpk\",\"sku\":{\"name\":\"rxnjeaseipheofl\",\"tier\":\"Basic\",\"size\":\"y\",\"family\":\"nj\",\"capacity\":147839675}},{\"resourceType\":\"tgrhpdjpjumas\",\"sku\":{\"name\":\"zj\",\"tier\":\"Premium\",\"size\":\"gual\",\"family\":\"xxhejjzzvd\",\"capacity\":572482803}}]}") + "{\"value\":[{\"resourceType\":\"xrjfeallnwsub\",\"sku\":{\"name\":\"njampm\",\"tier\":\"Enterprise\",\"size\":\"scxaq\",\"family\":\"ochcbonqvpkvl\",\"capacity\":1945684802}},{\"resourceType\":\"ea\",\"sku\":{\"name\":\"ipheoflokeyyien\",\"tier\":\"Basic\",\"size\":\"wtgrhpdjpj\",\"family\":\"asxazjpqyegualhb\",\"capacity\":1163750271}},{\"resourceType\":\"jj\",\"sku\":{\"name\":\"v\",\"tier\":\"Free\",\"size\":\"wdslfhotwmcy\",\"family\":\"wlbjnpgacftade\",\"capacity\":2035779275}}]}") .toObject(AccountSkuListResultInner.class); - Assertions.assertEquals("qgtz", model.value().get(0).resourceType()); - Assertions.assertEquals("pnqbqqwxrjfe", model.value().get(0).sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.value().get(0).sku().tier()); - Assertions.assertEquals("wsubisnja", model.value().get(0).sku().size()); - Assertions.assertEquals("mngnzscxaqw", model.value().get(0).sku().family()); - Assertions.assertEquals(2024300309, model.value().get(0).sku().capacity()); + Assertions.assertEquals("xrjfeallnwsub", model.value().get(0).resourceType()); + Assertions.assertEquals("njampm", model.value().get(0).sku().name()); + Assertions.assertEquals(SkuTier.ENTERPRISE, model.value().get(0).sku().tier()); + Assertions.assertEquals("scxaq", model.value().get(0).sku().size()); + Assertions.assertEquals("ochcbonqvpkvl", model.value().get(0).sku().family()); + Assertions.assertEquals(1945684802, model.value().get(0).sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuTests.java index 81db6c9f35c1..dc4f9402a2c2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountSkuTests.java @@ -13,13 +13,13 @@ public final class AccountSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AccountSku model = BinaryData.fromString( - "{\"resourceType\":\"dslfhotwmcy\",\"sku\":{\"name\":\"wlbjnpgacftade\",\"tier\":\"Basic\",\"size\":\"tyfsoppusuesn\",\"family\":\"dejbavo\",\"capacity\":669466066}}") + "{\"resourceType\":\"tyfsoppusuesn\",\"sku\":{\"name\":\"dejbavo\",\"tier\":\"Standard\",\"size\":\"mohctb\",\"family\":\"udwxdndnvowguj\",\"capacity\":408024361}}") .toObject(AccountSku.class); - Assertions.assertEquals("dslfhotwmcy", model.resourceType()); - Assertions.assertEquals("wlbjnpgacftade", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("tyfsoppusuesn", model.sku().size()); - Assertions.assertEquals("dejbavo", model.sku().family()); - Assertions.assertEquals(669466066, model.sku().capacity()); + Assertions.assertEquals("tyfsoppusuesn", model.resourceType()); + Assertions.assertEquals("dejbavo", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("mohctb", model.sku().size()); + Assertions.assertEquals("udwxdndnvowguj", model.sku().family()); + Assertions.assertEquals(408024361, model.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java index 63b704134169..2d70726db48d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.accounts().delete("ci", "kwdvbtb", com.azure.core.util.Context.NONE); + manager.accounts().delete("pbrruyu", "atvlmbjwcolbm", 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 deleted file mode 100644 index 32ebea3d734c..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsEvaluateDeploymentPoliciesWithResponseMockTests.java +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":{\"yfgwewqkj\":{\"evaluationOutcome\":\"Error\",\"errorMessage\":\"pvckojazbbgs\",\"nonCompliantAssignments\":[{\"assignmentId\":\"subzp\",\"policyDefinitionId\":\"vdylytcovqseusrf\",\"policySetDefinitionId\":\"d\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"nxmlbmuoswk\",\"effect\":\"dihdcyyyzlwhb\",\"expressionEvaluations\":[{},{}]},{\"assignmentId\":\"ufzrfgmdqgnnbzrt\",\"policyDefinitionId\":\"edzuub\",\"policySetDefinitionId\":\"vgjs\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"jjvavdpww\",\"effect\":\"tdp\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"sffofwanmhksca\",\"policyDefinitionId\":\"azcg\",\"policySetDefinitionId\":\"friwgybjp\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"scvgl\",\"effect\":\"x\",\"expressionEvaluations\":[{}]}]},\"pcs\":{\"evaluationOutcome\":\"NonCompliant\",\"errorMessage\":\"wpxsoo\",\"nonCompliantAssignments\":[{\"assignmentId\":\"lcsklt\",\"policyDefinitionId\":\"uugggzlfbgrd\",\"policySetDefinitionId\":\"ubsrtmdylperpilt\",\"evaluationOutcome\":\"Error\",\"nonComplianceReason\":\"czfcmfpfbod\",\"effect\":\"resrgvtshuvft\",\"expressionEvaluations\":[{},{},{},{}]},{\"assignmentId\":\"muqkevzgjypanhx\",\"policyDefinitionId\":\"dxxzetwwzjwotn\",\"policySetDefinitionId\":\"kf\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"rfo\",\"effect\":\"wecr\",\"expressionEvaluations\":[{},{},{}]}]},\"socwiqbuout\":{\"evaluationOutcome\":\"Compliant\",\"errorMessage\":\"ovppqibukklvzrlr\",\"nonCompliantAssignments\":[{\"assignmentId\":\"metjs\",\"policyDefinitionId\":\"ivfqbqnasdsy\",\"policySetDefinitionId\":\"zsieuscplhyvd\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"zkxitd\",\"effect\":\"ezsvkolrupjov\",\"expressionEvaluations\":[{},{},{}]},{\"assignmentId\":\"ayeb\",\"policyDefinitionId\":\"zwzlp\",\"policySetDefinitionId\":\"tzuykykipfsdye\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"cmbezac\",\"effect\":\"ztgaz\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"jga\",\"policyDefinitionId\":\"kctgkp\",\"policySetDefinitionId\":\"kqzkcyzmff\",\"evaluationOutcome\":\"Compliant\",\"nonComplianceReason\":\"fcixrh\",\"effect\":\"qvhoej\",\"expressionEvaluations\":[{}]},{\"assignmentId\":\"tgwrmkahpqha\",\"policyDefinitionId\":\"ntacih\",\"policySetDefinitionId\":\"ogmipnmliqmvl\",\"evaluationOutcome\":\"NonCompliant\",\"nonComplianceReason\":\"eaqgrvgpomxpupd\",\"effect\":\"dfj\",\"expressionEvaluations\":[{},{},{}]}]}}}"; - - 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("giomqo", "pepiaeapfs", - new EvaluateDeploymentPoliciesRequest() - .withDeployments( - Arrays - .asList( - new EvaluateDeploymentPoliciesDeployment().withName("gdtpe") - .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("acyh") - .withFormat("wbpqqncjubkhjoz") - .withName("mcwmbup") - .withVersion("qyvliqiipsejbsvs") - .withSource("ieswhddzydisn") - .withSourceAccount("pywyjlnld")) - .withRaiPolicyName("ttdiia")), - new EvaluateDeploymentPoliciesDeployment().withName("cqibzj") - .withProperties( - new EvaluateDeploymentPoliciesDeploymentProperties().withModel( - new DeploymentModel().withPublisher("weebiphryv") - .withFormat("wqwoqsratjhdhzyb") - .withName("ijh") - .withVersion("zgdkkagvwu") - .withSource("susmmorfmzhwi") - .withSourceAccount("zhnijmr")) - .withRaiPolicyName("lk")), - new EvaluateDeploymentPoliciesDeployment().withName("neyttl") - .withProperties( - new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("xivcbkutpumlt") - .withFormat("fluxynbpvz") - .withName("ywauyqnjckhm") - .withVersion("gjs") - .withSource("ouarhwvixqqggljk") - .withSourceAccount("sjrclrvtzq")) - .withRaiPolicyName("ctbhpjhxpcvrd")), - new EvaluateDeploymentPoliciesDeployment().withName("y") - .withProperties(new EvaluateDeploymentPoliciesDeploymentProperties() - .withModel(new DeploymentModel().withPublisher("taneqadynzja") - .withFormat("riuomzczfkic") - .withName("vsaaxwsp") - .withVersion("xikhfj") - .withSource("bglcxkxgzzromvy") - .withSourceAccount("sem")) - .withRaiPolicyName("srfsvpinkzpatqt")))), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(PolicyEvaluationOutcome.ERROR, response.results().get("yfgwewqkj").evaluationOutcome()); - Assertions.assertEquals("pvckojazbbgs", response.results().get("yfgwewqkj").errorMessage()); - Assertions.assertEquals("subzp", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).assignmentId()); - Assertions.assertEquals("vdylytcovqseusrf", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).policyDefinitionId()); - Assertions.assertEquals("d", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).policySetDefinitionId()); - Assertions.assertEquals(PolicyEvaluationOutcome.NON_COMPLIANT, - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).evaluationOutcome()); - Assertions.assertEquals("nxmlbmuoswk", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).nonComplianceReason()); - Assertions.assertEquals("dihdcyyyzlwhb", - response.results().get("yfgwewqkj").nonCompliantAssignments().get(0).effect()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java index 360864cfc774..99682ffec1c1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListSkusWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class AccountsListSkusWithResponseMockTests { @Test public void testListSkusWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"resourceType\":\"jhvvlrlo\",\"sku\":{\"name\":\"wjjmajnkdflqi\",\"tier\":\"Enterprise\",\"size\":\"aeqkzfzqxjoshoh\",\"family\":\"tryegpkh\",\"capacity\":79529746}},{\"resourceType\":\"xznlwkbfokxk\",\"sku\":{\"name\":\"p\",\"tier\":\"Premium\",\"size\":\"fgjblcd\",\"family\":\"yfcemftz\",\"capacity\":226597669}},{\"resourceType\":\"y\",\"sku\":{\"name\":\"ugekdfqn\",\"tier\":\"Free\",\"size\":\"do\",\"family\":\"czfjjnn\",\"capacity\":351138135}},{\"resourceType\":\"kkmhm\",\"sku\":{\"name\":\"lwe\",\"tier\":\"Free\",\"size\":\"ifrhjulrsul\",\"family\":\"pflu\",\"capacity\":1134501499}}]}"; + = "{\"value\":[{\"resourceType\":\"gtvxbyj\",\"sku\":{\"name\":\"epubdp\",\"tier\":\"Free\",\"size\":\"vgxiaodetvo\",\"family\":\"xdxuwsaifmc\",\"capacity\":1038455263}},{\"resourceType\":\"bzlehgc\",\"sku\":{\"name\":\"bcknjolgj\",\"tier\":\"Premium\",\"size\":\"velsz\",\"family\":\"qzevxoqeint\",\"capacity\":109280308}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,15 @@ public void testListSkusWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - AccountSkuListResult response - = manager.accounts().listSkusWithResponse("awi", "bmom", com.azure.core.util.Context.NONE).getValue(); + AccountSkuListResult response = manager.accounts() + .listSkusWithResponse("oksqdt", "wlwxlboncqbazqic", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals("jhvvlrlo", response.value().get(0).resourceType()); - Assertions.assertEquals("wjjmajnkdflqi", response.value().get(0).sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.value().get(0).sku().tier()); - Assertions.assertEquals("aeqkzfzqxjoshoh", response.value().get(0).sku().size()); - Assertions.assertEquals("tryegpkh", response.value().get(0).sku().family()); - Assertions.assertEquals(79529746, response.value().get(0).sku().capacity()); + Assertions.assertEquals("gtvxbyj", response.value().get(0).resourceType()); + Assertions.assertEquals("epubdp", response.value().get(0).sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.value().get(0).sku().tier()); + Assertions.assertEquals("vgxiaodetvo", response.value().get(0).sku().size()); + Assertions.assertEquals("xdxuwsaifmc", response.value().get(0).sku().family()); + Assertions.assertEquals(1038455263, response.value().get(0).sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java index e724d5d269db..804c49305c4a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountsListUsagesWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class AccountsListUsagesWithResponseMockTests { @Test public void testListUsagesWithResponse() throws Exception { String responseStr - = "{\"nextLink\":\"pcqydeykvsk\",\"value\":[{\"unit\":\"Bytes\",\"name\":{\"value\":\"eizikgqaboohxbms\",\"localizedValue\":\"cqsxrmdvewu\"},\"quotaPeriod\":\"aeohpjhgejkbvhh\",\"limit\":36.396393370026814,\"currentValue\":16.961813759748978,\"nextResetTime\":\"xaex\",\"status\":\"Unknown\",\"scopeType\":\"Global\",\"scopeId\":\"joezlqxrkdknkobe\"},{\"unit\":\"Bytes\",\"name\":{\"value\":\"z\",\"localizedValue\":\"tzamicbig\"},\"quotaPeriod\":\"dgzsez\",\"limit\":14.188725307797224,\"currentValue\":75.54402214953816,\"nextResetTime\":\"raabmdlqjb\",\"status\":\"InOverage\",\"scopeType\":\"Global\",\"scopeId\":\"lhupmomihzbdnpxp\"},{\"unit\":\"CountPerSecond\",\"name\":{\"value\":\"eyxel\",\"localizedValue\":\"cghf\"},\"quotaPeriod\":\"ufssjyghsfxr\",\"limit\":78.65387903381382,\"currentValue\":49.44907921858409,\"nextResetTime\":\"qfmefgvqcpdwj\",\"status\":\"InOverage\",\"scopeType\":\"Classic\",\"scopeId\":\"ysla\"}]}"; + = "{\"nextLink\":\"r\",\"value\":[{\"unit\":\"Percent\",\"name\":{\"value\":\"qb\",\"localizedValue\":\"vafjrqpjiyrqj\"},\"quotaPeriod\":\"gaxwmzwdfkbnrzo\",\"limit\":24.369436458476134,\"currentValue\":14.56047357127238,\"nextResetTime\":\"tqjfgxxsaet\",\"status\":\"Blocked\",\"scopeType\":\"DataZone\",\"scopeId\":\"yig\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,19 @@ public void testListUsagesWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); UsageListResult response = manager.accounts() - .listUsagesWithResponse("wmh", "gzotfriyrgkoekvz", "xxyxhighctxbxm", com.azure.core.util.Context.NONE) + .listUsagesWithResponse("ljgl", "o", "lqwa", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pcqydeykvsk", response.nextLink()); - Assertions.assertEquals(UnitType.BYTES, response.value().get(0).unit()); - Assertions.assertEquals("eizikgqaboohxbms", response.value().get(0).name().value()); - Assertions.assertEquals("cqsxrmdvewu", response.value().get(0).name().localizedValue()); - Assertions.assertEquals("aeohpjhgejkbvhh", response.value().get(0).quotaPeriod()); - Assertions.assertEquals(36.396393370026814D, response.value().get(0).limit()); - Assertions.assertEquals(16.961813759748978D, response.value().get(0).currentValue()); - Assertions.assertEquals("xaex", response.value().get(0).nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.UNKNOWN, response.value().get(0).status()); - Assertions.assertEquals(QuotaScopeType.GLOBAL, response.value().get(0).scopeType()); - Assertions.assertEquals("joezlqxrkdknkobe", response.value().get(0).scopeId()); + Assertions.assertEquals("r", response.nextLink()); + Assertions.assertEquals(UnitType.PERCENT, response.value().get(0).unit()); + Assertions.assertEquals("qb", response.value().get(0).name().value()); + Assertions.assertEquals("vafjrqpjiyrqj", response.value().get(0).name().localizedValue()); + Assertions.assertEquals("gaxwmzwdfkbnrzo", response.value().get(0).quotaPeriod()); + Assertions.assertEquals(24.369436458476134D, response.value().get(0).limit()); + Assertions.assertEquals(14.56047357127238D, response.value().get(0).currentValue()); + Assertions.assertEquals("tqjfgxxsaet", response.value().get(0).nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.BLOCKED, response.value().get(0).status()); + Assertions.assertEquals(QuotaScopeType.DATA_ZONE, response.value().get(0).scopeType()); + Assertions.assertEquals("yig", response.value().get(0).scopeId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableWithResponseMockTests.java index 6175c3edfd4f..4522fb259b80 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsDisableWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDisableWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentApplications() - .disableWithResponse("lbadp", "sjdle", "jvm", "vl", com.azure.core.util.Context.NONE); + .disableWithResponse("ybriop", "weoftnorw", "igsioctqkm", "ja", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableWithResponseMockTests.java index bc20e17d8310..9c9af19c094c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsEnableWithResponseMockTests.java @@ -28,7 +28,8 @@ public void testEnableWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentApplications() - .enableWithResponse("vuqoqjrkblndyc", "wgycvtqnzjc", "qqzhem", "tbwn", com.azure.core.util.Context.NONE); + .enableWithResponse("kmfngpmillxgjs", "izwgsoriobijeiyd", "euynh", "okayrg", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsWithResponseMockTests.java index 6d08dee168b5..0da39717c34e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentApplicationsListAgentsWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class AgentApplicationsListAgentsWithResponseMockTests { @Test public void testListAgentsWithResponse() throws Exception { String responseStr - = "{\"nextLink\":\"ftyaphq\",\"value\":[{\"properties\":{\"agentId\":\"tlsnlowmcmc\",\"agentName\":\"xuanccqvjfdgfq\"},\"id\":\"quxpjhcfaara\",\"name\":\"ci\",\"type\":\"vmufzgug\"},{\"properties\":{\"agentId\":\"lwalaossnqe\",\"agentName\":\"otbptg\"},\"id\":\"manxx\",\"name\":\"wqfmdqecvta\",\"type\":\"qwzmnobfewwpsibx\"}]}"; + = "{\"nextLink\":\"erbgpxeb\",\"value\":[{\"properties\":{\"agentId\":\"caytujraxdtpryj\",\"agentName\":\"tnsewou\"},\"id\":\"yms\",\"name\":\"vyljurkeposehqq\",\"type\":\"lmpctwj\"},{\"properties\":{\"agentId\":\"sdlzm\",\"agentName\":\"erxxxoteehkhowgo\"},\"id\":\"vhxowpcbapnpxra\",\"name\":\"awbmpsp\",\"type\":\"eylqlocvvujexayg\"},{\"properties\":{\"agentId\":\"rkgjnmzpaslavxjf\",\"agentName\":\"o\"},\"id\":\"ieidzlv\",\"name\":\"sqywjopacky\",\"type\":\"ydv\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testListAgentsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AgentReferenceResourceArmPaginatedResult response = manager.agentApplications() - .listAgentsWithResponse("qid", "imlgbbfjmdg", "v", "lhmpm", com.azure.core.util.Context.NONE) + .listAgentsWithResponse("ryldsxeb", "hsxrznmgsdaluyc", "hefr", "hs", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ftyaphq", response.nextLink()); - Assertions.assertEquals("tlsnlowmcmc", response.value().get(0).properties().agentId()); - Assertions.assertEquals("xuanccqvjfdgfq", response.value().get(0).properties().agentName()); + Assertions.assertEquals("erbgpxeb", response.nextLink()); + Assertions.assertEquals("caytujraxdtpryj", response.value().get(0).properties().agentId()); + Assertions.assertEquals("tnsewou", response.value().get(0).properties().agentName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentInnerTests.java index 26f4562a4d34..de86d1638825 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentInnerTests.java @@ -20,55 +20,46 @@ public final class AgentDeploymentInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentDeploymentInner model = BinaryData.fromString( - "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"xawqy\",\"deploymentId\":\"lhdyzmyckzex\",\"state\":\"Stopped\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"ymx\"},{\"protocol\":\"A2A\",\"version\":\"jkdtfoh\"},{\"protocol\":\"A2A\",\"version\":\"zvkiwrsiwdy\"}],\"agents\":[{\"agentVersion\":\"ykcrraue\",\"agentId\":\"csuehogddac\",\"agentName\":\"bgydlqidywm\"},{\"agentVersion\":\"ptyrilkfbnrqqxv\",\"agentId\":\"pbnfnqtx\",\"agentName\":\"omals\"},{\"agentVersion\":\"nfddepldwqjns\",\"agentId\":\"ygleexa\",\"agentName\":\"mywhsb\"},{\"agentVersion\":\"arycsjjzyvoaqa\",\"agentId\":\"vehzp\",\"agentName\":\"mk\"}],\"provisioningState\":\"Failed\",\"description\":\"mpfu\",\"tags\":{\"krvfyifkdschl\":\"efgybpmfbfununmp\"}},\"id\":\"fict\",\"name\":\"kjjwgcwn\",\"type\":\"hbkgfyrt\"}") + "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"qwodiffjx\",\"deploymentId\":\"rmmuabwibvjo\",\"state\":\"Deleting\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"foyzbamwineof\"},{\"protocol\":\"Responses\",\"version\":\"kpoldtvevboc\"},{\"protocol\":\"A2A\",\"version\":\"jknyu\"}],\"agents\":[{\"agentVersion\":\"txpnrupza\",\"agentId\":\"rdixt\",\"agentName\":\"kidswys\"}],\"provisioningState\":\"Creating\",\"description\":\"ffg\",\"tags\":{\"utvlxhr\":\"k\",\"bhbcdszir\":\"qhvmblcouqe\"}},\"id\":\"an\",\"name\":\"oypmbltoorm\",\"type\":\"fqlwxldykalsy\"}") .toObject(AgentDeploymentInner.class); - Assertions.assertEquals("mpfu", model.properties().description()); - Assertions.assertEquals("efgybpmfbfununmp", model.properties().tags().get("krvfyifkdschl")); - Assertions.assertEquals("xawqy", model.properties().displayName()); - Assertions.assertEquals("lhdyzmyckzex", model.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPED, model.properties().state()); + Assertions.assertEquals("ffg", model.properties().description()); + Assertions.assertEquals("k", model.properties().tags().get("utvlxhr")); + Assertions.assertEquals("qwodiffjx", model.properties().displayName()); + Assertions.assertEquals("rmmuabwibvjo", model.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETING, model.properties().state()); Assertions.assertEquals(AgentProtocol.A2A, model.properties().protocols().get(0).protocol()); - Assertions.assertEquals("ymx", model.properties().protocols().get(0).version()); - Assertions.assertEquals("csuehogddac", model.properties().agents().get(0).agentId()); - Assertions.assertEquals("bgydlqidywm", model.properties().agents().get(0).agentName()); - Assertions.assertEquals("ykcrraue", model.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("foyzbamwineof", model.properties().protocols().get(0).version()); + Assertions.assertEquals("rdixt", model.properties().agents().get(0).agentId()); + Assertions.assertEquals("kidswys", model.properties().agents().get(0).agentName()); + Assertions.assertEquals("txpnrupza", model.properties().agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AgentDeploymentInner model = new AgentDeploymentInner().withProperties(new AgentDeploymentProperties() - .withDescription("mpfu") - .withTags(mapOf("krvfyifkdschl", "efgybpmfbfununmp")) - .withDisplayName("xawqy") - .withDeploymentId("lhdyzmyckzex") - .withState(AgentDeploymentState.STOPPED) - .withProtocols(Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("ymx"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("jkdtfoh"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("zvkiwrsiwdy"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("csuehogddac") - .withAgentName("bgydlqidywm") - .withAgentVersion("ykcrraue"), - new VersionedAgentReference().withAgentId("pbnfnqtx") - .withAgentName("omals") - .withAgentVersion("ptyrilkfbnrqqxv"), - new VersionedAgentReference().withAgentId("ygleexa") - .withAgentName("mywhsb") - .withAgentVersion("nfddepldwqjns"), - new VersionedAgentReference().withAgentId("vehzp") - .withAgentName("mk") - .withAgentVersion("arycsjjzyvoaqa")))); + AgentDeploymentInner model + = new AgentDeploymentInner().withProperties(new AgentDeploymentProperties().withDescription("ffg") + .withTags(mapOf("utvlxhr", "k", "bhbcdszir", "qhvmblcouqe")) + .withDisplayName("qwodiffjx") + .withDeploymentId("rmmuabwibvjo") + .withState(AgentDeploymentState.DELETING) + .withProtocols(Arrays.asList( + new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("foyzbamwineof"), + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("kpoldtvevboc"), + new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("jknyu"))) + .withAgents(Arrays.asList(new VersionedAgentReference().withAgentId("rdixt") + .withAgentName("kidswys") + .withAgentVersion("txpnrupza")))); model = BinaryData.fromObject(model).toObject(AgentDeploymentInner.class); - Assertions.assertEquals("mpfu", model.properties().description()); - Assertions.assertEquals("efgybpmfbfununmp", model.properties().tags().get("krvfyifkdschl")); - Assertions.assertEquals("xawqy", model.properties().displayName()); - Assertions.assertEquals("lhdyzmyckzex", model.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPED, model.properties().state()); + Assertions.assertEquals("ffg", model.properties().description()); + Assertions.assertEquals("k", model.properties().tags().get("utvlxhr")); + Assertions.assertEquals("qwodiffjx", model.properties().displayName()); + Assertions.assertEquals("rmmuabwibvjo", model.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETING, model.properties().state()); Assertions.assertEquals(AgentProtocol.A2A, model.properties().protocols().get(0).protocol()); - Assertions.assertEquals("ymx", model.properties().protocols().get(0).version()); - Assertions.assertEquals("csuehogddac", model.properties().agents().get(0).agentId()); - Assertions.assertEquals("bgydlqidywm", model.properties().agents().get(0).agentName()); - Assertions.assertEquals("ykcrraue", model.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("foyzbamwineof", model.properties().protocols().get(0).version()); + Assertions.assertEquals("rdixt", model.properties().agents().get(0).agentId()); + Assertions.assertEquals("kidswys", model.properties().agents().get(0).agentName()); + Assertions.assertEquals("txpnrupza", model.properties().agents().get(0).agentVersion()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentPropertiesTests.java index cbb79700fe7e..75d7be13387f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentPropertiesTests.java @@ -19,54 +19,47 @@ public final class AgentDeploymentPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentDeploymentProperties model = BinaryData.fromString( - "{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"mhmjpjs\",\"deploymentId\":\"fp\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"gwmseharxifv\"},{\"protocol\":\"Responses\",\"version\":\"tmbpjp\"},{\"protocol\":\"A2A\",\"version\":\"jhrsidqpxlb\"},{\"protocol\":\"Agent\",\"version\":\"f\"}],\"agents\":[{\"agentVersion\":\"twmykyut\",\"agentId\":\"mdwmf\",\"agentName\":\"pycvjqdvdwkqpldr\"},{\"agentVersion\":\"fgnaavuagnteta\",\"agentId\":\"tnpdctuhspfefy\",\"agentName\":\"duyeuyl\"},{\"agentVersion\":\"hmtybkcgsuthhll\",\"agentId\":\"wynefx\",\"agentName\":\"lf\"}],\"provisioningState\":\"Canceled\",\"description\":\"xtjrrlk\",\"tags\":{\"xcxscvslxlh\":\"kjhhxdlajf\"}}") + "{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"olnjpnnbmjksibj\",\"deploymentId\":\"jjxxahmrnadzyqe\",\"state\":\"Starting\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"bmh\"},{\"protocol\":\"Responses\",\"version\":\"jkgqxnhmbkez\"},{\"protocol\":\"A2A\",\"version\":\"jvaannggiycwkd\"}],\"agents\":[{\"agentVersion\":\"xw\",\"agentId\":\"ka\",\"agentName\":\"rrqmbzmqk\"},{\"agentVersion\":\"tbnxwbjsid\",\"agentId\":\"rkfpks\",\"agentName\":\"dgo\"}],\"provisioningState\":\"Canceled\",\"description\":\"jymrhbg\",\"tags\":{\"nfnzhhh\":\"zkye\",\"mffjkutycyarn\":\"o\",\"pyc\":\"oohguabzoghkt\"}}") .toObject(AgentDeploymentProperties.class); - Assertions.assertEquals("xtjrrlk", model.description()); - Assertions.assertEquals("kjhhxdlajf", model.tags().get("xcxscvslxlh")); - Assertions.assertEquals("mhmjpjs", model.displayName()); - Assertions.assertEquals("fp", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("gwmseharxifv", model.protocols().get(0).version()); - Assertions.assertEquals("mdwmf", model.agents().get(0).agentId()); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.agents().get(0).agentName()); - Assertions.assertEquals("twmykyut", model.agents().get(0).agentVersion()); + Assertions.assertEquals("jymrhbg", model.description()); + Assertions.assertEquals("zkye", model.tags().get("nfnzhhh")); + Assertions.assertEquals("olnjpnnbmjksibj", model.displayName()); + Assertions.assertEquals("jjxxahmrnadzyqe", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); + Assertions.assertEquals("bmh", model.protocols().get(0).version()); + Assertions.assertEquals("ka", model.agents().get(0).agentId()); + Assertions.assertEquals("rrqmbzmqk", model.agents().get(0).agentName()); + Assertions.assertEquals("xw", model.agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AgentDeploymentProperties model - = new AgentDeploymentProperties().withDescription("xtjrrlk") - .withTags(mapOf("xcxscvslxlh", "kjhhxdlajf")) - .withDisplayName("mhmjpjs") - .withDeploymentId("fp") - .withState(AgentDeploymentState.RUNNING) - .withProtocols(Arrays.asList( - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("gwmseharxifv"), - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("tmbpjp"), - new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("jhrsidqpxlb"), - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("f"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("mdwmf") - .withAgentName("pycvjqdvdwkqpldr") - .withAgentVersion("twmykyut"), - new VersionedAgentReference().withAgentId("tnpdctuhspfefy") - .withAgentName("duyeuyl") - .withAgentVersion("fgnaavuagnteta"), - new VersionedAgentReference().withAgentId("wynefx") - .withAgentName("lf") - .withAgentVersion("hmtybkcgsuthhll"))); + AgentDeploymentProperties model = new AgentDeploymentProperties().withDescription("jymrhbg") + .withTags(mapOf("nfnzhhh", "zkye", "mffjkutycyarn", "o", "pyc", "oohguabzoghkt")) + .withDisplayName("olnjpnnbmjksibj") + .withDeploymentId("jjxxahmrnadzyqe") + .withState(AgentDeploymentState.STARTING) + .withProtocols( + Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("bmh"), + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("jkgqxnhmbkez"), + new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("jvaannggiycwkd"))) + .withAgents(Arrays.asList( + new VersionedAgentReference().withAgentId("ka").withAgentName("rrqmbzmqk").withAgentVersion("xw"), + new VersionedAgentReference().withAgentId("rkfpks") + .withAgentName("dgo") + .withAgentVersion("tbnxwbjsid"))); model = BinaryData.fromObject(model).toObject(AgentDeploymentProperties.class); - Assertions.assertEquals("xtjrrlk", model.description()); - Assertions.assertEquals("kjhhxdlajf", model.tags().get("xcxscvslxlh")); - Assertions.assertEquals("mhmjpjs", model.displayName()); - Assertions.assertEquals("fp", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("gwmseharxifv", model.protocols().get(0).version()); - Assertions.assertEquals("mdwmf", model.agents().get(0).agentId()); - Assertions.assertEquals("pycvjqdvdwkqpldr", model.agents().get(0).agentName()); - Assertions.assertEquals("twmykyut", model.agents().get(0).agentVersion()); + Assertions.assertEquals("jymrhbg", model.description()); + Assertions.assertEquals("zkye", model.tags().get("nfnzhhh")); + Assertions.assertEquals("olnjpnnbmjksibj", model.displayName()); + Assertions.assertEquals("jjxxahmrnadzyqe", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); + Assertions.assertEquals("bmh", model.protocols().get(0).version()); + Assertions.assertEquals("ka", model.agents().get(0).agentId()); + Assertions.assertEquals("rrqmbzmqk", model.agents().get(0).agentName()); + Assertions.assertEquals("xw", model.agents().get(0).agentVersion()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentResourceArmPaginatedResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentResourceArmPaginatedResultTests.java index cb1f770b27c8..afb6499b2542 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,19 @@ public final class AgentDeploymentResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentDeploymentResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"arvsx\",\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"lcjkayspthzodub\",\"deploymentId\":\"mjtgblioskkfmkm\",\"state\":\"Stopping\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"kkqvjcteoedl\"},{\"protocol\":\"Agent\",\"version\":\"kk\"},{\"protocol\":\"Agent\",\"version\":\"jnzdpvocojhpcna\"},{\"protocol\":\"Agent\",\"version\":\"snggytexvzilmhiv\"}],\"agents\":[{\"agentVersion\":\"wncknr\",\"agentId\":\"ajlskzptj\",\"agentName\":\"lwe\"},{\"agentVersion\":\"yrth\",\"agentId\":\"lehmcgcjeinueho\",\"agentName\":\"mvfejvqnttmbqd\"}],\"provisioningState\":\"Failed\",\"description\":\"ivfokpysthhzagj\",\"tags\":{\"g\":\"yrl\",\"qszllrz\":\"nuzejgvkveb\",\"gmihzpimcqr\":\"smmd\"}},\"id\":\"xtminklogxsvtzar\",\"name\":\"zvqnsqktcmbjwzzo\",\"type\":\"lpky\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"glwkzpgajsqj\",\"deploymentId\":\"mqbmfuvqarwz\",\"state\":\"Stopped\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"immbwxsfgtdm\"},{\"protocol\":\"A2A\",\"version\":\"kraokq\"},{\"protocol\":\"A2A\",\"version\":\"btwa\"}],\"agents\":[{\"agentVersion\":\"vlyttaaknwfrke\",\"agentId\":\"mhpdu\",\"agentName\":\"igatolekscbctna\"},{\"agentVersion\":\"imwbzxpdcldpk\",\"agentId\":\"n\",\"agentName\":\"laimouxwk\"}],\"provisioningState\":\"Canceled\",\"description\":\"dmfcoibicziusws\",\"tags\":{\"fwbivqvo\":\"kbqsjhbtqqvyfscy\"}},\"id\":\"uyzwvbhlimbyqecr\",\"name\":\"odlikcdrdaasax\",\"type\":\"obsmf\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"iyjvz\",\"deploymentId\":\"osrnawnvzmlnkoy\",\"state\":\"Stopped\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"qqax\"},{\"protocol\":\"Responses\",\"version\":\"mc\"}],\"agents\":[{\"agentVersion\":\"doabhj\",\"agentId\":\"xqweu\",\"agentName\":\"mp\"},{\"agentVersion\":\"smitnsqxtlt\",\"agentId\":\"krdpqgfhyrfr\",\"agentName\":\"kldgrcwfcmfc\"},{\"agentVersion\":\"jajqmatxjt\",\"agentId\":\"ln\",\"agentName\":\"gxxgfb\"}],\"provisioningState\":\"Updating\",\"description\":\"pqagynoiprn\",\"tags\":{\"ryqxzxa\":\"lin\"}},\"id\":\"ibmq\",\"name\":\"miymqruqguhfupet\",\"type\":\"svvoqsbpkflanfk\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"syaowuzowp\",\"deploymentId\":\"hdkcprgu\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"hlutixmqrudjizc\"},{\"protocol\":\"Agent\",\"version\":\"crunfhi\"},{\"protocol\":\"A2A\",\"version\":\"fbcpaqktkrumzu\"},{\"protocol\":\"A2A\",\"version\":\"zbfvxovqkxiu\"}],\"agents\":[{\"agentVersion\":\"vqrnhyhlwcjsqgg\",\"agentId\":\"ffbxrqrkij\",\"agentName\":\"uqlsdx\"},{\"agentVersion\":\"ztv\",\"agentId\":\"mwwmjswenaww\",\"agentName\":\"ecleqioulndhzyo\"},{\"agentVersion\":\"jhtollh\",\"agentId\":\"idmytzln\",\"agentName\":\"xpno\"},{\"agentVersion\":\"oanfbcswqagyw\",\"agentId\":\"xigvjrktpgaeuk\",\"agentName\":\"wohpmwhqnucs\"}],\"provisioningState\":\"Creating\",\"description\":\"i\",\"tags\":{\"njg\":\"tdlpbn\",\"jcciklhsyek\":\"zlsvbzfcpuoeed\"}},\"id\":\"renxolriyehqbe\",\"name\":\"vdlhydwbdbfgr\",\"type\":\"punytjl\"}]}") + "{\"nextLink\":\"eyu\",\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"y\",\"deploymentId\":\"xra\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"mr\"},{\"protocol\":\"Responses\",\"version\":\"apx\"}],\"agents\":[{\"agentVersion\":\"jjk\",\"agentId\":\"jbuscg\",\"agentName\":\"u\"}],\"provisioningState\":\"Succeeded\",\"description\":\"cblevpmc\",\"tags\":{\"sjgkzzltafh\":\"yxkyxlz\"}},\"id\":\"ffovwmbjlzqsczp\",\"name\":\"vdwnapfdqwowft\",\"type\":\"tnuwjtkschgc\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"y\",\"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\"}},\"id\":\"eqy\",\"name\":\"kceysfaqegplw\",\"type\":\"ysh\"},{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"d\",\"deploymentId\":\"bxgkqusy\",\"state\":\"Failed\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"rvv\"},{\"protocol\":\"Responses\",\"version\":\"ymtpo\"},{\"protocol\":\"A2A\",\"version\":\"azerohzrsq\"}],\"agents\":[{\"agentVersion\":\"kdnwqapfgsdpcve\",\"agentId\":\"mzhhkuuipldqqc\",\"agentName\":\"kva\"},{\"agentVersion\":\"l\",\"agentId\":\"jqvq\",\"agentName\":\"wehtaemxh\"},{\"agentVersion\":\"ysev\",\"agentId\":\"xivzrrry\",\"agentName\":\"imipskdyzatvfuz\"},{\"agentVersion\":\"ftjvvruxwigsye\",\"agentId\":\"qdsmjtg\",\"agentName\":\"gdgkki\"}],\"provisioningState\":\"Updating\",\"description\":\"kcsmk\",\"tags\":{\"oygbdgwumgxd\":\"tbbaedorvvmqf\",\"bgd\":\"dhp\",\"vjsaqwotm\":\"xjd\",\"xaptefhexcgjok\":\"wllcolsr\"}},\"id\":\"jnhvlqjbekpeeks\",\"name\":\"bksdqhjvyklxesl\",\"type\":\"hhus\"}]}") .toObject(AgentDeploymentResourceArmPaginatedResult.class); - Assertions.assertEquals("arvsx", model.nextLink()); - Assertions.assertEquals("ivfokpysthhzagj", model.value().get(0).properties().description()); - Assertions.assertEquals("yrl", model.value().get(0).properties().tags().get("g")); - Assertions.assertEquals("lcjkayspthzodub", model.value().get(0).properties().displayName()); - Assertions.assertEquals("mjtgblioskkfmkm", model.value().get(0).properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.STOPPING, model.value().get(0).properties().state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.value().get(0).properties().protocols().get(0).protocol()); - Assertions.assertEquals("kkqvjcteoedl", model.value().get(0).properties().protocols().get(0).version()); - Assertions.assertEquals("ajlskzptj", model.value().get(0).properties().agents().get(0).agentId()); - Assertions.assertEquals("lwe", model.value().get(0).properties().agents().get(0).agentName()); - Assertions.assertEquals("wncknr", model.value().get(0).properties().agents().get(0).agentVersion()); + Assertions.assertEquals("eyu", model.nextLink()); + Assertions.assertEquals("cblevpmc", model.value().get(0).properties().description()); + Assertions.assertEquals("yxkyxlz", model.value().get(0).properties().tags().get("sjgkzzltafh")); + Assertions.assertEquals("y", model.value().get(0).properties().displayName()); + Assertions.assertEquals("xra", model.value().get(0).properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.RUNNING, model.value().get(0).properties().state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, + model.value().get(0).properties().protocols().get(0).protocol()); + Assertions.assertEquals("mr", model.value().get(0).properties().protocols().get(0).version()); + Assertions.assertEquals("jbuscg", model.value().get(0).properties().agents().get(0).agentId()); + Assertions.assertEquals("u", model.value().get(0).properties().agents().get(0).agentName()); + Assertions.assertEquals("jjk", model.value().get(0).properties().agents().get(0).agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateMockTests.java index 72eb430cbcaa..098122cbf032 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsCreateOrUpdateMockTests.java @@ -29,7 +29,7 @@ public final class AgentDeploymentsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"amoaxcaytnpk\",\"deploymentId\":\"pbltc\",\"state\":\"Failed\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"cnqoubvepvlryszf\"},{\"protocol\":\"A2A\",\"version\":\"fhxohz\"},{\"protocol\":\"A2A\",\"version\":\"avzfuxnv\"}],\"agents\":[{\"agentVersion\":\"cofuvtfu\",\"agentId\":\"ouisakl\",\"agentName\":\"fddxqfussub\"},{\"agentVersion\":\"spmjvailfauyv\",\"agentId\":\"q\",\"agentName\":\"kqdgwbztrth\"}],\"provisioningState\":\"Succeeded\",\"description\":\"og\",\"tags\":{\"btofcvxkyl\":\"jdhgslorm\",\"m\":\"cnsdy\",\"tmsgkwedwl\":\"qunkygb\"}},\"id\":\"zhgbgbhudh\",\"name\":\"pjimvrrqfibpkwm\",\"type\":\"mrlfizjuddndi\"}"; + = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"tkqowsd\",\"deploymentId\":\"hczygpmg\",\"state\":\"Stopping\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"hylxdevfiyymo\"},{\"protocol\":\"Agent\",\"version\":\"ybwjmtftc\"}],\"agents\":[{\"agentVersion\":\"irupkqnstpaqpi\",\"agentId\":\"gbv\",\"agentName\":\"mehfxrttxbm\"},{\"agentVersion\":\"nn\",\"agentId\":\"abqcamal\",\"agentName\":\"tcxsfmbzdxmsyn\"}],\"provisioningState\":\"Succeeded\",\"description\":\"nyufxuzmsvzyq\",\"tags\":{\"ara\":\"nxhjtlxfikjk\",\"xbozpcjcnwjz\":\"wwuasnjeglht\",\"oq\":\"qblxrnwvds\",\"jxsawooau\":\"zawwsdsorgf\"}},\"id\":\"hxfqkmw\",\"name\":\"rdqyoybm\",\"type\":\"n\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,30 +39,42 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AgentDeployment response = manager.agentDeployments() - .define("gkaxnypr") - .withExistingApplication("wpmohnrtlikffyd", "tkqrfbgyn", "fwvzdteqjm", "qxu") - .withProperties(new AgentDeploymentProperties().withDescription("ccklzhzn") - .withTags(mapOf("tigpksywicklktg", "lxyxmn")) - .withDisplayName("yo") - .withDeploymentId("jxbsowrrl") - .withState(AgentDeploymentState.STOPPED) + .define("smihrijezbfsjwfc") + .withExistingApplication("ruholae", "wcgi", "mrimaabsqql", "nbzaowcahdkmb") + .withProperties(new AgentDeploymentProperties().withDescription("xmpzzwahd") + .withTags(mapOf("kx", "haz", "gxmbrygmwibiosiq", "ivz", "fdaglmrcokzzert", "ykqfdqwdrtx")) + .withDisplayName("lkvbgukbsv") + .withDeploymentId("yotygnb") + .withState(AgentDeploymentState.DELETING) .withProtocols( - Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("ms"))) - .withAgents(Arrays.asList(new VersionedAgentReference().withAgentId("vibzicy") - .withAgentName("chcaptkhjxnrk") - .withAgentVersion("mqomxoalknuy")))) + Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("ax"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("asp"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("ucszgh"))) + .withAgents(Arrays.asList( + new VersionedAgentReference().withAgentId("nxclfrsbzrnmuv") + .withAgentName("pu") + .withAgentVersion("i"), + new VersionedAgentReference().withAgentId("aoy") + .withAgentName("fvgyxzmxynofxl") + .withAgentVersion("ddtbfmekjcnginxd"), + new VersionedAgentReference().withAgentId("krpskcjhmm") + .withAgentName("bnivdqtkykp") + .withAgentVersion("xoqxtdnzujsj"), + new VersionedAgentReference().withAgentId("tbzetxyg") + .withAgentName("iceecvjwy") + .withAgentVersion("nlsfgnyscac")))) .create(); - Assertions.assertEquals("og", response.properties().description()); - Assertions.assertEquals("jdhgslorm", response.properties().tags().get("btofcvxkyl")); - Assertions.assertEquals("amoaxcaytnpk", response.properties().displayName()); - Assertions.assertEquals("pbltc", response.properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.FAILED, response.properties().state()); - Assertions.assertEquals(AgentProtocol.RESPONSES, response.properties().protocols().get(0).protocol()); - Assertions.assertEquals("cnqoubvepvlryszf", response.properties().protocols().get(0).version()); - Assertions.assertEquals("ouisakl", response.properties().agents().get(0).agentId()); - Assertions.assertEquals("fddxqfussub", response.properties().agents().get(0).agentName()); - Assertions.assertEquals("cofuvtfu", response.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("nyufxuzmsvzyq", response.properties().description()); + Assertions.assertEquals("nxhjtlxfikjk", response.properties().tags().get("ara")); + Assertions.assertEquals("tkqowsd", response.properties().displayName()); + Assertions.assertEquals("hczygpmg", response.properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STOPPING, response.properties().state()); + Assertions.assertEquals(AgentProtocol.AGENT, response.properties().protocols().get(0).protocol()); + Assertions.assertEquals("hylxdevfiyymo", response.properties().protocols().get(0).version()); + Assertions.assertEquals("gbv", response.properties().agents().get(0).agentId()); + Assertions.assertEquals("mehfxrttxbm", response.properties().agents().get(0).agentName()); + Assertions.assertEquals("irupkqnstpaqpi", response.properties().agents().get(0).agentVersion()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetWithResponseMockTests.java index 0adae81d8568..3dadb1a7a6b4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class AgentDeploymentsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"qswxhqhgkhtbzvul\",\"deploymentId\":\"vvjncpmyhtxgdmv\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"wkfefbcyjr\"},{\"protocol\":\"Responses\",\"version\":\"eebu\"}],\"agents\":[{\"agentVersion\":\"m\",\"agentId\":\"aezktomsgoihlqw\",\"agentName\":\"waazbaeeek\"},{\"agentVersion\":\"t\",\"agentId\":\"ab\",\"agentName\":\"btownoljdkx\"},{\"agentVersion\":\"ewy\",\"agentId\":\"lclzxkrdpuy\",\"agentName\":\"bpkrpk\"}],\"provisioningState\":\"Succeeded\",\"description\":\"poenefnoafpcnrxi\",\"tags\":{\"vhufc\":\"o\",\"ozfrfawtnnsv\":\"uajwblxph\",\"qzhluctblfehbg\":\"fajynihtibufg\"}},\"id\":\"yohrcmeqljxdum\",\"name\":\"ycxone\",\"type\":\"ldxagmdfj\"}"; + = "{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"pojpsucmximcw\",\"deploymentId\":\"ynqjgsat\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"gcru\"}],\"agents\":[{\"agentVersion\":\"rcpgcvsvkkjbjolp\",\"agentId\":\"klkvuznadvh\",\"agentName\":\"ieoigowxxbh\"}],\"provisioningState\":\"Failed\",\"description\":\"ioqemqwtqszzg\",\"tags\":{\"anvmwdv\":\"ika\",\"mpnbnfgyweoj\":\"jqcrbk\",\"yawkch\":\"epgcmahiwf\"}},\"id\":\"pitskshfyftti\",\"name\":\"j\",\"type\":\"pzwhjunfdgbggc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AgentDeployment response = manager.agentDeployments() - .getWithResponse("usdmtxq", "ef", "oheywvfopky", "lreyenjpwdm", "fwtwrsvevc", + .getWithResponse("cmbpwdlu", "ayprldid", "mtffbvtzldzchuba", "wnlzuvi", "vlghfrbzakpjtcqr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("poenefnoafpcnrxi", response.properties().description()); - Assertions.assertEquals("o", response.properties().tags().get("vhufc")); - Assertions.assertEquals("qswxhqhgkhtbzvul", response.properties().displayName()); - Assertions.assertEquals("vvjncpmyhtxgdmv", response.properties().deploymentId()); + Assertions.assertEquals("ioqemqwtqszzg", response.properties().description()); + Assertions.assertEquals("ika", response.properties().tags().get("anvmwdv")); + Assertions.assertEquals("pojpsucmximcw", response.properties().displayName()); + Assertions.assertEquals("ynqjgsat", response.properties().deploymentId()); Assertions.assertEquals(AgentDeploymentState.UPDATING, response.properties().state()); Assertions.assertEquals(AgentProtocol.AGENT, response.properties().protocols().get(0).protocol()); - Assertions.assertEquals("wkfefbcyjr", response.properties().protocols().get(0).version()); - Assertions.assertEquals("aezktomsgoihlqw", response.properties().agents().get(0).agentId()); - Assertions.assertEquals("waazbaeeek", response.properties().agents().get(0).agentName()); - Assertions.assertEquals("m", response.properties().agents().get(0).agentVersion()); + Assertions.assertEquals("gcru", response.properties().protocols().get(0).version()); + Assertions.assertEquals("klkvuznadvh", response.properties().agents().get(0).agentId()); + Assertions.assertEquals("ieoigowxxbh", response.properties().agents().get(0).agentName()); + Assertions.assertEquals("rcpgcvsvkkjbjolp", response.properties().agents().get(0).agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListMockTests.java index 8054a42df58e..e6a59e016e1a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsListMockTests.java @@ -25,7 +25,7 @@ public final class AgentDeploymentsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"od\",\"deploymentId\":\"ovnlhrwya\",\"state\":\"Updating\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"xsvdeatjiobnirg\"},{\"protocol\":\"Responses\",\"version\":\"qdnwtgntimznupbm\"},{\"protocol\":\"Responses\",\"version\":\"tkodsqvhedaakg\"},{\"protocol\":\"Agent\",\"version\":\"mmm\"}],\"agents\":[{\"agentVersion\":\"hdgdiwmlgstmfet\",\"agentId\":\"isjmo\",\"agentName\":\"caqfkakh\"},{\"agentVersion\":\"rvty\",\"agentId\":\"vytvjejq\",\"agentName\":\"fu\"},{\"agentVersion\":\"pfzxkczbdypbbim\",\"agentId\":\"bozvo\",\"agentName\":\"tclnh\"}],\"provisioningState\":\"Creating\",\"description\":\"uzlybqs\",\"tags\":{\"awvcnviulbylmg\":\"vylkvckcafnwq\",\"bgumwhmxpuckns\":\"zrycw\",\"lpsm\":\"s\"}},\"id\":\"micttrvl\",\"name\":\"vjmxokxxamq\",\"type\":\"cjrzvlcivqx\"}]}"; + = "{\"value\":[{\"properties\":{\"deploymentType\":\"AgentDeploymentProperties\",\"displayName\":\"hpsapzupz\",\"deploymentId\":\"ytbdjzgh\",\"state\":\"Deleting\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"pqkjnpyriwntotcx\"},{\"protocol\":\"Responses\",\"version\":\"tsjk\"},{\"protocol\":\"Agent\",\"version\":\"xwdonbexftedau\"}],\"agents\":[{\"agentVersion\":\"gg\",\"agentId\":\"rnqtlfozuumrtgj\",\"agentName\":\"acan\"},{\"agentVersion\":\"syxzxjmkanbc\",\"agentId\":\"zofmexvtemaspm\",\"agentName\":\"ydscdkxwd\"}],\"provisioningState\":\"Canceled\",\"description\":\"bhaah\",\"tags\":{\"fixoskk\":\"felfh\"}},\"id\":\"fivsujybsr\",\"name\":\"zzmrgtxdhmfpp\",\"type\":\"nmgikesmkw\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,21 +35,21 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.agentDeployments() - .list("cngkwxjsjqu", "ohufzdtsrpjuvgz", "crzhnsbylg", "gbhuqczou", 1382619109, "bfulvcx", - Arrays.asList("xoqwbztilqbzbwbg"), "zhbhfl", true, com.azure.core.util.Context.NONE); + .list("x", "hblivwehsudym", "mbhdo", "m", 1195480810, "gkqlgxzdu", + Arrays.asList("dmxexatmdmnrsenx", "irxyddmiploisj"), "zsoxznntwgk", true, + com.azure.core.util.Context.NONE); - Assertions.assertEquals("uzlybqs", response.iterator().next().properties().description()); - Assertions.assertEquals("vylkvckcafnwq", response.iterator().next().properties().tags().get("awvcnviulbylmg")); - Assertions.assertEquals("od", response.iterator().next().properties().displayName()); - Assertions.assertEquals("ovnlhrwya", response.iterator().next().properties().deploymentId()); - Assertions.assertEquals(AgentDeploymentState.UPDATING, response.iterator().next().properties().state()); - Assertions.assertEquals(AgentProtocol.AGENT, + Assertions.assertEquals("bhaah", response.iterator().next().properties().description()); + Assertions.assertEquals("felfh", response.iterator().next().properties().tags().get("fixoskk")); + Assertions.assertEquals("hpsapzupz", response.iterator().next().properties().displayName()); + Assertions.assertEquals("ytbdjzgh", response.iterator().next().properties().deploymentId()); + Assertions.assertEquals(AgentDeploymentState.DELETING, response.iterator().next().properties().state()); + Assertions.assertEquals(AgentProtocol.A2A, response.iterator().next().properties().protocols().get(0).protocol()); - Assertions.assertEquals("xsvdeatjiobnirg", + Assertions.assertEquals("pqkjnpyriwntotcx", response.iterator().next().properties().protocols().get(0).version()); - Assertions.assertEquals("isjmo", response.iterator().next().properties().agents().get(0).agentId()); - Assertions.assertEquals("caqfkakh", response.iterator().next().properties().agents().get(0).agentName()); - Assertions.assertEquals("hdgdiwmlgstmfet", - response.iterator().next().properties().agents().get(0).agentVersion()); + Assertions.assertEquals("rnqtlfozuumrtgj", response.iterator().next().properties().agents().get(0).agentId()); + Assertions.assertEquals("acan", response.iterator().next().properties().agents().get(0).agentName()); + Assertions.assertEquals("gg", response.iterator().next().properties().agents().get(0).agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStartWithResponseMockTests.java index c0e9d8eece49..a962b7926614 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,8 +28,7 @@ public void testStartWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentDeployments() - .startWithResponse("emklphx", "wwlojkbgnf", "rzjv", "sunhaevlah", "czywywuahwc", - com.azure.core.util.Context.NONE); + .startWithResponse("zgfragjh", "erxlobk", "btqhvmmniiqyhol", "jn", "kb", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopWithResponseMockTests.java index 64370d789ecd..3127802628a9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentDeploymentsStopWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testStopWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.agentDeployments() - .stopWithResponse("rewcnnaaxqjfda", "rfgimomggewdqbxe", "fyznvussuqksl", "sfx", "yzqbye", + .stopWithResponse("gicnqwlctmwpblx", "rkqgvxrk", "jcjigcwtspa", "bqxasevchefpgee", "yy", 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 ed61606f144e..6ab7b9b6b728 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentProtocolVersionTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentProtocolVersionTests.java @@ -12,18 +12,18 @@ public final class AgentProtocolVersionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AgentProtocolVersion model = BinaryData.fromString("{\"protocol\":\"Responses\",\"version\":\"ryeyngjgv\"}") + AgentProtocolVersion model = BinaryData.fromString("{\"protocol\":\"Responses\",\"version\":\"rrslblxydkx\"}") .toObject(AgentProtocolVersion.class); Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocol()); - Assertions.assertEquals("ryeyngjgv", model.version()); + Assertions.assertEquals("rrslblxydkx", model.version()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AgentProtocolVersion model - = new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("ryeyngjgv"); + = new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("rrslblxydkx"); model = BinaryData.fromObject(model).toObject(AgentProtocolVersion.class); Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocol()); - Assertions.assertEquals("ryeyngjgv", model.version()); + Assertions.assertEquals("rrslblxydkx", model.version()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferencePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferencePropertiesTests.java index be67a63039dd..618bf239c3fb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferencePropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferencePropertiesTests.java @@ -12,18 +12,18 @@ public final class AgentReferencePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentReferenceProperties model - = BinaryData.fromString("{\"agentId\":\"qejpmvssehaepwa\",\"agentName\":\"xtczhupeuknijd\"}") + = BinaryData.fromString("{\"agentId\":\"snaquf\",\"agentName\":\"bctqhamzjrwd\"}") .toObject(AgentReferenceProperties.class); - Assertions.assertEquals("qejpmvssehaepwa", model.agentId()); - Assertions.assertEquals("xtczhupeuknijd", model.agentName()); + Assertions.assertEquals("snaquf", model.agentId()); + Assertions.assertEquals("bctqhamzjrwd", model.agentName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AgentReferenceProperties model - = new AgentReferenceProperties().withAgentId("qejpmvssehaepwa").withAgentName("xtczhupeuknijd"); + = new AgentReferenceProperties().withAgentId("snaquf").withAgentName("bctqhamzjrwd"); model = BinaryData.fromObject(model).toObject(AgentReferenceProperties.class); - Assertions.assertEquals("qejpmvssehaepwa", model.agentId()); - Assertions.assertEquals("xtczhupeuknijd", model.agentName()); + Assertions.assertEquals("snaquf", model.agentId()); + Assertions.assertEquals("bctqhamzjrwd", model.agentName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceResourceArmPaginatedResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceResourceArmPaginatedResultInnerTests.java index 5eb78ed43f4b..92f8947f8043 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceResourceArmPaginatedResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceResourceArmPaginatedResultInnerTests.java @@ -12,10 +12,10 @@ public final class AgentReferenceResourceArmPaginatedResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentReferenceResourceArmPaginatedResultInner model = BinaryData.fromString( - "{\"nextLink\":\"jkgqxnhmbkez\",\"value\":[{\"properties\":{\"agentId\":\"jvaannggiycwkd\",\"agentName\":\"awxwfek\"},\"id\":\"mrrqmbzmqkratb\",\"name\":\"xwbjs\",\"type\":\"dbirkfpksokdgo\"},{\"properties\":{\"agentId\":\"wijymr\",\"agentName\":\"guzozkyew\"},\"id\":\"nzhhhqos\",\"name\":\"ffjkutycyarnroo\",\"type\":\"g\"}]}") + "{\"nextLink\":\"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\"}]}") .toObject(AgentReferenceResourceArmPaginatedResultInner.class); - Assertions.assertEquals("jkgqxnhmbkez", model.nextLink()); - Assertions.assertEquals("jvaannggiycwkd", model.value().get(0).properties().agentId()); - Assertions.assertEquals("awxwfek", model.value().get(0).properties().agentName()); + Assertions.assertEquals("xaxmq", model.nextLink()); + Assertions.assertEquals("h", model.value().get(0).properties().agentId()); + Assertions.assertEquals("nhg", model.value().get(0).properties().agentName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceTests.java index 6e8691651ece..f1a9dd9bf7d0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AgentReferenceTests.java @@ -12,9 +12,9 @@ public final class AgentReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AgentReference model = BinaryData.fromString( - "{\"properties\":{\"agentId\":\"bzog\",\"agentName\":\"t\"},\"id\":\"yczhco\",\"name\":\"ocnhzqrottjzcfyj\",\"type\":\"pt\"}") + "{\"properties\":{\"agentId\":\"mczngn\",\"agentName\":\"xxewu\"},\"id\":\"nvudbchaqdtvqecr\",\"name\":\"ct\",\"type\":\"xxdtddmflh\"}") .toObject(AgentReference.class); - Assertions.assertEquals("bzog", model.properties().agentId()); - Assertions.assertEquals("t", model.properties().agentName()); + Assertions.assertEquals("mczngn", model.properties().agentId()); + Assertions.assertEquals("xxewu", model.properties().agentName()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ApplicationTrafficRoutingPolicyTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ApplicationTrafficRoutingPolicyTests.java index 05f6a0f4692c..96a690484f18 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ApplicationTrafficRoutingPolicyTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ApplicationTrafficRoutingPolicyTests.java @@ -15,13 +15,13 @@ public final class ApplicationTrafficRoutingPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ApplicationTrafficRoutingPolicy model = BinaryData.fromString( - "{\"protocol\":\"FixedRatio\",\"rules\":[{\"ruleId\":\"bhgau\",\"description\":\"dixmxufrsryjq\",\"deploymentId\":\"kfnozoeoqbvj\",\"trafficPercentage\":264605971},{\"ruleId\":\"gwbmqj\",\"description\":\"ntasfaymxbu\",\"deploymentId\":\"zealbmqkyo\",\"trafficPercentage\":1976793148},{\"ruleId\":\"fkmbtsuahxsgxj\",\"description\":\"mzrrscubiwsdrn\",\"deploymentId\":\"qwodiffjx\",\"trafficPercentage\":891955631}]}") + "{\"protocol\":\"FixedRatio\",\"rules\":[{\"ruleId\":\"uooqjagmdit\",\"description\":\"eiookjbsah\",\"deploymentId\":\"dt\",\"trafficPercentage\":468087914},{\"ruleId\":\"qacsl\",\"description\":\"toebnf\",\"deploymentId\":\"f\",\"trafficPercentage\":1015774661},{\"ruleId\":\"gdirazf\",\"description\":\"ejwabmdujtmvco\",\"deploymentId\":\"xcmjurbu\",\"trafficPercentage\":662695114}]}") .toObject(ApplicationTrafficRoutingPolicy.class); Assertions.assertEquals(TrafficRoutingProtocol.FIXED_RATIO, model.protocol()); - Assertions.assertEquals("bhgau", model.rules().get(0).ruleId()); - Assertions.assertEquals("dixmxufrsryjq", model.rules().get(0).description()); - Assertions.assertEquals("kfnozoeoqbvj", model.rules().get(0).deploymentId()); - Assertions.assertEquals(264605971, model.rules().get(0).trafficPercentage()); + Assertions.assertEquals("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()); } @org.junit.jupiter.api.Test @@ -29,23 +29,23 @@ public void testSerialize() throws Exception { ApplicationTrafficRoutingPolicy model = new ApplicationTrafficRoutingPolicy().withProtocol(TrafficRoutingProtocol.FIXED_RATIO) .withRules(Arrays.asList( - new TrafficRoutingRule().withRuleId("bhgau") - .withDescription("dixmxufrsryjq") - .withDeploymentId("kfnozoeoqbvj") - .withTrafficPercentage(264605971), - new TrafficRoutingRule().withRuleId("gwbmqj") - .withDescription("ntasfaymxbu") - .withDeploymentId("zealbmqkyo") - .withTrafficPercentage(1976793148), - new TrafficRoutingRule().withRuleId("fkmbtsuahxsgxj") - .withDescription("mzrrscubiwsdrn") - .withDeploymentId("qwodiffjx") - .withTrafficPercentage(891955631))); + new TrafficRoutingRule().withRuleId("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))); model = BinaryData.fromObject(model).toObject(ApplicationTrafficRoutingPolicy.class); Assertions.assertEquals(TrafficRoutingProtocol.FIXED_RATIO, model.protocol()); - Assertions.assertEquals("bhgau", model.rules().get(0).ruleId()); - Assertions.assertEquals("dixmxufrsryjq", model.rules().get(0).description()); - Assertions.assertEquals("kfnozoeoqbvj", model.rules().get(0).deploymentId()); - Assertions.assertEquals(264605971, model.rules().get(0).trafficPercentage()); + Assertions.assertEquals("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()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AssignedIdentityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AssignedIdentityTests.java index 30b80d1663bf..faf0d5cbf1d5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AssignedIdentityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AssignedIdentityTests.java @@ -14,30 +14,30 @@ public final class AssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AssignedIdentity model = BinaryData.fromString( - "{\"kind\":\"AgentInstance\",\"type\":\"System\",\"clientId\":\"es\",\"principalId\":\"ydjfb\",\"tenantId\":\"c\",\"subject\":\"hhulrtywikdm\",\"provisioningState\":\"Failed\"}") + "{\"kind\":\"None\",\"type\":\"None\",\"clientId\":\"eqyj\",\"principalId\":\"eziunjxdfzant\",\"tenantId\":\"wcegyamlbn\",\"subject\":\"qa\",\"provisioningState\":\"Deleting\"}") .toObject(AssignedIdentity.class); - Assertions.assertEquals(IdentityKind.AGENT_INSTANCE, model.kind()); - Assertions.assertEquals(IdentityManagementType.SYSTEM, model.type()); - Assertions.assertEquals("es", model.clientId()); - Assertions.assertEquals("ydjfb", model.principalId()); - Assertions.assertEquals("c", model.tenantId()); - Assertions.assertEquals("hhulrtywikdm", model.subject()); + Assertions.assertEquals(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()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AssignedIdentity model = new AssignedIdentity().withKind(IdentityKind.AGENT_INSTANCE) - .withType(IdentityManagementType.SYSTEM) - .withClientId("es") - .withPrincipalId("ydjfb") - .withTenantId("c") - .withSubject("hhulrtywikdm"); + AssignedIdentity model = new AssignedIdentity().withKind(IdentityKind.NONE) + .withType(IdentityManagementType.NONE) + .withClientId("eqyj") + .withPrincipalId("eziunjxdfzant") + .withTenantId("wcegyamlbn") + .withSubject("qa"); model = BinaryData.fromObject(model).toObject(AssignedIdentity.class); - Assertions.assertEquals(IdentityKind.AGENT_INSTANCE, model.kind()); - Assertions.assertEquals(IdentityManagementType.SYSTEM, model.type()); - Assertions.assertEquals("es", model.clientId()); - Assertions.assertEquals("ydjfb", model.principalId()); - Assertions.assertEquals("c", model.tenantId()); - Assertions.assertEquals("hhulrtywikdm", model.subject()); + Assertions.assertEquals(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()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java index 6cc8ab533cad..9d4e29a0d6c9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/BillingMeterInfoTests.java @@ -11,11 +11,11 @@ public final class BillingMeterInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BillingMeterInfo model - = BinaryData.fromString("{\"name\":\"jljyoxgv\",\"meterId\":\"tbgsncghkj\",\"unit\":\"zz\"}") - .toObject(BillingMeterInfo.class); - Assertions.assertEquals("jljyoxgv", model.name()); - Assertions.assertEquals("tbgsncghkj", model.meterId()); - Assertions.assertEquals("zz", model.unit()); + BillingMeterInfo model = BinaryData + .fromString("{\"name\":\"debfqkkrbmpukgri\",\"meterId\":\"lzlfbxzpuz\",\"unit\":\"ispnqzahmgkbrp\"}") + .toObject(BillingMeterInfo.class); + Assertions.assertEquals("debfqkkrbmpukgri", model.name()); + Assertions.assertEquals("lzlfbxzpuz", model.meterId()); + Assertions.assertEquals("ispnqzahmgkbrp", model.unit()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostInnerTests.java index e48c881a3e52..89507aef621e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostInnerTests.java @@ -17,41 +17,41 @@ public final class CapabilityHostInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapabilityHostInner model = BinaryData.fromString( - "{\"properties\":{\"aiServicesConnections\":[\"zvbrzcdbanfzndsc\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"atkdbmwnrd\",\"provisioningState\":\"Canceled\",\"storageConnections\":[\"bnaomhjrmkuhmax\"],\"threadStorageConnections\":[\"lfihcj\",\"obcancdexxqcw\",\"a\",\"fgvaknokzwj\"],\"vectorStoreConnections\":[\"ltixldzyyfytpq\"],\"enablePublicHostingEnvironment\":false,\"description\":\"mmpuj\",\"tags\":{\"mbmslzoyov\":\"qlkjuv\",\"befgvmxn\":\"zdbpqv\"}},\"id\":\"cvtlubseskvc\",\"name\":\"artr\",\"type\":\"unlpirykycndz\"}") + "{\"properties\":{\"aiServicesConnections\":[\"klmtkhlowkx\",\"pvbrdfjmzsyz\",\"hotlhikcyychunsj\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"twszhvvuic\",\"provisioningState\":\"Deleting\",\"storageConnections\":[\"rmhw\",\"bfdpyflubhv\",\"glrocuy\"],\"threadStorageConnections\":[\"hhmemhooclutnp\",\"memczjkmmyk\",\"ujxsglhsr\"],\"vectorStoreConnections\":[\"ejylmbkzu\",\"nigrfihotjewl\",\"xuzzjgnrefq\",\"hqo\"],\"enablePublicHostingEnvironment\":true,\"description\":\"iqakydiwfbr\",\"tags\":{\"vhcspodaqaxsip\":\"zdq\",\"oichdlpnfpubnt\":\"etgbebjfulb\",\"aelcat\":\"batzviqsows\"}},\"id\":\"ju\",\"name\":\"plrvkmjcwmjvlg\",\"type\":\"ggcvk\"}") .toObject(CapabilityHostInner.class); - Assertions.assertEquals("mmpuj", model.properties().description()); - Assertions.assertEquals("qlkjuv", model.properties().tags().get("mbmslzoyov")); - Assertions.assertEquals("zvbrzcdbanfzndsc", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("iqakydiwfbr", model.properties().description()); + Assertions.assertEquals("zdq", model.properties().tags().get("vhcspodaqaxsip")); + Assertions.assertEquals("klmtkhlowkx", model.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.properties().capabilityHostKind()); - Assertions.assertEquals("atkdbmwnrd", model.properties().customerSubnet()); - Assertions.assertEquals("bnaomhjrmkuhmax", model.properties().storageConnections().get(0)); - Assertions.assertEquals("lfihcj", model.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("ltixldzyyfytpq", model.properties().vectorStoreConnections().get(0)); - Assertions.assertFalse(model.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("twszhvvuic", model.properties().customerSubnet()); + Assertions.assertEquals("rmhw", model.properties().storageConnections().get(0)); + Assertions.assertEquals("hhmemhooclutnp", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("ejylmbkzu", model.properties().vectorStoreConnections().get(0)); + Assertions.assertTrue(model.properties().enablePublicHostingEnvironment()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CapabilityHostInner model - = new CapabilityHostInner().withProperties(new CapabilityHostProperties().withDescription("mmpuj") - .withTags(mapOf("mbmslzoyov", "qlkjuv", "befgvmxn", "zdbpqv")) - .withAiServicesConnections(Arrays.asList("zvbrzcdbanfzndsc")) + = new CapabilityHostInner().withProperties(new CapabilityHostProperties().withDescription("iqakydiwfbr") + .withTags(mapOf("vhcspodaqaxsip", "zdq", "oichdlpnfpubnt", "etgbebjfulb", "aelcat", "batzviqsows")) + .withAiServicesConnections(Arrays.asList("klmtkhlowkx", "pvbrdfjmzsyz", "hotlhikcyychunsj")) .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("atkdbmwnrd") - .withStorageConnections(Arrays.asList("bnaomhjrmkuhmax")) - .withThreadStorageConnections(Arrays.asList("lfihcj", "obcancdexxqcw", "a", "fgvaknokzwj")) - .withVectorStoreConnections(Arrays.asList("ltixldzyyfytpq")) - .withEnablePublicHostingEnvironment(false)); + .withCustomerSubnet("twszhvvuic") + .withStorageConnections(Arrays.asList("rmhw", "bfdpyflubhv", "glrocuy")) + .withThreadStorageConnections(Arrays.asList("hhmemhooclutnp", "memczjkmmyk", "ujxsglhsr")) + .withVectorStoreConnections(Arrays.asList("ejylmbkzu", "nigrfihotjewl", "xuzzjgnrefq", "hqo")) + .withEnablePublicHostingEnvironment(true)); model = BinaryData.fromObject(model).toObject(CapabilityHostInner.class); - Assertions.assertEquals("mmpuj", model.properties().description()); - Assertions.assertEquals("qlkjuv", model.properties().tags().get("mbmslzoyov")); - Assertions.assertEquals("zvbrzcdbanfzndsc", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("iqakydiwfbr", model.properties().description()); + Assertions.assertEquals("zdq", model.properties().tags().get("vhcspodaqaxsip")); + Assertions.assertEquals("klmtkhlowkx", model.properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.properties().capabilityHostKind()); - Assertions.assertEquals("atkdbmwnrd", model.properties().customerSubnet()); - Assertions.assertEquals("bnaomhjrmkuhmax", model.properties().storageConnections().get(0)); - Assertions.assertEquals("lfihcj", model.properties().threadStorageConnections().get(0)); - Assertions.assertEquals("ltixldzyyfytpq", model.properties().vectorStoreConnections().get(0)); - Assertions.assertFalse(model.properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("twszhvvuic", model.properties().customerSubnet()); + Assertions.assertEquals("rmhw", model.properties().storageConnections().get(0)); + Assertions.assertEquals("hhmemhooclutnp", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("ejylmbkzu", model.properties().vectorStoreConnections().get(0)); + Assertions.assertTrue(model.properties().enablePublicHostingEnvironment()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostPropertiesTests.java index d6b700f7b100..19d289ccc77c 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,39 +16,40 @@ public final class CapabilityHostPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapabilityHostProperties model = BinaryData.fromString( - "{\"aiServicesConnections\":[\"vjreuykbbmnw\",\"gltbxoeeo\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"fwmyymv\",\"provisioningState\":\"Deleting\",\"storageConnections\":[\"hfckdvezcrcssbz\",\"ddubbnqfblhkal\",\"hpavawu\",\"iqjtiogqgdmin\"],\"threadStorageConnections\":[\"teajohiyg\",\"pnbonhpcz\",\"kmktpvwxqcseh\"],\"vectorStoreConnections\":[\"hufmpq\",\"mqyjgy\",\"zulo\",\"saeuzanhsfnhsenw\"],\"enablePublicHostingEnvironment\":true,\"description\":\"fngq\",\"tags\":{\"rkuorh\":\"idftujwjjufwbe\",\"tiq\":\"ssruqnmdvhazcvj\",\"ukvlb\":\"wbqerzwxiytxtd\"}}") + "{\"aiServicesConnections\":[\"izrzb\",\"psfxsf\",\"ztlvtmvagbwidqlv\",\"ukoveofi\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"f\",\"provisioningState\":\"Canceled\",\"storageConnections\":[\"lwyzgib\",\"kujrllfojui\"],\"threadStorageConnections\":[\"uuyjucejikz\",\"eovvtzej\",\"tjklntikyjuzk\"],\"vectorStoreConnections\":[\"zolxrzvhqjwtr\",\"tgvgzp\",\"rrkolawjmjs\"],\"enablePublicHostingEnvironment\":true,\"description\":\"kcdxfzzzw\",\"tags\":{\"mltx\":\"fitlhguynuchl\",\"fpafolpymwamxq\":\"whmozusgzvlnsnnj\",\"gdphtvdula\":\"rag\",\"jchcsrlzknmzla\":\"vl\"}}") .toObject(CapabilityHostProperties.class); - Assertions.assertEquals("fngq", model.description()); - Assertions.assertEquals("idftujwjjufwbe", model.tags().get("rkuorh")); - Assertions.assertEquals("vjreuykbbmnw", model.aiServicesConnections().get(0)); + Assertions.assertEquals("kcdxfzzzw", model.description()); + Assertions.assertEquals("fitlhguynuchl", model.tags().get("mltx")); + Assertions.assertEquals("izrzb", model.aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.capabilityHostKind()); - Assertions.assertEquals("fwmyymv", model.customerSubnet()); - Assertions.assertEquals("hfckdvezcrcssbz", model.storageConnections().get(0)); - Assertions.assertEquals("teajohiyg", model.threadStorageConnections().get(0)); - Assertions.assertEquals("hufmpq", model.vectorStoreConnections().get(0)); + Assertions.assertEquals("f", model.customerSubnet()); + Assertions.assertEquals("lwyzgib", model.storageConnections().get(0)); + Assertions.assertEquals("uuyjucejikz", model.threadStorageConnections().get(0)); + Assertions.assertEquals("zolxrzvhqjwtr", model.vectorStoreConnections().get(0)); Assertions.assertTrue(model.enablePublicHostingEnvironment()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapabilityHostProperties model = new CapabilityHostProperties().withDescription("fngq") - .withTags(mapOf("rkuorh", "idftujwjjufwbe", "tiq", "ssruqnmdvhazcvj", "ukvlb", "wbqerzwxiytxtd")) - .withAiServicesConnections(Arrays.asList("vjreuykbbmnw", "gltbxoeeo")) + CapabilityHostProperties model = new CapabilityHostProperties().withDescription("kcdxfzzzw") + .withTags(mapOf("mltx", "fitlhguynuchl", "fpafolpymwamxq", "whmozusgzvlnsnnj", "gdphtvdula", "rag", + "jchcsrlzknmzla", "vl")) + .withAiServicesConnections(Arrays.asList("izrzb", "psfxsf", "ztlvtmvagbwidqlv", "ukoveofi")) .withCapabilityHostKind(CapabilityHostKind.AGENTS) - .withCustomerSubnet("fwmyymv") - .withStorageConnections(Arrays.asList("hfckdvezcrcssbz", "ddubbnqfblhkal", "hpavawu", "iqjtiogqgdmin")) - .withThreadStorageConnections(Arrays.asList("teajohiyg", "pnbonhpcz", "kmktpvwxqcseh")) - .withVectorStoreConnections(Arrays.asList("hufmpq", "mqyjgy", "zulo", "saeuzanhsfnhsenw")) + .withCustomerSubnet("f") + .withStorageConnections(Arrays.asList("lwyzgib", "kujrllfojui")) + .withThreadStorageConnections(Arrays.asList("uuyjucejikz", "eovvtzej", "tjklntikyjuzk")) + .withVectorStoreConnections(Arrays.asList("zolxrzvhqjwtr", "tgvgzp", "rrkolawjmjs")) .withEnablePublicHostingEnvironment(true); model = BinaryData.fromObject(model).toObject(CapabilityHostProperties.class); - Assertions.assertEquals("fngq", model.description()); - Assertions.assertEquals("idftujwjjufwbe", model.tags().get("rkuorh")); - Assertions.assertEquals("vjreuykbbmnw", model.aiServicesConnections().get(0)); + Assertions.assertEquals("kcdxfzzzw", model.description()); + Assertions.assertEquals("fitlhguynuchl", model.tags().get("mltx")); + Assertions.assertEquals("izrzb", model.aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.capabilityHostKind()); - Assertions.assertEquals("fwmyymv", model.customerSubnet()); - Assertions.assertEquals("hfckdvezcrcssbz", model.storageConnections().get(0)); - Assertions.assertEquals("teajohiyg", model.threadStorageConnections().get(0)); - Assertions.assertEquals("hufmpq", model.vectorStoreConnections().get(0)); + Assertions.assertEquals("f", model.customerSubnet()); + Assertions.assertEquals("lwyzgib", model.storageConnections().get(0)); + Assertions.assertEquals("uuyjucejikz", model.threadStorageConnections().get(0)); + Assertions.assertEquals("zolxrzvhqjwtr", model.vectorStoreConnections().get(0)); Assertions.assertTrue(model.enablePublicHostingEnvironment()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostResourceArmPaginatedResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostResourceArmPaginatedResultTests.java index 9ff735bfa66d..8d965fa9c65c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostResourceArmPaginatedResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapabilityHostResourceArmPaginatedResultTests.java @@ -13,17 +13,17 @@ public final class CapabilityHostResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapabilityHostResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"tgdstyouambe\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"moweg\",\"mut\",\"yxey\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"gijiitnspxlzd\",\"provisioningState\":\"Succeeded\",\"storageConnections\":[\"ijwai\",\"fanraybfu\"],\"threadStorageConnections\":[\"rojsydg\",\"h\",\"dkygywezski\"],\"vectorStoreConnections\":[\"f\",\"gzmxieqv\",\"smaklixqcahy\",\"xalybxawoijpo\"],\"enablePublicHostingEnvironment\":true,\"description\":\"xpkk\",\"tags\":{\"emehllizh\":\"jodqhykincn\",\"adppyibn\":\"eumoqod\"}},\"id\":\"ladywrxwhyd\",\"name\":\"luvvad\",\"type\":\"wzsnuy\"}]}") + "{\"nextLink\":\"updwv\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"zqtpjhmq\",\"hvthlaiwdcxsm\",\"zzhz\",\"txetlgydl\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"n\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"afiqgeaarbgjekg\"],\"threadStorageConnections\":[\"byu\",\"idwcwvmzegjon\",\"hj\",\"rwgdnqzbrfks\"],\"vectorStoreConnections\":[\"zmtksjci\",\"digsxcdgl\"],\"enablePublicHostingEnvironment\":false,\"description\":\"euachtomfl\",\"tags\":{\"ycxnmskw\":\"swfpfmd\",\"shhkvpedw\":\"qjjyslurl\",\"wwsko\":\"slsrhmpq\",\"josovyrrl\":\"dcbrwimuvq\"}},\"id\":\"esi\",\"name\":\"uqtljqobbpih\",\"type\":\"hcecybmrqbr\"},{\"properties\":{\"aiServicesConnections\":[\"mpxdlvy\",\"frexcrseqw\",\"ksghudgzhxogjgg\",\"voujkxibdafhrk\"],\"capabilityHostKind\":\"Agents\",\"customerSubnet\":\"mkxfbvfbhdyir\",\"provisioningState\":\"Creating\",\"storageConnections\":[\"ddei\",\"awzovgkk\"],\"threadStorageConnections\":[\"ikjcjcazt\"],\"vectorStoreConnections\":[\"nsq\",\"wxwcomli\",\"ytwvczcswkacve\"],\"enablePublicHostingEnvironment\":false,\"description\":\"vlvhbwrnfxtgd\",\"tags\":{\"hn\":\"th\"}},\"id\":\"aoyankcoeqswa\",\"name\":\"kltytmhdroz\",\"type\":\"nhd\"}]}") .toObject(CapabilityHostResourceArmPaginatedResult.class); - Assertions.assertEquals("tgdstyouambe", model.nextLink()); - Assertions.assertEquals("xpkk", model.value().get(0).properties().description()); - Assertions.assertEquals("jodqhykincn", model.value().get(0).properties().tags().get("emehllizh")); - Assertions.assertEquals("moweg", model.value().get(0).properties().aiServicesConnections().get(0)); + Assertions.assertEquals("updwv", model.nextLink()); + Assertions.assertEquals("euachtomfl", model.value().get(0).properties().description()); + Assertions.assertEquals("swfpfmd", model.value().get(0).properties().tags().get("ycxnmskw")); + Assertions.assertEquals("zqtpjhmq", model.value().get(0).properties().aiServicesConnections().get(0)); Assertions.assertEquals(CapabilityHostKind.AGENTS, model.value().get(0).properties().capabilityHostKind()); - Assertions.assertEquals("gijiitnspxlzd", model.value().get(0).properties().customerSubnet()); - Assertions.assertEquals("ijwai", model.value().get(0).properties().storageConnections().get(0)); - Assertions.assertEquals("rojsydg", model.value().get(0).properties().threadStorageConnections().get(0)); - Assertions.assertEquals("f", model.value().get(0).properties().vectorStoreConnections().get(0)); - Assertions.assertTrue(model.value().get(0).properties().enablePublicHostingEnvironment()); + Assertions.assertEquals("n", model.value().get(0).properties().customerSubnet()); + Assertions.assertEquals("afiqgeaarbgjekg", model.value().get(0).properties().storageConnections().get(0)); + Assertions.assertEquals("byu", model.value().get(0).properties().threadStorageConnections().get(0)); + Assertions.assertEquals("zmtksjci", model.value().get(0).properties().vectorStoreConnections().get(0)); + Assertions.assertFalse(model.value().get(0).properties().enablePublicHostingEnvironment()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java index 90312f8e4e52..3509e3151980 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CapacityConfigTests.java @@ -12,12 +12,12 @@ public final class CapacityConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityConfig model = BinaryData.fromString( - "{\"minimum\":1238878906,\"maximum\":1975532924,\"step\":1054022835,\"default\":2065726481,\"allowedValues\":[552165564]}") + "{\"minimum\":195417612,\"maximum\":455021190,\"step\":1543510738,\"default\":1229145222,\"allowedValues\":[1566120849,1534633799]}") .toObject(CapacityConfig.class); - Assertions.assertEquals(1238878906, model.minimum()); - Assertions.assertEquals(1975532924, model.maximum()); - Assertions.assertEquals(1054022835, model.step()); - Assertions.assertEquals(2065726481, model.defaultProperty()); - Assertions.assertEquals(552165564, model.allowedValues().get(0)); + Assertions.assertEquals(195417612, model.minimum()); + Assertions.assertEquals(455021190, model.maximum()); + Assertions.assertEquals(1543510738, model.step()); + Assertions.assertEquals(1229145222, model.defaultProperty()); + Assertions.assertEquals(1566120849, model.allowedValues().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java index 9c2f89db52ee..04fa1b035e7c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentCostTests.java @@ -12,9 +12,9 @@ public final class CommitmentCostTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentCost model - = BinaryData.fromString("{\"commitmentMeterId\":\"nqnixiezeagmce\",\"overageMeterId\":\"uugedhfp\"}") + = BinaryData.fromString("{\"commitmentMeterId\":\"hompheqdurelyu\",\"overageMeterId\":\"fyoum\"}") .toObject(CommitmentCost.class); - Assertions.assertEquals("nqnixiezeagmce", model.commitmentMeterId()); - Assertions.assertEquals("uugedhfp", model.overageMeterId()); + Assertions.assertEquals("hompheqdurelyu", model.commitmentMeterId()); + Assertions.assertEquals("fyoum", model.overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java index bf348681791c..d20b4c5e5275 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPeriodTests.java @@ -12,17 +12,17 @@ public final class CommitmentPeriodTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPeriod model = BinaryData.fromString( - "{\"tier\":\"zqwhxxbuyqaxzfeq\",\"count\":1560492687,\"quota\":{\"quantity\":6081524595721581276,\"unit\":\"xorjaltolmncwsob\"},\"startDate\":\"csdbnwdcfhuc\",\"endDate\":\"pfuvglsbjjca\"}") + "{\"tier\":\"tppjflcx\",\"count\":712173581,\"quota\":{\"quantity\":2510700461860168657,\"unit\":\"m\"},\"startDate\":\"ikvmkqzeqqk\",\"endDate\":\"tfz\"}") .toObject(CommitmentPeriod.class); - Assertions.assertEquals("zqwhxxbuyqaxzfeq", model.tier()); - Assertions.assertEquals(1560492687, model.count()); + Assertions.assertEquals("tppjflcx", model.tier()); + Assertions.assertEquals(712173581, model.count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPeriod model = new CommitmentPeriod().withTier("zqwhxxbuyqaxzfeq").withCount(1560492687); + CommitmentPeriod model = new CommitmentPeriod().withTier("tppjflcx").withCount(712173581); model = BinaryData.fromObject(model).toObject(CommitmentPeriod.class); - Assertions.assertEquals("zqwhxxbuyqaxzfeq", model.tier()); - Assertions.assertEquals(1560492687, model.count()); + Assertions.assertEquals("tppjflcx", model.tier()); + Assertions.assertEquals(712173581, model.count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java index bd704ac8f34d..295cada5d24b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationInnerTests.java @@ -14,20 +14,21 @@ public final class CommitmentPlanAccountAssociationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanAccountAssociationInner model = BinaryData.fromString( - "{\"properties\":{\"accountId\":\"v\"},\"etag\":\"k\",\"tags\":{\"vblm\":\"qwjygvja\",\"byrqufeg\":\"vkzuhbxvvyhgso\",\"mctlpdngitv\":\"uvwzfbnh\",\"grhbpn\":\"bmhrixkwmyijejv\"},\"id\":\"xexccbdreaxhcexd\",\"name\":\"rvqahqkghtpwi\",\"type\":\"nhyjsv\"}") + "{\"properties\":{\"accountId\":\"xodlqiyntorzih\"},\"etag\":\"osjswsr\",\"tags\":{\"ox\":\"yzrpzbchckqqzq\",\"rwyhqmibzyhwitsm\":\"ysuiizynkedya\",\"pcdpumnz\":\"pyy\",\"abikns\":\"mwzn\"},\"id\":\"gj\",\"name\":\"xbldtlwwrlkdmtn\",\"type\":\"vokotllxdyh\"}") .toObject(CommitmentPlanAccountAssociationInner.class); - Assertions.assertEquals("qwjygvja", model.tags().get("vblm")); - Assertions.assertEquals("v", model.accountId()); + Assertions.assertEquals("yzrpzbchckqqzq", model.tags().get("ox")); + Assertions.assertEquals("xodlqiyntorzih", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanAccountAssociationInner model - = new CommitmentPlanAccountAssociationInner().withTags(mapOf("vblm", "qwjygvja", "byrqufeg", - "vkzuhbxvvyhgso", "mctlpdngitv", "uvwzfbnh", "grhbpn", "bmhrixkwmyijejv")).withAccountId("v"); + CommitmentPlanAccountAssociationInner model = new CommitmentPlanAccountAssociationInner() + .withTags( + mapOf("ox", "yzrpzbchckqqzq", "rwyhqmibzyhwitsm", "ysuiizynkedya", "pcdpumnz", "pyy", "abikns", "mwzn")) + .withAccountId("xodlqiyntorzih"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationInner.class); - Assertions.assertEquals("qwjygvja", model.tags().get("vblm")); - Assertions.assertEquals("v", model.accountId()); + Assertions.assertEquals("yzrpzbchckqqzq", model.tags().get("ox")); + Assertions.assertEquals("xodlqiyntorzih", model.accountId()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java index fcacd6282ddf..e1689483984e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationListResultTests.java @@ -12,8 +12,8 @@ public final class CommitmentPlanAccountAssociationListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanAccountAssociationListResult model = BinaryData.fromString( - "{\"nextLink\":\"t\",\"value\":[{\"properties\":{\"accountId\":\"y\"},\"etag\":\"tronzmyhgfi\",\"tags\":{\"fxtsgum\":\"xkmcwaekrrjre\"},\"id\":\"glikkxwslolb\",\"name\":\"pvuzlmv\",\"type\":\"elfk\"}]}") + "{\"nextLink\":\"ogjltdtbnnhad\",\"value\":[{\"properties\":{\"accountId\":\"vcikhnvpamqgx\"},\"etag\":\"u\",\"tags\":{\"uipiccjzk\":\"kywggxkallatmel\"},\"id\":\"v\",\"name\":\"vvcnayr\",\"type\":\"yrnxxmueedn\"},{\"properties\":{\"accountId\":\"v\"},\"etag\":\"kwqqtchealmf\",\"tags\":{\"v\":\"aayg\"},\"id\":\"gpiohgwxrtfudxe\",\"name\":\"xg\",\"type\":\"qagvrvm\"},{\"properties\":{\"accountId\":\"ukghimdblxgw\"},\"etag\":\"fnjhfjxwmszkkfo\",\"tags\":{\"jawneaiv\":\"yfkzik\",\"elsfeaen\":\"wczelpci\",\"dxbjhwuaanozj\":\"abfatkl\"},\"id\":\"ph\",\"name\":\"oulpjrv\",\"type\":\"ag\"}]}") .toObject(CommitmentPlanAccountAssociationListResult.class); - Assertions.assertEquals("t", model.nextLink()); + Assertions.assertEquals("ogjltdtbnnhad", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java index 1071496f915d..5f12ac74387c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanAccountAssociationPropertiesTests.java @@ -11,16 +11,16 @@ public final class CommitmentPlanAccountAssociationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CommitmentPlanAccountAssociationProperties model = BinaryData.fromString("{\"accountId\":\"cxzbfvoowvr\"}") - .toObject(CommitmentPlanAccountAssociationProperties.class); - Assertions.assertEquals("cxzbfvoowvr", model.accountId()); + CommitmentPlanAccountAssociationProperties model + = BinaryData.fromString("{\"accountId\":\"y\"}").toObject(CommitmentPlanAccountAssociationProperties.class); + Assertions.assertEquals("y", model.accountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanAccountAssociationProperties model - = new CommitmentPlanAccountAssociationProperties().withAccountId("cxzbfvoowvr"); + = new CommitmentPlanAccountAssociationProperties().withAccountId("y"); model = BinaryData.fromObject(model).toObject(CommitmentPlanAccountAssociationProperties.class); - Assertions.assertEquals("cxzbfvoowvr", model.accountId()); + Assertions.assertEquals("y", model.accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java index a180704353b6..e048d3657ba7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanInnerTests.java @@ -19,60 +19,60 @@ public final class CommitmentPlanInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"ddxbjhwuaanoz\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"hyoulpjr\",\"current\":{\"tier\":\"glrvimjwosytxi\",\"count\":835762361,\"quota\":{\"quantity\":5863811763021338884,\"unit\":\"qumiek\"},\"startDate\":\"zzikhlyfjhdg\",\"endDate\":\"gebdunygaeq\"},\"autoRenew\":true,\"next\":{\"tier\":\"atpxl\",\"count\":1652546958,\"quota\":{\"quantity\":8864644598647393386,\"unit\":\"a\"},\"startDate\":\"uvarmywdmjsjq\",\"endDate\":\"hhyxxrw\"},\"last\":{\"tier\":\"oduhp\",\"count\":1622537719,\"quota\":{\"quantity\":4645704067973725569,\"unit\":\"eqnajxqugjhkycu\"},\"startDate\":\"ddg\",\"endDate\":\"ofwq\"},\"provisioningIssues\":[\"alkrmn\"]},\"tags\":{\"yxbaaabjyvayf\":\"pxacqqudfn\",\"exn\":\"imrzrtuzqog\"},\"location\":\"fdnw\",\"etag\":\"mewzsyyc\",\"kind\":\"zsoibjudpfrxtr\",\"sku\":{\"name\":\"zvaytdwkqbr\",\"tier\":\"Basic\",\"size\":\"axhexiilivp\",\"family\":\"iirqtd\",\"capacity\":887642500},\"id\":\"oruzfgsquyfxrxx\",\"name\":\"eptra\",\"type\":\"xje\"}") + "{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"apkteoellwptfdyg\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"uaceopzfqrhhu\",\"current\":{\"tier\":\"ppcqeqxolz\",\"count\":1114534772,\"quota\":{\"quantity\":5358059315050438852,\"unit\":\"bgbkdmoizpost\"},\"startDate\":\"rcfbunrm\",\"endDate\":\"jhhkxbp\"},\"autoRenew\":true,\"next\":{\"tier\":\"hx\",\"count\":1905459835,\"quota\":{\"quantity\":36650542326870617,\"unit\":\"vkr\"},\"startDate\":\"wbxqzvszjfau\",\"endDate\":\"fdxxivetvtcqaqtd\"},\"last\":{\"tier\":\"cbxvwvxyslqbh\",\"count\":263048903,\"quota\":{\"quantity\":2977681561409094554,\"unit\":\"k\"},\"startDate\":\"mpew\",\"endDate\":\"fbkrvrnsvs\"},\"provisioningIssues\":[\"ohxcrsbfova\",\"rruvwbhsq\"]},\"tags\":{\"bsrfbj\":\"bcgjbirxbp\",\"otftpvjzbexilz\":\"dtws\",\"qtaruoujmkcjhwq\":\"nfqqnvwp\"},\"location\":\"jrybnwjewgdrjer\",\"etag\":\"aen\",\"kind\":\"eh\",\"sku\":{\"name\":\"doy\",\"tier\":\"Standard\",\"size\":\"thnzd\",\"family\":\"sl\",\"capacity\":843221186},\"id\":\"qig\",\"name\":\"nduhavhqlkthum\",\"type\":\"qolbgyc\"}") .toObject(CommitmentPlanInner.class); - Assertions.assertEquals("ddxbjhwuaanoz", model.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.properties().hostingModel()); - Assertions.assertEquals("hyoulpjr", model.properties().planType()); - Assertions.assertEquals("glrvimjwosytxi", model.properties().current().tier()); - Assertions.assertEquals(835762361, model.properties().current().count()); + Assertions.assertEquals("apkteoellwptfdyg", model.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.properties().hostingModel()); + Assertions.assertEquals("uaceopzfqrhhu", model.properties().planType()); + Assertions.assertEquals("ppcqeqxolz", model.properties().current().tier()); + Assertions.assertEquals(1114534772, model.properties().current().count()); Assertions.assertTrue(model.properties().autoRenew()); - Assertions.assertEquals("atpxl", model.properties().next().tier()); - Assertions.assertEquals(1652546958, model.properties().next().count()); - Assertions.assertEquals("pxacqqudfn", model.tags().get("yxbaaabjyvayf")); - Assertions.assertEquals("fdnw", model.location()); - Assertions.assertEquals("zsoibjudpfrxtr", model.kind()); - Assertions.assertEquals("zvaytdwkqbr", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("axhexiilivp", model.sku().size()); - Assertions.assertEquals("iirqtd", model.sku().family()); - Assertions.assertEquals(887642500, model.sku().capacity()); + Assertions.assertEquals("hx", model.properties().next().tier()); + Assertions.assertEquals(1905459835, model.properties().next().count()); + Assertions.assertEquals("bcgjbirxbp", model.tags().get("bsrfbj")); + Assertions.assertEquals("jrybnwjewgdrjer", model.location()); + Assertions.assertEquals("eh", model.kind()); + Assertions.assertEquals("doy", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("thnzd", model.sku().size()); + Assertions.assertEquals("sl", model.sku().family()); + Assertions.assertEquals(843221186, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { CommitmentPlanInner model = new CommitmentPlanInner() - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("ddxbjhwuaanoz") - .withHostingModel(HostingModel.PROVISIONED_WEB) - .withPlanType("hyoulpjr") - .withCurrent(new CommitmentPeriod().withTier("glrvimjwosytxi").withCount(835762361)) + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("apkteoellwptfdyg") + .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) + .withPlanType("uaceopzfqrhhu") + .withCurrent(new CommitmentPeriod().withTier("ppcqeqxolz").withCount(1114534772)) .withAutoRenew(true) - .withNext(new CommitmentPeriod().withTier("atpxl").withCount(1652546958))) - .withTags(mapOf("yxbaaabjyvayf", "pxacqqudfn", "exn", "imrzrtuzqog")) - .withLocation("fdnw") - .withKind("zsoibjudpfrxtr") - .withSku(new Sku().withName("zvaytdwkqbr") - .withTier(SkuTier.BASIC) - .withSize("axhexiilivp") - .withFamily("iirqtd") - .withCapacity(887642500)); + .withNext(new CommitmentPeriod().withTier("hx").withCount(1905459835))) + .withTags(mapOf("bsrfbj", "bcgjbirxbp", "otftpvjzbexilz", "dtws", "qtaruoujmkcjhwq", "nfqqnvwp")) + .withLocation("jrybnwjewgdrjer") + .withKind("eh") + .withSku(new Sku().withName("doy") + .withTier(SkuTier.STANDARD) + .withSize("thnzd") + .withFamily("sl") + .withCapacity(843221186)); model = BinaryData.fromObject(model).toObject(CommitmentPlanInner.class); - Assertions.assertEquals("ddxbjhwuaanoz", model.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.properties().hostingModel()); - Assertions.assertEquals("hyoulpjr", model.properties().planType()); - Assertions.assertEquals("glrvimjwosytxi", model.properties().current().tier()); - Assertions.assertEquals(835762361, model.properties().current().count()); + Assertions.assertEquals("apkteoellwptfdyg", model.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.properties().hostingModel()); + Assertions.assertEquals("uaceopzfqrhhu", model.properties().planType()); + Assertions.assertEquals("ppcqeqxolz", model.properties().current().tier()); + Assertions.assertEquals(1114534772, model.properties().current().count()); Assertions.assertTrue(model.properties().autoRenew()); - Assertions.assertEquals("atpxl", model.properties().next().tier()); - Assertions.assertEquals(1652546958, model.properties().next().count()); - Assertions.assertEquals("pxacqqudfn", model.tags().get("yxbaaabjyvayf")); - Assertions.assertEquals("fdnw", model.location()); - Assertions.assertEquals("zsoibjudpfrxtr", model.kind()); - Assertions.assertEquals("zvaytdwkqbr", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("axhexiilivp", model.sku().size()); - Assertions.assertEquals("iirqtd", model.sku().family()); - Assertions.assertEquals(887642500, model.sku().capacity()); + Assertions.assertEquals("hx", model.properties().next().tier()); + Assertions.assertEquals(1905459835, model.properties().next().count()); + Assertions.assertEquals("bcgjbirxbp", model.tags().get("bsrfbj")); + Assertions.assertEquals("jrybnwjewgdrjer", model.location()); + Assertions.assertEquals("eh", model.kind()); + Assertions.assertEquals("doy", model.sku().name()); + Assertions.assertEquals(SkuTier.STANDARD, model.sku().tier()); + Assertions.assertEquals("thnzd", model.sku().size()); + Assertions.assertEquals("sl", model.sku().family()); + Assertions.assertEquals(843221186, model.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java index 9fcc584f120c..d36b7b0fb05b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanListResultTests.java @@ -12,8 +12,8 @@ public final class CommitmentPlanListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanListResult model = BinaryData.fromString( - "{\"nextLink\":\"dut\",\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"xqtvcofu\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"kgjubgdknnqvsazn\",\"current\":{\"tier\":\"orudsgsa\",\"count\":220532000,\"quota\":{\"quantity\":6438368271325429857,\"unit\":\"uwjuetaeburuvdmo\"},\"startDate\":\"mz\",\"endDate\":\"wabm\"},\"autoRenew\":false,\"next\":{\"tier\":\"ifrvtpu\",\"count\":2034144205,\"quota\":{\"quantity\":5941269250406348563,\"unit\":\"fbtndoaong\"},\"startDate\":\"cn\",\"endDate\":\"jitcjedftwwaez\"},\"last\":{\"tier\":\"v\",\"count\":2090841381,\"quota\":{\"quantity\":8938255747572389920,\"unit\":\"uicybxarzgszuf\"},\"startDate\":\"ciqopidoa\",\"endDate\":\"iodhkhazxkhnz\"},\"provisioningIssues\":[\"lwntoego\",\"dwbwhkszzcmrvexz\"]},\"tags\":{\"gsfraoyzkoow\":\"t\"},\"location\":\"mnguxawqaldsyu\",\"etag\":\"imerqfobwyznk\",\"kind\":\"kutwpf\",\"sku\":{\"name\":\"a\",\"tier\":\"Free\",\"size\":\"skdsnfdsdoakg\",\"family\":\"lmkk\",\"capacity\":1673981436},\"id\":\"l\",\"name\":\"ewpusdsttwvogvb\",\"type\":\"ejdcngqqmoakuf\"},{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"wr\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"wae\",\"current\":{\"tier\":\"zkopb\",\"count\":1224978784,\"quota\":{\"quantity\":7603359604703643778,\"unit\":\"yuhhziu\"},\"startDate\":\"fozbhdmsmlmzqhof\",\"endDate\":\"maequiahxicslfa\"},\"autoRenew\":false,\"next\":{\"tier\":\"yylhalnswhccsp\",\"count\":896458989,\"quota\":{\"quantity\":8715023220847253417,\"unit\":\"qscywu\"},\"startDate\":\"woluhczbwemhair\",\"endDate\":\"rgzdwmsweyp\"},\"last\":{\"tier\":\"xggicccnxqhuexmk\",\"count\":171161135,\"quota\":{\"quantity\":3065309169479098927,\"unit\":\"ywemhzrn\"},\"startDate\":\"dtclusiypb\",\"endDate\":\"gytguslfead\"},\"provisioningIssues\":[\"qukyhejhzi\"]},\"tags\":{\"lppvksrpq\":\"fpel\",\"htwdwrftswibyrcd\":\"ujzra\",\"hevxcced\":\"bhshfwpracstwity\",\"hlt\":\"pnmdyodnwzxltjcv\"},\"location\":\"gcxn\",\"etag\":\"vwxqibyqunyo\",\"kind\":\"wlmdjrkv\",\"sku\":{\"name\":\"bvfvpdbod\",\"tier\":\"Enterprise\",\"size\":\"sjq\",\"family\":\"krribdeibqi\",\"capacity\":840101476},\"id\":\"hvxndzwmkrefajpj\",\"name\":\"rwkq\",\"type\":\"yhgbijtjivfx\"},{\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"ibsystawf\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"vkvp\",\"current\":{\"tier\":\"bkzbzkd\",\"count\":1416328683,\"quota\":{\"quantity\":2475119579213351662,\"unit\":\"urgkakmokzhjjk\"},\"startDate\":\"fhmouwq\",\"endDate\":\"zrfze\"},\"autoRenew\":true,\"next\":{\"tier\":\"zi\",\"count\":2103532940,\"quota\":{\"quantity\":6792043721583941357,\"unit\":\"jbsybbqw\"},\"startDate\":\"t\",\"endDate\":\"gmfpgvmp\"},\"last\":{\"tier\":\"slthaq\",\"count\":461827334,\"quota\":{\"quantity\":152886456423473805,\"unit\":\"wbdsr\"},\"startDate\":\"pdrhne\",\"endDate\":\"owqkdwytisi\"},\"provisioningIssues\":[\"cgpik\"]},\"tags\":{\"rmbzo\":\"mejzanlfzxia\",\"zpfrla\":\"okixrjqcir\"},\"location\":\"zrnw\",\"etag\":\"indfpwpjyl\",\"kind\":\"tlhflsjcdhszf\",\"sku\":{\"name\":\"fbgofeljagrqmqh\",\"tier\":\"Free\",\"size\":\"iiiojnalghf\",\"family\":\"tvsexsowuel\",\"capacity\":1968234640},\"id\":\"ahhxvrh\",\"name\":\"zkw\",\"type\":\"jgwwspughftq\"},{\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"ujxukndxd\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"guufzd\",\"current\":{\"tier\":\"qtfihwhbotzinga\",\"count\":547890191,\"quota\":{\"quantity\":449816124137860976,\"unit\":\"qzudphq\"},\"startDate\":\"vdkfwynwcvtbvk\",\"endDate\":\"hmtnvy\"},\"autoRenew\":true,\"next\":{\"tier\":\"zwpcnpwzcjaesg\",\"count\":298074003,\"quota\":{\"quantity\":6313040866507251264,\"unit\":\"g\"},\"startDate\":\"fhwygzlvdnkfxus\",\"endDate\":\"dwzrmuh\"},\"last\":{\"tier\":\"cqdpsqxqvpsvuoym\",\"count\":1300685521,\"quota\":{\"quantity\":4509499977856951739,\"unit\":\"rypqlmfeo\"},\"startDate\":\"rqwky\",\"endDate\":\"ob\"},\"provisioningIssues\":[\"xedk\",\"wep\"]},\"tags\":{\"kbwcc\":\"cr\"},\"location\":\"jvcdwxlpqekf\",\"etag\":\"khtj\",\"kind\":\"i\",\"sku\":{\"name\":\"wfqatmtd\",\"tier\":\"Premium\",\"size\":\"vypgikdg\",\"family\":\"ywkbirryuzhlhkjo\",\"capacity\":1145336567},\"id\":\"qaatjinrv\",\"name\":\"oupmfii\",\"type\":\"fggjioolvr\"}]}") + "{\"nextLink\":\"kwobdagxtibq\",\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"bogqxndlkzgxhu\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"bpodxunkbebxm\",\"current\":{\"tier\":\"yntwlrbq\",\"count\":1876719101,\"quota\":{\"quantity\":719850312604044810,\"unit\":\"otgqrlltmu\"},\"startDate\":\"auwzizxbmpgc\",\"endDate\":\"fuzmuvpbtt\"},\"autoRenew\":true,\"next\":{\"tier\":\"p\",\"count\":1550349603,\"quota\":{\"quantity\":7314064083806104439,\"unit\":\"tbhjpglkfgohdneu\"},\"startDate\":\"fphsdyhtozfikdow\",\"endDate\":\"uuvxz\"},\"last\":{\"tier\":\"vithh\",\"count\":176578322,\"quota\":{\"quantity\":2084595584241101757,\"unit\":\"b\"},\"startDate\":\"ohfwds\",\"endDate\":\"ka\"},\"provisioningIssues\":[\"tiiswacffg\",\"k\",\"zewk\"]},\"tags\":{\"wdmhdlxyjrxs\":\"qcrailvpnppfufl\",\"bcvkcvqvpkeq\":\"gafcnihgwqapnedg\",\"obzdopcjwvnhdl\":\"cvdrhvoodsot\"},\"location\":\"mgxcxrslpm\",\"etag\":\"wuoegrpk\",\"kind\":\"wniyqsluicpd\",\"sku\":{\"name\":\"kzzlvmbmpaxmodf\",\"tier\":\"Enterprise\",\"size\":\"yw\",\"family\":\"pfvmwyhrfou\",\"capacity\":1120299710},\"id\":\"akcp\",\"name\":\"iyzvqtmnub\",\"type\":\"xkp\"},{\"properties\":{\"provisioningState\":\"Deleting\",\"commitmentPlanGuid\":\"ndjmquxvyp\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"opkwhojv\",\"current\":{\"tier\":\"qgxy\",\"count\":1746293745,\"quota\":{\"quantity\":2056148747950400959,\"unit\":\"qvmkcxo\"},\"startDate\":\"pvhelxprg\",\"endDate\":\"atddc\"},\"autoRenew\":true,\"next\":{\"tier\":\"ejrjxgciqibrho\",\"count\":1487162894,\"quota\":{\"quantity\":4262007788493519907,\"unit\":\"o\"},\"startDate\":\"i\",\"endDate\":\"rq\"},\"last\":{\"tier\":\"ahwfluszdtmhrk\",\"count\":1386295796,\"quota\":{\"quantity\":4410563013107151363,\"unit\":\"acpie\"},\"startDate\":\"btgiwbwoenwas\",\"endDate\":\"tdtkcn\"},\"provisioningIssues\":[\"bpokulpiujwaasip\",\"i\",\"obyu\",\"erpqlpqwcciuqg\"]},\"tags\":{\"btkuwhh\":\"utauv\",\"koymkcd\":\"hykojoxafnndlpic\"},\"location\":\"bpkkpwdre\",\"etag\":\"ovvqfovljxywsu\",\"kind\":\"yrs\",\"sku\":{\"name\":\"sytgadgvraea\",\"tier\":\"Standard\",\"size\":\"nzar\",\"family\":\"lquuijfqkacewii\",\"capacity\":1703781779},\"id\":\"bjibwwiftohq\",\"name\":\"vpuvks\",\"type\":\"plsaknynfsynljph\"}]}") .toObject(CommitmentPlanListResult.class); - Assertions.assertEquals("dut", model.nextLink()); + Assertions.assertEquals("kwobdagxtibq", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java index 26db8861ed8e..50b7ac42ab48 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlanPropertiesTests.java @@ -14,34 +14,34 @@ public final class CommitmentPlanPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentPlanProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"nwxuqlcvydyp\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"oa\",\"current\":{\"tier\":\"niodkooeb\",\"count\":2091031438,\"quota\":{\"quantity\":919711763556230893,\"unit\":\"sbvdkcrodtjinfw\"},\"startDate\":\"fltkacjv\",\"endDate\":\"kdlfoa\"},\"autoRenew\":false,\"next\":{\"tier\":\"pagao\",\"count\":1739461107,\"quota\":{\"quantity\":2549901410987606373,\"unit\":\"ylsyxkqjnsje\"},\"startDate\":\"tiagx\",\"endDate\":\"sz\"},\"last\":{\"tier\":\"psbzkfzbeyvpn\",\"count\":2090410653,\"quota\":{\"quantity\":8477504172478535951,\"unit\":\"jjxd\"},\"startDate\":\"buukzclewyhml\",\"endDate\":\"aztz\"},\"provisioningIssues\":[\"ncckw\"]}") + "{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"r\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"y\",\"current\":{\"tier\":\"olpsslqlf\",\"count\":219002993,\"quota\":{\"quantity\":8429294403968263642,\"unit\":\"zpswiydmc\"},\"startDate\":\"hzdxssadbzm\",\"endDate\":\"dfznudaodv\"},\"autoRenew\":true,\"next\":{\"tier\":\"blylpstdbh\",\"count\":1133682494,\"quota\":{\"quantity\":2718310291361024894,\"unit\":\"cers\"},\"startDate\":\"ntnev\",\"endDate\":\"wjmy\"},\"last\":{\"tier\":\"sslswtmweriof\",\"count\":1861097710,\"quota\":{\"quantity\":8502248453767637112,\"unit\":\"abnetshh\"},\"startDate\":\"h\",\"endDate\":\"plvwiwubmwmbes\"},\"provisioningIssues\":[\"k\"]}") .toObject(CommitmentPlanProperties.class); - Assertions.assertEquals("nwxuqlcvydyp", model.commitmentPlanGuid()); + Assertions.assertEquals("r", model.commitmentPlanGuid()); Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.hostingModel()); - Assertions.assertEquals("oa", model.planType()); - Assertions.assertEquals("niodkooeb", model.current().tier()); - Assertions.assertEquals(2091031438, model.current().count()); - Assertions.assertFalse(model.autoRenew()); - Assertions.assertEquals("pagao", model.next().tier()); - Assertions.assertEquals(1739461107, model.next().count()); + Assertions.assertEquals("y", model.planType()); + Assertions.assertEquals("olpsslqlf", model.current().tier()); + Assertions.assertEquals(219002993, model.current().count()); + Assertions.assertTrue(model.autoRenew()); + Assertions.assertEquals("blylpstdbh", model.next().tier()); + Assertions.assertEquals(1133682494, model.next().count()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CommitmentPlanProperties model = new CommitmentPlanProperties().withCommitmentPlanGuid("nwxuqlcvydyp") + CommitmentPlanProperties model = new CommitmentPlanProperties().withCommitmentPlanGuid("r") .withHostingModel(HostingModel.PROVISIONED_WEB) - .withPlanType("oa") - .withCurrent(new CommitmentPeriod().withTier("niodkooeb").withCount(2091031438)) - .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("pagao").withCount(1739461107)); + .withPlanType("y") + .withCurrent(new CommitmentPeriod().withTier("olpsslqlf").withCount(219002993)) + .withAutoRenew(true) + .withNext(new CommitmentPeriod().withTier("blylpstdbh").withCount(1133682494)); model = BinaryData.fromObject(model).toObject(CommitmentPlanProperties.class); - Assertions.assertEquals("nwxuqlcvydyp", model.commitmentPlanGuid()); + Assertions.assertEquals("r", model.commitmentPlanGuid()); Assertions.assertEquals(HostingModel.PROVISIONED_WEB, model.hostingModel()); - Assertions.assertEquals("oa", model.planType()); - Assertions.assertEquals("niodkooeb", model.current().tier()); - Assertions.assertEquals(2091031438, model.current().count()); - Assertions.assertFalse(model.autoRenew()); - Assertions.assertEquals("pagao", model.next().tier()); - Assertions.assertEquals(1739461107, model.next().count()); + Assertions.assertEquals("y", model.planType()); + Assertions.assertEquals("olpsslqlf", model.current().tier()); + Assertions.assertEquals(219002993, model.current().count()); + Assertions.assertTrue(model.autoRenew()); + Assertions.assertEquals("blylpstdbh", model.next().tier()); + Assertions.assertEquals(1133682494, model.next().count()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java index 83731ee00c19..77ba96192b81 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateAssociationMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentPlansCreateOrUpdateAssociationMockTests { @Test public void testCreateOrUpdateAssociation() throws Exception { String responseStr - = "{\"properties\":{\"accountId\":\"mxlpnerxrz\"},\"etag\":\"ylcurz\",\"tags\":{\"bjmbnvynfaooeac\":\"nbxqaeht\"},\"id\":\"dcglskakddid\",\"name\":\"hzllrqmtlpbyxro\",\"type\":\"duyqypf\"}"; + = "{\"properties\":{\"accountId\":\"jj\"},\"etag\":\"hci\",\"tags\":{\"tbrekqhsqhtf\":\"dv\"},\"id\":\"pqbye\",\"name\":\"uwyqwdq\",\"type\":\"gmghginztxlujkhn\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,15 @@ public void testCreateOrUpdateAssociation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlanAccountAssociation response = manager.commitmentPlans() - .defineAssociation("l") - .withExistingCommitmentPlan("smcolmugpy", "aosd") - .withTags(mapOf("mioyjpn", "qisqsqkp", "qdvrdmvxyrxdh", "lviqcpszpmc", "mbtple", "vqojbxaotcgbz")) - .withAccountId("x") + .defineAssociation("o") + .withExistingCommitmentPlan("skwsdgkj", "yacwrasekwefc") + .withTags( + mapOf("vjezcjumvpsim", "avuqmcbymsfobjlq", "nracli", "oyoiglkmiqw", "nhautwukexzgpmnm", "bfqpspkladyd")) + .withAccountId("oqar") .create(); - Assertions.assertEquals("nbxqaeht", response.tags().get("bjmbnvynfaooeac")); - Assertions.assertEquals("mxlpnerxrz", response.accountId()); + Assertions.assertEquals("dv", response.tags().get("tbrekqhsqhtf")); + Assertions.assertEquals("jj", response.accountId()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java index f0a6d83a9c70..247a722c7722 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdatePlanMockTests.java @@ -28,7 +28,7 @@ public final class CommitmentPlansCreateOrUpdatePlanMockTests { @Test public void testCreateOrUpdatePlan() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"vfcck\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"letyvesz\",\"current\":{\"tier\":\"hpdhwynctaczcnjf\",\"count\":103185318,\"quota\":{\"quantity\":4145098543965437482,\"unit\":\"itzovnkr\"},\"startDate\":\"kls\",\"endDate\":\"ihqlcoqks\"},\"autoRenew\":false,\"next\":{\"tier\":\"yxwb\",\"count\":269745686,\"quota\":{\"quantity\":2863058872645277107,\"unit\":\"orbccqcdhth\"},\"startDate\":\"vlirknuc\",\"endDate\":\"awrdt\"},\"last\":{\"tier\":\"zl\",\"count\":223590127,\"quota\":{\"quantity\":596366605743279566,\"unit\":\"zqjjt\"},\"startDate\":\"uy\",\"endDate\":\"fttkacybdueu\"},\"provisioningIssues\":[\"cdcpkshloj\",\"rmhzicsbf\",\"jhyaaknyuki\"]},\"tags\":{\"tej\":\"glhphzwx\"},\"location\":\"ilhvtozyagjj\",\"etag\":\"k\",\"kind\":\"lh\",\"sku\":{\"name\":\"xgffklvq\",\"tier\":\"Premium\",\"size\":\"rdgscnvqeonsgn\",\"family\":\"lwmezyohxpthceop\",\"capacity\":1614228249},\"id\":\"wfvesobpbok\",\"name\":\"mmlcdyarng\",\"type\":\"cjfwblqhxk\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"kqv\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"dxcltuubwyvpj\",\"current\":{\"tier\":\"cpj\",\"count\":1681005671,\"quota\":{\"quantity\":8502704974784019908,\"unit\":\"xkydfbwlja\"},\"startDate\":\"uerkjddvrg\",\"endDate\":\"egftcvb\"},\"autoRenew\":false,\"next\":{\"tier\":\"sdwgdnkefgmwd\",\"count\":457297052,\"quota\":{\"quantity\":5449250773154775326,\"unit\":\"ldbglzout\"},\"startDate\":\"aqgzekajclyzgs\",\"endDate\":\"rbjgmn\"},\"last\":{\"tier\":\"t\",\"count\":1682686797,\"quota\":{\"quantity\":1704339214270768743,\"unit\":\"bvvjbhvhdiq\"},\"startDate\":\"fluiyuosnuud\",\"endDate\":\"lvhyibdrqrswhbu\"},\"provisioningIssues\":[\"y\",\"owtjo\"]},\"tags\":{\"j\":\"fwfqchvcze\",\"z\":\"nctagfyvrtpqpem\",\"wemvxqabckmze\":\"gkrepdqhqyhw\",\"greohtwhlpuzjp\":\"xin\"},\"location\":\"eznzangprbfaxyxz\",\"etag\":\"ciphmsexr\",\"kind\":\"rndktx\",\"sku\":{\"name\":\"onfeeqgp\",\"tier\":\"Free\",\"size\":\"tbgnixxowwzkyfw\",\"family\":\"piw\",\"capacity\":471743021},\"id\":\"crmpepk\",\"name\":\"dm\",\"type\":\"xxij\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,40 +38,40 @@ public void testCreateOrUpdatePlan() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .definePlan("dxomrawppk") - .withExistingResourceGroup("ygvthrmxkbcjw") - .withRegion("yiulayno") - .withTags(mapOf("nh", "q", "mzngocfrjuy", "nmotpuwnnoh")) - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("fly") + .definePlan("jxcxxq") + .withExistingResourceGroup("enmvcebxeetq") + .withRegion("db") + .withTags(mapOf("iibelwcerw", "quwzp", "pjxljtxb", "w", "sdzhgbdgzpagsec", "sqtbxxniu")) + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("kedwqurcgojmrv") .withHostingModel(HostingModel.CONNECTED_CONTAINER) - .withPlanType("aeda") - .withCurrent(new CommitmentPeriod().withTier("clmgdtw").withCount(476346624)) + .withPlanType("ongzsehqqrsil") + .withCurrent(new CommitmentPeriod().withTier("skx").withCount(470051968)) .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("pyfaofdfp").withCount(1994379023))) - .withKind("ttpfsmwgsgh") - .withSku(new Sku().withName("cum") - .withTier(SkuTier.PREMIUM) - .withSize("uqmllfeothxu") - .withFamily("igrjdljlkqhvkrbz") - .withCapacity(1085067244)) + .withNext(new CommitmentPeriod().withTier("rostvrjeqmtzz").withCount(2146803784))) + .withKind("mqiyn") + .withSku(new Sku().withName("oellnkkiiwvmt") + .withTier(SkuTier.BASIC) + .withSize("ymdjfua") + .withFamily("oqvqpilr") + .withCapacity(788439044)) .create(); - Assertions.assertEquals("vfcck", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("letyvesz", response.properties().planType()); - Assertions.assertEquals("hpdhwynctaczcnjf", response.properties().current().tier()); - Assertions.assertEquals(103185318, response.properties().current().count()); + Assertions.assertEquals("kqv", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.properties().hostingModel()); + Assertions.assertEquals("dxcltuubwyvpj", response.properties().planType()); + Assertions.assertEquals("cpj", response.properties().current().tier()); + Assertions.assertEquals(1681005671, response.properties().current().count()); Assertions.assertFalse(response.properties().autoRenew()); - Assertions.assertEquals("yxwb", response.properties().next().tier()); - Assertions.assertEquals(269745686, response.properties().next().count()); - Assertions.assertEquals("glhphzwx", response.tags().get("tej")); - Assertions.assertEquals("ilhvtozyagjj", response.location()); - Assertions.assertEquals("lh", response.kind()); - Assertions.assertEquals("xgffklvq", response.sku().name()); - Assertions.assertEquals(SkuTier.PREMIUM, response.sku().tier()); - Assertions.assertEquals("rdgscnvqeonsgn", response.sku().size()); - Assertions.assertEquals("lwmezyohxpthceop", response.sku().family()); - Assertions.assertEquals(1614228249, response.sku().capacity()); + Assertions.assertEquals("sdwgdnkefgmwd", response.properties().next().tier()); + Assertions.assertEquals(457297052, response.properties().next().count()); + Assertions.assertEquals("fwfqchvcze", response.tags().get("j")); + Assertions.assertEquals("eznzangprbfaxyxz", response.location()); + Assertions.assertEquals("rndktx", response.kind()); + Assertions.assertEquals("onfeeqgp", response.sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.sku().tier()); + Assertions.assertEquals("tbgnixxowwzkyfw", response.sku().size()); + Assertions.assertEquals("piw", response.sku().family()); + Assertions.assertEquals(471743021, response.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java index c05a7185038f..0029c06dd7a1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansCreateOrUpdateWithResponseMockTests.java @@ -29,7 +29,7 @@ public final class CommitmentPlansCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"kzkdtzxsoednlwg\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"zomucmqgisnionet\",\"current\":{\"tier\":\"rdpuenxkgtlzl\",\"count\":151759882,\"quota\":{\"quantity\":726614950131051820,\"unit\":\"nhzk\"},\"startDate\":\"bmxlxm\",\"endDate\":\"ygeqzusito\"},\"autoRenew\":false,\"next\":{\"tier\":\"sgbjmlree\",\"count\":1012257594,\"quota\":{\"quantity\":7620535772837855128,\"unit\":\"lc\"},\"startDate\":\"isolntfxxcrqmip\",\"endDate\":\"wfo\"},\"last\":{\"tier\":\"zms\",\"count\":1756374823,\"quota\":{\"quantity\":2257696943692994145,\"unit\":\"bulnvgskjtoxjdz\"},\"startDate\":\"jznvhxqqmq\",\"endDate\":\"aydhf\"},\"provisioningIssues\":[\"c\"]},\"tags\":{\"m\":\"fshksnyzmspamwb\",\"qdktwtkvihlp\":\"nlslcef\",\"zhwv\":\"liwoyngu\"},\"location\":\"dpcmhjh\",\"etag\":\"sybkekymffzt\",\"kind\":\"lscvqsyeiihf\",\"sku\":{\"name\":\"kouihyeseuugcig\",\"tier\":\"Enterprise\",\"size\":\"smg\",\"family\":\"mt\",\"capacity\":1401150784},\"id\":\"bebjn\",\"name\":\"veglabtvkbiwzn\",\"type\":\"tfgfic\"}"; + = "{\"properties\":{\"provisioningState\":\"Moving\",\"commitmentPlanGuid\":\"ilaywkdcwm\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"ilm\",\"current\":{\"tier\":\"qaolfylnkkbjpjv\",\"count\":2050240789,\"quota\":{\"quantity\":4454730902225423741,\"unit\":\"obbjwhlwy\"},\"startDate\":\"nqzocrdzg\",\"endDate\":\"euntgxdncaqtti\"},\"autoRenew\":true,\"next\":{\"tier\":\"uvny\",\"count\":1992908334,\"quota\":{\"quantity\":8259082886533914267,\"unit\":\"rihl\"},\"startDate\":\"gbehlqtxnr\",\"endDate\":\"kndrndpgfjo\"},\"last\":{\"tier\":\"aqotwfhipxwgsabv\",\"count\":2086469129,\"quota\":{\"quantity\":4295475425882126275,\"unit\":\"czuumljcir\"},\"startDate\":\"efy\",\"endDate\":\"veitit\"},\"provisioningIssues\":[\"xzajlnsjhwjuyxxb\"]},\"tags\":{\"bwpntghy\":\"mvuaytuadxkxe\"},\"location\":\"a\",\"etag\":\"drnxsluvlzla\",\"kind\":\"t\",\"sku\":{\"name\":\"pbqhvfdqqjwkr\",\"tier\":\"Basic\",\"size\":\"anojisgglmvokat\",\"family\":\"tjctibpvbkaeh\",\"capacity\":663058484},\"id\":\"ygdfwakwseiv\",\"name\":\"akxhysowlj\",\"type\":\"x\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,42 +39,41 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .createOrUpdateWithResponse("eubanlxunpqcc", "qiawzl", "klaslga", + .createOrUpdateWithResponse("lhsyekrdrenxolr", "yehqbeivdlhydwb", "bfgrlpunytjlkes", new CommitmentPlanInner() - .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("lrarwpewsaudo") - .withHostingModel(HostingModel.DISCONNECTED_CONTAINER) - .withPlanType("ghsxjpyt") - .withCurrent(new CommitmentPeriod().withTier("bala").withCount(76421440)) - .withAutoRenew(false) - .withNext(new CommitmentPeriod().withTier("etwilyrzoxpd").withCount(601671597))) - .withTags(mapOf("jp", "ycpawm", "fpcfjf", "dpwrp", "mnnidmdia", "zlgzawkgyepey", "huosgwqpsqaz", - "pzxkzrntmkct")) - .withLocation("qodvqgcnbhcbmj") - .withKind("iynt") - .withSku(new Sku().withName("jmfmeftvhkm") - .withTier(SkuTier.ENTERPRISE) - .withSize("rh") - .withFamily("bwgmjgrul") - .withCapacity(1820087059)), + .withProperties(new CommitmentPlanProperties().withCommitmentPlanGuid("hubt") + .withHostingModel(HostingModel.CONNECTED_CONTAINER) + .withPlanType("an") + .withCurrent(new CommitmentPeriod().withTier("llbvgwzsfftedous").withCount(1395813376)) + .withAutoRenew(true) + .withNext(new CommitmentPeriod().withTier("ywhczzq").withCount(1610559563))) + .withTags(mapOf("pqtwloesqrggvrb", "ecehokw", "aciduwjleip", "yrukoi", "yxpzruzythqk", "lh")) + .withLocation("hbgxvel") + .withKind("jdtvmclyymffhmj") + .withSku(new Sku().withName("dnyxfzuvrz") + .withTier(SkuTier.STANDARD) + .withSize("zjqr") + .withFamily("pv") + .withCapacity(1502399105)), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("kzkdtzxsoednlwg", response.properties().commitmentPlanGuid()); + Assertions.assertEquals("ilaywkdcwm", response.properties().commitmentPlanGuid()); Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.properties().hostingModel()); - Assertions.assertEquals("zomucmqgisnionet", response.properties().planType()); - Assertions.assertEquals("rdpuenxkgtlzl", response.properties().current().tier()); - Assertions.assertEquals(151759882, response.properties().current().count()); - Assertions.assertFalse(response.properties().autoRenew()); - Assertions.assertEquals("sgbjmlree", response.properties().next().tier()); - Assertions.assertEquals(1012257594, response.properties().next().count()); - Assertions.assertEquals("fshksnyzmspamwb", response.tags().get("m")); - Assertions.assertEquals("dpcmhjh", response.location()); - Assertions.assertEquals("lscvqsyeiihf", response.kind()); - Assertions.assertEquals("kouihyeseuugcig", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("smg", response.sku().size()); - Assertions.assertEquals("mt", response.sku().family()); - Assertions.assertEquals(1401150784, response.sku().capacity()); + Assertions.assertEquals("ilm", response.properties().planType()); + Assertions.assertEquals("qaolfylnkkbjpjv", response.properties().current().tier()); + Assertions.assertEquals(2050240789, response.properties().current().count()); + Assertions.assertTrue(response.properties().autoRenew()); + Assertions.assertEquals("uvny", response.properties().next().tier()); + Assertions.assertEquals(1992908334, response.properties().next().count()); + Assertions.assertEquals("mvuaytuadxkxe", response.tags().get("bwpntghy")); + Assertions.assertEquals("a", response.location()); + Assertions.assertEquals("t", response.kind()); + Assertions.assertEquals("pbqhvfdqqjwkr", response.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.sku().tier()); + Assertions.assertEquals("anojisgglmvokat", response.sku().size()); + Assertions.assertEquals("tjctibpvbkaeh", response.sku().family()); + Assertions.assertEquals(663058484, response.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java index 64b758590a89..68baa5efb6f5 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteAssociationMockTests.java @@ -28,7 +28,7 @@ public void testDeleteAssociation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.commitmentPlans() - .deleteAssociation("ukppdixqbo", "xvhhyqq", "gatxgrznmginmtsd", com.azure.core.util.Context.NONE); + .deleteAssociation("vhax", "vwzaehp", "hthdklmvetatlakf", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java index cbdb981dd29a..84e9e525c1e3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.commitmentPlans().delete("dyhi", "paczmuh", "cakznhokhoitwhrj", com.azure.core.util.Context.NONE); + manager.commitmentPlans().delete("kb", "ctvtf", "mskdch", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java index 78f270f642b3..5eb59465505c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansDeletePlanMockTests.java @@ -27,7 +27,7 @@ public void testDeletePlan() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.commitmentPlans().deletePlan("nsnaajphmp", "ejnglpwsadaxjsum", com.azure.core.util.Context.NONE); + manager.commitmentPlans().deletePlan("qzufgsyfejyvdwt", "xptpqaya", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java index 8862541133ec..927452492a34 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetAssociationWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class CommitmentPlansGetAssociationWithResponseMockTests { @Test public void testGetAssociationWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"accountId\":\"fccylhtrh\"},\"etag\":\"vazjpwexcd\",\"tags\":{\"uxsphlokfpm\":\"robzzxezmnrkjgpj\",\"cgnrglaqrwy\":\"jpdvzvfbhwbdquf\",\"jqut\":\"mbhbafebzxf\",\"u\":\"bhlenntrvrkpsab\"},\"id\":\"zmlghny\",\"name\":\"v\",\"type\":\"pye\"}"; + = "{\"properties\":{\"accountId\":\"httqh\"},\"etag\":\"hkrezsdsuxheqdgc\",\"tags\":{\"m\":\"spiny\"},\"id\":\"wokmik\",\"name\":\"az\",\"type\":\"bmjxuvjipf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetAssociationWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlanAccountAssociation response = manager.commitmentPlans() - .getAssociationWithResponse("atpf", "saebwfwhxorpwal", "zwuge", com.azure.core.util.Context.NONE) + .getAssociationWithResponse("bfe", "hldiuhzzgqlm", "aewzgiudjp", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("robzzxezmnrkjgpj", response.tags().get("uxsphlokfpm")); - Assertions.assertEquals("fccylhtrh", response.accountId()); + Assertions.assertEquals("spiny", response.tags().get("m")); + Assertions.assertEquals("httqh", response.accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java index 6bf7a89a9620..2cc2c0613300 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetByResourceGroupWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentPlansGetByResourceGroupWithResponseMockTests { @Test public void testGetByResourceGroupWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"wuzvcmcokxize\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"rjwuca\",\"current\":{\"tier\":\"vajbvbnkrdemdid\",\"count\":429467980,\"quota\":{\"quantity\":7931143304832540150,\"unit\":\"wdydamisvpzt\"},\"startDate\":\"vykpxkqe\",\"endDate\":\"pjfojiunrls\"},\"autoRenew\":true,\"next\":{\"tier\":\"sykdtoi\",\"count\":1554888273,\"quota\":{\"quantity\":7871773899152316862,\"unit\":\"o\"},\"startDate\":\"vx\",\"endDate\":\"dxonckbn\"},\"last\":{\"tier\":\"fxlupibaq\",\"count\":7828384,\"quota\":{\"quantity\":3361211370082697174,\"unit\":\"eghlw\"},\"startDate\":\"ogvgfklqiyn\",\"endDate\":\"eqelsb\"},\"provisioningIssues\":[\"strkzxsgtznsvl\",\"dsmovpimy\",\"dnox\"]},\"tags\":{\"dxolousdv\":\"rqaqotn\"},\"location\":\"ptqmawzjdrpiz\",\"etag\":\"l\",\"kind\":\"ctsdbtqgkujds\",\"sku\":{\"name\":\"xrqwo\",\"tier\":\"Standard\",\"size\":\"tigapd\",\"family\":\"rikeejdpdfht\",\"capacity\":1245637277},\"id\":\"fqbriqu\",\"name\":\"wwtrjm\",\"type\":\"qkvyhzokpoyuohu\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"commitmentPlanGuid\":\"xophgerhsm\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"twzmqilrixysfnim\",\"current\":{\"tier\":\"wwwmhkruwaedrym\",\"count\":1323961625,\"quota\":{\"quantity\":2045208988516821197,\"unit\":\"zduewihapfjii\"},\"startDate\":\"jdiq\",\"endDate\":\"iej\"},\"autoRenew\":false,\"next\":{\"tier\":\"iedfsbwcei\",\"count\":255804567,\"quota\":{\"quantity\":1952854871615930475,\"unit\":\"xgoooxzprad\"},\"startDate\":\"kxknpdg\",\"endDate\":\"g\"},\"last\":{\"tier\":\"gswhgsaodkw\",\"count\":867628918,\"quota\":{\"quantity\":6996770207726456393,\"unit\":\"ohzha\"},\"startDate\":\"v\",\"endDate\":\"xbg\"},\"provisioningIssues\":[\"ervqchoadhrsxqvz\"]},\"tags\":{\"fajglzrsubklrxhj\":\"abdsr\",\"eqq\":\"ltcetjdvqyd\"},\"location\":\"aruwdxvqzxoebw\",\"etag\":\"xbibanbaupw\",\"kind\":\"vpaklozkxbz\",\"sku\":{\"name\":\"ejpl\",\"tier\":\"Standard\",\"size\":\"bttt\",\"family\":\"s\",\"capacity\":1664144271},\"id\":\"rswgkpjhboyikeb\",\"name\":\"uhkslg\",\"type\":\"lokhueoijyzcqyp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,24 +33,24 @@ public void testGetByResourceGroupWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .getByResourceGroupWithResponse("jparda", "sjcfma", com.azure.core.util.Context.NONE) + .getByResourceGroupWithResponse("bh", "qgsdr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wuzvcmcokxize", response.properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("rjwuca", response.properties().planType()); - Assertions.assertEquals("vajbvbnkrdemdid", response.properties().current().tier()); - Assertions.assertEquals(429467980, response.properties().current().count()); - Assertions.assertTrue(response.properties().autoRenew()); - Assertions.assertEquals("sykdtoi", response.properties().next().tier()); - Assertions.assertEquals(1554888273, response.properties().next().count()); - Assertions.assertEquals("rqaqotn", response.tags().get("dxolousdv")); - Assertions.assertEquals("ptqmawzjdrpiz", response.location()); - Assertions.assertEquals("ctsdbtqgkujds", response.kind()); - Assertions.assertEquals("xrqwo", response.sku().name()); + Assertions.assertEquals("xophgerhsm", response.properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); + Assertions.assertEquals("twzmqilrixysfnim", response.properties().planType()); + Assertions.assertEquals("wwwmhkruwaedrym", response.properties().current().tier()); + Assertions.assertEquals(1323961625, response.properties().current().count()); + Assertions.assertFalse(response.properties().autoRenew()); + Assertions.assertEquals("iedfsbwcei", response.properties().next().tier()); + Assertions.assertEquals(255804567, response.properties().next().count()); + Assertions.assertEquals("abdsr", response.tags().get("fajglzrsubklrxhj")); + Assertions.assertEquals("aruwdxvqzxoebw", response.location()); + Assertions.assertEquals("vpaklozkxbz", response.kind()); + Assertions.assertEquals("ejpl", response.sku().name()); Assertions.assertEquals(SkuTier.STANDARD, response.sku().tier()); - Assertions.assertEquals("tigapd", response.sku().size()); - Assertions.assertEquals("rikeejdpdfht", response.sku().family()); - Assertions.assertEquals(1245637277, response.sku().capacity()); + Assertions.assertEquals("bttt", response.sku().size()); + Assertions.assertEquals("s", response.sku().family()); + Assertions.assertEquals(1664144271, response.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java index 036788f85801..137b64588f1a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentPlansGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"mynltwmpftmfoeaj\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"xwet\",\"current\":{\"tier\":\"ddrvlkpzwbhnrecc\",\"count\":420450011,\"quota\":{\"quantity\":7701334975605924576,\"unit\":\"kahmjedbiucvkhhw\"},\"startDate\":\"pjbweunxcq\",\"endDate\":\"ihufoihp\"},\"autoRenew\":false,\"next\":{\"tier\":\"vgnzuzpbgkzcsc\",\"count\":1145172696,\"quota\":{\"quantity\":2041996886864295768,\"unit\":\"hdimjuktirzkau\"},\"startDate\":\"u\",\"endDate\":\"ocf\"},\"last\":{\"tier\":\"wgofmhx\",\"count\":1780419974,\"quota\":{\"quantity\":5319938023711388095,\"unit\":\"k\"},\"startDate\":\"gikyjtkak\",\"endDate\":\"bishjvpzaptuo\"},\"provisioningIssues\":[\"oizjixwfgcdiyk\",\"c\"]},\"tags\":{\"dmuqohhi\":\"ujvqynvavit\",\"ddrwjcljbrhlhpvz\":\"raxq\",\"inafhxrzfrm\":\"dbwen\"},\"location\":\"tiucwv\",\"etag\":\"llukhkrcqxgcbvz\",\"kind\":\"mqcbpokstsinv\",\"sku\":{\"name\":\"ovjyhd\",\"tier\":\"Enterprise\",\"size\":\"dvcehqw\",\"family\":\"txnmxgnmguz\",\"capacity\":1018288584},\"id\":\"orbalkj\",\"name\":\"bkbdhlltqstqkqs\",\"type\":\"gxiynecovagzk\"}"; + = "{\"properties\":{\"provisioningState\":\"Creating\",\"commitmentPlanGuid\":\"l\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"rdpqgfhy\",\"current\":{\"tier\":\"akkldgrcwfcmfcn\",\"count\":1443434218,\"quota\":{\"quantity\":8007941374178798313,\"unit\":\"xjtielnzqgxxg\"},\"startDate\":\"bmtlpqagyno\",\"endDate\":\"rnzcalinc\"},\"autoRenew\":false,\"next\":{\"tier\":\"xaq\",\"count\":1405790897,\"quota\":{\"quantity\":3190647606897015449,\"unit\":\"ymqruqguhfupet\"},\"startDate\":\"vvoqsbpkf\",\"endDate\":\"nfkgxsyaowuzowpu\"},\"last\":{\"tier\":\"kc\",\"count\":1711843599,\"quota\":{\"quantity\":1876111825502695315,\"unit\":\"tiochlutixmqr\"},\"startDate\":\"jizcbfzmcrunfhiu\",\"endDate\":\"mfbcpaqktkrum\"},\"provisioningIssues\":[\"dkyzbfvxov\"]},\"tags\":{\"hyhlwcjsqg\":\"iuxqggvqr\",\"euqlsdxeqztv\":\"jhffbxrqrkij\",\"wwa\":\"wmwwmjswen\",\"ojhtollhs\":\"ecleqioulndhzyo\"},\"location\":\"dm\",\"etag\":\"zln\",\"kind\":\"xpno\",\"sku\":{\"name\":\"oanfbcswqagyw\",\"tier\":\"Enterprise\",\"size\":\"gvjrktpgaeuky\",\"family\":\"ohpmwhqn\",\"capacity\":1157102161},\"id\":\"lhsidsjtdl\",\"name\":\"bninjgazlsvbzfc\",\"type\":\"uoeedwjcci\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,24 +33,24 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CommitmentPlan response = manager.commitmentPlans() - .getWithResponse("yxvqbanosj", "gir", "bgmgm", com.azure.core.util.Context.NONE) + .getWithResponse("nudn", "oabhjxwxqweuip", "pvksmit", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("mynltwmpftmfoeaj", response.properties().commitmentPlanGuid()); + Assertions.assertEquals("l", response.properties().commitmentPlanGuid()); Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.properties().hostingModel()); - Assertions.assertEquals("xwet", response.properties().planType()); - Assertions.assertEquals("ddrvlkpzwbhnrecc", response.properties().current().tier()); - Assertions.assertEquals(420450011, response.properties().current().count()); + Assertions.assertEquals("rdpqgfhy", response.properties().planType()); + Assertions.assertEquals("akkldgrcwfcmfcn", response.properties().current().tier()); + Assertions.assertEquals(1443434218, response.properties().current().count()); Assertions.assertFalse(response.properties().autoRenew()); - Assertions.assertEquals("vgnzuzpbgkzcsc", response.properties().next().tier()); - Assertions.assertEquals(1145172696, response.properties().next().count()); - Assertions.assertEquals("ujvqynvavit", response.tags().get("dmuqohhi")); - Assertions.assertEquals("tiucwv", response.location()); - Assertions.assertEquals("mqcbpokstsinv", response.kind()); - Assertions.assertEquals("ovjyhd", response.sku().name()); + Assertions.assertEquals("xaq", response.properties().next().tier()); + Assertions.assertEquals(1405790897, response.properties().next().count()); + Assertions.assertEquals("iuxqggvqr", response.tags().get("hyhlwcjsqg")); + Assertions.assertEquals("dm", response.location()); + Assertions.assertEquals("xpno", response.kind()); + Assertions.assertEquals("oanfbcswqagyw", response.sku().name()); Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("dvcehqw", response.sku().size()); - Assertions.assertEquals("txnmxgnmguz", response.sku().family()); - Assertions.assertEquals(1018288584, response.sku().capacity()); + Assertions.assertEquals("gvjrktpgaeuky", response.sku().size()); + Assertions.assertEquals("ohpmwhqn", response.sku().family()); + Assertions.assertEquals(1157102161, response.sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java index 89dfd9f02f10..6ee01afd56cb 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListAssociationsMockTests.java @@ -22,7 +22,7 @@ public final class CommitmentPlansListAssociationsMockTests { @Test public void testListAssociations() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"accountId\":\"agairwcqzoofjnqj\"},\"etag\":\"epfbhtleberpylje\",\"tags\":{\"owkdnjr\":\"qnwjjq\",\"wiehycpn\":\"gkr\"},\"id\":\"awonoehrguqlhfw\",\"name\":\"fbjzmpyr\",\"type\":\"uyfazbkoc\"}]}"; + = "{\"value\":[{\"properties\":{\"accountId\":\"hchgjtnhtukf\"},\"etag\":\"ihmbfntume\",\"tags\":{\"t\":\"xvqxbnuvwcgasgo\",\"jfmk\":\"jzwxuqgovsxpwwz\",\"ls\":\"htgfred\"},\"id\":\"rllccnaovjowazhp\",\"name\":\"bacom\",\"type\":\"yotgkwsxnsrqorc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListAssociations() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentPlans().listAssociations("xch", "kibmgjymn", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().listAssociations("oixwgiksb", "vtooxrpo", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qnwjjq", response.iterator().next().tags().get("owkdnjr")); - Assertions.assertEquals("agairwcqzoofjnqj", response.iterator().next().accountId()); + Assertions.assertEquals("xvqxbnuvwcgasgo", response.iterator().next().tags().get("t")); + Assertions.assertEquals("hchgjtnhtukf", response.iterator().next().accountId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java index 39621cdfe37f..a63ca2396012 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListByResourceGroupMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListByResourceGroupMockTests { @Test public void testListByResourceGroup() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"mfqzwqdnx\",\"hostingModel\":\"Web\",\"planType\":\"c\",\"current\":{\"tier\":\"yw\",\"count\":1535571219,\"quota\":{\"quantity\":9211781434738718590,\"unit\":\"yz\"},\"startDate\":\"czaqpqifdbmpt\",\"endDate\":\"txzuisamonatnize\"},\"autoRenew\":false,\"next\":{\"tier\":\"qjghrmthsplwst\",\"count\":1476415299,\"quota\":{\"quantity\":4189558770153768694,\"unit\":\"paniceo\"},\"startDate\":\"gzwhsxyrujmtik\",\"endDate\":\"likyohz\"},\"last\":{\"tier\":\"qhfnkvycqqqds\",\"count\":575770484,\"quota\":{\"quantity\":6790072487934176345,\"unit\":\"xhrptyodlh\"},\"startDate\":\"ktltddsobjopnouh\",\"endDate\":\"ezkqxsalu\"},\"provisioningIssues\":[\"gfcvcewbwq\",\"dgsjsat\",\"rncmazdfsqxh\",\"qmr\"]},\"tags\":{\"bwtdr\":\"arnpvgrsz\"},\"location\":\"gz\",\"etag\":\"l\",\"kind\":\"lhhfi\",\"sku\":{\"name\":\"cfculzj\",\"tier\":\"Enterprise\",\"size\":\"fywvyldqpzfzx\",\"family\":\"xi\",\"capacity\":536579616},\"id\":\"lzkdrocqsxy\",\"name\":\"qqt\",\"type\":\"miwdwisvnme\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"bmxsnxoc\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"ojkpoyh\",\"current\":{\"tier\":\"djuxdbdljzgd\",\"count\":972242943,\"quota\":{\"quantity\":6815952966419097776,\"unit\":\"gzlrqhbj\"},\"startDate\":\"ogdxwbsfpyxxtjlf\",\"endDate\":\"cominxojjluxx\"},\"autoRenew\":false,\"next\":{\"tier\":\"zd\",\"count\":678626206,\"quota\":{\"quantity\":7828405486647091889,\"unit\":\"ay\"},\"startDate\":\"ribqlotokh\",\"endDate\":\"wtaznkcqw\"},\"last\":{\"tier\":\"jyofgwhnk\",\"count\":1605579026,\"quota\":{\"quantity\":6715067531103732186,\"unit\":\"mctsnldkpwo\"},\"startDate\":\"isubxbteog\",\"endDate\":\"fiijrykwlefksxqc\"},\"provisioningIssues\":[\"fpxgnmqvz\",\"luyqqaiossscyvai\",\"ppuacvfyeowp\",\"fxtjdhsoym\"]},\"tags\":{\"ehdpboujstkfvvds\":\"tyqft\"},\"location\":\"cde\",\"etag\":\"uenygnxcg\",\"kind\":\"frn\",\"sku\":{\"name\":\"ktr\",\"tier\":\"Free\",\"size\":\"nlrxsmyltrwntfmt\",\"family\":\"wjdxw\",\"capacity\":684213688},\"id\":\"urrdreyzjwhsetww\",\"name\":\"wzzqseuzuukykcy\",\"type\":\"hyqqzzdcy\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,23 +34,23 @@ public void testListByResourceGroup() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentPlans().listByResourceGroup("pezco", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().listByResourceGroup("k", com.azure.core.util.Context.NONE); - Assertions.assertEquals("mfqzwqdnx", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("c", response.iterator().next().properties().planType()); - Assertions.assertEquals("yw", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1535571219, response.iterator().next().properties().current().count()); + Assertions.assertEquals("bmxsnxoc", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("ojkpoyh", response.iterator().next().properties().planType()); + Assertions.assertEquals("djuxdbdljzgd", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(972242943, response.iterator().next().properties().current().count()); Assertions.assertFalse(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("qjghrmthsplwst", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(1476415299, response.iterator().next().properties().next().count()); - Assertions.assertEquals("arnpvgrsz", response.iterator().next().tags().get("bwtdr")); - Assertions.assertEquals("gz", response.iterator().next().location()); - Assertions.assertEquals("lhhfi", response.iterator().next().kind()); - Assertions.assertEquals("cfculzj", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.iterator().next().sku().tier()); - Assertions.assertEquals("fywvyldqpzfzx", response.iterator().next().sku().size()); - Assertions.assertEquals("xi", response.iterator().next().sku().family()); - Assertions.assertEquals(536579616, response.iterator().next().sku().capacity()); + Assertions.assertEquals("zd", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(678626206, response.iterator().next().properties().next().count()); + Assertions.assertEquals("tyqft", response.iterator().next().tags().get("ehdpboujstkfvvds")); + Assertions.assertEquals("cde", response.iterator().next().location()); + Assertions.assertEquals("frn", response.iterator().next().kind()); + Assertions.assertEquals("ktr", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); + Assertions.assertEquals("nlrxsmyltrwntfmt", response.iterator().next().sku().size()); + Assertions.assertEquals("wjdxw", response.iterator().next().sku().family()); + Assertions.assertEquals(684213688, response.iterator().next().sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java index b4da0137bd8d..8f44592a01c9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"commitmentPlanGuid\":\"zqpxzbawkikcd\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"ssdpjeyoqxded\",\"current\":{\"tier\":\"iwhagxsur\",\"count\":1878759214,\"quota\":{\"quantity\":4857184166189728487,\"unit\":\"bgullc\"},\"startDate\":\"qqzjkoxdu\",\"endDate\":\"amglrouig\"},\"autoRenew\":true,\"next\":{\"tier\":\"j\",\"count\":1944632599,\"quota\":{\"quantity\":1499823684392724560,\"unit\":\"gd\"},\"startDate\":\"kghpcv\",\"endDate\":\"qirvtk\"},\"last\":{\"tier\":\"hmvfxlapjajodm\",\"count\":480333031,\"quota\":{\"quantity\":6812003311431684914,\"unit\":\"vqokql\"},\"startDate\":\"qg\",\"endDate\":\"abwlyvx\"},\"provisioningIssues\":[\"qvctsfa\",\"uhwwsknstvz\",\"zhasupmlppdpgzvz\",\"azvbkar\"]},\"tags\":{\"atsyiysjqhenig\":\"gongr\",\"gubabyjde\":\"eq\"},\"location\":\"sc\",\"etag\":\"ydzjemexm\",\"kind\":\"kvmuwrxlniwmcp\",\"sku\":{\"name\":\"rdlhvdvmiphbe\",\"tier\":\"Basic\",\"size\":\"zmhkdclacroczfmu\",\"family\":\"rkeluxzshxzezbzu\",\"capacity\":955799432},\"id\":\"evzske\",\"name\":\"cgwfsgqkstyecu\",\"type\":\"yu\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"commitmentPlanGuid\":\"dgjqafkmkro\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"hqet\",\"current\":{\"tier\":\"rtvaoznqni\",\"count\":1482907808,\"quota\":{\"quantity\":8022808576964319697,\"unit\":\"ceituuge\"},\"startDate\":\"fpjstlzmb\",\"endDate\":\"yjdeolctaebfs\"},\"autoRenew\":true,\"next\":{\"tier\":\"jcustbvtq\",\"count\":84398716,\"quota\":{\"quantity\":8158013841731837047,\"unit\":\"eafgfosehxlzsxe\"},\"startDate\":\"p\",\"endDate\":\"waaeskyfjl\"},\"last\":{\"tier\":\"qtoyrpl\",\"count\":1825702886,\"quota\":{\"quantity\":8039534643491119965,\"unit\":\"pq\"},\"startDate\":\"vh\",\"endDate\":\"fowgwbtmkekx\"},\"provisioningIssues\":[\"waqxofqovc\",\"iqbplvfidusz\",\"ekxbyjg\"]},\"tags\":{\"x\":\"e\",\"dagrhrdicxdw\":\"ihpq\",\"vcxjsgbipcukdvek\":\"jfowxwy\",\"scrdp\":\"buhoduchv\"},\"location\":\"fdyjdu\",\"etag\":\"pyszekb\",\"kind\":\"lkaaggkr\",\"sku\":{\"name\":\"bfrnuybffljfii\",\"tier\":\"Basic\",\"size\":\"agsqta\",\"family\":\"usrexxf\",\"capacity\":1695279787},\"id\":\"wudohzilfm\",\"name\":\"l\",\"type\":\"kpsimsfeypofqp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,24 +34,24 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentPlans().list("dmmazdnc", "idb", com.azure.core.util.Context.NONE); + = manager.commitmentPlans().list("aiubavlzwpvgmfa", "kzaz", com.azure.core.util.Context.NONE); - Assertions.assertEquals("zqpxzbawkikcd", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, + Assertions.assertEquals("dgjqafkmkro", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.CONNECTED_CONTAINER, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("ssdpjeyoqxded", response.iterator().next().properties().planType()); - Assertions.assertEquals("iwhagxsur", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1878759214, response.iterator().next().properties().current().count()); + Assertions.assertEquals("hqet", response.iterator().next().properties().planType()); + Assertions.assertEquals("rtvaoznqni", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(1482907808, response.iterator().next().properties().current().count()); Assertions.assertTrue(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("j", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(1944632599, response.iterator().next().properties().next().count()); - Assertions.assertEquals("gongr", response.iterator().next().tags().get("atsyiysjqhenig")); - Assertions.assertEquals("sc", response.iterator().next().location()); - Assertions.assertEquals("kvmuwrxlniwmcp", response.iterator().next().kind()); - Assertions.assertEquals("rdlhvdvmiphbe", response.iterator().next().sku().name()); + Assertions.assertEquals("jcustbvtq", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(84398716, response.iterator().next().properties().next().count()); + Assertions.assertEquals("e", response.iterator().next().tags().get("x")); + Assertions.assertEquals("fdyjdu", response.iterator().next().location()); + Assertions.assertEquals("lkaaggkr", response.iterator().next().kind()); + Assertions.assertEquals("bfrnuybffljfii", response.iterator().next().sku().name()); Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); - Assertions.assertEquals("zmhkdclacroczfmu", response.iterator().next().sku().size()); - Assertions.assertEquals("rkeluxzshxzezbzu", response.iterator().next().sku().family()); - Assertions.assertEquals(955799432, response.iterator().next().sku().capacity()); + Assertions.assertEquals("agsqta", response.iterator().next().sku().size()); + Assertions.assertEquals("usrexxf", response.iterator().next().sku().family()); + Assertions.assertEquals(1695279787, response.iterator().next().sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java index 411a92a6ebd9..14089d8d6f4d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentPlansListPlansBySubscriptionMockTests.java @@ -24,7 +24,7 @@ public final class CommitmentPlansListPlansBySubscriptionMockTests { @Test public void testListPlansBySubscription() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"commitmentPlanGuid\":\"m\",\"hostingModel\":\"Web\",\"planType\":\"hftpzcrrykll\",\"current\":{\"tier\":\"qanhkigg\",\"count\":1710211884,\"quota\":{\"quantity\":2657944861470820502,\"unit\":\"ubhg\"},\"startDate\":\"hetxdqcmyctajqz\",\"endDate\":\"alec\"},\"autoRenew\":true,\"next\":{\"tier\":\"wksdegyxsbfpzvo\",\"count\":873335912,\"quota\":{\"quantity\":4183388609452860640,\"unit\":\"fzwush\"},\"startDate\":\"xpblalh\",\"endDate\":\"zpfkis\"},\"last\":{\"tier\":\"dqzsaaoqdsgp\",\"count\":222070113,\"quota\":{\"quantity\":1226286358954663513,\"unit\":\"afcnlrtb\"},\"startDate\":\"jzzca\",\"endDate\":\"jolb\"},\"provisioningIssues\":[\"ktwieope\",\"e\",\"xq\",\"wrswyiljp\"]},\"tags\":{\"bmcnltmwytku\":\"gxyxyauxredd\",\"wbmwhrialiwr\":\"sqycmmoxfablqg\",\"bibticuhqvum\":\"cgnwplrrbphcts\"},\"location\":\"bfs\",\"etag\":\"qbbewfcuqfpyyxm\",\"kind\":\"mtmvwituwey\",\"sku\":{\"name\":\"shcybwfuppox\",\"tier\":\"Free\",\"size\":\"vo\",\"family\":\"jxdiikmoxrezsv\",\"capacity\":1518144879},\"id\":\"xikjm\",\"name\":\"ywlunpipcwybs\",\"type\":\"fncn\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"commitmentPlanGuid\":\"ewfopazdazg\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"pew\",\"current\":{\"tier\":\"utmdpvozg\",\"count\":892446808,\"quota\":{\"quantity\":8714935011056715999,\"unit\":\"clctzey\"},\"startDate\":\"mndcov\",\"endDate\":\"zqauxzan\"},\"autoRenew\":true,\"next\":{\"tier\":\"ruw\",\"count\":1219315696,\"quota\":{\"quantity\":3605995845261978325,\"unit\":\"txudqyeme\"},\"startDate\":\"naucmcirtnee\",\"endDate\":\"jauwcgxefnohaitr\"},\"last\":{\"tier\":\"zerwgudas\",\"count\":825337703,\"quota\":{\"quantity\":1762432055211572622,\"unit\":\"gfcoc\"},\"startDate\":\"hpriylfm\",\"endDate\":\"trauds\"},\"provisioningIssues\":[\"cdculr\",\"gpqtmo\",\"hvrztnvg\"]},\"tags\":{\"ewjzl\":\"qrdgrtw\",\"jcayerzrransyby\":\"ykcfazz\",\"kfscjfncjwv\":\"polwzrghsrlei\",\"qwtltngvmreupt\":\"ag\"},\"location\":\"lzmijajwolxfsv\",\"etag\":\"h\",\"kind\":\"ynwlslrcigtzjcv\",\"sku\":{\"name\":\"qlapsnsso\",\"tier\":\"Basic\",\"size\":\"avidnievwffcv\",\"family\":\"ezslp\",\"capacity\":1342040722},\"id\":\"bdsval\",\"name\":\"nptw\",\"type\":\"rkxgpazwugxyqvnj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,21 +36,21 @@ public void testListPlansBySubscription() throws Exception { PagedIterable response = manager.commitmentPlans().listPlansBySubscription(com.azure.core.util.Context.NONE); - Assertions.assertEquals("m", response.iterator().next().properties().commitmentPlanGuid()); - Assertions.assertEquals(HostingModel.WEB, response.iterator().next().properties().hostingModel()); - Assertions.assertEquals("hftpzcrrykll", response.iterator().next().properties().planType()); - Assertions.assertEquals("qanhkigg", response.iterator().next().properties().current().tier()); - Assertions.assertEquals(1710211884, response.iterator().next().properties().current().count()); + Assertions.assertEquals("ewfopazdazg", response.iterator().next().properties().commitmentPlanGuid()); + Assertions.assertEquals(HostingModel.PROVISIONED_WEB, response.iterator().next().properties().hostingModel()); + Assertions.assertEquals("pew", response.iterator().next().properties().planType()); + Assertions.assertEquals("utmdpvozg", response.iterator().next().properties().current().tier()); + Assertions.assertEquals(892446808, response.iterator().next().properties().current().count()); Assertions.assertTrue(response.iterator().next().properties().autoRenew()); - Assertions.assertEquals("wksdegyxsbfpzvo", response.iterator().next().properties().next().tier()); - Assertions.assertEquals(873335912, response.iterator().next().properties().next().count()); - Assertions.assertEquals("gxyxyauxredd", response.iterator().next().tags().get("bmcnltmwytku")); - Assertions.assertEquals("bfs", response.iterator().next().location()); - Assertions.assertEquals("mtmvwituwey", response.iterator().next().kind()); - Assertions.assertEquals("shcybwfuppox", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); - Assertions.assertEquals("vo", response.iterator().next().sku().size()); - Assertions.assertEquals("jxdiikmoxrezsv", response.iterator().next().sku().family()); - Assertions.assertEquals(1518144879, response.iterator().next().sku().capacity()); + Assertions.assertEquals("ruw", response.iterator().next().properties().next().tier()); + Assertions.assertEquals(1219315696, response.iterator().next().properties().next().count()); + Assertions.assertEquals("qrdgrtw", response.iterator().next().tags().get("ewjzl")); + Assertions.assertEquals("lzmijajwolxfsv", response.iterator().next().location()); + Assertions.assertEquals("ynwlslrcigtzjcv", response.iterator().next().kind()); + Assertions.assertEquals("qlapsnsso", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); + Assertions.assertEquals("avidnievwffcv", response.iterator().next().sku().size()); + Assertions.assertEquals("ezslp", response.iterator().next().sku().family()); + Assertions.assertEquals(1342040722, response.iterator().next().sku().capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java index b38e5dcb7328..7cf369c684a3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentQuotaTests.java @@ -11,9 +11,9 @@ public final class CommitmentQuotaTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CommitmentQuota model = BinaryData.fromString("{\"quantity\":8572095075412575290,\"unit\":\"t\"}") + CommitmentQuota model = BinaryData.fromString("{\"quantity\":4263981389922450899,\"unit\":\"hgure\"}") .toObject(CommitmentQuota.class); - Assertions.assertEquals(8572095075412575290L, model.quantity()); - Assertions.assertEquals("t", model.unit()); + Assertions.assertEquals(4263981389922450899L, model.quantity()); + Assertions.assertEquals("hgure", model.unit()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java index 958e7414743f..1ab1a883fac0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierInnerTests.java @@ -13,17 +13,17 @@ public final class CommitmentTierInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentTierInner model = BinaryData.fromString( - "{\"kind\":\"kwseivmakxhyso\",\"skuName\":\"juxlkbectvtfjm\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"hmaiubavlzwpvg\",\"tier\":\"a\",\"maxCount\":1236246981,\"quota\":{\"quantity\":3753007374917287428,\"unit\":\"kedgj\"},\"cost\":{\"commitmentMeterId\":\"kmkrokzrth\",\"overageMeterId\":\"twpqrtva\"}}") + "{\"kind\":\"d\",\"skuName\":\"dwead\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"wntopag\",\"tier\":\"mvmmagoaqylkjz\",\"maxCount\":796364731,\"quota\":{\"quantity\":3811609121634513154,\"unit\":\"gmxitpfi\"},\"cost\":{\"commitmentMeterId\":\"pdltkrlg\",\"overageMeterId\":\"tbdrvcqgue\"}}") .toObject(CommitmentTierInner.class); - Assertions.assertEquals("kwseivmakxhyso", model.kind()); - Assertions.assertEquals("juxlkbectvtfjm", model.skuName()); + Assertions.assertEquals("d", model.kind()); + Assertions.assertEquals("dwead", model.skuName()); Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, model.hostingModel()); - Assertions.assertEquals("hmaiubavlzwpvg", model.planType()); - Assertions.assertEquals("a", model.tier()); - Assertions.assertEquals(1236246981, model.maxCount()); - Assertions.assertEquals(3753007374917287428L, model.quota().quantity()); - Assertions.assertEquals("kedgj", model.quota().unit()); - Assertions.assertEquals("kmkrokzrth", model.cost().commitmentMeterId()); - Assertions.assertEquals("twpqrtva", model.cost().overageMeterId()); + Assertions.assertEquals("wntopag", model.planType()); + Assertions.assertEquals("mvmmagoaqylkjz", model.tier()); + Assertions.assertEquals(796364731, model.maxCount()); + Assertions.assertEquals(3811609121634513154L, model.quota().quantity()); + Assertions.assertEquals("gmxitpfi", model.quota().unit()); + Assertions.assertEquals("pdltkrlg", model.cost().commitmentMeterId()); + Assertions.assertEquals("tbdrvcqgue", model.cost().overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java index afdb0a0e7fec..3cab60740c85 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTierListResultTests.java @@ -12,8 +12,8 @@ public final class CommitmentTierListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CommitmentTierListResult model = BinaryData.fromString( - "{\"nextLink\":\"qotwfh\",\"value\":[{\"kind\":\"gsabvcipowzafc\",\"skuName\":\"umljcirvpef\",\"hostingModel\":\"Web\",\"planType\":\"ei\",\"tier\":\"tjnsx\",\"maxCount\":1266964296,\"quota\":{\"quantity\":213770050562741377,\"unit\":\"wjuyxx\"},\"cost\":{\"commitmentMeterId\":\"vmv\",\"overageMeterId\":\"ytuadxkxeqbwp\"}},{\"kind\":\"ghyksarcdrnxs\",\"skuName\":\"vlzladl\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"bqhvfdqqjwkr\",\"tier\":\"zdanojis\",\"maxCount\":1762220888,\"quota\":{\"quantity\":5021634765672700621,\"unit\":\"tuz\"},\"cost\":{\"commitmentMeterId\":\"tibpv\",\"overageMeterId\":\"aehxsmzygdf\"}}]}") + "{\"nextLink\":\"zvqqugdrftbcvexr\",\"value\":[{\"kind\":\"owtljvfw\",\"skuName\":\"eagk\",\"hostingModel\":\"Web\",\"planType\":\"rqtvbczsulmdgglm\",\"tier\":\"jpfseykg\",\"maxCount\":737003568,\"quota\":{\"quantity\":1425832599539567248,\"unit\":\"gafpgylk\"},\"cost\":{\"commitmentMeterId\":\"jujcngoad\",\"overageMeterId\":\"dm\"}},{\"kind\":\"gjfoknubnoitpkpz\",\"skuName\":\"gdgxvcoqraswug\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"itweialwvskbuh\",\"tier\":\"caqt\",\"maxCount\":582809262,\"quota\":{\"quantity\":6052666582364020032,\"unit\":\"jpds\"},\"cost\":{\"commitmentMeterId\":\"kuejk\",\"overageMeterId\":\"bizt\"}},{\"kind\":\"fqcvovj\",\"skuName\":\"ycsjmlbem\",\"hostingModel\":\"ConnectedContainer\",\"planType\":\"riuxegthortuda\",\"tier\":\"pjfe\",\"maxCount\":1302185073,\"quota\":{\"quantity\":3103501670005919366,\"unit\":\"bgqnz\"},\"cost\":{\"commitmentMeterId\":\"iilialwc\",\"overageMeterId\":\"ckbbcc\"}},{\"kind\":\"zpraoxn\",\"skuName\":\"ffatsgftipw\",\"hostingModel\":\"ProvisionedWeb\",\"planType\":\"ubhiqdxyur\",\"tier\":\"nuhzafccnuh\",\"maxCount\":1907122793,\"quota\":{\"quantity\":5858089655757702671,\"unit\":\"igvxvatvcrk\"},\"cost\":{\"commitmentMeterId\":\"nbqxvhcsyhzlwxae\",\"overageMeterId\":\"vurex\"}}]}") .toObject(CommitmentTierListResult.class); - Assertions.assertEquals("qotwfh", model.nextLink()); + Assertions.assertEquals("zvqqugdrftbcvexr", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java index b1302ba76633..2b80bf375f0e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CommitmentTiersListMockTests.java @@ -23,7 +23,7 @@ public final class CommitmentTiersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"kind\":\"qxqkv\",\"skuName\":\"mjhymudjma\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"ebhsermclyqw\",\"tier\":\"hyqkaaptbssvkbcb\",\"maxCount\":1798263571,\"quota\":{\"quantity\":577834154400477682,\"unit\":\"cuhp\"},\"cost\":{\"commitmentMeterId\":\"bnsshvq\",\"overageMeterId\":\"szbeuybutcdzjf\"}}]}"; + = "{\"value\":[{\"kind\":\"dcclcvqsr\",\"skuName\":\"ay\",\"hostingModel\":\"DisconnectedContainer\",\"planType\":\"bzmfxlry\",\"tier\":\"jxlpiy\",\"maxCount\":2086567476,\"quota\":{\"quantity\":4598492075078891040,\"unit\":\"fbgcny\"},\"cost\":{\"commitmentMeterId\":\"xmkhmq\",\"overageMeterId\":\"cgaullfstyygjqpu\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.commitmentTiers().list("pzheahu", com.azure.core.util.Context.NONE); + = manager.commitmentTiers().list("fwkyluobdxw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qxqkv", response.iterator().next().kind()); - Assertions.assertEquals("mjhymudjma", response.iterator().next().skuName()); + Assertions.assertEquals("dcclcvqsr", response.iterator().next().kind()); + Assertions.assertEquals("ay", response.iterator().next().skuName()); Assertions.assertEquals(HostingModel.DISCONNECTED_CONTAINER, response.iterator().next().hostingModel()); - Assertions.assertEquals("ebhsermclyqw", response.iterator().next().planType()); - Assertions.assertEquals("hyqkaaptbssvkbcb", response.iterator().next().tier()); - Assertions.assertEquals(1798263571, response.iterator().next().maxCount()); - Assertions.assertEquals(577834154400477682L, response.iterator().next().quota().quantity()); - Assertions.assertEquals("cuhp", response.iterator().next().quota().unit()); - Assertions.assertEquals("bnsshvq", response.iterator().next().cost().commitmentMeterId()); - Assertions.assertEquals("szbeuybutcdzjf", response.iterator().next().cost().overageMeterId()); + Assertions.assertEquals("bzmfxlry", response.iterator().next().planType()); + Assertions.assertEquals("jxlpiy", response.iterator().next().tier()); + Assertions.assertEquals(2086567476, response.iterator().next().maxCount()); + Assertions.assertEquals(4598492075078891040L, response.iterator().next().quota().quantity()); + Assertions.assertEquals("fbgcny", response.iterator().next().quota().unit()); + Assertions.assertEquals("xmkhmq", response.iterator().next().cost().commitmentMeterId()); + Assertions.assertEquals("cgaullfstyygjqpu", response.iterator().next().cost().overageMeterId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionManagedIdentityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionManagedIdentityTests.java index 1a447a36904f..b0b29903c85d 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,18 @@ public final class ConnectionManagedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ConnectionManagedIdentity model - = BinaryData.fromString("{\"clientId\":\"uzzjgnrefq\",\"resourceId\":\"qotoihiqakydiwfb\"}") - .toObject(ConnectionManagedIdentity.class); - Assertions.assertEquals("uzzjgnrefq", model.clientId()); - Assertions.assertEquals("qotoihiqakydiwfb", model.resourceId()); + ConnectionManagedIdentity model = BinaryData.fromString("{\"clientId\":\"rrqwexjk\",\"resourceId\":\"xap\"}") + .toObject(ConnectionManagedIdentity.class); + Assertions.assertEquals("rrqwexjk", model.clientId()); + Assertions.assertEquals("xap", model.resourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ConnectionManagedIdentity model - = new ConnectionManagedIdentity().withClientId("uzzjgnrefq").withResourceId("qotoihiqakydiwfb"); + = new ConnectionManagedIdentity().withClientId("rrqwexjk").withResourceId("xap"); model = BinaryData.fromObject(model).toObject(ConnectionManagedIdentity.class); - Assertions.assertEquals("uzzjgnrefq", model.clientId()); - Assertions.assertEquals("qotoihiqakydiwfb", model.resourceId()); + Assertions.assertEquals("rrqwexjk", model.clientId()); + Assertions.assertEquals("xap", model.resourceId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPersonalAccessTokenTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPersonalAccessTokenTests.java index adc358b3904d..5bfeed7e23c8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPersonalAccessTokenTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPersonalAccessTokenTests.java @@ -12,14 +12,14 @@ public final class ConnectionPersonalAccessTokenTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPersonalAccessToken model - = BinaryData.fromString("{\"pat\":\"jxsglhsr\"}").toObject(ConnectionPersonalAccessToken.class); - Assertions.assertEquals("jxsglhsr", model.pat()); + = BinaryData.fromString("{\"pat\":\"chndbnwie\"}").toObject(ConnectionPersonalAccessToken.class); + Assertions.assertEquals("chndbnwie", model.pat()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionPersonalAccessToken model = new ConnectionPersonalAccessToken().withPat("jxsglhsr"); + ConnectionPersonalAccessToken model = new ConnectionPersonalAccessToken().withPat("chndbnwie"); model = BinaryData.fromObject(model).toObject(ConnectionPersonalAccessToken.class); - Assertions.assertEquals("jxsglhsr", model.pat()); + Assertions.assertEquals("chndbnwie", model.pat()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceArmPaginatedResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceArmPaginatedResultTests.java index c7aebb606d72..2dc0c7dc8df9 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,20 @@ public final class ConnectionPropertiesV2BasicResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPropertiesV2BasicResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"twvc\",\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Spark\",\"createdByWorkspaceArmId\":\"cvejyfdvlvhbwrn\",\"error\":\"tgddpqthehnmnaoy\",\"expiryTime\":\"2021-10-27T17:47:39Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"droznn\":\"ankltytm\",\"csgguxhemlw\":\"drlktg\",\"kklelssxblycs\":\"waeeczgfb\",\"plpvm\":\"zujksrlsmdes\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"idyvteow\",\"vgp\"],\"target\":\"deugf\",\"useWorkspaceManagedIdentity\":false},\"id\":\"c\",\"name\":\"axwk\",\"type\":\"fykhvuhxepmru\"},{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"OpenAI\",\"createdByWorkspaceArmId\":\"baobn\",\"error\":\"ujdjltymkmvg\",\"expiryTime\":\"2021-05-16T09:26:28Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"j\":\"pphkixkykxds\",\"kkflrmymyincqlhr\":\"emmucfxh\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"iiovgqcgxu\",\"gqkctotiowlxte\",\"dptjgwdtgukranb\",\"wphqlkccuzgygqw\"],\"target\":\"oiulwgniipr\",\"useWorkspaceManagedIdentity\":true},\"id\":\"w\",\"name\":\"wzdufypivlsbb\",\"type\":\"pmcubkmifoxxkub\"}]}") + "{\"nextLink\":\"pfbcunezzcez\",\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"AzureDatabricksDeltaLake\",\"createdByWorkspaceArmId\":\"wl\",\"error\":\"jwetnpsihcla\",\"expiryTime\":\"2021-08-22T14:03:47Z\",\"group\":\"AzureAI\",\"isSharedToAll\":false,\"metadata\":{\"tcmwqkchc\":\"sqqw\",\"xfdeqvhpsyl\":\"waxfewzjkj\",\"bffmbmxz\":\"ksh\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"gjxsnptfu\",\"gicgaaoepttaq\",\"tdewemxswvruu\",\"zzjgehkfki\"],\"target\":\"tixo\",\"useWorkspaceManagedIdentity\":true},\"id\":\"yinljqe\",\"name\":\"qwhix\",\"type\":\"onsts\"},{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"MongoDbAtlas\",\"createdByWorkspaceArmId\":\"gvelfc\",\"error\":\"uccbirdsvuw\",\"expiryTime\":\"2021-09-01T15:39:22Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"lnghgshejjtbxqmu\":\"ninwjizc\",\"ycucrwnamikzeb\":\"uxlxqzvners\",\"ziqgfuh\":\"qbsms\",\"hczznvf\":\"kzruswh\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"wwixzvumw\"],\"target\":\"qhndvnoam\",\"useWorkspaceManagedIdentity\":true},\"id\":\"haohdjhhflzokxc\",\"name\":\"xpelnjetagltsx\",\"type\":\"atftgzpnpbsw\"},{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"ADLSGen2\",\"createdByWorkspaceArmId\":\"occsr\",\"error\":\"zihmipgawtxxpky\",\"expiryTime\":\"2021-05-09T23:26:24Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"gnoxuztrksx\":\"tfmpcycilrmcayk\",\"jtwkjaos\":\"pndfcpfnznt\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"mktcqiosmgbza\",\"gxq\",\"lyrtltlaprlt\",\"katbhjm\"],\"target\":\"nbsoqeqalarv\",\"useWorkspaceManagedIdentity\":true},\"id\":\"nbtgfebwl\",\"name\":\"bmhyreeudz\",\"type\":\"av\"}]}") .toObject(ConnectionPropertiesV2BasicResourceArmPaginatedResult.class); - Assertions.assertEquals("twvc", model.nextLink()); - Assertions.assertEquals(ConnectionCategory.SPARK, model.value().get(0).properties().category()); - Assertions.assertEquals("tgddpqthehnmnaoy", model.value().get(0).properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-27T17:47:39Z"), + Assertions.assertEquals("pfbcunezzcez", model.nextLink()); + Assertions.assertEquals(ConnectionCategory.AZURE_DATABRICKS_DELTA_LAKE, + model.value().get(0).properties().category()); + Assertions.assertEquals("jwetnpsihcla", model.value().get(0).properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-22T14:03:47Z"), model.value().get(0).properties().expiryTime()); - Assertions.assertTrue(model.value().get(0).properties().isSharedToAll()); - Assertions.assertEquals("ankltytm", model.value().get(0).properties().metadata().get("droznn")); + Assertions.assertFalse(model.value().get(0).properties().isSharedToAll()); + Assertions.assertEquals("sqqw", model.value().get(0).properties().metadata().get("tcmwqkchc")); Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.value().get(0).properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.value().get(0).properties().peStatus()); - Assertions.assertEquals("idyvteow", model.value().get(0).properties().sharedUserList().get(0)); - Assertions.assertEquals("deugf", model.value().get(0).properties().target()); - Assertions.assertFalse(model.value().get(0).properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.value().get(0).properties().peStatus()); + Assertions.assertEquals("gjxsnptfu", model.value().get(0).properties().sharedUserList().get(0)); + Assertions.assertEquals("tixo", model.value().get(0).properties().target()); + Assertions.assertTrue(model.value().get(0).properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2BasicResourceInnerTests.java index 0ddcc37d4abf..3d5b25de3f14 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,44 +20,43 @@ public final class ConnectionPropertiesV2BasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPropertiesV2BasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Spark\",\"createdByWorkspaceArmId\":\"xkumasjcaac\",\"error\":\"mmcpug\",\"expiryTime\":\"2021-09-14T23:55:36Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"hnl\":\"hbzehewho\",\"clgsc\":\"qnbldxe\",\"rsrrmoucsofldp\":\"orim\",\"mxuq\":\"viyfcaabeolhbhlv\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"udfbsfarf\",\"iowl\",\"jxnqp\",\"wgfstmhqykizm\"],\"target\":\"saoafcluqvox\",\"useWorkspaceManagedIdentity\":true},\"id\":\"im\",\"name\":\"yvwgcwwpbmzgwe\",\"type\":\"ydsx\"}") + "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Cassandra\",\"createdByWorkspaceArmId\":\"opv\",\"error\":\"dbzqgqqihed\",\"expiryTime\":\"2021-03-24T17:03:11Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":false,\"metadata\":{\"dhohsdtmcdzsuf\":\"ibcysihsgqc\",\"pcvhdbevwqqxeys\":\"ohdxbzlmcmu\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"kfkbgbzbowxeqocl\",\"mygvkzqkj\",\"eokbze\"],\"target\":\"zrxcczurt\",\"useWorkspaceManagedIdentity\":true},\"id\":\"q\",\"name\":\"bkwvzg\",\"type\":\"zvd\"}") .toObject(ConnectionPropertiesV2BasicResourceInner.class); - Assertions.assertEquals(ConnectionCategory.SPARK, model.properties().category()); - Assertions.assertEquals("mmcpug", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T23:55:36Z"), model.properties().expiryTime()); - Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("hbzehewho", model.properties().metadata().get("hnl")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.properties().peStatus()); - Assertions.assertEquals("udfbsfarf", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("saoafcluqvox", model.properties().target()); + Assertions.assertEquals(ConnectionCategory.CASSANDRA, model.properties().category()); + Assertions.assertEquals("dbzqgqqihed", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-24T17:03:11Z"), model.properties().expiryTime()); + Assertions.assertFalse(model.properties().isSharedToAll()); + Assertions.assertEquals("ibcysihsgqc", model.properties().metadata().get("dhohsdtmcdzsuf")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.properties().peStatus()); + Assertions.assertEquals("kfkbgbzbowxeqocl", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("zrxcczurt", 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.SPARK) - .withError("mmcpug") - .withExpiryTime(OffsetDateTime.parse("2021-09-14T23:55:36Z")) - .withIsSharedToAll(true) - .withMetadata( - mapOf("hnl", "hbzehewho", "clgsc", "qnbldxe", "rsrrmoucsofldp", "orim", "mxuq", "viyfcaabeolhbhlv")) - .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("udfbsfarf", "iowl", "jxnqp", "wgfstmhqykizm")) - .withTarget("saoafcluqvox") + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.CASSANDRA) + .withError("dbzqgqqihed") + .withExpiryTime(OffsetDateTime.parse("2021-03-24T17:03:11Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("dhohsdtmcdzsuf", "ibcysihsgqc", "pcvhdbevwqqxeys", "ohdxbzlmcmu")) + .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) + .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) + .withSharedUserList(Arrays.asList("kfkbgbzbowxeqocl", "mygvkzqkj", "eokbze")) + .withTarget("zrxcczurt") .withUseWorkspaceManagedIdentity(true)); model = BinaryData.fromObject(model).toObject(ConnectionPropertiesV2BasicResourceInner.class); - Assertions.assertEquals(ConnectionCategory.SPARK, model.properties().category()); - Assertions.assertEquals("mmcpug", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T23:55:36Z"), model.properties().expiryTime()); - Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("hbzehewho", model.properties().metadata().get("hnl")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.properties().peStatus()); - Assertions.assertEquals("udfbsfarf", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("saoafcluqvox", model.properties().target()); + Assertions.assertEquals(ConnectionCategory.CASSANDRA, model.properties().category()); + Assertions.assertEquals("dbzqgqqihed", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-24T17:03:11Z"), model.properties().expiryTime()); + Assertions.assertFalse(model.properties().isSharedToAll()); + Assertions.assertEquals("ibcysihsgqc", model.properties().metadata().get("dhohsdtmcdzsuf")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.properties().peStatus()); + Assertions.assertEquals("kfkbgbzbowxeqocl", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("zrxcczurt", model.properties().target()); Assertions.assertTrue(model.properties().useWorkspaceManagedIdentity()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2Tests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionPropertiesV2Tests.java index 09c0ac007e96..1959324b4a05 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,42 +19,42 @@ public final class ConnectionPropertiesV2Tests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionPropertiesV2 model = BinaryData.fromString( - "{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Concur\",\"createdByWorkspaceArmId\":\"hecbvopwndyq\",\"error\":\"allklmtkhlowk\",\"expiryTime\":\"2021-07-25T00:57:05Z\",\"group\":\"Azure\",\"isSharedToAll\":true,\"metadata\":{\"ikcyyc\":\"mzsyzfhotl\",\"c\":\"unsjlpjrtwszhvvu\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Active\",\"sharedUserList\":[\"hwrbfdpyflubh\",\"jgl\"],\"target\":\"cuyzlwhhmemhoocl\",\"useWorkspaceManagedIdentity\":false}") + "{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"MicrosoftAccess\",\"createdByWorkspaceArmId\":\"ixz\",\"error\":\"pnodawopqhe\",\"expiryTime\":\"2021-06-11T22:11:01Z\",\"group\":\"File\",\"isSharedToAll\":false,\"metadata\":{\"mzlbiojlvfhrb\":\"ostzelndlatu\",\"qvcww\":\"pn\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"hppr\"],\"target\":\"snmokayzej\",\"useWorkspaceManagedIdentity\":false}") .toObject(ConnectionPropertiesV2.class); - Assertions.assertEquals(ConnectionCategory.CONCUR, model.category()); - Assertions.assertEquals("allklmtkhlowk", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-25T00:57:05Z"), model.expiryTime()); - Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("mzsyzfhotl", model.metadata().get("ikcyyc")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); + Assertions.assertEquals(ConnectionCategory.MICROSOFT_ACCESS, model.category()); + Assertions.assertEquals("pnodawopqhe", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-11T22:11:01Z"), model.expiryTime()); + Assertions.assertFalse(model.isSharedToAll()); + Assertions.assertEquals("ostzelndlatu", model.metadata().get("mzlbiojlvfhrb")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("hwrbfdpyflubh", model.sharedUserList().get(0)); - Assertions.assertEquals("cuyzlwhhmemhoocl", model.target()); + Assertions.assertEquals("hppr", model.sharedUserList().get(0)); + Assertions.assertEquals("snmokayzej", model.target()); Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionPropertiesV2 model = new ConnectionPropertiesV2().withCategory(ConnectionCategory.CONCUR) - .withError("allklmtkhlowk") - .withExpiryTime(OffsetDateTime.parse("2021-07-25T00:57:05Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("ikcyyc", "mzsyzfhotl", "c", "unsjlpjrtwszhvvu")) - .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) + ConnectionPropertiesV2 model = new ConnectionPropertiesV2().withCategory(ConnectionCategory.MICROSOFT_ACCESS) + .withError("pnodawopqhe") + .withExpiryTime(OffsetDateTime.parse("2021-06-11T22:11:01Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("mzlbiojlvfhrb", "ostzelndlatu", "qvcww", "pn")) + .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("hwrbfdpyflubh", "jgl")) - .withTarget("cuyzlwhhmemhoocl") + .withSharedUserList(Arrays.asList("hppr")) + .withTarget("snmokayzej") .withUseWorkspaceManagedIdentity(false); model = BinaryData.fromObject(model).toObject(ConnectionPropertiesV2.class); - Assertions.assertEquals(ConnectionCategory.CONCUR, model.category()); - Assertions.assertEquals("allklmtkhlowk", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-25T00:57:05Z"), model.expiryTime()); - Assertions.assertTrue(model.isSharedToAll()); - Assertions.assertEquals("mzsyzfhotl", model.metadata().get("ikcyyc")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); + Assertions.assertEquals(ConnectionCategory.MICROSOFT_ACCESS, model.category()); + Assertions.assertEquals("pnodawopqhe", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-11T22:11:01Z"), model.expiryTime()); + Assertions.assertFalse(model.isSharedToAll()); + Assertions.assertEquals("ostzelndlatu", model.metadata().get("mzlbiojlvfhrb")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("hwrbfdpyflubh", model.sharedUserList().get(0)); - Assertions.assertEquals("cuyzlwhhmemhoocl", model.target()); + Assertions.assertEquals("hppr", model.sharedUserList().get(0)); + Assertions.assertEquals("snmokayzej", model.target()); Assertions.assertFalse(model.useWorkspaceManagedIdentity()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionSharedAccessSignatureTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionSharedAccessSignatureTests.java index f54bb7a9c9b0..9fff84ae6e7f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionSharedAccessSignatureTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionSharedAccessSignatureTests.java @@ -12,14 +12,14 @@ public final class ConnectionSharedAccessSignatureTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionSharedAccessSignature model - = BinaryData.fromString("{\"sas\":\"iblkujr\"}").toObject(ConnectionSharedAccessSignature.class); - Assertions.assertEquals("iblkujr", model.sas()); + = BinaryData.fromString("{\"sas\":\"vwxzn\"}").toObject(ConnectionSharedAccessSignature.class); + Assertions.assertEquals("vwxzn", model.sas()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectionSharedAccessSignature model = new ConnectionSharedAccessSignature().withSas("iblkujr"); + ConnectionSharedAccessSignature model = new ConnectionSharedAccessSignature().withSas("vwxzn"); model = BinaryData.fromObject(model).toObject(ConnectionSharedAccessSignature.class); - Assertions.assertEquals("iblkujr", model.sas()); + Assertions.assertEquals("vwxzn", model.sas()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionUpdateContentTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectionUpdateContentTests.java index eb158d09131e..8a6ca37d6b33 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,44 @@ public final class ConnectionUpdateContentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ConnectionUpdateContent model = BinaryData.fromString( - "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Oracle\",\"createdByWorkspaceArmId\":\"s\",\"error\":\"udgzhxogjgg\",\"expiryTime\":\"2021-06-10T02:57:11Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":true,\"metadata\":{\"mdyomkxfbvfbh\":\"dafhr\",\"rhpw\":\"y\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"awzovgkk\",\"muikjcjcaztbws\"],\"target\":\"qowxwcom\",\"useWorkspaceManagedIdentity\":false}}") + "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"MariaDb\",\"createdByWorkspaceArmId\":\"bsazgakg\",\"error\":\"yrcmjdmspofap\",\"expiryTime\":\"2021-07-03T14:02:34Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"st\":\"frzgbzjed\",\"nsnvpd\":\"vnlvxbcuiiznktwf\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"tbzbkiwbuqnyophz\"],\"target\":\"l\",\"useWorkspaceManagedIdentity\":true}}") .toObject(ConnectionUpdateContent.class); - Assertions.assertEquals(ConnectionCategory.ORACLE, model.properties().category()); - Assertions.assertEquals("udgzhxogjgg", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T02:57:11Z"), model.properties().expiryTime()); - Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("dafhr", model.properties().metadata().get("mdyomkxfbvfbh")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.properties().peStatus()); - Assertions.assertEquals("awzovgkk", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("qowxwcom", model.properties().target()); - Assertions.assertFalse(model.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ConnectionCategory.MARIA_DB, model.properties().category()); + Assertions.assertEquals("yrcmjdmspofap", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-03T14:02:34Z"), model.properties().expiryTime()); + Assertions.assertFalse(model.properties().isSharedToAll()); + Assertions.assertEquals("frzgbzjed", model.properties().metadata().get("st")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.properties().peStatus()); + Assertions.assertEquals("tbzbkiwbuqnyophz", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("l", model.properties().target()); + Assertions.assertTrue(model.properties().useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ConnectionUpdateContent model = new ConnectionUpdateContent() - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.ORACLE) - .withError("udgzhxogjgg") - .withExpiryTime(OffsetDateTime.parse("2021-06-10T02:57:11Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("mdyomkxfbvfbh", "dafhr", "rhpw", "y")) - .withPeRequirement(ManagedPERequirement.REQUIRED) - .withPeStatus(ManagedPEStatus.NOT_APPLICABLE) - .withSharedUserList(Arrays.asList("awzovgkk", "muikjcjcaztbws")) - .withTarget("qowxwcom") - .withUseWorkspaceManagedIdentity(false)); + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.MARIA_DB) + .withError("yrcmjdmspofap") + .withExpiryTime(OffsetDateTime.parse("2021-07-03T14:02:34Z")) + .withIsSharedToAll(false) + .withMetadata(mapOf("st", "frzgbzjed", "nsnvpd", "vnlvxbcuiiznktwf")) + .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("tbzbkiwbuqnyophz")) + .withTarget("l") + .withUseWorkspaceManagedIdentity(true)); model = BinaryData.fromObject(model).toObject(ConnectionUpdateContent.class); - Assertions.assertEquals(ConnectionCategory.ORACLE, model.properties().category()); - Assertions.assertEquals("udgzhxogjgg", model.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T02:57:11Z"), model.properties().expiryTime()); - Assertions.assertTrue(model.properties().isSharedToAll()); - Assertions.assertEquals("dafhr", model.properties().metadata().get("mdyomkxfbvfbh")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, model.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, model.properties().peStatus()); - Assertions.assertEquals("awzovgkk", model.properties().sharedUserList().get(0)); - Assertions.assertEquals("qowxwcom", model.properties().target()); - Assertions.assertFalse(model.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals(ConnectionCategory.MARIA_DB, model.properties().category()); + Assertions.assertEquals("yrcmjdmspofap", model.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-03T14:02:34Z"), model.properties().expiryTime()); + Assertions.assertFalse(model.properties().isSharedToAll()); + Assertions.assertEquals("frzgbzjed", model.properties().metadata().get("st")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.properties().peStatus()); + Assertions.assertEquals("tbzbkiwbuqnyophz", model.properties().sharedUserList().get(0)); + Assertions.assertEquals("l", 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/ConnectivityEndpointsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectivityEndpointsTests.java deleted file mode 100644 index 89eb203fcd6d..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ConnectivityEndpointsTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"rgjfoknubnoi\",\"sshPort\":1854107559}") - .toObject(ConnectivityEndpoints.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/CustomBlocklistConfigTests.java index 50ab56310029..c2dcbcf9972b 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\":\"PreToolCall\",\"blocklistName\":\"wqiok\",\"blocking\":false}") - .toObject(CustomBlocklistConfig.class); - Assertions.assertEquals("wqiok", model.blocklistName()); + CustomBlocklistConfig model = BinaryData + .fromString("{\"source\":\"Completion\",\"blocklistName\":\"ztppriolxorjalto\",\"blocking\":false}") + .toObject(CustomBlocklistConfig.class); + Assertions.assertEquals("ztppriolxorjalto", model.blocklistName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.source()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CustomBlocklistConfig model = new CustomBlocklistConfig().withBlocklistName("wqiok") + CustomBlocklistConfig model = new CustomBlocklistConfig().withBlocklistName("ztppriolxorjalto") .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_TOOL_CALL); + .withSource(RaiPolicyContentSource.COMPLETION); model = BinaryData.fromObject(model).toObject(CustomBlocklistConfig.class); - Assertions.assertEquals("wqiok", model.blocklistName()); + Assertions.assertEquals("ztppriolxorjalto", model.blocklistName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java index e88ff9484b2a..18433533ad18 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingInnerTests.java @@ -15,20 +15,20 @@ public final class DefenderForAISettingInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DefenderForAISettingInner model = BinaryData.fromString( - "{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"qhppubowsepdfgk\",\"tags\":{\"c\":\"herngb\",\"obkauxofsh\":\"uahokq\",\"whslwkoj\":\"phwpnulaiywzej\"},\"id\":\"l\",\"name\":\"dnpdwrpqaf\",\"type\":\"fugsnnfhyetefy\"}") + "{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"a\",\"tags\":{\"lhjlmuoyxprimr\":\"kjpdnjzhajo\",\"eislstvasylwx\":\"opteecj\",\"eoohguufuzboyj\":\"zaum\"},\"id\":\"hwtzolb\",\"name\":\"emwmdxmebwjs\",\"type\":\"jpahlxvea\"}") .toObject(DefenderForAISettingInner.class); - Assertions.assertEquals("herngb", model.tags().get("c")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); + Assertions.assertEquals("kjpdnjzhajo", model.tags().get("lhjlmuoyxprimr")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, model.state()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DefenderForAISettingInner model = new DefenderForAISettingInner() - .withTags(mapOf("c", "herngb", "obkauxofsh", "uahokq", "whslwkoj", "phwpnulaiywzej")) - .withState(DefenderForAISettingState.ENABLED); + .withTags(mapOf("lhjlmuoyxprimr", "kjpdnjzhajo", "eislstvasylwx", "opteecj", "eoohguufuzboyj", "zaum")) + .withState(DefenderForAISettingState.DISABLED); model = BinaryData.fromObject(model).toObject(DefenderForAISettingInner.class); - Assertions.assertEquals("herngb", model.tags().get("c")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, model.state()); + Assertions.assertEquals("kjpdnjzhajo", model.tags().get("lhjlmuoyxprimr")); + 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 b82cd9db182f..02882d8bc03a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingResultTests.java @@ -13,10 +13,10 @@ public final class DefenderForAISettingResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DefenderForAISettingResult model = BinaryData.fromString( - "{\"nextLink\":\"ctfjgtixr\",\"value\":[{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"rmlmuowo\",\"tags\":{\"p\":\"uir\"},\"id\":\"nszonwpngaj\",\"name\":\"n\",\"type\":\"ixjawrtm\"}]}") + "{\"nextLink\":\"nmwmqtibx\",\"value\":[{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"qcttadijaeukmrsi\",\"tags\":{\"igpibud\":\"pndzaapmudqmeq\"},\"id\":\"yxeb\",\"name\":\"ybpmzznrtffyaq\",\"type\":\"tmhheioqa\"},{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"ufuqyrx\",\"tags\":{\"sismjqfrddga\":\"cgq\",\"disyirnxz\":\"quhiosrsjuivf\",\"revkhgnlnzo\":\"czexrxzbujrtrhqv\"},\"id\":\"lrpiqywnc\",\"name\":\"jtszcof\",\"type\":\"zehtdhgb\"}]}") .toObject(DefenderForAISettingResult.class); - Assertions.assertEquals("ctfjgtixr", model.nextLink()); - Assertions.assertEquals("uir", model.value().get(0).tags().get("p")); + Assertions.assertEquals("nmwmqtibx", model.nextLink()); + Assertions.assertEquals("pndzaapmudqmeq", model.value().get(0).tags().get("igpibud")); 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 5e6febd5c271..6c1b333283f2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class DefenderForAISettingsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"eglyu\",\"tags\":{\"aexbzbqufpnez\":\"m\",\"ldrorhyogzmsimeh\":\"jzay\"},\"id\":\"uuwdhtq\",\"name\":\"hyhnimxtns\",\"type\":\"gi\"}"; + = "{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"aoiqclmgdt\",\"tags\":{\"f\":\"bd\",\"wjecooyvhtuqbpe\":\"uz\",\"ncgagdvc\":\"nii\"},\"id\":\"hftzbpyfao\",\"name\":\"df\",\"type\":\"htncwmhjobzrfp\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,13 +34,13 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DefenderForAISetting response = manager.defenderForAISettings() - .define("xcdckixspsa") - .withExistingAccount("hxzubfjzabbw", "gvzua") - .withTags(mapOf("pzjbyetjxryo", "zerejr", "pemnrrabo", "taeitwhlbecgihz")) + .define("qnwjjq") + .withExistingAccount("fbhtleberp", "ljekn") + .withTags(mapOf("fwafbjz", "pnowawonoehrguql", "fazbkoc", "pyrgu")) .withState(DefenderForAISettingState.ENABLED) .create(); - Assertions.assertEquals("m", response.tags().get("aexbzbqufpnez")); + Assertions.assertEquals("bd", response.tags().get("f")); Assertions.assertEquals(DefenderForAISettingState.DISABLED, response.state()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java index f225d112eadd..ab3e0960c377 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class DefenderForAISettingsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"okr\",\"tags\":{\"pujzfl\":\"sgaojbtqpqsdoctp\",\"wlluunxhfwlfxz\":\"cdsgxceluji\",\"eupcknecexkgrv\":\"wu\"},\"id\":\"sjdmngsytqpdzfyx\",\"name\":\"nwaw\",\"type\":\"xcgzbejqfbifopf\"}"; + = "{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"phlokfpm\",\"tags\":{\"cgnrglaqrwy\":\"dvzvfbhwbdquf\"},\"id\":\"bhbafebzx\",\"name\":\"k\",\"type\":\"qutibhl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); DefenderForAISetting response = manager.defenderForAISettings() - .getWithResponse("i", "fhok", "mmculwkq", com.azure.core.util.Context.NONE) + .getWithResponse("rh", "hvazjpwexcdr", "probzzxezmnrkjgp", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("sgaojbtqpqsdoctp", response.tags().get("pujzfl")); + Assertions.assertEquals("dvzvfbhwbdquf", response.tags().get("cgnrglaqrwy")); Assertions.assertEquals(DefenderForAISettingState.ENABLED, response.state()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java index b1b80ddd0a5c..99b8feafd81a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DefenderForAISettingsListMockTests.java @@ -23,7 +23,7 @@ public final class DefenderForAISettingsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"state\":\"Enabled\"},\"etag\":\"gp\",\"tags\":{\"zmecjjkmqenhai\":\"iawohfmhn\",\"gloiovsl\":\"zrpv\",\"pijpkhc\":\"ivqsuvwtenb\"},\"id\":\"aqxukuicjufte\",\"name\":\"iooanduewfhv\",\"type\":\"x\"}]}"; + = "{\"value\":[{\"properties\":{\"state\":\"Disabled\"},\"etag\":\"uukppdixqb\",\"tags\":{\"q\":\"vhh\",\"inmtsdixchwkibm\":\"egatxgrznm\"},\"id\":\"ymncjc\",\"name\":\"gair\",\"type\":\"cqzoofjnqjsve\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,9 +33,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.defenderForAISettings().list("xdwdrpazqjkrfm", "wotfcuu", com.azure.core.util.Context.NONE); + = manager.defenderForAISettings().list("nntrvrkps", "bduxvzmlghnys", com.azure.core.util.Context.NONE); - Assertions.assertEquals("iawohfmhn", response.iterator().next().tags().get("zmecjjkmqenhai")); - Assertions.assertEquals(DefenderForAISettingState.ENABLED, response.iterator().next().state()); + Assertions.assertEquals("vhh", response.iterator().next().tags().get("q")); + Assertions.assertEquals(DefenderForAISettingState.DISABLED, response.iterator().next().state()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeletedAccountsPurgeMockTests.java index f74f4defbd79..80985de63c89 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,8 @@ public void testPurge() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.deletedAccounts().purge("derltfokyksyim", "ccgrvkcxzznn", "i", com.azure.core.util.Context.NONE); + manager.deletedAccounts() + .purge("mvrscmqerndbrny", "ofltfnnxrkadjfy", "nfmuiiiripf", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java index 973d18db2524..ab9b7598d940 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentCapacitySettingsTests.java @@ -12,18 +12,18 @@ public final class DeploymentCapacitySettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentCapacitySettings model - = BinaryData.fromString("{\"designatedCapacity\":1838860649,\"priority\":11863753}") + = BinaryData.fromString("{\"designatedCapacity\":661393497,\"priority\":827975291}") .toObject(DeploymentCapacitySettings.class); - Assertions.assertEquals(1838860649, model.designatedCapacity()); - Assertions.assertEquals(11863753, model.priority()); + Assertions.assertEquals(661393497, model.designatedCapacity()); + Assertions.assertEquals(827975291, model.priority()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DeploymentCapacitySettings model - = new DeploymentCapacitySettings().withDesignatedCapacity(1838860649).withPriority(11863753); + = new DeploymentCapacitySettings().withDesignatedCapacity(661393497).withPriority(827975291); model = BinaryData.fromObject(model).toObject(DeploymentCapacitySettings.class); - Assertions.assertEquals(1838860649, model.designatedCapacity()); - Assertions.assertEquals(11863753, model.priority()); + Assertions.assertEquals(661393497, model.designatedCapacity()); + Assertions.assertEquals(827975291, 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 deleted file mode 100644 index 906b5d215b1f..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentPolicyEvaluationResultTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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 142a66555a4d..6e0fa95e31f6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentScaleSettingsTests.java @@ -13,18 +13,18 @@ public final class DeploymentScaleSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentScaleSettings model - = BinaryData.fromString("{\"scaleType\":\"Manual\",\"capacity\":1371154692,\"activeCapacity\":326974416}") + = BinaryData.fromString("{\"scaleType\":\"Manual\",\"capacity\":106055921,\"activeCapacity\":421254098}") .toObject(DeploymentScaleSettings.class); Assertions.assertEquals(DeploymentScaleType.MANUAL, model.scaleType()); - Assertions.assertEquals(1371154692, model.capacity()); + Assertions.assertEquals(106055921, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DeploymentScaleSettings model - = new DeploymentScaleSettings().withScaleType(DeploymentScaleType.MANUAL).withCapacity(1371154692); + = new DeploymentScaleSettings().withScaleType(DeploymentScaleType.MANUAL).withCapacity(106055921); model = BinaryData.fromObject(model).toObject(DeploymentScaleSettings.class); Assertions.assertEquals(DeploymentScaleType.MANUAL, model.scaleType()); - Assertions.assertEquals(1371154692, model.capacity()); + Assertions.assertEquals(106055921, 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 deleted file mode 100644 index 545838d3d364..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSizeCapacityTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":1262406750,\"totalAvailableCapacity\":1282494344,\"largestDeploymentCapacity\":387452116}") - .toObject(DeploymentSizeCapacity.class); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java index 79ada25f9dbe..7fc0ba28cb69 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentSkuListResultTests.java @@ -12,8 +12,8 @@ public final class DeploymentSkuListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DeploymentSkuListResult model = BinaryData.fromString( - "{\"nextLink\":\"uiizynke\",\"value\":[{\"resourceType\":\"rwyhqmibzyhwitsm\",\"sku\":{\"name\":\"yynpcdpumnzgmwz\",\"tier\":\"Enterprise\",\"size\":\"iknsorgjh\",\"family\":\"ldtlwwr\",\"capacity\":1202446824},\"capacity\":{\"minimum\":1488672187,\"maximum\":575537073,\"step\":874517776,\"default\":1621174416,\"allowedValues\":[643963707]}},{\"resourceType\":\"yhgsy\",\"sku\":{\"name\":\"ogjltdtbnnhad\",\"tier\":\"Enterprise\",\"size\":\"kvci\",\"family\":\"nvpamq\",\"capacity\":708415547},\"capacity\":{\"minimum\":1026255480,\"maximum\":443622503,\"step\":1292561525,\"default\":2021225461,\"allowedValues\":[33393175,1558005484]}},{\"resourceType\":\"la\",\"sku\":{\"name\":\"elwuipi\",\"tier\":\"Free\",\"size\":\"kzivgvvcnayrh\",\"family\":\"nxxmueedndrdv\",\"capacity\":928139019},\"capacity\":{\"minimum\":768624981,\"maximum\":1018889547,\"step\":1951861279,\"default\":96926313,\"allowedValues\":[1261287466,669500000,149792642,1035796586]}},{\"resourceType\":\"ygdvwv\",\"sku\":{\"name\":\"iohgwxrtfud\",\"tier\":\"Premium\",\"size\":\"gyqagvrvmnpkuk\",\"family\":\"i\",\"capacity\":2068705398},\"capacity\":{\"minimum\":1554656942,\"maximum\":261614569,\"step\":1772217773,\"default\":1697714955,\"allowedValues\":[44093722,510557599]}}]}") + "{\"nextLink\":\"kvugfhzovawjvzun\",\"value\":[{\"resourceType\":\"nnprn\",\"sku\":{\"name\":\"peilpjzuaejxdu\",\"tier\":\"Enterprise\",\"size\":\"zbbtdzumveek\",\"family\":\"wozuhkf\",\"capacity\":1718146302},\"capacity\":{\"minimum\":657936288,\"maximum\":1295774959,\"step\":568244971,\"default\":301470768,\"allowedValues\":[1856979158,578093218,1422945070,648396636]}},{\"resourceType\":\"aboekqv\",\"sku\":{\"name\":\"lns\",\"tier\":\"Free\",\"size\":\"wyjsflhhcaalnjix\",\"family\":\"xyawj\",\"capacity\":347364157},\"capacity\":{\"minimum\":21633228,\"maximum\":840312667,\"step\":1050162327,\"default\":383766185,\"allowedValues\":[1391524999,983085062,787836165]}}]}") .toObject(DeploymentSkuListResult.class); - Assertions.assertEquals("uiizynke", model.nextLink()); + Assertions.assertEquals("kvugfhzovawjvzun", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsDeleteMockTests.java index f74b89ce8916..ec6e0caba0bf 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 @@ -28,7 +28,7 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.deployments() - .delete("szxvctkbbxuhar", "sirncclabvoy", "gsuxxczbmyqj", com.azure.core.util.Context.NONE); + .delete("leqirccjclykcgxv", "pjlvczuoda", "punettepdjxq", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java index 1c1a48d4460c..8a0b00a6c7ba 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/DeploymentsListSkusMockTests.java @@ -23,7 +23,7 @@ public final class DeploymentsListSkusMockTests { @Test public void testListSkus() throws Exception { String responseStr - = "{\"value\":[{\"resourceType\":\"iatwfaujegqdtadr\",\"sku\":{\"name\":\"gddhjkrukizyhgs\",\"tier\":\"Basic\",\"size\":\"s\",\"family\":\"xqfpj\",\"capacity\":1700647685},\"capacity\":{\"minimum\":1566722268,\"maximum\":1205167221,\"step\":670221649,\"default\":1718194310,\"allowedValues\":[1007635827]}}]}"; + = "{\"value\":[{\"resourceType\":\"ftsjcwj\",\"sku\":{\"name\":\"sgmbawvif\",\"tier\":\"Free\",\"size\":\"cifhocjxwkl\",\"family\":\"zrvtx\",\"capacity\":1229839837},\"capacity\":{\"minimum\":2051183795,\"maximum\":1003429050,\"step\":395776320,\"default\":616658582,\"allowedValues\":[100725241]}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,18 @@ public void testListSkus() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.deployments().listSkus("ywhlakxpe", "pewpyj", "fxampqcrzgeuqx", com.azure.core.util.Context.NONE); + = manager.deployments().listSkus("tugav", "zbcyksiv", "fogdrtbfcm", com.azure.core.util.Context.NONE); - Assertions.assertEquals("iatwfaujegqdtadr", response.iterator().next().resourceType()); - Assertions.assertEquals("gddhjkrukizyhgs", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.BASIC, response.iterator().next().sku().tier()); - Assertions.assertEquals("s", response.iterator().next().sku().size()); - Assertions.assertEquals("xqfpj", response.iterator().next().sku().family()); - Assertions.assertEquals(1700647685, response.iterator().next().sku().capacity()); - Assertions.assertEquals(1566722268, response.iterator().next().capacity().minimum()); - Assertions.assertEquals(1205167221, response.iterator().next().capacity().maximum()); - Assertions.assertEquals(670221649, response.iterator().next().capacity().step()); - Assertions.assertEquals(1718194310, response.iterator().next().capacity().defaultProperty()); - Assertions.assertEquals(1007635827, response.iterator().next().capacity().allowedValues().get(0)); + Assertions.assertEquals("ftsjcwj", response.iterator().next().resourceType()); + Assertions.assertEquals("sgmbawvif", response.iterator().next().sku().name()); + Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); + Assertions.assertEquals("cifhocjxwkl", response.iterator().next().sku().size()); + Assertions.assertEquals("zrvtx", response.iterator().next().sku().family()); + Assertions.assertEquals(1229839837, response.iterator().next().sku().capacity()); + Assertions.assertEquals(2051183795, response.iterator().next().capacity().minimum()); + Assertions.assertEquals(1003429050, response.iterator().next().capacity().maximum()); + Assertions.assertEquals(395776320, response.iterator().next().capacity().step()); + Assertions.assertEquals(616658582, response.iterator().next().capacity().defaultProperty()); + Assertions.assertEquals(100725241, 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 deleted file mode 100644 index 0ce3ac069987..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesRequestTests.java +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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 deleted file mode 100644 index bc3bb2bdfd6e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/EvaluateDeploymentPoliciesResponseInnerTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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/FoundryAutoUpgradeTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FoundryAutoUpgradeTests.java deleted file mode 100644 index 0acf74fb37aa..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FoundryAutoUpgradeTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.cognitiveservices.models.FoundryAutoUpgrade; -import com.azure.resourcemanager.cognitiveservices.models.FoundryAutoUpgradeMode; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; - -public final class FoundryAutoUpgradeTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - FoundryAutoUpgrade model = BinaryData.fromString( - "{\"mode\":\"Disabled\",\"plannedByMicrosoft\":false,\"statusReason\":\"sycbkbfk\",\"scheduledAt\":\"2021-04-13T09:52:22Z\"}") - .toObject(FoundryAutoUpgrade.class); - Assertions.assertEquals(FoundryAutoUpgradeMode.DISABLED, model.mode()); - Assertions.assertFalse(model.plannedByMicrosoft()); - Assertions.assertEquals("sycbkbfk", model.statusReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-13T09:52:22Z"), model.scheduledAt()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - FoundryAutoUpgrade model = new FoundryAutoUpgrade().withMode(FoundryAutoUpgradeMode.DISABLED) - .withPlannedByMicrosoft(false) - .withStatusReason("sycbkbfk") - .withScheduledAt(OffsetDateTime.parse("2021-04-13T09:52:22Z")); - model = BinaryData.fromObject(model).toObject(FoundryAutoUpgrade.class); - Assertions.assertEquals(FoundryAutoUpgradeMode.DISABLED, model.mode()); - Assertions.assertFalse(model.plannedByMicrosoft()); - Assertions.assertEquals("sycbkbfk", model.statusReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-13T09:52:22Z"), model.scheduledAt()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FqdnOutboundRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FqdnOutboundRuleTests.java index 1d29210e6e50..2904b561358b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FqdnOutboundRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/FqdnOutboundRuleTests.java @@ -14,21 +14,21 @@ public final class FqdnOutboundRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FqdnOutboundRule model = BinaryData.fromString( - "{\"type\":\"FQDN\",\"destination\":\"d\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"yfqiuasig\",\"parentRuleNames\":[\"socnequygdjboq\",\"rmtqjkqevadr\",\"mwiuawvcm\",\"z\"]}") + "{\"type\":\"FQDN\",\"destination\":\"uhxep\",\"category\":\"UserDefined\",\"status\":\"Failed\",\"errorInformation\":\"abaobnslujdjltym\",\"parentRuleNames\":[\"guihywar\",\"spphk\",\"xkykxdssjp\"]}") .toObject(FqdnOutboundRule.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); - Assertions.assertEquals(RuleStatus.DELETING, model.status()); - Assertions.assertEquals("d", model.destination()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.category()); + Assertions.assertEquals(RuleStatus.FAILED, model.status()); + Assertions.assertEquals("uhxep", model.destination()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FqdnOutboundRule model = new FqdnOutboundRule().withCategory(RuleCategory.DEPENDENCY) - .withStatus(RuleStatus.DELETING) - .withDestination("d"); + FqdnOutboundRule model = new FqdnOutboundRule().withCategory(RuleCategory.USER_DEFINED) + .withStatus(RuleStatus.FAILED) + .withDestination("uhxep"); model = BinaryData.fromObject(model).toObject(FqdnOutboundRule.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); - Assertions.assertEquals(RuleStatus.DELETING, model.status()); - Assertions.assertEquals("d", model.destination()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.category()); + Assertions.assertEquals(RuleStatus.FAILED, model.status()); + Assertions.assertEquals("uhxep", model.destination()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/HostedAgentDeploymentTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/HostedAgentDeploymentTests.java index 9bafe99bf10f..423793bcde93 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/HostedAgentDeploymentTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/HostedAgentDeploymentTests.java @@ -19,59 +19,52 @@ public final class HostedAgentDeploymentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HostedAgentDeployment model = BinaryData.fromString( - "{\"deploymentType\":\"Hosted\",\"minReplicas\":665890978,\"maxReplicas\":72207954,\"displayName\":\"tmjtsghp\",\"deploymentId\":\"bcpzarpzeqacdldt\",\"state\":\"Deleted\",\"protocols\":[{\"protocol\":\"Agent\",\"version\":\"pc\"},{\"protocol\":\"Agent\",\"version\":\"uqndaizupfkhuy\"}],\"agents\":[{\"agentVersion\":\"xhmt\",\"agentId\":\"vegwqiukvz\",\"agentName\":\"dwttha\"},{\"agentVersion\":\"gkskjivbss\",\"agentId\":\"jqf\",\"agentName\":\"peexpgeumilhwuit\"},{\"agentVersion\":\"exyionofninbd\",\"agentId\":\"s\",\"agentName\":\"wqqrsmpcbbprtuga\"},{\"agentVersion\":\"zbcyksiv\",\"agentId\":\"ogd\",\"agentName\":\"bfcmkrfts\"}],\"provisioningState\":\"Succeeded\",\"description\":\"jxsgmbawvifdxke\",\"tags\":{\"xvcmufunlcp\":\"hocjxwkloozrv\"}}") + "{\"deploymentType\":\"Hosted\",\"minReplicas\":2063766495,\"maxReplicas\":1642527120,\"displayName\":\"nbbklqpxzucafed\",\"deploymentId\":\"wnlzafwxu\",\"state\":\"Deleted\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"rtalvnbw\"},{\"protocol\":\"Agent\",\"version\":\"meluclvdjj\"},{\"protocol\":\"Responses\",\"version\":\"dnqodx\"}],\"agents\":[{\"agentVersion\":\"hqfaqnvz\",\"agentId\":\"gyipem\",\"agentName\":\"gavsczuejd\"}],\"provisioningState\":\"Creating\",\"description\":\"lghwzhome\",\"tags\":{\"liuhqawmoaiancz\":\"s\"}}") .toObject(HostedAgentDeployment.class); - Assertions.assertEquals("jxsgmbawvifdxke", model.description()); - Assertions.assertEquals("hocjxwkloozrv", model.tags().get("xvcmufunlcp")); - Assertions.assertEquals("tmjtsghp", model.displayName()); - Assertions.assertEquals("bcpzarpzeqacdldt", model.deploymentId()); + Assertions.assertEquals("lghwzhome", model.description()); + Assertions.assertEquals("s", model.tags().get("liuhqawmoaiancz")); + Assertions.assertEquals("nbbklqpxzucafed", model.displayName()); + Assertions.assertEquals("wnlzafwxu", model.deploymentId()); Assertions.assertEquals(AgentDeploymentState.DELETED, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("pc", model.protocols().get(0).version()); - Assertions.assertEquals("vegwqiukvz", model.agents().get(0).agentId()); - Assertions.assertEquals("dwttha", model.agents().get(0).agentName()); - Assertions.assertEquals("xhmt", model.agents().get(0).agentVersion()); - Assertions.assertEquals(665890978, model.minReplicas()); - Assertions.assertEquals(72207954, model.maxReplicas()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); + Assertions.assertEquals("rtalvnbw", model.protocols().get(0).version()); + Assertions.assertEquals("gyipem", model.agents().get(0).agentId()); + Assertions.assertEquals("gavsczuejd", model.agents().get(0).agentName()); + Assertions.assertEquals("hqfaqnvz", model.agents().get(0).agentVersion()); + Assertions.assertEquals(2063766495, model.minReplicas()); + Assertions.assertEquals(1642527120, model.maxReplicas()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - HostedAgentDeployment model = new HostedAgentDeployment().withDescription("jxsgmbawvifdxke") - .withTags(mapOf("xvcmufunlcp", "hocjxwkloozrv")) - .withDisplayName("tmjtsghp") - .withDeploymentId("bcpzarpzeqacdldt") - .withState(AgentDeploymentState.DELETED) - .withProtocols(Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("pc"), - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("uqndaizupfkhuy"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("vegwqiukvz") - .withAgentName("dwttha") - .withAgentVersion("xhmt"), - new VersionedAgentReference().withAgentId("jqf") - .withAgentName("peexpgeumilhwuit") - .withAgentVersion("gkskjivbss"), - new VersionedAgentReference().withAgentId("s") - .withAgentName("wqqrsmpcbbprtuga") - .withAgentVersion("exyionofninbd"), - new VersionedAgentReference().withAgentId("ogd") - .withAgentName("bfcmkrfts") - .withAgentVersion("zbcyksiv"))) - .withMinReplicas(665890978) - .withMaxReplicas(72207954); + HostedAgentDeployment model + = new HostedAgentDeployment().withDescription("lghwzhome") + .withTags(mapOf("liuhqawmoaiancz", "s")) + .withDisplayName("nbbklqpxzucafed") + .withDeploymentId("wnlzafwxu") + .withState(AgentDeploymentState.DELETED) + .withProtocols(Arrays.asList( + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("rtalvnbw"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("meluclvdjj"), + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("dnqodx"))) + .withAgents(Arrays.asList(new VersionedAgentReference().withAgentId("gyipem") + .withAgentName("gavsczuejd") + .withAgentVersion("hqfaqnvz"))) + .withMinReplicas(2063766495) + .withMaxReplicas(1642527120); model = BinaryData.fromObject(model).toObject(HostedAgentDeployment.class); - Assertions.assertEquals("jxsgmbawvifdxke", model.description()); - Assertions.assertEquals("hocjxwkloozrv", model.tags().get("xvcmufunlcp")); - Assertions.assertEquals("tmjtsghp", model.displayName()); - Assertions.assertEquals("bcpzarpzeqacdldt", model.deploymentId()); + Assertions.assertEquals("lghwzhome", model.description()); + Assertions.assertEquals("s", model.tags().get("liuhqawmoaiancz")); + Assertions.assertEquals("nbbklqpxzucafed", model.displayName()); + Assertions.assertEquals("wnlzafwxu", model.deploymentId()); Assertions.assertEquals(AgentDeploymentState.DELETED, model.state()); - Assertions.assertEquals(AgentProtocol.AGENT, model.protocols().get(0).protocol()); - Assertions.assertEquals("pc", model.protocols().get(0).version()); - Assertions.assertEquals("vegwqiukvz", model.agents().get(0).agentId()); - Assertions.assertEquals("dwttha", model.agents().get(0).agentName()); - Assertions.assertEquals("xhmt", model.agents().get(0).agentVersion()); - Assertions.assertEquals(665890978, model.minReplicas()); - Assertions.assertEquals(72207954, model.maxReplicas()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); + Assertions.assertEquals("rtalvnbw", model.protocols().get(0).version()); + Assertions.assertEquals("gyipem", model.agents().get(0).agentId()); + Assertions.assertEquals("gavsczuejd", model.agents().get(0).agentName()); + Assertions.assertEquals("hqfaqnvz", model.agents().get(0).agentVersion()); + Assertions.assertEquals(2063766495, model.minReplicas()); + Assertions.assertEquals(1642527120, model.maxReplicas()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/IdentityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/IdentityTests.java index 3fe6fd4d614a..a217ba91ea6f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/IdentityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/IdentityTests.java @@ -16,19 +16,18 @@ public final class IdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Identity model = BinaryData.fromString( - "{\"type\":\"UserAssigned\",\"tenantId\":\"nxqbzvddn\",\"principalId\":\"ndei\",\"userAssignedIdentities\":{\"qkwpyeicxmqc\":{\"principalId\":\"npzaoq\",\"clientId\":\"hrhcffcyddglmjth\"},\"joghmewuama\":{\"principalId\":\"q\",\"clientId\":\"khixuigdtopbo\"},\"iotkftutqxl\":{\"principalId\":\"rzayv\",\"clientId\":\"pgvdf\"},\"tthzrvqd\":{\"principalId\":\"xlefgugnxkrx\",\"clientId\":\"mi\"}}}") + "{\"type\":\"None\",\"tenantId\":\"exhd\",\"principalId\":\"i\",\"userAssignedIdentities\":{\"vuhrhcffcyddgl\":{\"principalId\":\"jnxqbzvddntwn\",\"clientId\":\"icbtwnpzao\"},\"wqvhkhixuigdt\":{\"principalId\":\"t\",\"clientId\":\"qkwpyeicxmqc\"},\"uhrzayvvt\":{\"principalId\":\"bob\",\"clientId\":\"ghmewuam\"}}}") .toObject(Identity.class); - Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(ResourceIdentityType.NONE, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Identity model = new Identity().withType(ResourceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("qkwpyeicxmqc", new UserAssignedIdentity(), "joghmewuama", new UserAssignedIdentity(), - "iotkftutqxl", new UserAssignedIdentity(), "tthzrvqd", new UserAssignedIdentity())); + Identity model = new Identity().withType(ResourceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("vuhrhcffcyddgl", new UserAssignedIdentity(), "wqvhkhixuigdt", + new UserAssignedIdentity(), "uhrzayvvt", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(Identity.class); - Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, model.type()); + Assertions.assertEquals(ResourceIdentityType.NONE, model.type()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java index a4f51c1f93d9..268e2da5a7a8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/LocationBasedModelCapacitiesListMockTests.java @@ -23,7 +23,7 @@ public final class LocationBasedModelCapacitiesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"vaedogzou\",\"properties\":{\"model\":{\"publisher\":\"xgjogcph\",\"format\":\"fhrmtenfdvdoe\",\"name\":\"ywusrjzhdtr\",\"version\":\"fezfsmyljdzyyr\",\"source\":\"mwtqil\",\"sourceAccount\":\"nnkynkstd\",\"callRateLimit\":{\"count\":88.78908,\"renewalPeriod\":92.99914,\"rules\":[{}]}},\"skuName\":\"xaqjyihjcwwvaos\",\"availableCapacity\":19.134933,\"availableFinetuneCapacity\":37.697582,\"scopeId\":\"khpspww\",\"scopeType\":\"Global\"},\"id\":\"yfaoexnguwnrdpu\",\"name\":\"laihsujtggybsz\",\"type\":\"mijxejpd\"}]}"; + = "{\"value\":[{\"location\":\"bdczvothmkhjao\",\"properties\":{\"model\":{\"publisher\":\"fcnjhbpoelhscmy\",\"format\":\"hjvszfq\",\"name\":\"kndwp\",\"version\":\"qwojoev\",\"source\":\"ufytdxmly\",\"sourceAccount\":\"lyvapbkrbu\",\"callRateLimit\":{\"count\":20.343864,\"renewalPeriod\":75.38314,\"rules\":[{},{}]}},\"skuName\":\"u\",\"availableCapacity\":21.509123,\"availableFinetuneCapacity\":43.883305,\"scopeId\":\"vaylz\",\"scopeType\":\"Classic\"},\"id\":\"psftqkrvmhvbvvc\",\"name\":\"wtqsuspnhmzy\",\"type\":\"ffetevrnt\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.locationBasedModelCapacities() - .list("gijydg", "ebjuymtevaebzm", "ywhr", "k", com.azure.core.util.Context.NONE); + .list("qxfbbigcfddofx", "fbmjyyrqaedwo", "ocytjgoeayokrw", "mihwpadhedb", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vaedogzou", response.iterator().next().location()); - Assertions.assertEquals("xgjogcph", response.iterator().next().properties().model().publisher()); - Assertions.assertEquals("fhrmtenfdvdoe", response.iterator().next().properties().model().format()); - Assertions.assertEquals("ywusrjzhdtr", response.iterator().next().properties().model().name()); - Assertions.assertEquals("fezfsmyljdzyyr", response.iterator().next().properties().model().version()); - Assertions.assertEquals("mwtqil", response.iterator().next().properties().model().source()); - Assertions.assertEquals("nnkynkstd", response.iterator().next().properties().model().sourceAccount()); - Assertions.assertEquals("xaqjyihjcwwvaos", response.iterator().next().properties().skuName()); - Assertions.assertEquals(19.134933F, response.iterator().next().properties().availableCapacity()); - Assertions.assertEquals(37.697582F, response.iterator().next().properties().availableFinetuneCapacity()); - Assertions.assertEquals("khpspww", response.iterator().next().properties().scopeId()); - Assertions.assertEquals(QuotaScopeType.GLOBAL, response.iterator().next().properties().scopeType()); + Assertions.assertEquals("bdczvothmkhjao", response.iterator().next().location()); + Assertions.assertEquals("fcnjhbpoelhscmy", response.iterator().next().properties().model().publisher()); + Assertions.assertEquals("hjvszfq", response.iterator().next().properties().model().format()); + Assertions.assertEquals("kndwp", response.iterator().next().properties().model().name()); + Assertions.assertEquals("qwojoev", response.iterator().next().properties().model().version()); + Assertions.assertEquals("ufytdxmly", response.iterator().next().properties().model().source()); + Assertions.assertEquals("lyvapbkrbu", response.iterator().next().properties().model().sourceAccount()); + Assertions.assertEquals("u", response.iterator().next().properties().skuName()); + Assertions.assertEquals(21.509123F, response.iterator().next().properties().availableCapacity()); + Assertions.assertEquals(43.883305F, response.iterator().next().properties().availableFinetuneCapacity()); + Assertions.assertEquals("vaylz", response.iterator().next().properties().scopeId()); + Assertions.assertEquals(QuotaScopeType.CLASSIC, response.iterator().next().properties().scopeType()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedAgentDeploymentTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedAgentDeploymentTests.java index 929d7bec5344..984f741ede78 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedAgentDeploymentTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedAgentDeploymentTests.java @@ -19,49 +19,46 @@ public final class ManagedAgentDeploymentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedAgentDeployment model = BinaryData.fromString( - "{\"deploymentType\":\"Managed\",\"displayName\":\"vkrmukmyjmkx\",\"deploymentId\":\"tcsloj\",\"state\":\"Running\",\"protocols\":[{\"protocol\":\"A2A\",\"version\":\"o\"},{\"protocol\":\"Agent\",\"version\":\"qxcsqhtkbtnqlrn\"},{\"protocol\":\"Responses\",\"version\":\"biipsnawwlqkznx\"}],\"agents\":[{\"agentVersion\":\"xricctkwmuqq\",\"agentId\":\"jxeiy\",\"agentName\":\"esrw\"},{\"agentVersion\":\"exh\",\"agentId\":\"trceqnkbrupob\",\"agentName\":\"dmljzacvumepjp\"}],\"provisioningState\":\"Succeeded\",\"description\":\"zpphepif\",\"tags\":{\"cjclykcgxv\":\"eqir\",\"punettepdjxq\":\"pjlvczuoda\",\"aewse\":\"skoynuiylpc\",\"xegqphr\":\"vesk\"}}") + "{\"deploymentType\":\"Managed\",\"displayName\":\"coe\",\"deploymentId\":\"nhzqrottjzcfy\",\"state\":\"Starting\",\"protocols\":[{\"protocol\":\"Responses\",\"version\":\"h\"},{\"protocol\":\"Responses\",\"version\":\"nfszpyglqdhmrjz\"},{\"protocol\":\"A2A\",\"version\":\"xpjb\"},{\"protocol\":\"Agent\",\"version\":\"joqcjenkyhfqzvsq\"}],\"agents\":[{\"agentVersion\":\"elgcmpzqjhhhqx\",\"agentId\":\"yvca\",\"agentName\":\"yv\"}],\"provisioningState\":\"Deleting\",\"description\":\"izus\",\"tags\":{\"jiu\":\"lbscmnlz\",\"kxrerlniylylyfwx\":\"ehgmvflnwyv\",\"hmupgxyjtcdxabbu\":\"utgqztwh\"}}") .toObject(ManagedAgentDeployment.class); - Assertions.assertEquals("zpphepif", model.description()); - Assertions.assertEquals("eqir", model.tags().get("cjclykcgxv")); - Assertions.assertEquals("vkrmukmyjmkx", model.displayName()); - Assertions.assertEquals("tcsloj", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); - Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); - Assertions.assertEquals("o", model.protocols().get(0).version()); - Assertions.assertEquals("jxeiy", model.agents().get(0).agentId()); - Assertions.assertEquals("esrw", model.agents().get(0).agentName()); - Assertions.assertEquals("xricctkwmuqq", model.agents().get(0).agentVersion()); + Assertions.assertEquals("izus", model.description()); + Assertions.assertEquals("lbscmnlz", model.tags().get("jiu")); + Assertions.assertEquals("coe", model.displayName()); + Assertions.assertEquals("nhzqrottjzcfy", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); + Assertions.assertEquals("h", model.protocols().get(0).version()); + Assertions.assertEquals("yvca", model.agents().get(0).agentId()); + Assertions.assertEquals("yv", model.agents().get(0).agentName()); + Assertions.assertEquals("elgcmpzqjhhhqx", model.agents().get(0).agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedAgentDeployment model = new ManagedAgentDeployment().withDescription("zpphepif") - .withTags( - mapOf("cjclykcgxv", "eqir", "punettepdjxq", "pjlvczuoda", "aewse", "skoynuiylpc", "xegqphr", "vesk")) - .withDisplayName("vkrmukmyjmkx") - .withDeploymentId("tcsloj") - .withState(AgentDeploymentState.RUNNING) - .withProtocols(Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("o"), - new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("qxcsqhtkbtnqlrn"), - new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("biipsnawwlqkznx"))) - .withAgents(Arrays.asList( - new VersionedAgentReference().withAgentId("jxeiy") - .withAgentName("esrw") - .withAgentVersion("xricctkwmuqq"), - new VersionedAgentReference().withAgentId("trceqnkbrupob") - .withAgentName("dmljzacvumepjp") - .withAgentVersion("exh"))); + ManagedAgentDeployment model = new ManagedAgentDeployment().withDescription("izus") + .withTags(mapOf("jiu", "lbscmnlz", "kxrerlniylylyfwx", "ehgmvflnwyv", "hmupgxyjtcdxabbu", "utgqztwh")) + .withDisplayName("coe") + .withDeploymentId("nhzqrottjzcfy") + .withState(AgentDeploymentState.STARTING) + .withProtocols( + Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("h"), + new AgentProtocolVersion().withProtocol(AgentProtocol.RESPONSES).withVersion("nfszpyglqdhmrjz"), + new AgentProtocolVersion().withProtocol(AgentProtocol.A2A).withVersion("xpjb"), + new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("joqcjenkyhfqzvsq"))) + .withAgents(Arrays.asList(new VersionedAgentReference().withAgentId("yvca") + .withAgentName("yv") + .withAgentVersion("elgcmpzqjhhhqx"))); model = BinaryData.fromObject(model).toObject(ManagedAgentDeployment.class); - Assertions.assertEquals("zpphepif", model.description()); - Assertions.assertEquals("eqir", model.tags().get("cjclykcgxv")); - Assertions.assertEquals("vkrmukmyjmkx", model.displayName()); - Assertions.assertEquals("tcsloj", model.deploymentId()); - Assertions.assertEquals(AgentDeploymentState.RUNNING, model.state()); - Assertions.assertEquals(AgentProtocol.A2A, model.protocols().get(0).protocol()); - Assertions.assertEquals("o", model.protocols().get(0).version()); - Assertions.assertEquals("jxeiy", model.agents().get(0).agentId()); - Assertions.assertEquals("esrw", model.agents().get(0).agentName()); - Assertions.assertEquals("xricctkwmuqq", model.agents().get(0).agentVersion()); + Assertions.assertEquals("izus", model.description()); + Assertions.assertEquals("lbscmnlz", model.tags().get("jiu")); + Assertions.assertEquals("coe", model.displayName()); + Assertions.assertEquals("nhzqrottjzcfy", model.deploymentId()); + Assertions.assertEquals(AgentDeploymentState.STARTING, model.state()); + Assertions.assertEquals(AgentProtocol.RESPONSES, model.protocols().get(0).protocol()); + Assertions.assertEquals("h", model.protocols().get(0).version()); + Assertions.assertEquals("yvca", model.agents().get(0).agentId()); + Assertions.assertEquals("yv", model.agents().get(0).agentName()); + Assertions.assertEquals("elgcmpzqjhhhqx", 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 deleted file mode 100644 index 2b2ae5444ac1..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacitiesListMockTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"na\",\"availableAccelerators\":1632518981,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":25042287,\"totalAvailableCapacity\":683575733,\"largestDeploymentCapacity\":1853132561}]},\"id\":\"moplukfykkfhsov\",\"name\":\"dkrmjxmwqpdk\",\"type\":\"sjqb\"}]}"; - - 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("a", "rvkgpogplbjuvl", "hxnrn", 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 deleted file mode 100644 index e318d84da96a..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityInnerTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"mvmmagoaqylkjz\",\"availableAccelerators\":796364731,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":631894274,\"totalAvailableCapacity\":1951855208,\"largestDeploymentCapacity\":891037288},{\"modelInstanceAcceleratorCount\":1126238665,\"totalAvailableCapacity\":20819114,\"largestDeploymentCapacity\":232494385},{\"modelInstanceAcceleratorCount\":242842574,\"totalAvailableCapacity\":1700403098,\"largestDeploymentCapacity\":274573467},{\"modelInstanceAcceleratorCount\":1336825588,\"totalAvailableCapacity\":2065115467,\"largestDeploymentCapacity\":488313327}]},\"id\":\"bd\",\"name\":\"vcqguefzh\",\"type\":\"mpheqdur\"}") - .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 deleted file mode 100644 index 8872bbfe6678..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityListResultTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"hiigby\",\"value\":[{\"properties\":{\"acceleratorType\":\"vxva\",\"availableAccelerators\":1630593838,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":929822978,\"totalAvailableCapacity\":1990869222,\"largestDeploymentCapacity\":1090021535},{\"modelInstanceAcceleratorCount\":872457867,\"totalAvailableCapacity\":1271280598,\"largestDeploymentCapacity\":1888869488}]},\"id\":\"zlwxaeaovur\",\"name\":\"xdndsbdweaderzm\",\"type\":\"ntopa\"}]}") - .toObject(ManagedComputeCapacityListResult.class); - Assertions.assertEquals("hiigby", 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 deleted file mode 100644 index cdb1816b2ad5..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeCapacityPropertiesTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"yujlfyoumpckyecl\",\"availableAccelerators\":1922020394,\"deploymentSizeCapacities\":[{\"modelInstanceAcceleratorCount\":564586998,\"totalAvailableCapacity\":2114479531,\"largestDeploymentCapacity\":241474802},{\"modelInstanceAcceleratorCount\":384723144,\"totalAvailableCapacity\":1663305898,\"largestDeploymentCapacity\":1302814584},{\"modelInstanceAcceleratorCount\":789295576,\"totalAvailableCapacity\":1657048191,\"largestDeploymentCapacity\":1990009612}]}") - .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 deleted file mode 100644 index 9b3f12c93f44..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInfoTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"jtlkexaonwivkcqh\",\"projectId\":\"hxknlccrmmkyupi\",\"modelId\":\"byqjfkakfqfrkem\",\"acceleratorCount\":4498347556178380582,\"instanceCount\":1066286485}") - .toObject(ManagedComputeDeploymentInfo.class); - Assertions.assertEquals("jtlkexaonwivkcqh", model.deploymentId()); - Assertions.assertEquals("hxknlccrmmkyupi", model.projectId()); - Assertions.assertEquals("byqjfkakfqfrkem", model.modelId()); - Assertions.assertEquals(4498347556178380582L, model.acceleratorCount()); - Assertions.assertEquals(1066286485, model.instanceCount()); - } -} 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 deleted file mode 100644 index a75fd4a290ea..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentInnerTests.java +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"lohap\",\"deploymentTemplate\":\"nfszpyglqdhmrjz\",\"acceleratorType\":\"l\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"capabilities\":{\"enky\":\"yypsjoqc\",\"vsqxfxjelgcmpzqj\":\"fq\",\"s\":\"hhqxuwyvcacoyviv\",\"bscm\":\"zusjsz\"},\"computeId\":\"zijiufehgmv\",\"priority\":\"nwyvq\",\"acceleratorsPerInstance\":1693891675,\"totalAccelerators\":1520441581,\"provisioningState\":\"Moving\",\"provisioningDetails\":{\"message\":\"lylyfwxzutgqz\",\"lastOperationTimestamp\":\"2021-01-01T12:02:36Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"mupgxy\",\"swagger\":\"cdxa\",\"messagesApiScoringPath\":\"u\"}},\"sku\":{\"name\":\"tabenbbk\",\"tier\":\"Basic\",\"size\":\"zucafeddww\",\"family\":\"z\",\"capacity\":1392788602},\"etag\":\"u\",\"id\":\"nhgookrtalvnbw\",\"name\":\"pbeme\",\"type\":\"uclvdjj\"}") - .toObject(ManagedComputeDeploymentInner.class); - Assertions.assertEquals("lohap", model.properties().model()); - Assertions.assertEquals("nfszpyglqdhmrjz", model.properties().deploymentTemplate()); - Assertions.assertEquals("l", model.properties().acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, - model.properties().versionUpgradeOption()); - Assertions.assertEquals("zijiufehgmv", model.properties().computeId()); - Assertions.assertEquals("nwyvq", model.properties().priority()); - Assertions.assertEquals("tabenbbk", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("zucafeddww", model.sku().size()); - Assertions.assertEquals("z", model.sku().family()); - Assertions.assertEquals(1392788602, model.sku().capacity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedComputeDeploymentInner model = new ManagedComputeDeploymentInner() - .withProperties(new ManagedComputeDeploymentProperties().withModel("lohap") - .withDeploymentTemplate("nfszpyglqdhmrjz") - .withAcceleratorType("l") - .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED) - .withComputeId("zijiufehgmv") - .withPriority("nwyvq")) - .withSku(new Sku().withName("tabenbbk") - .withTier(SkuTier.BASIC) - .withSize("zucafeddww") - .withFamily("z") - .withCapacity(1392788602)); - model = BinaryData.fromObject(model).toObject(ManagedComputeDeploymentInner.class); - Assertions.assertEquals("lohap", model.properties().model()); - Assertions.assertEquals("nfszpyglqdhmrjz", model.properties().deploymentTemplate()); - Assertions.assertEquals("l", model.properties().acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED, - model.properties().versionUpgradeOption()); - Assertions.assertEquals("zijiufehgmv", model.properties().computeId()); - Assertions.assertEquals("nwyvq", model.properties().priority()); - Assertions.assertEquals("tabenbbk", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("zucafeddww", model.sku().size()); - Assertions.assertEquals("z", model.sku().family()); - Assertions.assertEquals(1392788602, model.sku().capacity()); - } -} 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 deleted file mode 100644 index 02c9c18f866e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentListResultTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"pgvdwnapfdqw\",\"value\":[{\"properties\":{\"model\":\"ptnuwjtkschgc\",\"deploymentTemplate\":\"y\",\"acceleratorType\":\"eseyqr\",\"versionUpgradeOption\":\"OnceCurrentVersionExpired\",\"capabilities\":{\"iswskuk\":\"dotjvdk\",\"spkxkdt\":\"tasbvw\",\"vtwknvgmmbugt\":\"fkndl\",\"kueatgroeshoy\":\"watmqa\"},\"computeId\":\"cbyfqxkf\",\"priority\":\"ytehqpuvjmvqmt\",\"acceleratorsPerInstance\":1928800921,\"totalAccelerators\":636942404,\"provisioningState\":\"Moving\",\"provisioningDetails\":{\"message\":\"jn\",\"lastOperationTimestamp\":\"2021-05-14T14:46:25Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"juskbrreqyn\",\"swagger\":\"eysfaqegplw\",\"messagesApiScoringPath\":\"shwddkvbxgk\"}},\"sku\":{\"name\":\"sybwptdaca\",\"tier\":\"Standard\",\"size\":\"f\",\"family\":\"ymtpo\",\"capacity\":1736120485},\"etag\":\"azerohzrsq\",\"id\":\"sxkdnwqapfgsdpc\",\"name\":\"essmzhhku\",\"type\":\"ip\"},{\"properties\":{\"model\":\"q\",\"deploymentTemplate\":\"tekva\",\"acceleratorType\":\"l\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"eh\":\"qyv\",\"mxhzzysevus\":\"a\",\"yzatvfuzkaft\":\"ivzrrryveimipsk\",\"syeipqd\":\"vvruxwi\"},\"computeId\":\"jtgrqgdgkkileplk\",\"priority\":\"mknhwtbbaedor\",\"acceleratorsPerInstance\":961696779,\"totalAccelerators\":868137408,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"bdgwumgxdgd\",\"lastOperationTimestamp\":\"2021-01-13T19:59:53Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"dexjddvjs\",\"swagger\":\"wotmmwllcolsrsxa\",\"messagesApiScoringPath\":\"efh\"}},\"sku\":{\"name\":\"cgjokjljnhvlq\",\"tier\":\"Free\",\"size\":\"peeksnbksdqhjv\",\"family\":\"lxeslkhh\",\"capacity\":1821262908},\"etag\":\"poq\",\"id\":\"vnwqjwgo\",\"name\":\"nlejjjkxybwf\",\"type\":\"bkjbz\"}]}") - .toObject(ManagedComputeDeploymentListResult.class); - Assertions.assertEquals("pgvdwnapfdqw", 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 deleted file mode 100644 index 51ffb288bf42..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentPropertiesTests.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"kyrdnqodx\",\"deploymentTemplate\":\"h\",\"acceleratorType\":\"qfaqnvzoqg\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"zuejd\":\"chgavs\",\"ewj\":\"xptlghwzho\",\"liuhqawmoaiancz\":\"s\"},\"computeId\":\"odrrslblxyd\",\"priority\":\"rxvvbxi\",\"acceleratorsPerInstance\":207491772,\"totalAccelerators\":958439934,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"qkhychocok\",\"lastOperationTimestamp\":\"2021-10-18T00:50:01Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"rqlrqffawe\",\"swagger\":\"rkphyjdxr\",\"messagesApiScoringPath\":\"juqdbrx\"}}") - .toObject(ManagedComputeDeploymentProperties.class); - Assertions.assertEquals("kyrdnqodx", model.model()); - Assertions.assertEquals("h", model.deploymentTemplate()); - Assertions.assertEquals("qfaqnvzoqg", model.acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, model.versionUpgradeOption()); - Assertions.assertEquals("odrrslblxyd", model.computeId()); - Assertions.assertEquals("rxvvbxi", model.priority()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedComputeDeploymentProperties model = new ManagedComputeDeploymentProperties().withModel("kyrdnqodx") - .withDeploymentTemplate("h") - .withAcceleratorType("qfaqnvzoqg") - .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE) - .withComputeId("odrrslblxyd") - .withPriority("rxvvbxi"); - model = BinaryData.fromObject(model).toObject(ManagedComputeDeploymentProperties.class); - Assertions.assertEquals("kyrdnqodx", model.model()); - Assertions.assertEquals("h", model.deploymentTemplate()); - Assertions.assertEquals("qfaqnvzoqg", model.acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, model.versionUpgradeOption()); - Assertions.assertEquals("odrrslblxyd", model.computeId()); - Assertions.assertEquals("rxvvbxi", model.priority()); - } -} 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 deleted file mode 100644 index d7a80f38921a..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentProvisioningDetailsTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"gchbapxkiy\",\"lastOperationTimestamp\":\"2021-02-28T15:19:21Z\"}") - .toObject(ManagedComputeDeploymentProvisioningDetails.class); - Assertions.assertEquals("gchbapxkiy", model.message()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T15:19:21Z"), 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 deleted file mode 100644 index 36f0ca7c37d9..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentRoutesTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"bajbuscgduusi\",\"swagger\":\"cblevpmc\",\"messagesApiScoringPath\":\"jy\"}") - .toObject(ManagedComputeDeploymentRoutes.class); - Assertions.assertEquals("bajbuscgduusi", model.chatCompletionsScoringPath()); - Assertions.assertEquals("cblevpmc", model.swagger()); - Assertions.assertEquals("jy", 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 deleted file mode 100644 index b95c74353f70..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"egefzjx\",\"deploymentTemplate\":\"tqbgys\",\"acceleratorType\":\"thnvxwtdqtcbjd\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"vovoa\":\"kxunsaujqgbb\",\"sabdg\":\"hgjsmbcsloy\",\"onsdunr\":\"he\",\"hgzuyxtrvf\":\"zvzuat\"},\"computeId\":\"qs\",\"priority\":\"qjbvitptpvsffa\",\"acceleratorsPerInstance\":1715023602,\"totalAccelerators\":1346527238,\"provisioningState\":\"Succeeded\",\"provisioningDetails\":{\"message\":\"wkgjwb\",\"lastOperationTimestamp\":\"2021-05-04T11:13:15Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"bwxyldqtmggcpd\",\"swagger\":\"egajrzctwymzsk\",\"messagesApiScoringPath\":\"kkgeseiphgliupq\"}},\"sku\":{\"name\":\"oobkjlca\",\"tier\":\"Enterprise\",\"size\":\"omjiqiince\",\"family\":\"xkdevpxi\",\"capacity\":954340554},\"etag\":\"zm\",\"id\":\"mduvtvodqxxp\",\"name\":\"hm\",\"type\":\"qibtblmc\"}"; - - 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("xnrp") - .withExistingAccount("derjennmk", "aeuwqdwxhhlbmyph") - .withProperties(new ManagedComputeDeploymentProperties().withModel("ewokyqsfkxf") - .withDeploymentTemplate("wbihqbtodjfyxbvk") - .withAcceleratorType("zdmvdd") - .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_CURRENT_VERSION_EXPIRED) - .withComputeId("rho") - .withPriority("kkvxu")) - .withSku(new Sku().withName("zevtzqwczoc") - .withTier(SkuTier.ENTERPRISE) - .withSize("k") - .withFamily("ynfpkyvnhiysdho") - .withCapacity(1469961841)) - .create(); - - Assertions.assertEquals("egefzjx", response.properties().model()); - Assertions.assertEquals("tqbgys", response.properties().deploymentTemplate()); - Assertions.assertEquals("thnvxwtdqtcbjd", response.properties().acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, - response.properties().versionUpgradeOption()); - Assertions.assertEquals("qs", response.properties().computeId()); - Assertions.assertEquals("qjbvitptpvsffa", response.properties().priority()); - Assertions.assertEquals("oobkjlca", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("omjiqiince", response.sku().size()); - Assertions.assertEquals("xkdevpxi", response.sku().family()); - Assertions.assertEquals(954340554, response.sku().capacity()); - } -} 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 deleted file mode 100644 index c8f7b4a3193b..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsDeleteMockTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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("b", "svnkxmyt", "u", 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 deleted file mode 100644 index bf622634894c..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsGetWithResponseMockTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"zscueza\",\"deploymentTemplate\":\"vdfwgqjhewcffrx\",\"acceleratorType\":\"ezkhzp\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"syzaivnp\":\"senerr\",\"kplujyduon\":\"jnp\"},\"computeId\":\"awsaoplvvmnbkx\",\"priority\":\"rsbbd\",\"acceleratorsPerInstance\":461401130,\"totalAccelerators\":1224304593,\"provisioningState\":\"Deleting\",\"provisioningDetails\":{\"message\":\"lxqk\",\"lastOperationTimestamp\":\"2021-05-16T12:51:46Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"zvcgrdspz\",\"swagger\":\"fkq\",\"messagesApiScoringPath\":\"uhvz\"}},\"sku\":{\"name\":\"brouszxac\",\"tier\":\"Enterprise\",\"size\":\"okgoojjf\",\"family\":\"tubcmu\",\"capacity\":882961343},\"etag\":\"tzvxxvsb\",\"id\":\"ufkr\",\"name\":\"nkcnihkswxmfurq\",\"type\":\"wmwwpntumota\"}"; - - 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("wgr", "ub", "udhvos", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("zscueza", response.properties().model()); - Assertions.assertEquals("vdfwgqjhewcffrx", response.properties().deploymentTemplate()); - Assertions.assertEquals("ezkhzp", response.properties().acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, - response.properties().versionUpgradeOption()); - Assertions.assertEquals("awsaoplvvmnbkx", response.properties().computeId()); - Assertions.assertEquals("rsbbd", response.properties().priority()); - Assertions.assertEquals("brouszxac", response.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, response.sku().tier()); - Assertions.assertEquals("okgoojjf", response.sku().size()); - Assertions.assertEquals("tubcmu", response.sku().family()); - Assertions.assertEquals(882961343, response.sku().capacity()); - } -} 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 deleted file mode 100644 index 96ebc3a0736e..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeDeploymentsListMockTests.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"myrhkvx\",\"deploymentTemplate\":\"miemqyftgpqos\",\"acceleratorType\":\"fqvjmghpakbqyhls\",\"versionUpgradeOption\":\"NoAutoUpgrade\",\"capabilities\":{\"yevztnjaw\":\"meqagkncjmyb\"},\"computeId\":\"ulem\",\"priority\":\"mbwppxirxbkitzmn\",\"acceleratorsPerInstance\":1863060049,\"totalAccelerators\":1276805401,\"provisioningState\":\"ResolvingDNS\",\"provisioningDetails\":{\"message\":\"tjlxsgcemegdzdvy\",\"lastOperationTimestamp\":\"2021-06-21T09:17:13Z\"},\"routes\":{\"chatCompletionsScoringPath\":\"f\",\"swagger\":\"zufldifnivlutg\",\"messagesApiScoringPath\":\"aacxauhvc\"}},\"sku\":{\"name\":\"xhklsqxt\",\"tier\":\"Free\",\"size\":\"gkts\",\"family\":\"yxxo\",\"capacity\":1864207532},\"etag\":\"bkvecnxfxphsowbe\",\"id\":\"nbwutlvuwmsu\",\"name\":\"ustihtgrafjajvky\",\"type\":\"mmjczvog\"}]}"; - - 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("edr", "hxg", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("myrhkvx", response.iterator().next().properties().model()); - Assertions.assertEquals("miemqyftgpqos", response.iterator().next().properties().deploymentTemplate()); - Assertions.assertEquals("fqvjmghpakbqyhls", response.iterator().next().properties().acceleratorType()); - Assertions.assertEquals(DeploymentModelVersionUpgradeOption.NO_AUTO_UPGRADE, - response.iterator().next().properties().versionUpgradeOption()); - Assertions.assertEquals("ulem", response.iterator().next().properties().computeId()); - Assertions.assertEquals("mbwppxirxbkitzmn", response.iterator().next().properties().priority()); - Assertions.assertEquals("xhklsqxt", response.iterator().next().sku().name()); - Assertions.assertEquals(SkuTier.FREE, response.iterator().next().sku().tier()); - Assertions.assertEquals("gkts", response.iterator().next().sku().size()); - Assertions.assertEquals("yxxo", response.iterator().next().sku().family()); - Assertions.assertEquals(1864207532, response.iterator().next().sku().capacity()); - } -} 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 deleted file mode 100644 index fbbda25b6f43..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageInnerTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"sjybvitv\",\"name\":{\"value\":\"y\",\"localizedValue\":\"nu\"},\"type\":\"ggmuwdcho\",\"unit\":\"Percent\",\"limit\":19.106338429113336,\"currentValue\":6.37771194869543,\"offerScope\":\"noakiz\",\"deployments\":[{\"deploymentId\":\"knaqlnuwig\",\"projectId\":\"xly\",\"modelId\":\"phvxz\",\"acceleratorCount\":3064181899118656130,\"instanceCount\":1205134397}]}") - .toObject(ManagedComputeUsageInner.class); - Assertions.assertEquals(UnitType.PERCENT, model.unit()); - Assertions.assertEquals(19.106338429113336D, model.limit()); - Assertions.assertEquals(6.37771194869543D, model.currentValue()); - Assertions.assertEquals("noakiz", model.offerScope()); - Assertions.assertEquals("knaqlnuwig", model.deployments().get(0).deploymentId()); - Assertions.assertEquals("xly", model.deployments().get(0).projectId()); - Assertions.assertEquals("phvxz", model.deployments().get(0).modelId()); - Assertions.assertEquals(3064181899118656130L, model.deployments().get(0).acceleratorCount()); - Assertions.assertEquals(1205134397, model.deployments().get(0).instanceCount()); - } -} 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 deleted file mode 100644 index 5bbf497fa485..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsageListResultTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"oiojfizfavkjzwfb\",\"value\":[{\"id\":\"kmmfzsbf\",\"name\":{\"value\":\"zxmdew\",\"localizedValue\":\"sxkrpl\"},\"type\":\"aze\",\"unit\":\"Milliseconds\",\"limit\":83.21711900523152,\"currentValue\":0.4559711602464489,\"offerScope\":\"uhbrnnhjxsq\",\"deployments\":[{\"deploymentId\":\"kbiwetpozyc\",\"projectId\":\"iqyhgfse\",\"modelId\":\"lexbsf\",\"acceleratorCount\":3461670319118583954,\"instanceCount\":246722999}]},{\"id\":\"pziuwfbzkkdtnh\",\"name\":{\"value\":\"cljse\",\"localizedValue\":\"kpbafvafhl\"},\"type\":\"lc\",\"unit\":\"Count\",\"limit\":89.231242758459,\"currentValue\":16.145781911409763,\"offerScope\":\"fwrsofpltdbmair\",\"deployments\":[{\"deploymentId\":\"fnrac\",\"projectId\":\"pqigtuujwouhd\",\"modelId\":\"s\",\"acceleratorCount\":1782956154841144799,\"instanceCount\":1298338594}]}]}") - .toObject(ManagedComputeUsageListResult.class); - Assertions.assertEquals("oiojfizfavkjzwfb", model.nextLink()); - Assertions.assertEquals(UnitType.MILLISECONDS, model.value().get(0).unit()); - Assertions.assertEquals(83.21711900523152D, model.value().get(0).limit()); - Assertions.assertEquals(0.4559711602464489D, model.value().get(0).currentValue()); - Assertions.assertEquals("uhbrnnhjxsq", model.value().get(0).offerScope()); - Assertions.assertEquals("kbiwetpozyc", model.value().get(0).deployments().get(0).deploymentId()); - Assertions.assertEquals("iqyhgfse", model.value().get(0).deployments().get(0).projectId()); - Assertions.assertEquals("lexbsf", model.value().get(0).deployments().get(0).modelId()); - Assertions.assertEquals(3461670319118583954L, model.value().get(0).deployments().get(0).acceleratorCount()); - Assertions.assertEquals(246722999, model.value().get(0).deployments().get(0).instanceCount()); - } -} 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 deleted file mode 100644 index fa74c41024b1..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedComputeUsagesOperationGroupsListMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"gc\",\"name\":{\"value\":\"utehlka\",\"localizedValue\":\"tipquks\"},\"type\":\"kn\",\"unit\":\"Milliseconds\",\"limit\":51.918316567854916,\"currentValue\":80.10511815598674,\"offerScope\":\"cekggvmfnnb\",\"deployments\":[{\"deploymentId\":\"dfkkedeetxtpwcv\",\"projectId\":\"fwsunjzijaciwmm\",\"modelId\":\"tqdonbzzs\",\"acceleratorCount\":9222881084879047202,\"instanceCount\":1850672842}]}]}"; - - 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("vqlcqufylamxo", com.azure.core.util.Context.NONE); - - Assertions.assertEquals(UnitType.MILLISECONDS, response.iterator().next().unit()); - Assertions.assertEquals(51.918316567854916D, response.iterator().next().limit()); - Assertions.assertEquals(80.10511815598674D, response.iterator().next().currentValue()); - Assertions.assertEquals("cekggvmfnnb", response.iterator().next().offerScope()); - Assertions.assertEquals("dfkkedeetxtpwcv", response.iterator().next().deployments().get(0).deploymentId()); - Assertions.assertEquals("fwsunjzijaciwmm", response.iterator().next().deployments().get(0).projectId()); - Assertions.assertEquals("tqdonbzzs", response.iterator().next().deployments().get(0).modelId()); - Assertions.assertEquals(9222881084879047202L, - response.iterator().next().deployments().get(0).acceleratorCount()); - Assertions.assertEquals(1850672842, response.iterator().next().deployments().get(0).instanceCount()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkListResultTests.java index a8c7da883d5d..177c0a85af9c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkListResultTests.java @@ -16,14 +16,14 @@ public final class ManagedNetworkListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkListResult model = BinaryData.fromString( - "{\"nextLink\":\"qtaazyqbxy\",\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"zxlhdjzqdcadwv\",\"outboundRules\":{\"zjiihjr\":{\"type\":\"OutboundRule\"},\"ybmrzoepnxwd\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"mxaursqftibtyi\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Failed\"},\"id\":\"rfqjpnqnoo\",\"name\":\"sbede\",\"type\":\"rexkxbhxvucn\"}]}") + "{\"nextLink\":\"v\",\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\",\"AllowInternetOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"mp\",\"outboundRules\":{\"awz\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"clkiexhajl\",\"provisioningState\":\"Updating\"},\"provisioningState\":\"Updating\"},\"id\":\"fyut\",\"name\":\"diygbpvnwswmtxky\",\"type\":\"twwgzwx\"},{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\",\"AllowOnlyApprovedOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"yvneeza\",\"outboundRules\":{\"htmoqqtlffhzbkr\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"vhnqo\",\"provisioningState\":\"Deleting\"},\"provisioningState\":\"Deferred\"},\"id\":\"yetesy\",\"name\":\"vidbztjhqtfb\",\"type\":\"vnynkb\"},{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"Disabled\",\"Disabled\"],\"isolationMode\":\"Disabled\",\"networkId\":\"kzyaup\",\"outboundRules\":{\"cxnafbwqrooh\":{\"type\":\"OutboundRule\"},\"uovmaonurjt\":{\"type\":\"OutboundRule\"},\"mghihp\":{\"type\":\"OutboundRule\"},\"ecmslclbl\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"scvsfxigctm\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Succeeded\"},\"id\":\"ezq\",\"name\":\"cydrtceukdqkk\",\"type\":\"ihztgeqmgqzgwldo\"},{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowOnlyApprovedOutbound\",\"Disabled\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"uwaoaguhicqlli\",\"outboundRules\":{\"ac\":{\"type\":\"OutboundRule\"}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"kwqejpmvsseh\",\"provisioningState\":\"Deleting\"},\"provisioningState\":\"Succeeded\"},\"id\":\"cxtczhupeukn\",\"name\":\"jduyyespydjfb\",\"type\":\"c\"}]}") .toObject(ManagedNetworkListResult.class); - Assertions.assertEquals("qtaazyqbxy", model.nextLink()); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, + Assertions.assertEquals("v", model.nextLink()); + Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.value().get(0).properties().managedNetwork().isolationMode()); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.value().get(0).properties().managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.value().get(0).properties().managedNetwork().firewallSku()); + Assertions.assertEquals(FirewallSku.BASIC, model.value().get(0).properties().managedNetwork().firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.value().get(0).properties().managedNetwork().managedNetworkKind()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkProvisionsProvisionManagedNetworkMockTests.java index 3fb1543e8966..69d52d92ba99 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("cjiuhcxyveh", "klely", "dvpqfbxgy", new ManagedNetworkProvisionOptions(), + .provisionManagedNetwork("qnxhgk", "rdw", "ejpec", 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 72463ae5d5c3..0efae2677474 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,12 +23,11 @@ public final class ManagedNetworkSettingsBasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsBasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"isolationMode\":\"Disabled\",\"networkId\":\"hjevd\",\"outboundRules\":{\"lronqqlmg\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Inactive\",\"errorInformation\":\"kskmqozzkivyhjrl\",\"parentRuleNames\":[\"jixlqfhefkwabs\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"lexhv\",\"provisioningState\":\"Succeeded\"},\"id\":\"zoolzqoca\",\"name\":\"kuzlbcnn\",\"type\":\"t\"}") + "{\"properties\":{\"isolationMode\":\"Disabled\",\"networkId\":\"lrtywikdmhlakuf\",\"outboundRules\":{\"oeoq\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Inactive\",\"errorInformation\":\"cdixmx\",\"parentRuleNames\":[\"sryjqgdkfno\"]},\"tasfaymxbulpzeal\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"f\",\"parentRuleNames\":[\"mqjch\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"vf\",\"provisioningState\":\"Deleting\"},\"id\":\"suah\",\"name\":\"sgxjc\",\"type\":\"mzrrscubiwsdrn\"}") .toObject(ManagedNetworkSettingsBasicResourceInner.class); Assertions.assertEquals(IsolationMode.DISABLED, model.properties().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.properties().outboundRules().get("lronqqlmg").category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().outboundRules().get("lronqqlmg").status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.properties().outboundRules().get("oeoq").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().outboundRules().get("oeoq").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().status().status()); Assertions.assertEquals(FirewallSku.STANDARD, model.properties().firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V1, model.properties().managedNetworkKind()); @@ -38,16 +37,17 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { ManagedNetworkSettingsBasicResourceInner model = new ManagedNetworkSettingsBasicResourceInner() .withProperties(new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.DISABLED) - .withOutboundRules(mapOf("lronqqlmg", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.INACTIVE))) + .withOutboundRules(mapOf("oeoq", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.INACTIVE), + "tasfaymxbulpzeal", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.FAILED))) .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) .withFirewallSku(FirewallSku.STANDARD) .withManagedNetworkKind(ManagedNetworkKind.V1)); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsBasicResourceInner.class); Assertions.assertEquals(IsolationMode.DISABLED, model.properties().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.properties().outboundRules().get("lronqqlmg").category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().outboundRules().get("lronqqlmg").status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.properties().outboundRules().get("oeoq").category()); + Assertions.assertEquals(RuleStatus.INACTIVE, model.properties().outboundRules().get("oeoq").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().status().status()); 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 58965626f867..8385b5ae812f 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,30 +22,30 @@ public final class ManagedNetworkSettingsExTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsEx model = BinaryData.fromString( - "{\"changeableIsolationModes\":[\"Disabled\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"flqqbtnyjpylxd\",\"outboundRules\":{\"cm\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"s\",\"parentRuleNames\":[\"evwjcnkottlwuhv\",\"jmailfemjjzakzw\",\"iqullqxbdmvr\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"eof\",\"provisioningState\":\"Failed\"}") + "{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"avyunssxlg\",\"outboundRules\":{\"qipir\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"vvpa\",\"parentRuleNames\":[\"sgb\",\"xantuygdhg\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"o\",\"provisioningState\":\"Succeeded\"}") .toObject(ManagedNetworkSettingsEx.class); Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("cm").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.outboundRules().get("cm").status()); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status().status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.outboundRules().get("qipir").category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.outboundRules().get("qipir").status()); + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedNetworkSettingsEx model = new ManagedNetworkSettingsEx() - .withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) - .withOutboundRules( - mapOf("cm", new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V2); + ManagedNetworkSettingsEx model + = new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) + .withOutboundRules(mapOf("qipir", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.PROVISIONING))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) + .withFirewallSku(FirewallSku.BASIC) + .withManagedNetworkKind(ManagedNetworkKind.V2); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsEx.class); Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("cm").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.outboundRules().get("cm").status()); - Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.status().status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, model.outboundRules().get("qipir").category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.outboundRules().get("qipir").status()); + Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.firewallSku()); Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetworkKind()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsInnerTests.java index 251a59627db9..441bf0ef1d89 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,33 +22,34 @@ public final class ManagedNetworkSettingsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsInner model = BinaryData.fromString( - "{\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"rkadjfynnfmuiiir\",\"outboundRules\":{\"bdsuifr\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"kxbbcbrwjiutgnj\",\"parentRuleNames\":[\"eewoiymrvzb\",\"uyrsrziuctix\"]},\"srhkhgsnxuwwkpph\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"ezkiswqjmdghsypa\",\"parentRuleNames\":[\"jufptbjczjnciuiy\",\"vldaswv\",\"pisqqzlgcndhzx\",\"rfc\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"xomeikjclwzacn\",\"provisioningState\":\"Deferred\"}") + "{\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"x\",\"outboundRules\":{\"oyin\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"k\",\"parentRuleNames\":[\"uuuercta\"]},\"srucvcrrpcjtt\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"cyrduczkg\",\"parentRuleNames\":[\"y\"]},\"uuzivensrpmeyyvp\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"aqnrmvvfkoxmlg\",\"parentRuleNames\":[\"uidvrmazlpdwwex\",\"mzvlazipbh\",\"wvqsgny\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"zgs\",\"provisioningState\":\"Deleting\"}") .toObject(ManagedNetworkSettingsInner.class); Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.outboundRules().get("bdsuifr").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.outboundRules().get("bdsuifr").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.firewallSku()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.outboundRules().get("oyin").category()); + Assertions.assertEquals(RuleStatus.FAILED, model.outboundRules().get("oyin").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("bdsuifr", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.ACTIVE), - "srhkhgsnxuwwkpph", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.FAILED))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.STANDARD) - .withManagedNetworkKind(ManagedNetworkKind.V1); + ManagedNetworkSettingsInner model = new ManagedNetworkSettingsInner() + .withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) + .withOutboundRules(mapOf("oyin", + new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.FAILED), "srucvcrrpcjtt", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING), + "uuzivensrpmeyyvp", + new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.INACTIVE))) + .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.RECOMMENDED, model.outboundRules().get("bdsuifr").category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.outboundRules().get("bdsuifr").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.firewallSku()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.outboundRules().get("oyin").category()); + Assertions.assertEquals(RuleStatus.FAILED, model.outboundRules().get("oyin").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 795805278f6a..c497252d3ca9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsGetWithResponseMockTests.java @@ -27,7 +27,7 @@ public final class ManagedNetworkSettingsOperationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"Disabled\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"ydtdtftmizuzjd\",\"outboundRules\":{\"lpbybkisb\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Deleting\",\"errorInformation\":\"a\",\"parentRuleNames\":[\"kqoyimxpggk\",\"teagbgac\",\"qpjuytvude\"]},\"c\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"lpwdjraurf\",\"parentRuleNames\":[\"nurttu\",\"aaaxx\"]},\"spsaneyvaerpiob\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Inactive\",\"errorInformation\":\"txfrm\",\"parentRuleNames\":[\"xstowagehxuihwes\",\"tjaqgbl\",\"kncypmte\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"jwqdmr\",\"provisioningState\":\"Deleting\"},\"provisioningState\":\"Deferred\"},\"id\":\"pqcaigazwfwlrfd\",\"name\":\"w\",\"type\":\"zseodtqfdrslzymq\"}"; + = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\"],\"isolationMode\":\"Disabled\",\"networkId\":\"tfbjampq\",\"outboundRules\":{\"icruo\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"ynlsuqbwzstrk\",\"parentRuleNames\":[\"patr\",\"jjktfin\",\"hoksmmculwk\"]},\"fxzf\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Deleting\",\"errorInformation\":\"sgaojbtqpqsdoctp\",\"parentRuleNames\":[\"jzflmcdsgxc\",\"lujiswlluunxhfw\"]},\"xcgzbejqfbifopf\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Failed\",\"errorInformation\":\"cknecexkgr\",\"parentRuleNames\":[\"sjdmngsytqpdzfyx\",\"nwaw\"]},\"cjjkmqenh\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"paz\",\"parentRuleNames\":[\"rfm\",\"wotfcuu\",\"gtji\",\"pgayiawohfmhnnzm\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"lo\",\"provisioningState\":\"Deleting\"},\"provisioningState\":\"Deferred\"},\"id\":\"ivqsuvwtenb\",\"name\":\"pijpkhc\",\"type\":\"oa\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,17 +37,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ManagedNetworkSettingsPropertiesBasicResource response = manager.managedNetworkSettingsOperations() - .getWithResponse("cimbrsv", "phtjnh", "tjl", com.azure.core.util.Context.NONE) + .getWithResponse("cpvuft", "svjmnsvujnjk", "volefcj", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, - response.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - response.properties().managedNetwork().outboundRules().get("lpbybkisb").category()); - Assertions.assertEquals(RuleStatus.DELETING, - response.properties().managedNetwork().outboundRules().get("lpbybkisb").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, response.properties().managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, response.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V2, response.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(IsolationMode.DISABLED, response.properties().managedNetwork().isolationMode()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, + response.properties().managedNetwork().outboundRules().get("icruo").category()); + Assertions.assertEquals(RuleStatus.FAILED, + response.properties().managedNetwork().outboundRules().get("icruo").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, + response.properties().managedNetwork().status().status()); + Assertions.assertEquals(FirewallSku.BASIC, response.properties().managedNetwork().firewallSku()); + 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 46fa0dfcfdf0..73cb5bd906af 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsListMockTests.java @@ -28,7 +28,7 @@ public final class ManagedNetworkSettingsOperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"jrahgdstu\",\"outboundRules\":{\"elsxfkzr\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Failed\",\"errorInformation\":\"hxliqmsckwhfmd\",\"parentRuleNames\":[\"yobqzwjalwrsofxc\",\"crmvjfmr\",\"uydldp\"]},\"dmra\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"qxvwk\",\"parentRuleNames\":[\"xoerjwbuocqfl\",\"nlrlqxbctatezy\",\"zdbcqqnlsjxcsc\",\"it\"]},\"brpelpf\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"dnvltcvmahp\",\"parentRuleNames\":[\"upb\",\"nhiclhyzh\",\"cqdfwbifnnhlsfo\",\"simtfcqmmy\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"eszamad\",\"provisioningState\":\"Succeeded\"},\"provisioningState\":\"Updating\"},\"id\":\"f\",\"name\":\"ivczktllxswtdap\",\"type\":\"mirmnrijefmrt\"}]}"; + = "{\"value\":[{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"ub\",\"outboundRules\":{\"eitwhlbecgi\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"gvzua\",\"parentRuleNames\":[\"dckixspsaigavkmv\",\"xzerej\",\"kpzjbyetjxryopt\"]},\"skpeswyhhmifjua\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Inactive\",\"errorInformation\":\"nrra\",\"parentRuleNames\":[\"rwwxywpj\",\"spboxhifp\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"eglyu\",\"provisioningState\":\"Deleted\"},\"provisioningState\":\"Deferred\"},\"id\":\"exbzbqufpnezsjza\",\"name\":\"m\",\"type\":\"dror\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,14 +39,14 @@ public void testList() throws Exception { PagedIterable response = manager.managedNetworkSettingsOperations() - .list("serwyc", "hytjwgetfigw", com.azure.core.util.Context.NONE); + .list("xukuicjuftekio", "anduew", com.azure.core.util.Context.NONE); Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, response.iterator().next().properties().managedNetwork().isolationMode()); Assertions.assertEquals(RuleCategory.DEPENDENCY, - response.iterator().next().properties().managedNetwork().outboundRules().get("elsxfkzr").category()); - Assertions.assertEquals(RuleStatus.FAILED, - response.iterator().next().properties().managedNetwork().outboundRules().get("elsxfkzr").status()); + response.iterator().next().properties().managedNetwork().outboundRules().get("eitwhlbecgi").category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, + response.iterator().next().properties().managedNetwork().outboundRules().get("eitwhlbecgi").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, response.iterator().next().properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.STANDARD, diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsPutMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsPutMockTests.java index 318d895a4ed3..c6534ac35d82 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsPutMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsOperationsPutMockTests.java @@ -33,7 +33,7 @@ public final class ManagedNetworkSettingsOperationsPutMockTests { @Test public void testPut() throws Exception { String responseStr - = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowInternetOutbound\",\"AllowInternetOutbound\",\"AllowInternetOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"sqosecxlngou\",\"outboundRules\":{\"pplxgtdumjtyc\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"xzspfy\",\"parentRuleNames\":[\"az\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"ozqthkwxfugfzizy\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Succeeded\"},\"id\":\"qzb\",\"name\":\"qcakmfckviyj\",\"type\":\"camnsbqoitwhm\"}"; + = "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowInternetOutbound\",\"Disabled\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"tgkiqlarh\",\"outboundRules\":{\"ggr\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"kdzdzffzjw\",\"parentRuleNames\":[\"mpc\"]},\"kpkpkocmacc\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"atig\",\"parentRuleNames\":[\"rrkdknczgor\",\"wnvojtvmdev\",\"lhqvbk\",\"rbpyhssrl\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"yvspeslhwyy\",\"provisioningState\":\"Deleting\"},\"provisioningState\":\"Succeeded\"},\"id\":\"pumdd\",\"name\":\"gajkrdyddtpfcud\",\"type\":\"afnbfbqve\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -44,28 +44,24 @@ public void testPut() throws Exception { ManagedNetworkSettingsPropertiesBasicResource response = manager.managedNetworkSettingsOperations() - .define("lgmkokqoi") - .withExistingAccount("xcevdspth", "ffmwt") - .withProperties( - new ManagedNetworkSettingsProperties().withManagedNetwork( - new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) - .withOutboundRules(mapOf("dorctys", - new OutboundRule().withCategory(RuleCategory.USER_DEFINED) - .withStatus(RuleStatus.ACTIVE), - "tsvxupqtzckj", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.ACTIVE))) - .withStatus( - new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V2))) + .define("ugisnomwnwngho") + .withExistingAccount("yogzmsimehtcu", "wdhtqqhyhnimxtn") + .withProperties(new ManagedNetworkSettingsProperties().withManagedNetwork(new ManagedNetworkSettingsEx() + .withIsolationMode(IsolationMode.DISABLED) + .withOutboundRules(mapOf("bv", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.ACTIVE), "zvdov", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.PROVISIONING))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) + .withFirewallSku(FirewallSku.STANDARD) + .withManagedNetworkKind(ManagedNetworkKind.V1))) .create(); - Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, + Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, response.properties().managedNetwork().isolationMode()); Assertions.assertEquals(RuleCategory.REQUIRED, - response.properties().managedNetwork().outboundRules().get("pplxgtdumjtyc").category()); - Assertions.assertEquals(RuleStatus.INACTIVE, - response.properties().managedNetwork().outboundRules().get("pplxgtdumjtyc").status()); + response.properties().managedNetwork().outboundRules().get("ggr").category()); + Assertions.assertEquals(RuleStatus.PROVISIONING, + response.properties().managedNetwork().outboundRules().get("ggr").status()); Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, response.properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.STANDARD, response.properties().managedNetwork().firewallSku()); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesBasicResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesBasicResourceInnerTests.java index 833fdc4e3339..f70d3c187a15 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesBasicResourceInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesBasicResourceInnerTests.java @@ -24,45 +24,44 @@ public final class ManagedNetworkSettingsPropertiesBasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsPropertiesBasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"Disabled\",\"AllowOnlyApprovedOutbound\",\"Disabled\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"qpjiyrqjcr\",\"outboundRules\":{\"jfgxxsaetg\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"fkb\",\"parentRuleNames\":[\"orpdltbqct\"]},\"cdmkxwxdcvjw\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Inactive\",\"errorInformation\":\"igdaqqilzd\",\"parentRuleNames\":[\"wjoe\",\"xngucaifpaurwwgi\",\"fjqq\"]},\"grpxncakiqaondjr\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Deleting\",\"errorInformation\":\"eciqchxr\",\"parentRuleNames\":[\"cdsiwdfmmpzhzzwv\",\"wrgyngy\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"lmf\",\"provisioningState\":\"Failed\"},\"provisioningState\":\"Deferred\"},\"id\":\"ykglt\",\"name\":\"gxhqfgqkayejs\",\"type\":\"tlgflwfgz\"}") + "{\"properties\":{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowInternetOutbound\",\"networkId\":\"anurnnqb\",\"outboundRules\":{\"rxaomzisglrrcze\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Deleting\",\"errorInformation\":\"ltgrdogypxrxv\",\"parentRuleNames\":[\"hwuhvctaf\",\"rbxrblmliowxihsp\",\"xwqagnepzw\",\"klsbsbqqqagw\"]},\"mbscbbx\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"njad\",\"parentRuleNames\":[\"aw\",\"qoyueayfbpcmsplb\",\"rrueqthwmg\"]},\"laqacigele\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"idlopedbwdpy\",\"parentRuleNames\":[\"bxubmdna\",\"cbq\",\"remj\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"kjopwbeon\",\"provisioningState\":\"Updating\"},\"provisioningState\":\"Deleting\"},\"id\":\"qybxceakxcp\",\"name\":\"soqfyiaseqchkrt\",\"type\":\"zrazisgyk\"}") .toObject(ManagedNetworkSettingsPropertiesBasicResourceInner.class); Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.properties().managedNetwork().outboundRules().get("jfgxxsaetg").category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, - model.properties().managedNetwork().outboundRules().get("jfgxxsaetg").status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, + model.properties().managedNetwork().outboundRules().get("rxaomzisglrrcze").category()); + Assertions.assertEquals(RuleStatus.DELETING, + model.properties().managedNetwork().outboundRules().get("rxaomzisglrrcze").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, model.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.properties().managedNetwork().managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedNetworkSettingsPropertiesBasicResourceInner model = new ManagedNetworkSettingsPropertiesBasicResourceInner() - .withProperties(new ManagedNetworkSettingsProperties().withManagedNetwork( - new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) - .withOutboundRules(mapOf("jfgxxsaetg", - new OutboundRule().withCategory(RuleCategory.RECOMMENDED) - .withStatus(RuleStatus.PROVISIONING), - "cdmkxwxdcvjw", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.INACTIVE), - "grpxncakiqaondjr", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.DELETING))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.BASIC) - .withManagedNetworkKind(ManagedNetworkKind.V1))); + .withProperties(new ManagedNetworkSettingsProperties().withManagedNetwork(new ManagedNetworkSettingsEx() + .withIsolationMode(IsolationMode.ALLOW_INTERNET_OUTBOUND) + .withOutboundRules(mapOf("rxaomzisglrrcze", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.DELETING), + "mbscbbx", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.PROVISIONING), + "laqacigele", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) + .withFirewallSku(FirewallSku.BASIC) + .withManagedNetworkKind(ManagedNetworkKind.V2))); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsPropertiesBasicResourceInner.class); Assertions.assertEquals(IsolationMode.ALLOW_INTERNET_OUTBOUND, model.properties().managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.RECOMMENDED, - model.properties().managedNetwork().outboundRules().get("jfgxxsaetg").category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, - model.properties().managedNetwork().outboundRules().get("jfgxxsaetg").status()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, + model.properties().managedNetwork().outboundRules().get("rxaomzisglrrcze").category()); + Assertions.assertEquals(RuleStatus.DELETING, + model.properties().managedNetwork().outboundRules().get("rxaomzisglrrcze").status()); Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.properties().managedNetwork().status().status()); Assertions.assertEquals(FirewallSku.BASIC, model.properties().managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V1, model.properties().managedNetwork().managedNetworkKind()); + Assertions.assertEquals(ManagedNetworkKind.V2, model.properties().managedNetwork().managedNetworkKind()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesTests.java index bc786f3249d0..47362806163d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ManagedNetworkSettingsPropertiesTests.java @@ -23,40 +23,46 @@ public final class ManagedNetworkSettingsPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedNetworkSettingsProperties model = BinaryData.fromString( - "{\"managedNetwork\":{\"changeableIsolationModes\":[\"Disabled\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"eatlijjjrtvamcas\",\"outboundRules\":{\"jwpindedvabbxbh\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"xetyvku\",\"parentRuleNames\":[\"gno\",\"ikkgqo\"]},\"suvjslcz\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"bjywfcfxzi\",\"parentRuleNames\":[\"ihvwyp\"]},\"hlusrvxisi\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Deleting\",\"errorInformation\":\"sllfryvdmvxad\",\"parentRuleNames\":[\"frgnawbabgfbktyj\",\"fczlfsyqkfrbzgow\",\"xqmjeajcxn\",\"qg\"]},\"oyjfqipu\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"bjqvls\",\"parentRuleNames\":[\"wzas\",\"xgo\"]}},\"status\":{\"status\":\"Active\"},\"firewallSku\":\"Standard\",\"managedNetworkKind\":\"V2\",\"firewallPublicIpAddress\":\"eebgvopemtuoqu\",\"provisioningState\":\"Deleted\"},\"provisioningState\":\"Deferred\"}") + "{\"managedNetwork\":{\"changeableIsolationModes\":[\"AllowOnlyApprovedOutbound\",\"AllowOnlyApprovedOutbound\"],\"isolationMode\":\"AllowOnlyApprovedOutbound\",\"networkId\":\"zohmnrxxbs\",\"outboundRules\":{\"ucqpqojxcxzrz\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"dptysprqs\",\"parentRuleNames\":[\"xojpslsvjgp\",\"iufiqwo\",\"xqvapcohh\"]},\"mzwcjjncqt\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Failed\",\"errorInformation\":\"enribc\",\"parentRuleNames\":[\"tzqdd\",\"jwfljhznamtua\"]},\"qfutlxjo\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"gbgatzuuvbxn\",\"parentRuleNames\":[\"bwggahtt\",\"lswva\"]},\"dyvkfkmr\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"wqrjzfrg\",\"parentRuleNames\":[\"ohcmbu\",\"cnjrohmbpyryxame\",\"l\"]}},\"status\":{\"status\":\"Inactive\"},\"firewallSku\":\"Basic\",\"managedNetworkKind\":\"V1\",\"firewallPublicIpAddress\":\"tod\",\"provisioningState\":\"Deleted\"},\"provisioningState\":\"Deleting\"}") .toObject(ManagedNetworkSettingsProperties.class); Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, - model.managedNetwork().outboundRules().get("jwpindedvabbxbh").category()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, + model.managedNetwork().outboundRules().get("ucqpqojxcxzrz").category()); Assertions.assertEquals(RuleStatus.PROVISIONING, - model.managedNetwork().outboundRules().get("jwpindedvabbxbh").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetwork().managedNetworkKind()); + model.managedNetwork().outboundRules().get("ucqpqojxcxzrz").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.managedNetwork().status().status()); + Assertions.assertEquals(FirewallSku.BASIC, model.managedNetwork().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetwork().managedNetworkKind()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedNetworkSettingsProperties model = new ManagedNetworkSettingsProperties().withManagedNetwork( - new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) - .withOutboundRules(mapOf("jwpindedvabbxbh", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING), - "suvjslcz", new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.FAILED), - "hlusrvxisi", - new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.DELETING), "oyjfqipu", - new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.PROVISIONING))) - .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.ACTIVE)) - .withFirewallSku(FirewallSku.STANDARD) - .withManagedNetworkKind(ManagedNetworkKind.V2)); + ManagedNetworkSettingsProperties model + = new ManagedNetworkSettingsProperties() + .withManagedNetwork( + new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND) + .withOutboundRules(mapOf("ucqpqojxcxzrz", + new OutboundRule().withCategory(RuleCategory.USER_DEFINED) + .withStatus(RuleStatus.PROVISIONING), + "mzwcjjncqt", + new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.FAILED), + "qfutlxjo", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY) + .withStatus(RuleStatus.PROVISIONING), + "dyvkfkmr", + new OutboundRule().withCategory(RuleCategory.DEPENDENCY).withStatus(RuleStatus.DELETING))) + .withStatus(new ManagedNetworkProvisionStatusInner().withStatus(ManagedNetworkStatus.INACTIVE)) + .withFirewallSku(FirewallSku.BASIC) + .withManagedNetworkKind(ManagedNetworkKind.V1)); model = BinaryData.fromObject(model).toObject(ManagedNetworkSettingsProperties.class); Assertions.assertEquals(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND, model.managedNetwork().isolationMode()); - Assertions.assertEquals(RuleCategory.DEPENDENCY, - model.managedNetwork().outboundRules().get("jwpindedvabbxbh").category()); + Assertions.assertEquals(RuleCategory.USER_DEFINED, + model.managedNetwork().outboundRules().get("ucqpqojxcxzrz").category()); Assertions.assertEquals(RuleStatus.PROVISIONING, - model.managedNetwork().outboundRules().get("jwpindedvabbxbh").status()); - Assertions.assertEquals(ManagedNetworkStatus.ACTIVE, model.managedNetwork().status().status()); - Assertions.assertEquals(FirewallSku.STANDARD, model.managedNetwork().firewallSku()); - Assertions.assertEquals(ManagedNetworkKind.V2, model.managedNetwork().managedNetworkKind()); + model.managedNetwork().outboundRules().get("ucqpqojxcxzrz").status()); + Assertions.assertEquals(ManagedNetworkStatus.INACTIVE, model.managedNetwork().status().status()); + Assertions.assertEquals(FirewallSku.BASIC, model.managedNetwork().firewallSku()); + Assertions.assertEquals(ManagedNetworkKind.V1, model.managedNetwork().managedNetworkKind()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/MetricNameTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/MetricNameTests.java index 74f432308974..4b506487f2a0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/MetricNameTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/MetricNameTests.java @@ -11,9 +11,9 @@ public final class MetricNameTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - MetricName model = BinaryData.fromString("{\"value\":\"bvvnchrkcciw\",\"localizedValue\":\"juqk\"}") - .toObject(MetricName.class); - Assertions.assertEquals("bvvnchrkcciw", model.value()); - Assertions.assertEquals("juqk", model.localizedValue()); + MetricName model + = BinaryData.fromString("{\"value\":\"ocfs\",\"localizedValue\":\"s\"}").toObject(MetricName.class); + Assertions.assertEquals("ocfs", model.value()); + Assertions.assertEquals("s", model.localizedValue()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java index 93e32dac9330..ffe6e912ecd9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacitiesListMockTests.java @@ -23,7 +23,7 @@ public final class ModelCapacitiesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"qc\",\"properties\":{\"model\":{\"publisher\":\"oqwrnfckjthlok\",\"format\":\"wawfu\",\"name\":\"ngejjxumowynjmoo\",\"version\":\"xuktdrsjtmnkxjou\",\"source\":\"zcfdtstiaxtyrnu\",\"sourceAccount\":\"fhepis\",\"callRateLimit\":{\"count\":91.650185,\"renewalPeriod\":73.11547,\"rules\":[{}]}},\"skuName\":\"mmemsoqgblcye\",\"availableCapacity\":38.326435,\"availableFinetuneCapacity\":23.748333,\"scopeId\":\"aqcabe\",\"scopeType\":\"Global\"},\"id\":\"esrsixwnlpjc\",\"name\":\"bjgfmyqyy\",\"type\":\"rridzfps\"}]}"; + = "{\"value\":[{\"location\":\"hnmizhvprhqq\",\"properties\":{\"model\":{\"publisher\":\"lehhkplobzg\",\"format\":\"taksadzighmmt\",\"name\":\"dvucfvvra\",\"version\":\"eurdeewlsuxp\",\"source\":\"wkdwjyjiznioroof\",\"sourceAccount\":\"taspmcrei\",\"callRateLimit\":{\"count\":42.79802,\"renewalPeriod\":1.1044979,\"rules\":[{},{},{}]}},\"skuName\":\"mi\",\"availableCapacity\":82.913895,\"availableFinetuneCapacity\":10.092753,\"scopeId\":\"ngrobgwfms\",\"scopeType\":\"Classic\"},\"id\":\"ylwx\",\"name\":\"vzjowzug\",\"type\":\"erclblt\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,19 +33,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.modelCapacities().list("liqwzutiyelrnhh", "t", "hqsznsyov", com.azure.core.util.Context.NONE); + = manager.modelCapacities().list("k", "wacycsyotctkhf", "fsatvcsx", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qc", response.iterator().next().location()); - Assertions.assertEquals("oqwrnfckjthlok", response.iterator().next().properties().model().publisher()); - Assertions.assertEquals("wawfu", response.iterator().next().properties().model().format()); - Assertions.assertEquals("ngejjxumowynjmoo", response.iterator().next().properties().model().name()); - Assertions.assertEquals("xuktdrsjtmnkxjou", response.iterator().next().properties().model().version()); - Assertions.assertEquals("zcfdtstiaxtyrnu", response.iterator().next().properties().model().source()); - Assertions.assertEquals("fhepis", response.iterator().next().properties().model().sourceAccount()); - Assertions.assertEquals("mmemsoqgblcye", response.iterator().next().properties().skuName()); - Assertions.assertEquals(38.326435F, response.iterator().next().properties().availableCapacity()); - Assertions.assertEquals(23.748333F, response.iterator().next().properties().availableFinetuneCapacity()); - Assertions.assertEquals("aqcabe", response.iterator().next().properties().scopeId()); - Assertions.assertEquals(QuotaScopeType.GLOBAL, response.iterator().next().properties().scopeType()); + Assertions.assertEquals("hnmizhvprhqq", response.iterator().next().location()); + Assertions.assertEquals("lehhkplobzg", response.iterator().next().properties().model().publisher()); + Assertions.assertEquals("taksadzighmmt", response.iterator().next().properties().model().format()); + Assertions.assertEquals("dvucfvvra", response.iterator().next().properties().model().name()); + Assertions.assertEquals("eurdeewlsuxp", response.iterator().next().properties().model().version()); + Assertions.assertEquals("wkdwjyjiznioroof", response.iterator().next().properties().model().source()); + Assertions.assertEquals("taspmcrei", response.iterator().next().properties().model().sourceAccount()); + Assertions.assertEquals("mi", response.iterator().next().properties().skuName()); + Assertions.assertEquals(82.913895F, response.iterator().next().properties().availableCapacity()); + Assertions.assertEquals(10.092753F, response.iterator().next().properties().availableFinetuneCapacity()); + Assertions.assertEquals("ngrobgwfms", response.iterator().next().properties().scopeId()); + Assertions.assertEquals(QuotaScopeType.CLASSIC, response.iterator().next().properties().scopeType()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java index 2e81d2dbdf74..6d808914999c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelCapacityListResultTests.java @@ -12,8 +12,8 @@ public final class ModelCapacityListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ModelCapacityListResult model = BinaryData.fromString( - "{\"nextLink\":\"cvvy\",\"value\":[{\"location\":\"puxgcbdsvalpnpt\",\"properties\":{\"model\":{\"publisher\":\"xgpazwugxyqv\",\"format\":\"obfelhldiuhz\",\"name\":\"qlmfaewz\",\"version\":\"udjpxpqht\",\"source\":\"hnmhkrezsdsux\",\"sourceAccount\":\"qdgcrux\",\"callRateLimit\":{\"count\":83.64839,\"renewalPeriod\":1.2787461,\"rules\":[{},{},{}]}},\"skuName\":\"wokmik\",\"availableCapacity\":46.757114,\"availableFinetuneCapacity\":62.455105,\"scopeId\":\"jxuvj\",\"scopeType\":\"DataZone\"},\"id\":\"vhax\",\"name\":\"vwzaehp\",\"type\":\"hthdklmvetatlakf\"},{\"location\":\"ixwgiksbbvtooxrp\",\"properties\":{\"model\":{\"publisher\":\"hchgjtnhtukf\",\"format\":\"ihmbfntume\",\"name\":\"bxvqxbnuvw\",\"version\":\"asgom\",\"source\":\"jzwxuqgovsxpwwz\",\"sourceAccount\":\"fmkk\",\"callRateLimit\":{\"count\":23.075073,\"renewalPeriod\":26.463287,\"rules\":[{},{},{}]}},\"skuName\":\"scgrllccna\",\"availableCapacity\":50.820564,\"availableFinetuneCapacity\":58.150864,\"scopeId\":\"zhpabac\",\"scopeType\":\"Global\"},\"id\":\"otgkwsxnsrqorcg\",\"name\":\"nmvceb\",\"type\":\"eetqujxcxxq\"},{\"location\":\"cqjkedwqu\",\"properties\":{\"model\":{\"publisher\":\"jmrvvxwjongz\",\"format\":\"hqqrsilcch\",\"name\":\"xxkan\",\"version\":\"vri\",\"source\":\"gv\",\"sourceAccount\":\"jrulfucte\",\"callRateLimit\":{\"count\":93.429054,\"renewalPeriod\":31.821877,\"rules\":[{},{}]}},\"skuName\":\"xlyubqjrostv\",\"availableCapacity\":64.73804,\"availableFinetuneCapacity\":39.392715,\"scopeId\":\"z\",\"scopeType\":\"Classic\"},\"id\":\"rztrxalxrdhabsr\",\"name\":\"rsnrhp\",\"type\":\"a\"}]}") + "{\"nextLink\":\"ndscxmxeatk\",\"value\":[{\"location\":\"nrd\",\"properties\":{\"model\":{\"publisher\":\"q\",\"format\":\"aomhjrmkuhmaxl\",\"name\":\"lfihcj\",\"version\":\"bc\",\"source\":\"cd\",\"sourceAccount\":\"xqcwgax\",\"callRateLimit\":{\"count\":70.20716,\"renewalPeriod\":44.23412,\"rules\":[{},{}]}},\"skuName\":\"wjjzrlt\",\"availableCapacity\":5.263114,\"availableFinetuneCapacity\":26.92843,\"scopeId\":\"yfytpq\",\"scopeType\":\"Regional\"},\"id\":\"mmpuj\",\"name\":\"vyqlkjuvsmbmslzo\",\"type\":\"ovwzdbpqvybefg\"},{\"location\":\"x\",\"properties\":{\"model\":{\"publisher\":\"vtlubsesk\",\"format\":\"uartrhunlpiryky\",\"name\":\"dzfqivjreuy\",\"version\":\"bmnwa\",\"source\":\"tbxoee\",\"sourceAccount\":\"qlnfw\",\"callRateLimit\":{\"count\":88.8074,\"renewalPeriod\":82.87514,\"rules\":[{},{},{},{}]}},\"skuName\":\"bhfckdvezcrcssb\",\"availableCapacity\":81.33375,\"availableFinetuneCapacity\":8.724242,\"scopeId\":\"bnqfblhk\",\"scopeType\":\"Classic\"},\"id\":\"pavawugiqjtio\",\"name\":\"qgdm\",\"type\":\"nictteajo\"}]}") .toObject(ModelCapacityListResult.class); - Assertions.assertEquals("cvvy", model.nextLink()); + Assertions.assertEquals("ndscxmxeatk", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java index bbf3406da064..cdb9b5ab4298 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelDeprecationInfoTests.java @@ -13,10 +13,10 @@ public final class ModelDeprecationInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ModelDeprecationInfo model = BinaryData - .fromString("{\"fineTune\":\"ijhtxf\",\"inference\":\"xbf\",\"deprecationStatus\":\"Tentative\"}") + .fromString("{\"fineTune\":\"dhibnuq\",\"inference\":\"pikad\",\"deprecationStatus\":\"Planned\"}") .toObject(ModelDeprecationInfo.class); - Assertions.assertEquals("ijhtxf", model.fineTune()); - Assertions.assertEquals("xbf", model.inference()); - Assertions.assertEquals(DeprecationStatus.TENTATIVE, model.deprecationStatus()); + Assertions.assertEquals("dhibnuq", model.fineTune()); + Assertions.assertEquals("pikad", model.inference()); + Assertions.assertEquals(DeprecationStatus.PLANNED, model.deprecationStatus()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java index b51571895951..5b936ddb40b2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ModelListResultTests.java @@ -15,43 +15,44 @@ public final class ModelListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ModelListResult model = BinaryData.fromString( - "{\"nextLink\":\"tlzm\",\"value\":[{\"model\":{\"baseModel\":{\"publisher\":\"eolctaebf\",\"format\":\"rledjcu\",\"name\":\"bvt\",\"version\":\"gdxzvsgeafgfoseh\",\"source\":\"zsxezppkkwaae\",\"sourceAccount\":\"yfjlpzeqto\",\"callRateLimit\":{\"count\":77.14824,\"renewalPeriod\":19.145954,\"rules\":[{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"quevham\",\"usageName\":\"wg\",\"deprecationDate\":\"2021-07-11T10:22:11Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{}]},{\"name\":\"kzwaqxofq\",\"usageName\":\"chiqbplvfid\",\"deprecationDate\":\"2021-10-24T05:16:28Z\",\"capacity\":{},\"rateLimits\":[{},{}],\"cost\":[{},{},{}]},{\"name\":\"jg\",\"usageName\":\"fepxyihpqadag\",\"deprecationDate\":\"2021-11-13T12:07:33Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{}]}],\"maxCapacity\":225508601,\"capabilities\":{\"ukdveksbuhoduc\":\"owxwyovcxjsgbip\",\"scrdp\":\"v\",\"yszekbhwlka\":\"bfdyjduss\",\"n\":\"ggkrehbf\"},\"finetuneCapabilities\":{\"jfiimreoa\":\"ff\",\"sqwudohzilfmnli\":\"sqtaadusrexxfa\",\"ypofqpmbhyqgs\":\"psimsf\",\"gerhsmvg\":\"rmmttjxop\"},\"deprecation\":{\"fineTune\":\"wzm\",\"inference\":\"lrixysfnimsq\",\"deprecationStatus\":\"Tentative\"},\"replacementConfig\":{\"targetModelName\":\"hkruwaedrympmlqo\",\"targetModelVersion\":\"hzdue\",\"autoUpgradeStartDate\":\"2021-06-30T16:50:48Z\",\"upgradeOnExpiryLeadTimeDays\":1427203676},\"modelCatalogAssetId\":\"jiiknjdiqfli\",\"lifecycleStatus\":\"Preview\",\"publisher\":\"lbiedfsbw\",\"format\":\"ivbvzi\",\"name\":\"wxgoooxzpra\",\"version\":\"s\",\"source\":\"knpdgzigjsu\",\"sourceAccount\":\"whgsaodkww\",\"callRateLimit\":{\"count\":18.985474,\"renewalPeriod\":96.31699,\"rules\":[{},{}]}},\"kind\":\"zhaquvwsxb\",\"skuName\":\"vkervqchoadhrsxq\",\"description\":\"vspabdsrgfajgl\"},{\"model\":{\"baseModel\":{\"publisher\":\"bklrxh\",\"format\":\"ltcetjdvqyd\",\"name\":\"q\",\"version\":\"wa\",\"source\":\"wdxvqzxoebwg\",\"sourceAccount\":\"bibanbau\",\"callRateLimit\":{\"count\":98.468925,\"renewalPeriod\":14.237684,\"rules\":[{},{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"bzrpejp\",\"usageName\":\"s\",\"deprecationDate\":\"2021-09-27T05:40:07Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{}]}],\"maxCapacity\":2089957309,\"capabilities\":{\"bhuhk\":\"nrswgkpjhboyik\",\"okhu\":\"lgw\",\"jy\":\"o\",\"zufgs\":\"cqypz\"},\"finetuneCapabilities\":{\"ncfgybmxsnxoc\":\"jyvdwtfxptpqayam\"},\"deprecation\":{\"fineTune\":\"l\",\"inference\":\"kpoy\",\"deprecationStatus\":\"Tentative\"},\"replacementConfig\":{\"targetModelName\":\"j\",\"targetModelVersion\":\"dbdljz\",\"autoUpgradeStartDate\":\"2021-03-08T07:19:07Z\",\"upgradeOnExpiryLeadTimeDays\":972242943},\"modelCatalogAssetId\":\"uqbsgzlrqhb\",\"lifecycleStatus\":\"Legacy\",\"publisher\":\"dxwbsfpyxxtj\",\"format\":\"lecomi\",\"name\":\"ojjlu\",\"version\":\"dhilzzdzz\",\"source\":\"mueza\",\"sourceAccount\":\"vribqlotokht\",\"callRateLimit\":{\"count\":16.625792,\"renewalPeriod\":86.84915,\"rules\":[{},{}]}},\"kind\":\"wwxwjyofgw\",\"skuName\":\"kbtlwljssm\",\"description\":\"sn\"},{\"model\":{\"baseModel\":{\"publisher\":\"wolgisubxbt\",\"format\":\"gfgf\",\"name\":\"jrykwlefksxqce\",\"version\":\"fpxgnmqvz\",\"source\":\"uyqqaiosssc\",\"sourceAccount\":\"aifppuacvfyeowp\",\"callRateLimit\":{\"count\":82.25534,\"renewalPeriod\":53.485535,\"rules\":[{}]}},\"isDefaultVersion\":false,\"skus\":[{\"name\":\"v\",\"usageName\":\"qfttehdpboujs\",\"deprecationDate\":\"2021-02-14T12:32:42Z\",\"capacity\":{},\"rateLimits\":[{}],\"cost\":[{}]},{\"name\":\"cde\",\"usageName\":\"uenygnxcg\",\"deprecationDate\":\"2021-10-28T22:53:53Z\",\"capacity\":{},\"rateLimits\":[{},{},{}],\"cost\":[{}]},{\"name\":\"rf\",\"usageName\":\"lnlrxsmy\",\"deprecationDate\":\"2021-05-25T06:55:41Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{},{},{}]}],\"maxCapacity\":416369266,\"capabilities\":{\"zjwhsetwwjwz\":\"jdxwnazkurrdre\",\"qzzdcykeyste\":\"qseuzuukykcyqhy\"},\"finetuneCapabilities\":{\"wqcfutmdpvozg\":\"pazdazgbsqgp\",\"clctzey\":\"qjbknl\",\"covdwzqaux\":\"wmn\"},\"deprecation\":{\"fineTune\":\"hmkvfruwkudrb\",\"inference\":\"ftxudqy\",\"deprecationStatus\":\"Planned\"},\"replacementConfig\":{\"targetModelName\":\"naucmcirtnee\",\"targetModelVersion\":\"jauwcgxefnohaitr\",\"autoUpgradeStartDate\":\"2021-08-02T08:56:51Z\",\"upgradeOnExpiryLeadTimeDays\":1766855739},\"modelCatalogAssetId\":\"wgudasmxu\",\"lifecycleStatus\":\"Preview\",\"publisher\":\"gfcoc\",\"format\":\"hpriylfm\",\"name\":\"trauds\",\"version\":\"lcdculregpq\",\"source\":\"ojhvrz\",\"sourceAccount\":\"vgysh\",\"callRateLimit\":{\"count\":14.053291,\"renewalPeriod\":94.6599,\"rules\":[{},{},{}]}},\"kind\":\"wjzl\",\"skuName\":\"kcfazzw\",\"description\":\"ayerzrran\"}]}") + "{\"nextLink\":\"kyeclcdigpta\",\"value\":[{\"model\":{\"baseModel\":{\"publisher\":\"xucycijoclxi\",\"format\":\"gjcyzyzjdnrq\",\"name\":\"txjeaoqaqbzgy\",\"version\":\"w\",\"source\":\"uatbwbqamteuliy\",\"sourceAccount\":\"pkcvmwf\",\"callRateLimit\":{\"count\":11.097675,\"renewalPeriod\":61.056797,\"rules\":[{}]}},\"isDefaultVersion\":true,\"skus\":[{\"name\":\"c\",\"usageName\":\"iciijqpkzfbojx\",\"deprecationDate\":\"2021-05-18T01:26:38Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{},{},{},{}]},{\"name\":\"xv\",\"usageName\":\"wnkwywzwo\",\"deprecationDate\":\"2021-01-12T07:27:26Z\",\"capacity\":{},\"rateLimits\":[{},{},{},{}],\"cost\":[{},{}]},{\"name\":\"iqtamtyvsknxrw\",\"usageName\":\"wnv\",\"deprecationDate\":\"2020-12-23T10:50:43Z\",\"capacity\":{},\"rateLimits\":[{},{},{}],\"cost\":[{},{}]},{\"name\":\"nvhycvdimwrz\",\"usageName\":\"gzgy\",\"deprecationDate\":\"2021-02-15T13:25:23Z\",\"capacity\":{},\"rateLimits\":[{},{}],\"cost\":[{},{}]}],\"maxCapacity\":1870827980,\"capabilities\":{\"w\":\"kzkdhmeott\",\"wwhnhjtfvpn\":\"yos\",\"pnwy\":\"pmil\",\"sauzpjlx\":\"udqll\"},\"finetuneCapabilities\":{\"kihmxrfdsajredn\":\"uxiqhzlraymezxl\",\"pwzyi\":\"yyshtuwgmevua\",\"gzdyimsfayorp\":\"rkgwltxeqip\",\"sl\":\"avkjog\"},\"deprecation\":{\"fineTune\":\"smjkwynqxaekqsy\",\"inference\":\"wjtq\",\"deprecationStatus\":\"Planned\"},\"replacementConfig\":{\"targetModelName\":\"yltjcrspxklu\",\"targetModelVersion\":\"clf\",\"autoUpgradeStartDate\":\"2020-12-22T19:33:03Z\",\"upgradeOnExpiryLeadTimeDays\":152474687},\"modelCatalogAssetId\":\"oytzpose\",\"lifecycleStatus\":\"Deprecating\",\"publisher\":\"xvkqm\",\"format\":\"pxvpifdfaif\",\"name\":\"yzeyuubeid\",\"version\":\"l\",\"source\":\"toi\",\"sourceAccount\":\"gygvfltgvdiho\",\"callRateLimit\":{\"count\":24.08582,\"renewalPeriod\":39.55356,\"rules\":[{}]}},\"kind\":\"kdrcyrucp\",\"skuName\":\"nn\",\"description\":\"dqumoenodnai\"}]}") .toObject(ModelListResult.class); - Assertions.assertEquals("tlzm", model.nextLink()); - Assertions.assertEquals("lbiedfsbw", model.value().get(0).model().publisher()); - Assertions.assertEquals("ivbvzi", model.value().get(0).model().format()); - Assertions.assertEquals("wxgoooxzpra", model.value().get(0).model().name()); - Assertions.assertEquals("s", model.value().get(0).model().version()); - Assertions.assertEquals("knpdgzigjsu", model.value().get(0).model().source()); - Assertions.assertEquals("whgsaodkww", model.value().get(0).model().sourceAccount()); - Assertions.assertEquals("eolctaebf", model.value().get(0).model().baseModel().publisher()); - Assertions.assertEquals("rledjcu", model.value().get(0).model().baseModel().format()); - Assertions.assertEquals("bvt", model.value().get(0).model().baseModel().name()); - Assertions.assertEquals("gdxzvsgeafgfoseh", model.value().get(0).model().baseModel().version()); - Assertions.assertEquals("zsxezppkkwaae", model.value().get(0).model().baseModel().source()); - Assertions.assertEquals("yfjlpzeqto", model.value().get(0).model().baseModel().sourceAccount()); + Assertions.assertEquals("kyeclcdigpta", model.nextLink()); + Assertions.assertEquals("xvkqm", model.value().get(0).model().publisher()); + Assertions.assertEquals("pxvpifdfaif", model.value().get(0).model().format()); + Assertions.assertEquals("yzeyuubeid", model.value().get(0).model().name()); + Assertions.assertEquals("l", model.value().get(0).model().version()); + Assertions.assertEquals("toi", model.value().get(0).model().source()); + Assertions.assertEquals("gygvfltgvdiho", model.value().get(0).model().sourceAccount()); + Assertions.assertEquals("xucycijoclxi", model.value().get(0).model().baseModel().publisher()); + Assertions.assertEquals("gjcyzyzjdnrq", model.value().get(0).model().baseModel().format()); + Assertions.assertEquals("txjeaoqaqbzgy", model.value().get(0).model().baseModel().name()); + Assertions.assertEquals("w", model.value().get(0).model().baseModel().version()); + Assertions.assertEquals("uatbwbqamteuliy", model.value().get(0).model().baseModel().source()); + Assertions.assertEquals("pkcvmwf", model.value().get(0).model().baseModel().sourceAccount()); Assertions.assertTrue(model.value().get(0).model().isDefaultVersion()); - Assertions.assertEquals("quevham", model.value().get(0).model().skus().get(0).name()); - Assertions.assertEquals("wg", model.value().get(0).model().skus().get(0).usageName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-11T10:22:11Z"), + Assertions.assertEquals("c", model.value().get(0).model().skus().get(0).name()); + Assertions.assertEquals("iciijqpkzfbojx", model.value().get(0).model().skus().get(0).usageName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-18T01:26:38Z"), model.value().get(0).model().skus().get(0).deprecationDate()); - Assertions.assertEquals(225508601, model.value().get(0).model().maxCapacity()); - Assertions.assertEquals("owxwyovcxjsgbip", model.value().get(0).model().capabilities().get("ukdveksbuhoduc")); - Assertions.assertEquals("ff", model.value().get(0).model().finetuneCapabilities().get("jfiimreoa")); - Assertions.assertEquals("wzm", model.value().get(0).model().deprecation().fineTune()); - Assertions.assertEquals("lrixysfnimsq", model.value().get(0).model().deprecation().inference()); - Assertions.assertEquals(DeprecationStatus.TENTATIVE, + Assertions.assertEquals(1870827980, model.value().get(0).model().maxCapacity()); + Assertions.assertEquals("kzkdhmeott", model.value().get(0).model().capabilities().get("w")); + Assertions.assertEquals("uxiqhzlraymezxl", + model.value().get(0).model().finetuneCapabilities().get("kihmxrfdsajredn")); + Assertions.assertEquals("smjkwynqxaekqsy", model.value().get(0).model().deprecation().fineTune()); + Assertions.assertEquals("wjtq", model.value().get(0).model().deprecation().inference()); + Assertions.assertEquals(DeprecationStatus.PLANNED, model.value().get(0).model().deprecation().deprecationStatus()); - Assertions.assertEquals("hkruwaedrympmlqo", model.value().get(0).model().replacementConfig().targetModelName()); - Assertions.assertEquals("hzdue", model.value().get(0).model().replacementConfig().targetModelVersion()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-30T16:50:48Z"), + Assertions.assertEquals("yltjcrspxklu", model.value().get(0).model().replacementConfig().targetModelName()); + Assertions.assertEquals("clf", model.value().get(0).model().replacementConfig().targetModelVersion()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-22T19:33:03Z"), model.value().get(0).model().replacementConfig().autoUpgradeStartDate()); - Assertions.assertEquals(1427203676, + Assertions.assertEquals(152474687, model.value().get(0).model().replacementConfig().upgradeOnExpiryLeadTimeDays()); - Assertions.assertEquals("jiiknjdiqfli", model.value().get(0).model().modelCatalogAssetId()); - Assertions.assertEquals(ModelLifecycleStatus.PREVIEW, model.value().get(0).model().lifecycleStatus()); - Assertions.assertEquals("zhaquvwsxb", model.value().get(0).kind()); - Assertions.assertEquals("vkervqchoadhrsxq", model.value().get(0).skuName()); - Assertions.assertEquals("vspabdsrgfajgl", model.value().get(0).description()); + Assertions.assertEquals("oytzpose", model.value().get(0).model().modelCatalogAssetId()); + Assertions.assertEquals(ModelLifecycleStatus.DEPRECATING, model.value().get(0).model().lifecycleStatus()); + Assertions.assertEquals("kdrcyrucp", model.value().get(0).kind()); + Assertions.assertEquals("nn", model.value().get(0).skuName()); + Assertions.assertEquals("dqumoenodnai", model.value().get(0).description()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java index 3a53a91e0eb5..182ba63d9697 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItemTests.java @@ -12,8 +12,8 @@ public final class NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem model - = BinaryData.fromString("{\"id\":\"tgzpnpb\"}") + = BinaryData.fromString("{\"id\":\"tpiymerteea\"}") .toObject(NetworkSecurityPerimeterAccessRulePropertiesSubscriptionsItem.class); - Assertions.assertEquals("tgzpnpb", model.id()); + Assertions.assertEquals("tpiymerteea", model.id()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java index 8fdcf346be8f..c010f818297a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRulePropertiesTests.java @@ -13,14 +13,14 @@ public final class NetworkSecurityPerimeterAccessRulePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterAccessRuleProperties model = BinaryData.fromString( - "{\"direction\":\"Inbound\",\"addressPrefixes\":[\"ebrqbsmswziqgfuh\"],\"subscriptions\":[{\"id\":\"uswhvhczznvfbycj\"},{\"id\":\"jww\"}],\"networkSecurityPerimeters\":[{\"id\":\"umwmxqhnd\",\"perimeterGuid\":\"oamld\",\"location\":\"haohdjhhflzokxc\"}],\"fullyQualifiedDomainNames\":[\"e\",\"nje\",\"agltsxoa\"]}") + "{\"direction\":\"Outbound\",\"addressPrefixes\":[\"msidxasicddyvv\",\"skgfmocwahpq\",\"atjeaahh\",\"jhhn\"],\"subscriptions\":[{\"id\":\"bbjjidjksyxk\"},{\"id\":\"vxevblb\"}],\"networkSecurityPerimeters\":[{\"id\":\"ljlageuaulxu\",\"perimeterGuid\":\"mjbnk\",\"location\":\"xynenl\"}],\"fullyQualifiedDomainNames\":[\"eizzgwk\",\"nsrmffeycx\"]}") .toObject(NetworkSecurityPerimeterAccessRuleProperties.class); - Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.direction()); - Assertions.assertEquals("ebrqbsmswziqgfuh", model.addressPrefixes().get(0)); - Assertions.assertEquals("uswhvhczznvfbycj", model.subscriptions().get(0).id()); - Assertions.assertEquals("umwmxqhnd", model.networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("oamld", model.networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("haohdjhhflzokxc", model.networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("e", model.fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.direction()); + Assertions.assertEquals("msidxasicddyvv", model.addressPrefixes().get(0)); + Assertions.assertEquals("bbjjidjksyxk", model.subscriptions().get(0).id()); + Assertions.assertEquals("ljlageuaulxu", model.networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("mjbnk", model.networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("xynenl", model.networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("eizzgwk", model.fullyQualifiedDomainNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java index 773607ac6535..6d81e77284db 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterAccessRuleTests.java @@ -13,15 +13,15 @@ public final class NetworkSecurityPerimeterAccessRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterAccessRule model = BinaryData.fromString( - "{\"name\":\"qqwzt\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"hcxwaxfewzjk\",\"exfdeqvhpsylk\",\"shk\"],\"subscriptions\":[{\"id\":\"bmxzjrgywwpg\"}],\"networkSecurityPerimeters\":[{\"id\":\"ptfujgicgaaoept\",\"perimeterGuid\":\"qutdewemxs\",\"location\":\"ruunzzjgehkf\"},{\"id\":\"m\",\"perimeterGuid\":\"ixokffqyin\",\"location\":\"qepqwhixmon\"},{\"id\":\"shiy\",\"perimeterGuid\":\"velfcldu\",\"location\":\"birdsvuwcobiegs\"},{\"id\":\"ninwjizc\",\"perimeterGuid\":\"nghgshej\",\"location\":\"bxqmu\"}],\"fullyQualifiedDomainNames\":[\"lxqzvn\",\"rsbycucrwn\"]}}") + "{\"name\":\"kenx\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"rpmpdnqqskaw\",\"oqvm\",\"bnpqfrtqlkzme\",\"nitgvkxlz\"],\"subscriptions\":[{\"id\":\"fegcea\"}],\"networkSecurityPerimeters\":[{\"id\":\"hcans\",\"perimeterGuid\":\"oyqhlwig\",\"location\":\"vbkbxgomf\"}],\"fullyQualifiedDomainNames\":[\"wasqvdaeyyg\",\"xakjsqzhzb\"]}}") .toObject(NetworkSecurityPerimeterAccessRule.class); - Assertions.assertEquals("qqwzt", model.name()); - Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.properties().direction()); - Assertions.assertEquals("hcxwaxfewzjk", model.properties().addressPrefixes().get(0)); - Assertions.assertEquals("bmxzjrgywwpg", model.properties().subscriptions().get(0).id()); - Assertions.assertEquals("ptfujgicgaaoept", model.properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("qutdewemxs", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("ruunzzjgehkf", model.properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("lxqzvn", model.properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals("kenx", model.name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.properties().direction()); + Assertions.assertEquals("rpmpdnqqskaw", model.properties().addressPrefixes().get(0)); + Assertions.assertEquals("fegcea", model.properties().subscriptions().get(0).id()); + Assertions.assertEquals("hcans", model.properties().networkSecurityPerimeters().get(0).id()); + Assertions.assertEquals("oyqhlwig", model.properties().networkSecurityPerimeters().get(0).perimeterGuid()); + Assertions.assertEquals("vbkbxgomf", model.properties().networkSecurityPerimeters().get(0).location()); + Assertions.assertEquals("wasqvdaeyyg", model.properties().fullyQualifiedDomainNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java index a9e7dfd9b4d6..b98bc0eab6ce 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationAssociationInfoTests.java @@ -12,9 +12,9 @@ public final class NetworkSecurityPerimeterConfigurationAssociationInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationAssociationInfo model - = BinaryData.fromString("{\"name\":\"mpcycilrmcaykgg\",\"accessMode\":\"xu\"}") + = BinaryData.fromString("{\"name\":\"ecuijpxtxs\",\"accessMode\":\"prtujwsawdd\"}") .toObject(NetworkSecurityPerimeterConfigurationAssociationInfo.class); - Assertions.assertEquals("mpcycilrmcaykgg", model.name()); - Assertions.assertEquals("xu", model.accessMode()); + Assertions.assertEquals("ecuijpxtxs", model.name()); + Assertions.assertEquals("prtujwsawdd", model.accessMode()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java index 11ac4004dc06..23dfa2c4f9c2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationInnerTests.java @@ -13,29 +13,31 @@ public final class NetworkSecurityPerimeterConfigurationInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"cgq\",\"provisioningIssues\":[{\"name\":\"mjqfrddgamquhio\",\"properties\":{\"issueType\":\"ju\",\"severity\":\"fcdis\",\"description\":\"rnxzh\",\"suggestedResourceIds\":[\"xrxzbujrtr\",\"qvwre\",\"khgn\",\"nzonzl\"],\"suggestedAccessRules\":[{}]}},{\"name\":\"yw\",\"properties\":{\"issueType\":\"jtszcof\",\"severity\":\"e\",\"description\":\"dhgbjkvre\",\"suggestedResourceIds\":[\"amurvzmlovuan\",\"shcxlpmjerbdk\",\"lvidizozs\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"xjmonf\",\"properties\":{\"issueType\":\"w\",\"severity\":\"ypuuwwltvuqjctze\",\"description\":\"eifzzhmk\",\"suggestedResourceIds\":[\"vflyhbxcu\",\"chxgs\",\"boldforobwj\",\"vizbfhfo\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"qpbtuodxes\",\"properties\":{\"issueType\":\"belawumuaslzkwr\",\"severity\":\"oycqucwy\",\"description\":\"hnomdrkywuh\",\"suggestedResourceIds\":[\"fuurutlwexx\",\"lalniex\"],\"suggestedAccessRules\":[{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"gepqtybbwwpg\",\"perimeterGuid\":\"k\",\"location\":\"zyvli\"},\"resourceAssociation\":{\"name\":\"rkcxkj\",\"accessMode\":\"nxm\"},\"profile\":{\"name\":\"xs\",\"accessRulesVersion\":809642463120717362,\"accessRules\":[{\"name\":\"wijpsttexoqqpwc\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"runcuwmqspkcd\",\"zhlctddunqndyfpc\",\"rqbnjjrc\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"boxjumvq\",\"olihrra\",\"ouau\"]}}],\"diagnosticSettingsVersion\":4304077581666976714,\"enabledLogCategories\":[\"qxfuojrngif\"]}},\"id\":\"z\",\"name\":\"asccbiui\",\"type\":\"zdlyjdfqw\"}") + "{\"properties\":{\"provisioningState\":\"mmqtgqqqxhr\",\"provisioningIssues\":[{\"name\":\"cpjuisa\",\"properties\":{\"issueType\":\"qdzfvazivjlfrqtt\",\"severity\":\"jlkatnwxy\",\"description\":\"pidkqqfkuvscxkdm\",\"suggestedResourceIds\":[\"ovibrxkp\",\"loazuruocbgoo\",\"bteoybf\",\"jxakv\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"lordilmywwtkgkxn\",\"properties\":{\"issueType\":\"abgyvudt\",\"severity\":\"ewbcihxuuw\",\"description\":\"j\",\"suggestedResourceIds\":[\"cybvpayakkudzpxg\",\"jplmagstcy\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"kyrk\",\"properties\":{\"issueType\":\"giogsjkmnwqjno\",\"severity\":\"iyhddvi\",\"description\":\"egfnmntfpmvmemfn\",\"suggestedResourceIds\":[\"wvvb\",\"lxlllchpo\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"wrd\",\"perimeterGuid\":\"fukuvsjcswsmystu\",\"location\":\"qypfcv\"},\"resourceAssociation\":{\"name\":\"chpqbmfpjba\",\"accessMode\":\"idfcxsspuunnoxyh\"},\"profile\":{\"name\":\"qddrihpfhoqcaae\",\"accessRulesVersion\":2711375117878963664,\"accessRules\":[{\"name\":\"vlp\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"rmsgeivsiykzkd\"],\"subscriptions\":[{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"bzo\",\"gculap\"]}},{\"name\":\"y\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"qxepnylbfuaj\",\"yjt\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"vfcibyfmowux\",\"kjpvdwxf\",\"wiivwzjbhyzsx\"]}}],\"diagnosticSettingsVersion\":8071675102886331545,\"enabledLogCategories\":[\"trnegvmnvuqeqvld\",\"pa\"]}},\"id\":\"jbkkdmflvestmjl\",\"name\":\"rriloz\",\"type\":\"peewchpxlkt\"}") .toObject(NetworkSecurityPerimeterConfigurationInner.class); - Assertions.assertEquals("mjqfrddgamquhio", model.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("ju", model.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("fcdis", model.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("rnxzh", model.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("xrxzbujrtr", + Assertions.assertEquals("cpjuisa", model.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("qdzfvazivjlfrqtt", + model.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("jlkatnwxy", model.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("pidkqqfkuvscxkdm", + model.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("ovibrxkp", model.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("gepqtybbwwpg", model.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("k", model.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("zyvli", model.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("rkcxkj", model.properties().resourceAssociation().name()); - Assertions.assertEquals("nxm", model.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("xs", model.properties().profile().name()); - Assertions.assertEquals(809642463120717362L, model.properties().profile().accessRulesVersion()); - Assertions.assertEquals("wijpsttexoqqpwc", model.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals("wrd", model.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("fukuvsjcswsmystu", model.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("qypfcv", model.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("chpqbmfpjba", model.properties().resourceAssociation().name()); + Assertions.assertEquals("idfcxsspuunnoxyh", model.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("qddrihpfhoqcaae", model.properties().profile().name()); + Assertions.assertEquals(2711375117878963664L, model.properties().profile().accessRulesVersion()); + Assertions.assertEquals("vlp", model.properties().profile().accessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.properties().profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("runcuwmqspkcd", + Assertions.assertEquals("rmsgeivsiykzkd", model.properties().profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("boxjumvq", + Assertions.assertEquals("bzo", model.properties().profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(4304077581666976714L, model.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("qxfuojrngif", model.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals(8071675102886331545L, model.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("trnegvmnvuqeqvld", model.properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java index e998e7aa80e2..6d0df5b1e85a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationListTests.java @@ -12,20 +12,21 @@ public final class NetworkSecurityPerimeterConfigurationListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"fcttuxuuyilfl\",\"provisioningIssues\":[{\"name\":\"uvr\",\"properties\":{}},{\"name\":\"rnjhvsujztczytqj\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"uunfprnjletlxsm\",\"perimeterGuid\":\"ddoui\",\"location\":\"mowaziynknlqwzdv\"},\"resourceAssociation\":{\"name\":\"hxqszdtmaajquh\",\"accessMode\":\"ylr\"},\"profile\":{\"name\":\"ty\",\"accessRulesVersion\":1747598045330044731,\"accessRules\":[{},{},{}],\"diagnosticSettingsVersion\":3860826521780085029,\"enabledLogCategories\":[\"shck\"]}},\"id\":\"yjpmspbpssdfppyo\",\"name\":\"tieyujtvczkcny\",\"type\":\"rxmunjdxvgln\"},{\"properties\":{\"provisioningState\":\"lxpaglqivbgkcv\",\"provisioningIssues\":[{\"name\":\"vuqd\",\"properties\":{}},{\"name\":\"oniypfpubcpzgp\",\"properties\":{}},{\"name\":\"vhjknidi\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"xgpnr\",\"perimeterGuid\":\"ov\",\"location\":\"pikqmh\"},\"resourceAssociation\":{\"name\":\"wjrmzvuporqzd\",\"accessMode\":\"ydzvkf\"},\"profile\":{\"name\":\"nq\",\"accessRulesVersion\":8747604723179169845,\"accessRules\":[{},{},{}],\"diagnosticSettingsVersion\":6606674883220158301,\"enabledLogCategories\":[\"hl\"]}},\"id\":\"dhbemzqkzszu\",\"name\":\"iwtglxxhljfpg\",\"type\":\"icrmnzh\"},{\"properties\":{\"provisioningState\":\"qgjsxvpqcbfrmbod\",\"provisioningIssues\":[{\"name\":\"qgvriibakcla\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"nxo\",\"perimeterGuid\":\"xauzlwvsgmwohqfz\",\"location\":\"vux\"},\"resourceAssociation\":{\"name\":\"jsvthnwpzteko\",\"accessMode\":\"ribi\"},\"profile\":{\"name\":\"gplucfotangcfhny\",\"accessRulesVersion\":4628609097306866985,\"accessRules\":[{},{},{}],\"diagnosticSettingsVersion\":6502659943132256086,\"enabledLogCategories\":[\"mzqwmvtxnjmxmcu\",\"udtc\",\"clxyn\",\"dkvgfabuiyjibuzp\"]}},\"id\":\"ugneikn\",\"name\":\"gox\",\"type\":\"jiuqhibtozi\"},{\"properties\":{\"provisioningState\":\"jedmurrxxgewp\",\"provisioningIssues\":[{\"name\":\"ylkmqp\",\"properties\":{}},{\"name\":\"hlfbcgwgc\",\"properties\":{}},{\"name\":\"oebqinjipn\",\"properties\":{}},{\"name\":\"ujqlafcbahh\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"foiyjwpfilk\",\"perimeterGuid\":\"kholvd\",\"location\":\"viauogphua\"},\"resourceAssociation\":{\"name\":\"tiuky\",\"accessMode\":\"chnmna\"},\"profile\":{\"name\":\"xhk\",\"accessRulesVersion\":2040685344780205608,\"accessRules\":[{},{}],\"diagnosticSettingsVersion\":6875461100902154029,\"enabledLogCategories\":[\"xffi\",\"hx\"]}},\"id\":\"snewmozqvbub\",\"name\":\"ma\",\"type\":\"hsycxhxzgaz\"}],\"nextLink\":\"abo\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"lxgccknfnwmbtm\",\"provisioningIssues\":[{\"name\":\"jdhttzaefedxi\",\"properties\":{}},{\"name\":\"rphkmcrjdqnsdfz\",\"properties\":{}},{\"name\":\"tg\",\"properties\":{}}],\"networkSecurityPerimeter\":{\"id\":\"dgh\",\"perimeterGuid\":\"euutlwxezwzh\",\"location\":\"vbwnhhtq\"},\"resourceAssociation\":{\"name\":\"hgppipifhpfeoa\",\"accessMode\":\"gcxtxj\"},\"profile\":{\"name\":\"eafidltugsresm\",\"accessRulesVersion\":9116012821608992093,\"accessRules\":[{},{},{},{}],\"diagnosticSettingsVersion\":6709597160075018242,\"enabledLogCategories\":[\"kfwegprhptillu\"]}},\"id\":\"iqtgdqoh\",\"name\":\"cwsldri\",\"type\":\"etpwbralll\"}],\"nextLink\":\"phbqz\"}") .toObject(NetworkSecurityPerimeterConfigurationList.class); - Assertions.assertEquals("uvr", model.value().get(0).properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("uunfprnjletlxsm", model.value().get(0).properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("ddoui", model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("mowaziynknlqwzdv", - model.value().get(0).properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("hxqszdtmaajquh", model.value().get(0).properties().resourceAssociation().name()); - Assertions.assertEquals("ylr", model.value().get(0).properties().resourceAssociation().accessMode()); - Assertions.assertEquals("ty", model.value().get(0).properties().profile().name()); - Assertions.assertEquals(1747598045330044731L, model.value().get(0).properties().profile().accessRulesVersion()); - Assertions.assertEquals(3860826521780085029L, + Assertions.assertEquals("jdhttzaefedxi", model.value().get(0).properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("dgh", model.value().get(0).properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("euutlwxezwzh", + model.value().get(0).properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("vbwnhhtq", model.value().get(0).properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("hgppipifhpfeoa", model.value().get(0).properties().resourceAssociation().name()); + Assertions.assertEquals("gcxtxj", model.value().get(0).properties().resourceAssociation().accessMode()); + Assertions.assertEquals("eafidltugsresm", model.value().get(0).properties().profile().name()); + Assertions.assertEquals(9116012821608992093L, model.value().get(0).properties().profile().accessRulesVersion()); + Assertions.assertEquals(6709597160075018242L, model.value().get(0).properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("shck", model.value().get(0).properties().profile().enabledLogCategories().get(0)); - Assertions.assertEquals("abo", model.nextLink()); + Assertions.assertEquals("kfwegprhptillu", + model.value().get(0).properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("phbqz", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationPropertiesTests.java index 8e79bb159af8..b3dac7d6ddd7 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,29 @@ public final class NetworkSecurityPerimeterConfigurationPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterConfigurationProperties model = BinaryData.fromString( - "{\"provisioningState\":\"yoqufdvruz\",\"provisioningIssues\":[{\"name\":\"j\",\"properties\":{\"issueType\":\"tfnmdx\",\"severity\":\"ngfdgugeyzihgrky\",\"description\":\"zabs\",\"suggestedResourceIds\":[\"pphoj\",\"evy\"],\"suggestedAccessRules\":[{\"name\":\"gzfc\",\"properties\":{}}]}},{\"name\":\"omfgbeglqgleohib\",\"properties\":{\"issueType\":\"luan\",\"severity\":\"rfxeeebtij\",\"description\":\"cvbmqzb\",\"suggestedResourceIds\":[\"lajrnwxacevehj\"],\"suggestedAccessRules\":[{\"name\":\"oafgaoql\",\"properties\":{}},{\"name\":\"eyl\",\"properties\":{}}]}},{\"name\":\"fgvxirpghriypoqe\",\"properties\":{\"issueType\":\"qhykprlpyzn\",\"severity\":\"iq\",\"description\":\"mexiitdfuxt\",\"suggestedResourceIds\":[\"iibmi\",\"bnn\",\"stgnl\",\"hnmgixhcm\"],\"suggestedAccessRules\":[{\"name\":\"foudor\",\"properties\":{}},{\"name\":\"yyprotwyp\",\"properties\":{}},{\"name\":\"mbxhugcmjkav\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"bmftpmdt\",\"perimeterGuid\":\"jltfvnzcyjtotpv\",\"location\":\"vpbdbzqgq\"},\"resourceAssociation\":{\"name\":\"edsvqwthmk\",\"accessMode\":\"bcysih\"},\"profile\":{\"name\":\"cw\",\"accessRulesVersion\":8114283161752734168,\"accessRules\":[{\"name\":\"mcdzsufcohdxbz\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"pcvhdbevwqqxeys\",\"onqzinkfkbgbzbow\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"mygvkzqkj\",\"eokbze\"]}},{\"name\":\"zrxcczurt\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"bkwvzg\",\"zvd\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"mqpnoda\",\"opqhewjptmc\",\"sbostzel\",\"dlat\"]}}],\"diagnosticSettingsVersion\":5153748849567907028,\"enabledLogCategories\":[\"iojlvfhrb\",\"pn\"]}}") + "{\"provisioningState\":\"uziycsl\",\"provisioningIssues\":[{\"name\":\"uztcktyhjtqed\",\"properties\":{\"issueType\":\"ulwm\",\"severity\":\"qzz\",\"description\":\"jvpglydzgk\",\"suggestedResourceIds\":[\"eevt\",\"epr\"],\"suggestedAccessRules\":[{\"name\":\"wytpzdmovz\",\"properties\":{}}]}},{\"name\":\"aawzqadfl\",\"properties\":{\"issueType\":\"riglaec\",\"severity\":\"dticokpvzml\",\"description\":\"mldgxobfirc\",\"suggestedResourceIds\":[\"kciayzri\"],\"suggestedAccessRules\":[{\"name\":\"awfvjlboxqvkjl\",\"properties\":{}}]}},{\"name\":\"omdynhdwdigum\",\"properties\":{\"issueType\":\"aauzzptjazysd\",\"severity\":\"ezwwv\",\"description\":\"qyuvvfonkp\",\"suggestedResourceIds\":[\"yik\",\"y\"],\"suggestedAccessRules\":[{\"name\":\"avluwmncs\",\"properties\":{}}]}},{\"name\":\"jfybvpoekrsgsgb\",\"properties\":{\"issueType\":\"zq\",\"severity\":\"j\",\"description\":\"kynscliqhzv\",\"suggestedResourceIds\":[\"komtkubotppn\"],\"suggestedAccessRules\":[{\"name\":\"xhihfrbbcevqagtl\",\"properties\":{}}]}}],\"networkSecurityPerimeter\":{\"id\":\"fkqojpy\",\"perimeterGuid\":\"gtrd\",\"location\":\"ifmzzsd\"},\"resourceAssociation\":{\"name\":\"rnysux\",\"accessMode\":\"rafwgckhocxvdf\"},\"profile\":{\"name\":\"afqr\",\"accessRulesVersion\":4377068261003564511,\"accessRules\":[{\"name\":\"vehhrvkbunzozu\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"moy\",\"cdyuibhmfdnbzyd\",\"f\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"oisrvhmgorffu\",\"is\",\"vwmzhwplefaxvxil\"]}},{\"name\":\"tg\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"qxtjjfzqlqhyca\",\"odggx\",\"beesmieknlra\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"agy\",\"wqfbylyrfgiagt\",\"ojocqwogf\",\"zjvusfzldmo\"]}}],\"diagnosticSettingsVersion\":6511894399368526158,\"enabledLogCategories\":[\"sbtkadpysownbtgk\",\"u\"]}}") .toObject(NetworkSecurityPerimeterConfigurationProperties.class); - Assertions.assertEquals("j", model.provisioningIssues().get(0).name()); - Assertions.assertEquals("tfnmdx", model.provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("ngfdgugeyzihgrky", model.provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("zabs", model.provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("pphoj", model.provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("gzfc", + Assertions.assertEquals("uztcktyhjtqed", model.provisioningIssues().get(0).name()); + Assertions.assertEquals("ulwm", model.provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("qzz", model.provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("jvpglydzgk", model.provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("eevt", model.provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("wytpzdmovz", model.provisioningIssues().get(0).properties().suggestedAccessRules().get(0).name()); - Assertions.assertEquals("bmftpmdt", model.networkSecurityPerimeter().id()); - Assertions.assertEquals("jltfvnzcyjtotpv", model.networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("vpbdbzqgq", model.networkSecurityPerimeter().location()); - Assertions.assertEquals("edsvqwthmk", model.resourceAssociation().name()); - Assertions.assertEquals("bcysih", model.resourceAssociation().accessMode()); - Assertions.assertEquals("cw", model.profile().name()); - Assertions.assertEquals(8114283161752734168L, model.profile().accessRulesVersion()); - Assertions.assertEquals("mcdzsufcohdxbz", model.profile().accessRules().get(0).name()); - Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, + Assertions.assertEquals("fkqojpy", model.networkSecurityPerimeter().id()); + Assertions.assertEquals("gtrd", model.networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("ifmzzsd", model.networkSecurityPerimeter().location()); + Assertions.assertEquals("rnysux", model.resourceAssociation().name()); + Assertions.assertEquals("rafwgckhocxvdf", model.resourceAssociation().accessMode()); + Assertions.assertEquals("afqr", model.profile().name()); + Assertions.assertEquals(4377068261003564511L, model.profile().accessRulesVersion()); + Assertions.assertEquals("vehhrvkbunzozu", model.profile().accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.profile().accessRules().get(0).properties().direction()); - Assertions.assertEquals("pcvhdbevwqqxeys", - model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("mygvkzqkj", + Assertions.assertEquals("moy", model.profile().accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("oisrvhmgorffu", model.profile().accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(5153748849567907028L, model.profile().diagnosticSettingsVersion()); - Assertions.assertEquals("iojlvfhrb", model.profile().enabledLogCategories().get(0)); + Assertions.assertEquals(6511894399368526158L, model.profile().diagnosticSettingsVersion()); + Assertions.assertEquals("sbtkadpysownbtgk", model.profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java index a46482ec42df..b8d44104477a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class NetworkSecurityPerimeterConfigurationsGetWithResponseMockTest @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"uxyprhfcaeooifqd\",\"provisioningIssues\":[{\"name\":\"lobha\",\"properties\":{\"issueType\":\"omfecorkfro\",\"severity\":\"bmx\",\"description\":\"j\",\"suggestedResourceIds\":[\"zbjesylslur\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"g\",\"properties\":{\"issueType\":\"hgdzuqscagqyvou\",\"severity\":\"sytqz\",\"description\":\"lhmgwfniv\",\"suggestedResourceIds\":[\"fduiolhgyqvpb\",\"j\"],\"suggestedAccessRules\":[{},{},{},{}]}},{\"name\":\"ucfzluczdquu\",\"properties\":{\"issueType\":\"rmvhvzi\",\"severity\":\"bprnqujywzcqygg\",\"description\":\"wsvh\",\"suggestedResourceIds\":[\"qiwy\",\"jtobdrrp\"],\"suggestedAccessRules\":[{},{}]}},{\"name\":\"kunsbfjhhlwtpkv\",\"properties\":{\"issueType\":\"attb\",\"severity\":\"gtzqn\",\"description\":\"s\",\"suggestedResourceIds\":[\"wuvcys\",\"eufjxflpditfno\",\"p\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"vrhprrvbwonleqf\",\"perimeterGuid\":\"tlrvbstphu\",\"location\":\"uninttlnrjdszd\"},\"resourceAssociation\":{\"name\":\"iciqppo\",\"accessMode\":\"gpnewuhwfwjnox\"},\"profile\":{\"name\":\"tfnressfepgck\",\"accessRulesVersion\":5308381892824669614,\"accessRules\":[{\"name\":\"nvbt\",\"properties\":{}},{\"name\":\"fmjymjnh\",\"properties\":{}},{\"name\":\"qllbsupubdxc\",\"properties\":{}}],\"diagnosticSettingsVersion\":8080866869280859087,\"enabledLogCategories\":[\"cu\"]}},\"id\":\"bosjjfd\",\"name\":\"zhrjqfyaytvsly\",\"type\":\"kcgn\"}"; + = "{\"properties\":{\"provisioningState\":\"kfqbriqulwwt\",\"provisioningIssues\":[{\"name\":\"qkvyhzokpoyuohu\",\"properties\":{\"issueType\":\"na\",\"severity\":\"phmpoejnglpwsada\",\"description\":\"sumxpezcoioyj\",\"suggestedResourceIds\":[\"qzwqdnxke\",\"dcnwmywxfq\",\"kvemyzdpczaqpqi\"],\"suggestedAccessRules\":[{},{},{}]}},{\"name\":\"ptrwtxzuisamo\",\"properties\":{\"issueType\":\"niz\",\"severity\":\"r\",\"description\":\"sqjghrmth\",\"suggestedResourceIds\":[\"wsttxsrgx\",\"qpaniceovxgzwhs\",\"yrujm\",\"i\"],\"suggestedAccessRules\":[{}]}}],\"networkSecurityPerimeter\":{\"id\":\"kyohzix\",\"perimeterGuid\":\"hfnkvycqqqds\",\"location\":\"pnq\"},\"resourceAssociation\":{\"name\":\"xhrptyodlh\",\"accessMode\":\"ktltddsobjopnouh\"},\"profile\":{\"name\":\"zkqxsalu\",\"accessRulesVersion\":5087095809337747533,\"accessRules\":[{\"name\":\"cewbwqhdgsjsatm\",\"properties\":{}},{\"name\":\"mazdfsqxh\",\"properties\":{}}],\"diagnosticSettingsVersion\":449253481885071322,\"enabledLogCategories\":[\"arnpvgrsz\"]}},\"id\":\"wtdrcwg\",\"name\":\"w\",\"type\":\"l\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,25 +31,26 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSecurityPerimeterConfiguration response = manager.networkSecurityPerimeterConfigurations() - .getWithResponse("pf", "xef", "ulbl", com.azure.core.util.Context.NONE) + .getWithResponse("ooxrqwoeurb", "igapdy", "rikeejdpdfht", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("lobha", response.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("omfecorkfro", - response.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("bmx", response.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("j", response.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("zbjesylslur", + Assertions.assertEquals("qkvyhzokpoyuohu", response.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("na", response.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("phmpoejnglpwsada", + response.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("sumxpezcoioyj", + response.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("qzwqdnxke", response.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("vrhprrvbwonleqf", response.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("tlrvbstphu", response.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("uninttlnrjdszd", response.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("iciqppo", response.properties().resourceAssociation().name()); - Assertions.assertEquals("gpnewuhwfwjnox", response.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("tfnressfepgck", response.properties().profile().name()); - Assertions.assertEquals(5308381892824669614L, response.properties().profile().accessRulesVersion()); - Assertions.assertEquals("nvbt", response.properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(8080866869280859087L, response.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("cu", response.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("kyohzix", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("hfnkvycqqqds", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("pnq", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("xhrptyodlh", response.properties().resourceAssociation().name()); + Assertions.assertEquals("ktltddsobjopnouh", response.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("zkqxsalu", response.properties().profile().name()); + Assertions.assertEquals(5087095809337747533L, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("cewbwqhdgsjsatm", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(449253481885071322L, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("arnpvgrsz", response.properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java index 9f4005aa3b31..a5c70e467453 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsListMockTests.java @@ -22,7 +22,7 @@ public final class NetworkSecurityPerimeterConfigurationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"efzq\",\"provisioningIssues\":[{\"name\":\"w\",\"properties\":{\"issueType\":\"cytesmf\",\"severity\":\"r\",\"description\":\"odqhuauzmzivrt\",\"suggestedResourceIds\":[\"hhezvhjudxdy\",\"rudmahswtvdkx\",\"qssgfenffdx\",\"vwfqjch\"],\"suggestedAccessRules\":[{}]}}],\"networkSecurityPerimeter\":{\"id\":\"j\",\"perimeterGuid\":\"xndmuvar\",\"location\":\"mzjotprrmuh\"},\"resourceAssociation\":{\"name\":\"tuzlxiw\",\"accessMode\":\"pgarpfctw\"},\"profile\":{\"name\":\"czd\",\"accessRulesVersion\":6547807221049913945,\"accessRules\":[{\"name\":\"sipiysnjqyowa\",\"properties\":{}}],\"diagnosticSettingsVersion\":7847864421913402234,\"enabledLogCategories\":[\"a\"]}},\"id\":\"ndtsewkaupw\",\"name\":\"lzyckremgjlm\",\"type\":\"vdorsirx\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"pfywv\",\"provisioningIssues\":[{\"name\":\"pzfzxsoxinunjlz\",\"properties\":{\"issueType\":\"ocqsxy\",\"severity\":\"qtcmiwdwisv\",\"description\":\"eylajamcajyhft\",\"suggestedResourceIds\":[\"rryklleynqan\"],\"suggestedAccessRules\":[{},{},{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"lclwalhvub\",\"perimeterGuid\":\"zphetxdqcm\",\"location\":\"tajqzj\"},\"resourceAssociation\":{\"name\":\"ecxbibiwksdegyxs\",\"accessMode\":\"pzvoikv\"},\"profile\":{\"name\":\"czfzwushlc\",\"accessRulesVersion\":4959119193554724579,\"accessRules\":[{\"name\":\"hezpfkissaidqzs\",\"properties\":{}}],\"diagnosticSettingsVersion\":1491695732337534061,\"enabledLogCategories\":[\"ptotxjqfiafcnlr\"]}},\"id\":\"fijzz\",\"name\":\"aoijolb\",\"type\":\"a\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,17 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.networkSecurityPerimeterConfigurations() - .list("uarlcjiwgsxfaioc", "dgujjgnfgrzxbarc", com.azure.core.util.Context.NONE); + .list("zlhhfix", "cfculzj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("w", response.iterator().next().properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("cytesmf", + Assertions.assertEquals("pzfzxsoxinunjlz", + response.iterator().next().properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("ocqsxy", response.iterator().next().properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("r", + Assertions.assertEquals("qtcmiwdwisv", response.iterator().next().properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("odqhuauzmzivrt", + Assertions.assertEquals("eylajamcajyhft", response.iterator().next().properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("hhezvhjudxdy", + Assertions.assertEquals("rryklleynqan", response.iterator() .next() .properties() @@ -50,21 +51,22 @@ public void testList() throws Exception { .properties() .suggestedResourceIds() .get(0)); - Assertions.assertEquals("j", response.iterator().next().properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("xndmuvar", + Assertions.assertEquals("lclwalhvub", response.iterator().next().properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("zphetxdqcm", response.iterator().next().properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("mzjotprrmuh", + Assertions.assertEquals("tajqzj", response.iterator().next().properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("tuzlxiw", response.iterator().next().properties().resourceAssociation().name()); - Assertions.assertEquals("pgarpfctw", - response.iterator().next().properties().resourceAssociation().accessMode()); - Assertions.assertEquals("czd", response.iterator().next().properties().profile().name()); - Assertions.assertEquals(6547807221049913945L, + Assertions.assertEquals("ecxbibiwksdegyxs", + response.iterator().next().properties().resourceAssociation().name()); + Assertions.assertEquals("pzvoikv", response.iterator().next().properties().resourceAssociation().accessMode()); + Assertions.assertEquals("czfzwushlc", response.iterator().next().properties().profile().name()); + Assertions.assertEquals(4959119193554724579L, response.iterator().next().properties().profile().accessRulesVersion()); - Assertions.assertEquals("sipiysnjqyowa", + Assertions.assertEquals("hezpfkissaidqzs", response.iterator().next().properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(7847864421913402234L, + Assertions.assertEquals(1491695732337534061L, response.iterator().next().properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("a", response.iterator().next().properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("ptotxjqfiafcnlr", + response.iterator().next().properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java index 5d8923a79052..5ad027c59c56 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterConfigurationsReconcileMockTests.java @@ -21,7 +21,7 @@ public final class NetworkSecurityPerimeterConfigurationsReconcileMockTests { @Test public void testReconcile() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"r\",\"properties\":{\"issueType\":\"pimtc\",\"severity\":\"fx\",\"description\":\"ytzfsl\",\"suggestedResourceIds\":[\"hqikmgobliq\",\"mcdiiisk\"],\"suggestedAccessRules\":[{},{}]}}],\"networkSecurityPerimeter\":{\"id\":\"xu\",\"perimeterGuid\":\"xvtrkfk\",\"location\":\"njqnnpjwkosny\"},\"resourceAssociation\":{\"name\":\"fou\",\"accessMode\":\"cxgdqmr\"},\"profile\":{\"name\":\"zkwopswnyinxu\",\"accessRulesVersion\":3756760622368919566,\"accessRules\":[{\"name\":\"j\",\"properties\":{}},{\"name\":\"fqployuek\",\"properties\":{}},{\"name\":\"vuftrsvjmnsvu\",\"properties\":{}},{\"name\":\"ktvole\",\"properties\":{}}],\"diagnosticSettingsVersion\":4702024380959961372,\"enabledLogCategories\":[\"kdb\",\"otfbjampqoclann\"]}},\"id\":\"ynlsuqbwzstrk\",\"name\":\"gvp\",\"type\":\"trgjjkt\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"provisioningIssues\":[{\"name\":\"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\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,23 +31,25 @@ public void testReconcile() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSecurityPerimeterConfiguration response = manager.networkSecurityPerimeterConfigurations() - .reconcile("hyrkqakofajfr", "prfvmkinwteyrqsh", "xbcejop", com.azure.core.util.Context.NONE); + .reconcile("ktwieope", "e", "xq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("r", response.properties().provisioningIssues().get(0).name()); - Assertions.assertEquals("pimtc", response.properties().provisioningIssues().get(0).properties().issueType()); - Assertions.assertEquals("fx", response.properties().provisioningIssues().get(0).properties().severity()); - Assertions.assertEquals("ytzfsl", response.properties().provisioningIssues().get(0).properties().description()); - Assertions.assertEquals("hqikmgobliq", + Assertions.assertEquals("eddobmcnltm", response.properties().provisioningIssues().get(0).name()); + Assertions.assertEquals("kujsqycmm", + response.properties().provisioningIssues().get(0).properties().issueType()); + Assertions.assertEquals("fablqg", response.properties().provisioningIssues().get(0).properties().severity()); + Assertions.assertEquals("bmwhrialiwr", + response.properties().provisioningIssues().get(0).properties().description()); + Assertions.assertEquals("nwplrr", response.properties().provisioningIssues().get(0).properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("xu", response.properties().networkSecurityPerimeter().id()); - Assertions.assertEquals("xvtrkfk", response.properties().networkSecurityPerimeter().perimeterGuid()); - Assertions.assertEquals("njqnnpjwkosny", response.properties().networkSecurityPerimeter().location()); - Assertions.assertEquals("fou", response.properties().resourceAssociation().name()); - Assertions.assertEquals("cxgdqmr", response.properties().resourceAssociation().accessMode()); - Assertions.assertEquals("zkwopswnyinxu", response.properties().profile().name()); - Assertions.assertEquals(3756760622368919566L, response.properties().profile().accessRulesVersion()); - Assertions.assertEquals("j", response.properties().profile().accessRules().get(0).name()); - Assertions.assertEquals(4702024380959961372L, response.properties().profile().diagnosticSettingsVersion()); - Assertions.assertEquals("kdb", response.properties().profile().enabledLogCategories().get(0)); + Assertions.assertEquals("spbfsfeqbbewfc", response.properties().networkSecurityPerimeter().id()); + Assertions.assertEquals("fpyyxmzrmtm", response.properties().networkSecurityPerimeter().perimeterGuid()); + Assertions.assertEquals("ituweyyj", response.properties().networkSecurityPerimeter().location()); + Assertions.assertEquals("ybwfuppoxprcmv", response.properties().resourceAssociation().name()); + Assertions.assertEquals("ujx", response.properties().resourceAssociation().accessMode()); + Assertions.assertEquals("kmoxrezsv", response.properties().profile().name()); + Assertions.assertEquals(6520382603838578706L, response.properties().profile().accessRulesVersion()); + Assertions.assertEquals("jmoywlunpipcwybs", response.properties().profile().accessRules().get(0).name()); + Assertions.assertEquals(8348412099353887657L, response.properties().profile().diagnosticSettingsVersion()); + Assertions.assertEquals("tpf", response.properties().profile().enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java index f5dfc7ea7f67..9089bfc0dc26 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterProfileInfoTests.java @@ -13,22 +13,22 @@ public final class NetworkSecurityPerimeterProfileInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSecurityPerimeterProfileInfo model = BinaryData.fromString( - "{\"name\":\"rksxwpndfc\",\"accessRulesVersion\":9146943824799685515,\"accessRules\":[{\"name\":\"jtwkjaos\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"amktcqiosmgbzah\",\"xqdlyrtltlapr\"],\"subscriptions\":[{\"id\":\"atbhjmznn\"},{\"id\":\"oqeq\"}],\"networkSecurityPerimeters\":[{\"id\":\"vlagun\",\"perimeterGuid\":\"gfebwlnb\",\"location\":\"yreeudz\"},{\"id\":\"vbpdqmjxlyyzglgo\",\"perimeterGuid\":\"tlmj\",\"location\":\"uojqt\"},{\"id\":\"axkjeytunlbfjk\",\"perimeterGuid\":\"u\",\"location\":\"kqbh\"}],\"fullyQualifiedDomainNames\":[\"qunjqh\",\"enx\"]}},{\"name\":\"l\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"ifmjnn\",\"wtqabpxuckp\"],\"subscriptions\":[{\"id\":\"wey\"},{\"id\":\"dhlisngwflqqmpi\"},{\"id\":\"uwnpqxpxiwfcng\"}],\"networkSecurityPerimeters\":[{\"id\":\"sii\",\"perimeterGuid\":\"mkzjvkviir\",\"location\":\"fgrwsdpgratzvz\"}],\"fullyQualifiedDomainNames\":[\"byvi\",\"tctbrxkjzwrgxffm\",\"hkwfbkgozxwop\",\"bydpizqaclnapxb\"]}}],\"diagnosticSettingsVersion\":2165188191312659996,\"enabledLogCategories\":[\"j\"]}") + "{\"name\":\"babxvitit\",\"accessRulesVersion\":5573724016698721982,\"accessRules\":[{\"name\":\"vo\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"cd\",\"dqbwpypqtgsfja\",\"b\"],\"subscriptions\":[{\"id\":\"xudb\"},{\"id\":\"odhtnsirudhzm\"}],\"networkSecurityPerimeters\":[{\"id\":\"kdlpa\",\"perimeterGuid\":\"rcxfailcfxwmdb\",\"location\":\"dfgsftufqobrj\"},{\"id\":\"acgcckknhx\",\"perimeterGuid\":\"zvytnrzvuljraaer\",\"location\":\"okqgukkjq\"}],\"fullyQualifiedDomainNames\":[\"roylaxxu\",\"cdisd\"]}}],\"diagnosticSettingsVersion\":2145951790346322266,\"enabledLogCategories\":[\"svgjrwhryvy\"]}") .toObject(NetworkSecurityPerimeterProfileInfo.class); - Assertions.assertEquals("rksxwpndfc", model.name()); - Assertions.assertEquals(9146943824799685515L, model.accessRulesVersion()); - Assertions.assertEquals("jtwkjaos", model.accessRules().get(0).name()); - Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.accessRules().get(0).properties().direction()); - Assertions.assertEquals("amktcqiosmgbzah", model.accessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("atbhjmznn", model.accessRules().get(0).properties().subscriptions().get(0).id()); - Assertions.assertEquals("vlagun", + Assertions.assertEquals("babxvitit", model.name()); + Assertions.assertEquals(5573724016698721982L, model.accessRulesVersion()); + Assertions.assertEquals("vo", model.accessRules().get(0).name()); + Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.accessRules().get(0).properties().direction()); + Assertions.assertEquals("cd", model.accessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("xudb", model.accessRules().get(0).properties().subscriptions().get(0).id()); + Assertions.assertEquals("kdlpa", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("gfebwlnb", + Assertions.assertEquals("rcxfailcfxwmdb", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("yreeudz", + Assertions.assertEquals("dfgsftufqobrj", model.accessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("qunjqh", model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); - Assertions.assertEquals(2165188191312659996L, model.diagnosticSettingsVersion()); - Assertions.assertEquals("j", model.enabledLogCategories().get(0)); + Assertions.assertEquals("roylaxxu", model.accessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); + Assertions.assertEquals(2145951790346322266L, model.diagnosticSettingsVersion()); + Assertions.assertEquals("svgjrwhryvy", model.enabledLogCategories().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java index e4ab6b697856..194b034423ca 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NetworkSecurityPerimeterTests.java @@ -11,11 +11,11 @@ public final class NetworkSecurityPerimeterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NetworkSecurityPerimeter model = BinaryData - .fromString("{\"id\":\"vefloccsrmozihmi\",\"perimeterGuid\":\"awtxxpk\",\"location\":\"cxcjxgry\"}") - .toObject(NetworkSecurityPerimeter.class); - Assertions.assertEquals("vefloccsrmozihmi", model.id()); - Assertions.assertEquals("awtxxpk", model.perimeterGuid()); - Assertions.assertEquals("cxcjxgry", model.location()); + NetworkSecurityPerimeter model + = BinaryData.fromString("{\"id\":\"xqiekkkzddrtk\",\"perimeterGuid\":\"ojbmxv\",\"location\":\"refdee\"}") + .toObject(NetworkSecurityPerimeter.class); + Assertions.assertEquals("xqiekkkzddrtk", model.id()); + Assertions.assertEquals("ojbmxv", model.perimeterGuid()); + Assertions.assertEquals("refdee", model.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NoneAuthTypeConnectionPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NoneAuthTypeConnectionPropertiesTests.java index 42712fa95fd5..90c234f7d6b7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NoneAuthTypeConnectionPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/NoneAuthTypeConnectionPropertiesTests.java @@ -19,43 +19,43 @@ public final class NoneAuthTypeConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NoneAuthTypeConnectionProperties model = BinaryData.fromString( - "{\"authType\":\"None\",\"category\":\"RemoteA2A\",\"createdByWorkspaceArmId\":\"ulbmoichdlp\",\"error\":\"pubntnbatz\",\"expiryTime\":\"2021-05-08T04:44:08Z\",\"group\":\"AzureAI\",\"isSharedToAll\":false,\"metadata\":{\"attcju\":\"el\",\"ggcvk\":\"plrvkmjcwmjvlg\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"Active\",\"sharedUserList\":[\"bjpsfxsfuztlvtm\"],\"target\":\"gbwidqlvh\",\"useWorkspaceManagedIdentity\":true}") + "{\"authType\":\"None\",\"category\":\"DynamicsCrm\",\"createdByWorkspaceArmId\":\"yexaoguy\",\"error\":\"p\",\"expiryTime\":\"2021-10-06T08:08:11Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"azlnqnmcjngzqdqx\":\"ijjumfq\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"fusfzsvtuikzhajq\"],\"target\":\"cfhmlrqryxyn\",\"useWorkspaceManagedIdentity\":true}") .toObject(NoneAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.REMOTE_A2A, model.category()); - Assertions.assertEquals("pubntnbatz", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-08T04:44:08Z"), model.expiryTime()); - Assertions.assertFalse(model.isSharedToAll()); - Assertions.assertEquals("el", model.metadata().get("attcju")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("bjpsfxsfuztlvtm", model.sharedUserList().get(0)); - Assertions.assertEquals("gbwidqlvh", model.target()); + Assertions.assertEquals(ConnectionCategory.DYNAMICS_CRM, model.category()); + Assertions.assertEquals("p", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T08:08:11Z"), model.expiryTime()); + Assertions.assertTrue(model.isSharedToAll()); + Assertions.assertEquals("ijjumfq", model.metadata().get("azlnqnmcjngzqdqx")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.peStatus()); + Assertions.assertEquals("fusfzsvtuikzhajq", model.sharedUserList().get(0)); + Assertions.assertEquals("cfhmlrqryxyn", model.target()); Assertions.assertTrue(model.useWorkspaceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { NoneAuthTypeConnectionProperties model - = new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.REMOTE_A2A) - .withError("pubntnbatz") - .withExpiryTime(OffsetDateTime.parse("2021-05-08T04:44:08Z")) - .withIsSharedToAll(false) - .withMetadata(mapOf("attcju", "el", "ggcvk", "plrvkmjcwmjvlg")) - .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("bjpsfxsfuztlvtm")) - .withTarget("gbwidqlvh") + = new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.DYNAMICS_CRM) + .withError("p") + .withExpiryTime(OffsetDateTime.parse("2021-10-06T08:08:11Z")) + .withIsSharedToAll(true) + .withMetadata(mapOf("azlnqnmcjngzqdqx", "ijjumfq")) + .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("fusfzsvtuikzhajq")) + .withTarget("cfhmlrqryxyn") .withUseWorkspaceManagedIdentity(true); model = BinaryData.fromObject(model).toObject(NoneAuthTypeConnectionProperties.class); - Assertions.assertEquals(ConnectionCategory.REMOTE_A2A, model.category()); - Assertions.assertEquals("pubntnbatz", model.error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-08T04:44:08Z"), model.expiryTime()); - Assertions.assertFalse(model.isSharedToAll()); - Assertions.assertEquals("el", model.metadata().get("attcju")); - Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, model.peRequirement()); - Assertions.assertEquals(ManagedPEStatus.ACTIVE, model.peStatus()); - Assertions.assertEquals("bjpsfxsfuztlvtm", model.sharedUserList().get(0)); - Assertions.assertEquals("gbwidqlvh", model.target()); + Assertions.assertEquals(ConnectionCategory.DYNAMICS_CRM, model.category()); + Assertions.assertEquals("p", model.error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-06T08:08:11Z"), model.expiryTime()); + Assertions.assertTrue(model.isSharedToAll()); + Assertions.assertEquals("ijjumfq", model.metadata().get("azlnqnmcjngzqdqx")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, model.peRequirement()); + Assertions.assertEquals(ManagedPEStatus.INACTIVE, model.peStatus()); + Assertions.assertEquals("fusfzsvtuikzhajq", model.sharedUserList().get(0)); + Assertions.assertEquals("cfhmlrqryxyn", model.target()); Assertions.assertTrue(model.useWorkspaceManagedIdentity()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java index 19dd6da0e211..fc68aed2ea94 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"woqartwy\",\"isDataAction\":false,\"display\":{\"provider\":\"advatdavuqmcb\",\"resource\":\"sfobjl\",\"operation\":\"vjezcjumvpsim\",\"description\":\"yoi\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"oiisbamnppcce\",\"isDataAction\":false,\"display\":{\"provider\":\"sbezaxyfukzxuizh\",\"resource\":\"nepk\",\"operation\":\"tiarxqiubxduk\",\"description\":\"pxdazv\"},\"origin\":\"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 394ac07b39f9..d499adec23a9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleBasicResourceInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleBasicResourceInnerTests.java @@ -15,18 +15,18 @@ public final class OutboundRuleBasicResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OutboundRuleBasicResourceInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"owhl\",\"parentRuleNames\":[\"wyrmouv\",\"lgmokzkl\"]},\"id\":\"fowtdvrfmvlihcvj\",\"name\":\"rqcrjidhftukvh\",\"type\":\"xlwyoj\"}") + "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Failed\",\"errorInformation\":\"csgguxhemlw\",\"parentRuleNames\":[\"eeczgfbu\"]},\"id\":\"lelssxblycsxzujk\",\"name\":\"rlsmdesqplpvmjc\",\"type\":\"oewbid\"}") .toObject(OutboundRuleBasicResourceInner.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.properties().category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, model.properties().status()); + Assertions.assertEquals(RuleCategory.REQUIRED, 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.PROVISIONING)); + OutboundRuleBasicResourceInner model = new OutboundRuleBasicResourceInner() + .withProperties(new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.FAILED)); model = BinaryData.fromObject(model).toObject(OutboundRuleBasicResourceInner.class); - Assertions.assertEquals(RuleCategory.DEPENDENCY, model.properties().category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, model.properties().status()); + Assertions.assertEquals(RuleCategory.REQUIRED, 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 c5139be4b1fa..b259fbed2292 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleListResultTests.java @@ -14,10 +14,10 @@ public final class OutboundRuleListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OutboundRuleListResult model = BinaryData.fromString( - "{\"nextLink\":\"jymxcgqt\",\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Inactive\",\"errorInformation\":\"ol\",\"parentRuleNames\":[\"evtf\",\"cnlbv\",\"jcodkkgjiiytssi\",\"izbcufqbvntnr\"]},\"id\":\"qsorh\",\"name\":\"ekxgn\",\"type\":\"ykmxcpwzvm\"},{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Inactive\",\"errorInformation\":\"tiwlwxlboncqb\",\"parentRuleNames\":[\"icqchygtv\",\"byjanep\",\"bdpkxyqvgx\"]},\"id\":\"od\",\"name\":\"tvo\",\"type\":\"kxdxuwsaifmcwn\"},{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"hg\",\"parentRuleNames\":[\"bcknjolgj\"]},\"id\":\"xpvelszerqzevxo\",\"name\":\"eintxwaljglzobl\",\"type\":\"waafrqulh\"}]}") + "{\"nextLink\":\"rgmsplzga\",\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Active\",\"errorInformation\":\"ewgnxkympqanxrj\",\"parentRuleNames\":[\"tw\",\"taoypnyghshxc\"]},\"id\":\"hkgmnsg\",\"name\":\"pxycphdr\",\"type\":\"jjkhvyomaclu\"},{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Provisioning\",\"errorInformation\":\"hrpq\",\"parentRuleNames\":[\"wmkoisq\",\"ssffxuifmc\",\"ypobkdqzr\",\"zsylollgt\"]},\"id\":\"zzydmxzjijpvua\",\"name\":\"rkihcirld\",\"type\":\"fx\"}]}") .toObject(OutboundRuleListResult.class); - Assertions.assertEquals("jymxcgqt", model.nextLink()); + Assertions.assertEquals("rgmsplzga", model.nextLink()); Assertions.assertEquals(RuleCategory.DEPENDENCY, model.value().get(0).properties().category()); - Assertions.assertEquals(RuleStatus.INACTIVE, model.value().get(0).properties().status()); + Assertions.assertEquals(RuleStatus.ACTIVE, model.value().get(0).properties().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRuleTests.java index 758bc5f213d8..ca2c878df0d8 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,18 +14,17 @@ public final class OutboundRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OutboundRule model = BinaryData.fromString( - "{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"fnjyix\",\"parentRuleNames\":[\"ratqxmbjro\",\"mzznvalqjrhuzgfx\",\"njt\",\"usllywpvtiotz\"]}") + "{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"xvgpiude\",\"parentRuleNames\":[\"sxze\",\"paxwkufyk\"]}") .toObject(OutboundRule.class); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.category()); Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OutboundRule model - = new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.PROVISIONING); + OutboundRule model = new OutboundRule().withCategory(RuleCategory.REQUIRED).withStatus(RuleStatus.PROVISIONING); model = BinaryData.fromObject(model).toObject(OutboundRule.class); - Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); + Assertions.assertEquals(RuleCategory.REQUIRED, model.category()); Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesCreateOrUpdateMockTests.java index f7c8494f9f5d..66c5cb237b30 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesCreateOrUpdateMockTests.java @@ -24,7 +24,7 @@ public final class OutboundRulesCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"ztpcjptnntqrcjq\",\"parentRuleNames\":[\"vn\",\"jr\"]},\"id\":\"pgsjbioagwviqehm\",\"name\":\"qvaol\",\"type\":\"dxdfsfvk\"}"; + = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"diiisklbonxxup\",\"parentRuleNames\":[\"trkfkgenjqnnpjwk\",\"snyxigfouj\"]},\"id\":\"xgdqmrlhnzkwops\",\"name\":\"nyinxuprrxyxw\",\"type\":\"ezbfqployuek\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,13 +34,12 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OutboundRuleBasicResource response = manager.outboundRules() - .define("ahhsmfndcbsyhlud") - .withExistingManagedNetwork("hrmvla", "nujmwxnrzb", "x") - .withProperties( - new OutboundRule().withCategory(RuleCategory.RECOMMENDED).withStatus(RuleStatus.PROVISIONING)) + .define("inwteyrqsh") + .withExistingManagedNetwork("ckremgjlmsvdorsi", "xxhyrkqakofa", "freprfvm") + .withProperties(new OutboundRule().withCategory(RuleCategory.USER_DEFINED).withStatus(RuleStatus.ACTIVE)) .create(); - Assertions.assertEquals(RuleCategory.REQUIRED, response.properties().category()); - Assertions.assertEquals(RuleStatus.PROVISIONING, response.properties().status()); + Assertions.assertEquals(RuleCategory.RECOMMENDED, response.properties().category()); + Assertions.assertEquals(RuleStatus.ACTIVE, response.properties().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java index 3826af7082c2..1f085ce3339b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class OutboundRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Active\",\"errorInformation\":\"acgdnx\",\"parentRuleNames\":[\"nmzr\",\"jaojpzngdrzige\",\"wsadsqyu\",\"dkhwqdmohhe\"]},\"id\":\"uunxmyevyigdeipn\",\"name\":\"izej\",\"type\":\"li\"}"; + = "{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Dependency\",\"status\":\"Deleting\",\"errorInformation\":\"jiwgsxfaio\",\"parentRuleNames\":[\"gujjgn\",\"grzxbarcbpaefzqs\",\"mjw\",\"njcytesmfucrtfod\"]},\"id\":\"uauzmz\",\"name\":\"vrtrfz\",\"type\":\"hezvhjudxdyy\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); OutboundRuleBasicResource response = manager.outboundRules() - .getWithResponse("ly", "kwfsaangfgbm", "vm", "idyli", com.azure.core.util.Context.NONE) + .getWithResponse("dlhzwhcu", "vbosjj", "dizhrjqfyaytvsly", "kcgn", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RuleCategory.REQUIRED, response.properties().category()); - Assertions.assertEquals(RuleStatus.ACTIVE, response.properties().status()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, response.properties().category()); + Assertions.assertEquals(RuleStatus.DELETING, response.properties().status()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesListMockTests.java index 36a63b2b69e1..7b9059629bae 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/OutboundRulesListMockTests.java @@ -24,7 +24,7 @@ public final class OutboundRulesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"Required\",\"status\":\"Provisioning\",\"errorInformation\":\"pmqnmelyksygih\",\"parentRuleNames\":[\"msln\",\"n\",\"qvzlbbbajdexqu\",\"wexizbfzetjizwh\"]},\"id\":\"bm\",\"name\":\"jvvyxtvvxnakzix\",\"type\":\"kaybfmlngf\"}]}"; + = "{\"value\":[{\"properties\":{\"type\":\"OutboundRule\",\"category\":\"UserDefined\",\"status\":\"Provisioning\",\"errorInformation\":\"vdrijanxndm\",\"parentRuleNames\":[\"rdlmzjotprrmu\",\"cuhtuzlxiwy\",\"pgarpfctw\",\"apczdojqyv\"]},\"id\":\"sipiysnjqyowa\",\"name\":\"dcndazabun\",\"type\":\"tsewkaupwhlz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,9 +34,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.outboundRules().list("acndjzwhaj", "dapqokhdy", "cradxsew", com.azure.core.util.Context.NONE); + = manager.outboundRules().list("udma", "swtvd", "xbqssgfenffdxbvw", com.azure.core.util.Context.NONE); - Assertions.assertEquals(RuleCategory.REQUIRED, response.iterator().next().properties().category()); + 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 deleted file mode 100644 index 19a77b1fe65d..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceSkuTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"yxlzgs\",\"tier\":\"Basic\",\"size\":\"zltafhbzffovwm\",\"family\":\"lz\",\"capacity\":1087560201}}") - .toObject(PatchResourceSku.class); - Assertions.assertEquals("yxlzgs", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("zltafhbzffovwm", model.sku().size()); - Assertions.assertEquals("lz", model.sku().family()); - Assertions.assertEquals(1087560201, model.sku().capacity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - PatchResourceSku model = new PatchResourceSku().withSku(new Sku().withName("yxlzgs") - .withTier(SkuTier.BASIC) - .withSize("zltafhbzffovwm") - .withFamily("lz") - .withCapacity(1087560201)); - model = BinaryData.fromObject(model).toObject(PatchResourceSku.class); - Assertions.assertEquals("yxlzgs", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("zltafhbzffovwm", model.sku().size()); - Assertions.assertEquals("lz", model.sku().family()); - Assertions.assertEquals(1087560201, model.sku().capacity()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java index 2cce0100f6bb..9bf520c71ccc 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsAndSkuTests.java @@ -16,32 +16,31 @@ public final class PatchResourceTagsAndSkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PatchResourceTagsAndSku model = BinaryData.fromString( - "{\"sku\":{\"name\":\"xsdqrhzoymibmrqy\",\"tier\":\"Enterprise\",\"size\":\"wfluszdt\",\"family\":\"rkwofyyvoqa\",\"capacity\":848769798},\"tags\":{\"wbwo\":\"pbtg\",\"kcnqxwbpo\":\"nwashrtd\",\"aasipqi\":\"ulpiuj\"}}") + "{\"sku\":{\"name\":\"ldawkzbaliourqha\",\"tier\":\"Basic\",\"size\":\"ashsfwxos\",\"family\":\"z\",\"capacity\":1177990560},\"tags\":{\"ovbvmeueciv\":\"cjooxdjebwpucwwf\"}}") .toObject(PatchResourceTagsAndSku.class); - Assertions.assertEquals("pbtg", model.tags().get("wbwo")); - Assertions.assertEquals("xsdqrhzoymibmrqy", model.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, model.sku().tier()); - Assertions.assertEquals("wfluszdt", model.sku().size()); - Assertions.assertEquals("rkwofyyvoqa", model.sku().family()); - Assertions.assertEquals(848769798, model.sku().capacity()); + Assertions.assertEquals("cjooxdjebwpucwwf", model.tags().get("ovbvmeueciv")); + Assertions.assertEquals("ldawkzbaliourqha", model.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); + Assertions.assertEquals("ashsfwxos", model.sku().size()); + Assertions.assertEquals("z", model.sku().family()); + Assertions.assertEquals(1177990560, model.sku().capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PatchResourceTagsAndSku model = new PatchResourceTagsAndSku() - .withTags(mapOf("wbwo", "pbtg", "kcnqxwbpo", "nwashrtd", "aasipqi", "ulpiuj")) - .withSku(new Sku().withName("xsdqrhzoymibmrqy") - .withTier(SkuTier.ENTERPRISE) - .withSize("wfluszdt") - .withFamily("rkwofyyvoqa") - .withCapacity(848769798)); + PatchResourceTagsAndSku model = new PatchResourceTagsAndSku().withTags(mapOf("ovbvmeueciv", "cjooxdjebwpucwwf")) + .withSku(new Sku().withName("ldawkzbaliourqha") + .withTier(SkuTier.BASIC) + .withSize("ashsfwxos") + .withFamily("z") + .withCapacity(1177990560)); model = BinaryData.fromObject(model).toObject(PatchResourceTagsAndSku.class); - Assertions.assertEquals("pbtg", model.tags().get("wbwo")); - Assertions.assertEquals("xsdqrhzoymibmrqy", model.sku().name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, model.sku().tier()); - Assertions.assertEquals("wfluszdt", model.sku().size()); - Assertions.assertEquals("rkwofyyvoqa", model.sku().family()); - Assertions.assertEquals(848769798, model.sku().capacity()); + Assertions.assertEquals("cjooxdjebwpucwwf", model.tags().get("ovbvmeueciv")); + Assertions.assertEquals("ldawkzbaliourqha", model.sku().name()); + Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); + Assertions.assertEquals("ashsfwxos", model.sku().size()); + Assertions.assertEquals("z", model.sku().family()); + Assertions.assertEquals(1177990560, model.sku().capacity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PatchResourceTagsTests.java index 6f0debd31d66..26f1a825e996 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 @@ -15,17 +15,17 @@ public final class PatchResourceTagsTests { public void testDeserialize() throws Exception { PatchResourceTags model = BinaryData .fromString( - "{\"tags\":{\"rpqlp\":\"yuq\",\"auvfbtkuwhhmhyk\":\"wcciuqgbdbu\",\"hkoymkcdyhbp\":\"joxafnndlpi\"}}") + "{\"tags\":{\"ojgjrwjueiotwmc\":\"ce\",\"nrjawgqwg\":\"ytdxwit\",\"klwndnhjdauwhv\":\"hniskxfbkpyc\"}}") .toObject(PatchResourceTags.class); - Assertions.assertEquals("yuq", model.tags().get("rpqlp")); + Assertions.assertEquals("ce", model.tags().get("ojgjrwjueiotwmc")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PatchResourceTags model = new PatchResourceTags() - .withTags(mapOf("rpqlp", "yuq", "auvfbtkuwhhmhyk", "wcciuqgbdbu", "hkoymkcdyhbp", "joxafnndlpi")); + .withTags(mapOf("ojgjrwjueiotwmc", "ce", "nrjawgqwg", "ytdxwit", "klwndnhjdauwhv", "hniskxfbkpyc")); model = BinaryData.fromObject(model).toObject(PatchResourceTags.class); - Assertions.assertEquals("yuq", model.tags().get("rpqlp")); + Assertions.assertEquals("ce", model.tags().get("ojgjrwjueiotwmc")); } // 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 deleted file mode 100644 index 6fcc87f72d02..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyAssignmentEvaluationDetailsTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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 deleted file mode 100644 index 231d16b3ae03..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PolicyExpressionEvaluationDetailsTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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 deleted file mode 100644 index 9072556ba967..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PoolTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.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\":\"zvqqugdrftbcvexr\",\"vmPriority\":\"LowPriority\",\"instanceType\":\"quowtljvfwhrea\",\"nodeCount\":851669196}") - .toObject(Pool.class); - Assertions.assertEquals("zvqqugdrftbcvexr", model.name()); - Assertions.assertEquals(VmPriority.LOW_PRIORITY, model.vmPriority()); - Assertions.assertEquals("quowtljvfwhrea", model.instanceType()); - Assertions.assertEquals(851669196, model.nodeCount()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - Pool model = new Pool().withName("zvqqugdrftbcvexr") - .withVmPriority(VmPriority.LOW_PRIORITY) - .withInstanceType("quowtljvfwhrea") - .withNodeCount(851669196); - model = BinaryData.fromObject(model).toObject(Pool.class); - Assertions.assertEquals("zvqqugdrftbcvexr", model.name()); - Assertions.assertEquals(VmPriority.LOW_PRIORITY, model.vmPriority()); - Assertions.assertEquals("quowtljvfwhrea", model.instanceType()); - Assertions.assertEquals(851669196, model.nodeCount()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java index 055e507fa958..89ae0d66bc34 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionListResultInnerTests.java @@ -13,15 +13,15 @@ public final class PrivateEndpointConnectionListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionListResultInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"bpodxunkbebxm\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"ntwlrbqtkoie\",\"actionsRequired\":\"eotg\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"muwlauwzizxbm\",\"gcj\",\"fuzmuvpbtt\"]},\"etag\":\"morppxebmnzbtbh\",\"location\":\"glkfg\",\"id\":\"dneu\",\"name\":\"lfphsdyhtozfikd\",\"type\":\"wwquuvxzxclvithh\"}]}") + "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"jrunmpxtt\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"bnlankxmyskpb\",\"actionsRequired\":\"nbtkcxywnytnr\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"idybyxczf\",\"lhaaxdbabp\"]},\"etag\":\"wrqlfktsthsuco\",\"location\":\"nyyazttbtwwrqpue\",\"id\":\"kzywbiex\",\"name\":\"fey\",\"type\":\"eaxib\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"bhqwalmuzyoxa\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"zjancuxr\",\"actionsRequired\":\"wbavxbniwdj\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"dbpgnxytxhp\"]},\"etag\":\"bzpfzab\",\"location\":\"cuh\",\"id\":\"tcty\",\"name\":\"iklbbovpl\",\"type\":\"zbhvgyuguosv\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"sxqu\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"l\",\"actionsRequired\":\"gsxnkjzkdeslpv\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"yighxpk\"]},\"etag\":\"zb\",\"location\":\"uebbaumnyqup\",\"id\":\"eojnabc\",\"name\":\"hsmtxpsiebtfhvp\",\"type\":\"sapskr\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"jjdhtld\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"xuutkncwscwsv\",\"actionsRequired\":\"otogtwrupqs\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"cykvceo\"]},\"etag\":\"ilovnot\",\"location\":\"jfcn\",\"id\":\"k\",\"name\":\"nxdhbt\",\"type\":\"kphywpnvjto\"}]}") .toObject(PrivateEndpointConnectionListResultInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ntwlrbqtkoie", + Assertions.assertEquals("bnlankxmyskpb", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("eotg", + Assertions.assertEquals("nbtkcxywnytnr", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("muwlauwzizxbm", model.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("glkfg", model.value().get(0).location()); + Assertions.assertEquals("idybyxczf", model.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("nyyazttbtwwrqpue", model.value().get(0).location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java index 2c9ba38b2d08..d1a501fcd4b6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"lgyqixokw\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"hvagnqfqqdlcvmy\",\"actionsRequired\":\"caymjchtvsnvlaq\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"awatuwqkokbczo\",\"hymgobllms\",\"wgwima\",\"neakh\"]},\"etag\":\"ho\",\"location\":\"yanrfvq\",\"id\":\"khgvoogxkfnao\",\"name\":\"qymhcctopuow\",\"type\":\"rnskby\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"hbkgfyrt\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"mjpjscdfpdqwty\",\"actionsRequired\":\"vgwmseharxifvqnr\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"jptnvwjhrsidqpx\",\"btpakftngatw\"]},\"etag\":\"kyutrymdwmfjhpyc\",\"location\":\"q\",\"id\":\"dwkqpldrlefgna\",\"name\":\"vuagntetaout\",\"type\":\"pdctuhspfefyi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,24 +37,24 @@ public void testCreateOrUpdate() throws Exception { PrivateEndpointConnection response = manager.privateEndpointConnections() - .define("ahfxwccok") - .withExistingAccount("gfjzcvaax", "ia") - .withRegion("ocuselqk") + .define("xvztpbnfnqtxj") + .withExistingAccount("idywmhmptyril", "fbnrq") + .withRegion("efgybpmfbfununmp") .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("hoqeqshavljqk") - .withActionsRequired("rqolnthbb")) - .withGroupIds(Arrays.asList("kwdrnzkjthfc", "yjncjm", "fuyf", "bpfiddhlrufz"))) + .withDescription("ldwq") + .withActionsRequired("sfzygleexahv")) + .withGroupIds(Arrays.asList("brcary", "sjjzyvoaqajuveh"))) .create(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("hvagnqfqqdlcvmy", + Assertions.assertEquals("mjpjscdfpdqwty", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("caymjchtvsnvlaq", + Assertions.assertEquals("vgwmseharxifvqnr", response.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("awatuwqkokbczo", response.properties().groupIds().get(0)); - Assertions.assertEquals("yanrfvq", response.location()); + Assertions.assertEquals("jptnvwjhrsidqpx", response.properties().groupIds().get(0)); + Assertions.assertEquals("q", response.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java index 918cc3089b87..cf6656f1386e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.privateEndpointConnections().delete("j", "hfjv", "ywjzebecuvlbefvw", com.azure.core.util.Context.NONE); + manager.privateEndpointConnections() + .delete("xlb", "xomeikjclwzacn", "wpfsuqtaaz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index 52cfb9e89444..83bfae4d9414 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"privateEndpoint\":{\"id\":\"tjgxieqfky\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"vjaqu\",\"actionsRequired\":\"yynvskpa\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"umexmj\",\"xcbccwkqmt\",\"apeqiscrpil\"]},\"etag\":\"trqrejda\",\"location\":\"uqimldahlfxl\",\"id\":\"ifmuadjnfsncsk\",\"name\":\"ioshjgczetybn\",\"type\":\"gztlcgc\"}"; + = "{\"properties\":{\"privateEndpoint\":{\"id\":\"zbju\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ziucti\",\"actionsRequired\":\"bdsuifr\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"pezkis\",\"qjm\",\"g\",\"syparybjufp\"]},\"etag\":\"jczjnciuiyqv\",\"location\":\"aswvppis\",\"id\":\"zlgcndhzxrrf\",\"name\":\"fsrhkhgsnxu\",\"type\":\"wkpphefsb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnection response = manager.privateEndpointConnections() - .getWithResponse("ersejeg", "rkjguwrjmwvvbt", "qkxximwgxql", com.azure.core.util.Context.NONE) + .getWithResponse("hykfkxbb", "brwjiutgnjizb", "ewoi", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("vjaqu", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("yynvskpa", - response.properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("umexmj", response.properties().groupIds().get(0)); - Assertions.assertEquals("uqimldahlfxl", response.location()); + Assertions.assertEquals("ziucti", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("bdsuifr", response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("pezkis", response.properties().groupIds().get(0)); + Assertions.assertEquals("aswvppis", response.location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java index 866301952198..b79a7a07d1c2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointConnectionsListWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class PrivateEndpointConnectionsListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"bker\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"gaw\",\"actionsRequired\":\"jxildfkcef\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"pjois\"]},\"etag\":\"naybdjnxu\",\"location\":\"ntqontwhym\",\"id\":\"mulw\",\"name\":\"vqtow\",\"type\":\"h\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"oybaja\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"fajcywhjqwm\",\"actionsRequired\":\"qo\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"pupukiymjzp\",\"dlvwtiws\"]},\"etag\":\"sa\",\"location\":\"hq\",\"id\":\"mppultas\",\"name\":\"aekewnazea\",\"type\":\"bkajlcyizy\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"xo\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"fsxxby\",\"actionsRequired\":\"sqlv\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"goljtzxnmxs\",\"obygoo\"]},\"etag\":\"qa\",\"location\":\"xv\",\"id\":\"yjfucsaod\",\"name\":\"nosdkvi\",\"type\":\"fasgm\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"zpducdaak\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"tzboim\",\"actionsRequired\":\"pqdowkppnwyy\"},\"provisioningState\":\"Creating\",\"groupIds\":[\"tfjikffffgkuh\"]},\"etag\":\"whvuldbkk\",\"location\":\"jkjigawgaz\",\"id\":\"jqifhujjsbcml\",\"name\":\"aahzbhuroolkol\",\"type\":\"rhhmojusu\"}]}"; + = "{\"value\":[{\"properties\":{\"privateEndpoint\":{\"id\":\"zjiihjr\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"rz\",\"actionsRequired\":\"pnx\"},\"provisioningState\":\"Succeeded\",\"groupIds\":[\"jkgv\",\"nmx\",\"ursqf\"]},\"etag\":\"btyi\",\"location\":\"yvp\",\"id\":\"fqjpnqno\",\"name\":\"w\",\"type\":\"bedenrexkx\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"ucnulgmnh\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"yznfajs\",\"actionsRequired\":\"skmqozzkivyhj\"},\"provisioningState\":\"Failed\",\"groupIds\":[\"jixlqfhefkwabs\"]},\"etag\":\"ron\",\"location\":\"lmgnlqxsjx\",\"id\":\"lexhv\",\"name\":\"qbozoolzqoc\",\"type\":\"rkuz\"},{\"properties\":{\"privateEndpoint\":{\"id\":\"ndtsnxawqytll\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"myck\",\"actionsRequired\":\"xnx\"},\"provisioningState\":\"Deleting\",\"groupIds\":[\"wymxgaabjk\",\"tfohf\",\"ogzvk\"]},\"etag\":\"rsiwdyjqur\",\"location\":\"crraueekcsu\",\"id\":\"ogd\",\"name\":\"acbcb\",\"type\":\"ydl\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnectionListResult response = manager.privateEndpointConnections() - .listWithResponse("ljkxpylrwoxz", "wpsyxjij", com.azure.core.util.Context.NONE) + .listWithResponse("qbxyxoyfpuqqi", "ezxlhdjzqdca", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gaw", + Assertions.assertEquals("rz", response.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("jxildfkcef", + Assertions.assertEquals("pnx", response.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("pjois", response.value().get(0).properties().groupIds().get(0)); - Assertions.assertEquals("ntqontwhym", response.value().get(0).location()); + Assertions.assertEquals("jkgv", response.value().get(0).properties().groupIds().get(0)); + Assertions.assertEquals("yvp", response.value().get(0).location()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleDestinationTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleDestinationTests.java index 2937be0dda94..0058acd1ada8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleDestinationTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleDestinationTests.java @@ -12,19 +12,19 @@ public final class PrivateEndpointOutboundRuleDestinationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointOutboundRuleDestination model - = BinaryData.fromString("{\"serviceResourceId\":\"mhklbnl\",\"subresourceTarget\":\"vcb\"}") + = BinaryData.fromString("{\"serviceResourceId\":\"foxx\",\"subresourceTarget\":\"bvphavpm\"}") .toObject(PrivateEndpointOutboundRuleDestination.class); - Assertions.assertEquals("mhklbnl", model.serviceResourceId()); - Assertions.assertEquals("vcb", model.subresourceTarget()); + Assertions.assertEquals("foxx", model.serviceResourceId()); + Assertions.assertEquals("bvphavpm", model.subresourceTarget()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointOutboundRuleDestination model - = new PrivateEndpointOutboundRuleDestination().withServiceResourceId("mhklbnl") - .withSubresourceTarget("vcb"); + = new PrivateEndpointOutboundRuleDestination().withServiceResourceId("foxx") + .withSubresourceTarget("bvphavpm"); model = BinaryData.fromObject(model).toObject(PrivateEndpointOutboundRuleDestination.class); - Assertions.assertEquals("mhklbnl", model.serviceResourceId()); - Assertions.assertEquals("vcb", model.subresourceTarget()); + Assertions.assertEquals("foxx", model.serviceResourceId()); + Assertions.assertEquals("bvphavpm", model.subresourceTarget()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleTests.java index c4fac8940dad..904bd7ea98c3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateEndpointOutboundRuleTests.java @@ -16,27 +16,27 @@ public final class PrivateEndpointOutboundRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointOutboundRule model = BinaryData.fromString( - "{\"type\":\"PrivateEndpoint\",\"destination\":{\"serviceResourceId\":\"idisczskosw\",\"subresourceTarget\":\"iqazugamxzkr\"},\"fqdns\":[\"iisb\",\"mnppccekuztd\",\"bezaxyfukzxuiz\",\"y\"],\"category\":\"Recommended\",\"status\":\"Active\",\"errorInformation\":\"etiarxqiubxdukec\",\"parentRuleNames\":[\"azvdhctmmkosz\",\"dblnsntrp\",\"aqkiofkb\"]}") + "{\"type\":\"PrivateEndpoint\",\"destination\":{\"serviceResourceId\":\"ucfx\",\"subresourceTarget\":\"kkflrmymyincqlhr\"},\"fqdns\":[\"sl\",\"iiiovgqcgxuugq\",\"ctotiowlx\",\"e\"],\"category\":\"Recommended\",\"status\":\"Provisioning\",\"errorInformation\":\"wdtgukranblw\",\"parentRuleNames\":[\"lkccuzgygqwa\",\"oiulwgniipr\",\"lvawuwzdufypivls\",\"bjpmcubk\"]}") .toObject(PrivateEndpointOutboundRule.class); Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.status()); - Assertions.assertEquals("idisczskosw", model.destination().serviceResourceId()); - Assertions.assertEquals("iqazugamxzkr", model.destination().subresourceTarget()); - Assertions.assertEquals("iisb", model.fqdns().get(0)); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); + Assertions.assertEquals("ucfx", model.destination().serviceResourceId()); + Assertions.assertEquals("kkflrmymyincqlhr", model.destination().subresourceTarget()); + Assertions.assertEquals("sl", model.fqdns().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointOutboundRule model = new PrivateEndpointOutboundRule().withCategory(RuleCategory.RECOMMENDED) - .withStatus(RuleStatus.ACTIVE) - .withDestination(new PrivateEndpointOutboundRuleDestination().withServiceResourceId("idisczskosw") - .withSubresourceTarget("iqazugamxzkr")) - .withFqdns(Arrays.asList("iisb", "mnppccekuztd", "bezaxyfukzxuiz", "y")); + .withStatus(RuleStatus.PROVISIONING) + .withDestination(new PrivateEndpointOutboundRuleDestination().withServiceResourceId("ucfx") + .withSubresourceTarget("kkflrmymyincqlhr")) + .withFqdns(Arrays.asList("sl", "iiiovgqcgxuugq", "ctotiowlx", "e")); model = BinaryData.fromObject(model).toObject(PrivateEndpointOutboundRule.class); Assertions.assertEquals(RuleCategory.RECOMMENDED, model.category()); - Assertions.assertEquals(RuleStatus.ACTIVE, model.status()); - Assertions.assertEquals("idisczskosw", model.destination().serviceResourceId()); - Assertions.assertEquals("iqazugamxzkr", model.destination().subresourceTarget()); - Assertions.assertEquals("iisb", model.fqdns().get(0)); + Assertions.assertEquals(RuleStatus.PROVISIONING, model.status()); + Assertions.assertEquals("ucfx", model.destination().serviceResourceId()); + Assertions.assertEquals("kkflrmymyincqlhr", model.destination().subresourceTarget()); + Assertions.assertEquals("sl", model.fqdns().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java index 6a2d20409ea5..2b1881b263f3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceListResultInnerTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourceListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceListResultInner model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"zjd\",\"requiredMembers\":[\"jb\",\"xjeaoqaqbzgyh\",\"w\",\"v\"],\"requiredZoneNames\":[\"bwbqamt\",\"uliyslpkcv\",\"w\"],\"displayName\":\"uxx\"},\"id\":\"myw\",\"name\":\"ormcqmic\",\"type\":\"ijqpkzfbojxjmcs\"},{\"properties\":{\"groupId\":\"wixvcpwnkwywzw\",\"requiredMembers\":[\"lickduoi\",\"tamtyv\",\"kn\"],\"requiredZoneNames\":[\"zawnvsbcfhzag\",\"nvhycvdimwrz\",\"e\",\"zgyufutrwp\"],\"displayName\":\"ryekzkd\"},\"id\":\"eotta\",\"name\":\"jyosxwwh\",\"type\":\"h\"}]}") + "{\"value\":[{\"properties\":{\"groupId\":\"vtzn\",\"requiredMembers\":[\"bannovvoxczytp\",\"wnwvroevytlyokr\",\"rouuxvnsasbcry\"],\"requiredZoneNames\":[\"izrxklob\"],\"displayName\":\"nazpmk\"},\"id\":\"mv\",\"name\":\"vfxzopjh\",\"type\":\"zxlioh\"}]}") .toObject(PrivateLinkResourceListResultInner.class); - Assertions.assertEquals("bwbqamt", model.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("izrxklob", model.value().get(0).properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java index 0932dfe51cb4..c515c5fb760f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcePropertiesTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"ynq\",\"requiredMembers\":[\"kqsykvwjtqpke\",\"myltj\",\"rspxklur\",\"clf\"],\"requiredZoneNames\":[\"nnnoytz\",\"osewxi\",\"pxvkqma\",\"pxvpifdfaif\"],\"displayName\":\"yzeyuubeid\"}") + "{\"groupId\":\"immoiroqboshbrag\",\"requiredMembers\":[\"yrmfsvbpav\",\"opfppdbwnupgah\",\"kuma\"],\"requiredZoneNames\":[\"aacfdmmc\"],\"displayName\":\"g\"}") .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("nnnoytz", model.requiredZoneNames().get(0)); + Assertions.assertEquals("aacfdmmc", model.requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java index f4f0d906a1db..cc13eb76f9ed 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourceTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResource model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"vpndp\",\"requiredMembers\":[\"jpnwynudql\",\"zsauzp\",\"lxeehuxiq\"],\"requiredZoneNames\":[\"raymezx\",\"skihmxrfd\",\"ajrednwyyshtuw\",\"mevuafpwzy\"],\"displayName\":\"rkgwltxeqip\"},\"id\":\"zdyi\",\"name\":\"sfayorpravkjoges\",\"type\":\"abnsmj\"}") + "{\"properties\":{\"groupId\":\"dtfgxqbawpcbb\",\"requiredMembers\":[\"cyknapqofyuicd\"],\"requiredZoneNames\":[\"dyb\"],\"displayName\":\"gbdvibidmhmwff\"},\"id\":\"fmuvapckccr\",\"name\":\"vwe\",\"type\":\"oxoyyukp\"}") .toObject(PrivateLinkResource.class); - Assertions.assertEquals("raymezx", model.properties().requiredZoneNames().get(0)); + Assertions.assertEquals("dyb", model.properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java index 348210206af0..8aedbc19695e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/PrivateLinkResourcesListWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class PrivateLinkResourcesListWithResponseMockTests { @Test public void testListWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"rhikwsbzrhdug\",\"requiredMembers\":[\"trgzfr\",\"njfhrjh\"],\"requiredZoneNames\":[\"bauseqnczk\",\"ihvtuwyjsqw\"],\"displayName\":\"zoszjg\"},\"id\":\"nkfnyskwwunq\",\"name\":\"czavoj\",\"type\":\"slhip\"},{\"properties\":{\"groupId\":\"vbljpxprrvc\",\"requiredMembers\":[\"uqalpcufjjfxt\",\"ztqdstahhh\"],\"requiredZoneNames\":[\"xxsri\",\"rcwbaae\"],\"displayName\":\"yefmxwoqotii\"},\"id\":\"gpasrvrmtisty\",\"name\":\"kjhorlxkpy\",\"type\":\"k\"},{\"properties\":{\"groupId\":\"ycntrqxxwtdmb\",\"requiredMembers\":[\"suhqhtoxt\",\"yqavfxbqmzxsyaks\",\"npaami\"],\"requiredZoneNames\":[\"ghvwtgp\"],\"displayName\":\"chcgsfz\"},\"id\":\"jkiysqbjsdj\",\"name\":\"gxe\",\"type\":\"sgw\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"azg\",\"requiredMembers\":[\"hrp\",\"iqstt\",\"ucrcmmai\"],\"requiredZoneNames\":[\"jiwifhbksldttoh\",\"clnaihtg\",\"iqikvllr\",\"tpmglxkoikmtr\"],\"displayName\":\"rqkzawbunmpak\"},\"id\":\"z\",\"name\":\"wee\",\"type\":\"rne\"},{\"properties\":{\"groupId\":\"tkaszfjsxscbdu\",\"requiredMembers\":[\"grcqebmvrdj\"],\"requiredZoneNames\":[\"nwsb\",\"vdlsflxkqesdfeds\",\"gzancoinmphy\"],\"displayName\":\"qidkltvdh\"},\"id\":\"ufbxweiibnto\",\"name\":\"ovfnybydhuihao\",\"type\":\"wud\"},{\"properties\":{\"groupId\":\"orhjkehwv\",\"requiredMembers\":[\"sqircamqprlobrug\",\"jcvjkjy\"],\"requiredZoneNames\":[\"mtagelajdyol\",\"eqyxqfmzsiz\",\"hravrcj\"],\"displayName\":\"ymgqbgcx\"},\"id\":\"qxgzxler\",\"name\":\"km\",\"type\":\"rghskir\"},{\"properties\":{\"groupId\":\"upkcbkfukdljqnvt\",\"requiredMembers\":[\"dshkpaf\"],\"requiredZoneNames\":[\"oowwziz\",\"nyufpqzstif\",\"uf\",\"jfdkqi\"],\"displayName\":\"ndjokgwesymzqh\"},\"id\":\"p\",\"name\":\"zlpejtznxlueaujq\",\"type\":\"bgsimwejlwbkbp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateLinkResourceListResult response = manager.privateLinkResources() - .listWithResponse("kqmxvpor", "wbwggijts", com.azure.core.util.Context.NONE) + .listWithResponse("qliwkmzojf", "tyalh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bauseqnczk", response.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("jiwifhbksldttoh", response.value().get(0).properties().requiredZoneNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostInnerTests.java index f0396a47e26a..a6e43634d607 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,26 @@ public final class ProjectCapabilityHostInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectCapabilityHostInner model = BinaryData.fromString( - "{\"properties\":{\"aiServicesConnections\":[\"avp\",\"h\",\"rbqgvgov\",\"bbttefjo\"],\"vectorStoreConnections\":[\"sqyzqedikdfr\",\"biqmrjgei\",\"fqlggw\"],\"storageConnections\":[\"zcxmjpbyep\",\"mgtvlj\",\"rc\",\"yfqi\"],\"threadStorageConnections\":[\"hnp\",\"myqwcab\"],\"provisioningState\":\"Creating\"},\"id\":\"leeyaswl\",\"name\":\"augmrmfjlr\",\"type\":\"wtoaukhfk\"}") + "{\"properties\":{\"aiServicesConnections\":[\"qmjxlyyzglgouwtl\",\"jjyuojqtobax\"],\"vectorStoreConnections\":[\"ytunlbfjkwr\"],\"storageConnections\":[\"kqbh\",\"y\",\"qunjqh\"],\"threadStorageConnections\":[\"xaulkpakdkifmjnn\",\"wtqabpxuckp\"],\"provisioningState\":\"Updating\"},\"id\":\"wey\",\"name\":\"rdhlis\",\"type\":\"gwflq\"}") .toObject(ProjectCapabilityHostInner.class); - Assertions.assertEquals("avp", model.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("sqyzqedikdfr", model.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("zcxmjpbyep", model.properties().storageConnections().get(0)); - Assertions.assertEquals("hnp", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("qmjxlyyzglgouwtl", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("ytunlbfjkwr", model.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("kqbh", model.properties().storageConnections().get(0)); + Assertions.assertEquals("xaulkpakdkifmjnn", model.properties().threadStorageConnections().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProjectCapabilityHostInner model = new ProjectCapabilityHostInner().withProperties(new ProjectCapabilityHostProperties() - .withAiServicesConnections(Arrays.asList("avp", "h", "rbqgvgov", "bbttefjo")) - .withVectorStoreConnections(Arrays.asList("sqyzqedikdfr", "biqmrjgei", "fqlggw")) - .withStorageConnections(Arrays.asList("zcxmjpbyep", "mgtvlj", "rc", "yfqi")) - .withThreadStorageConnections(Arrays.asList("hnp", "myqwcab"))); + .withAiServicesConnections(Arrays.asList("qmjxlyyzglgouwtl", "jjyuojqtobax")) + .withVectorStoreConnections(Arrays.asList("ytunlbfjkwr")) + .withStorageConnections(Arrays.asList("kqbh", "y", "qunjqh")) + .withThreadStorageConnections(Arrays.asList("xaulkpakdkifmjnn", "wtqabpxuckp"))); model = BinaryData.fromObject(model).toObject(ProjectCapabilityHostInner.class); - Assertions.assertEquals("avp", model.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("sqyzqedikdfr", model.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("zcxmjpbyep", model.properties().storageConnections().get(0)); - Assertions.assertEquals("hnp", model.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("qmjxlyyzglgouwtl", model.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("ytunlbfjkwr", model.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("kqbh", model.properties().storageConnections().get(0)); + Assertions.assertEquals("xaulkpakdkifmjnn", model.properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostPropertiesTests.java index da2c96336f72..b9436a5ea432 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,26 @@ public final class ProjectCapabilityHostPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectCapabilityHostProperties model = BinaryData.fromString( - "{\"aiServicesConnections\":[\"sizmoae\",\"sx\"],\"vectorStoreConnections\":[\"ive\",\"wcgyeewxeiqb\",\"smgomguaml\",\"dlrgms\"],\"storageConnections\":[\"gaufcs\",\"hvn\",\"wgnxkympqanxrj\"],\"threadStorageConnections\":[\"tw\",\"taoypnyghshxc\"],\"provisioningState\":\"Creating\"}") + "{\"aiServicesConnections\":[\"izruwnpqxpxiwfc\",\"gjsaasiixtm\",\"zjvkviirhgfgrws\",\"pgratzvzbglbyvi\"],\"vectorStoreConnections\":[\"tbrxkjz\",\"rgxffmshkw\",\"bkgozxwopdbydpi\",\"qaclnapxbiy\"],\"storageConnections\":[\"gjkn\",\"smfcttuxuuyilfl\"],\"threadStorageConnections\":[\"quvre\",\"mrnjh\"],\"provisioningState\":\"Succeeded\"}") .toObject(ProjectCapabilityHostProperties.class); - Assertions.assertEquals("sizmoae", model.aiServicesConnections().get(0)); - Assertions.assertEquals("ive", model.vectorStoreConnections().get(0)); - Assertions.assertEquals("gaufcs", model.storageConnections().get(0)); - Assertions.assertEquals("tw", model.threadStorageConnections().get(0)); + Assertions.assertEquals("izruwnpqxpxiwfc", model.aiServicesConnections().get(0)); + Assertions.assertEquals("tbrxkjz", model.vectorStoreConnections().get(0)); + Assertions.assertEquals("gjkn", model.storageConnections().get(0)); + Assertions.assertEquals("quvre", model.threadStorageConnections().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectCapabilityHostProperties model - = new ProjectCapabilityHostProperties().withAiServicesConnections(Arrays.asList("sizmoae", "sx")) - .withVectorStoreConnections(Arrays.asList("ive", "wcgyeewxeiqb", "smgomguaml", "dlrgms")) - .withStorageConnections(Arrays.asList("gaufcs", "hvn", "wgnxkympqanxrj")) - .withThreadStorageConnections(Arrays.asList("tw", "taoypnyghshxc")); + ProjectCapabilityHostProperties model = new ProjectCapabilityHostProperties() + .withAiServicesConnections( + Arrays.asList("izruwnpqxpxiwfc", "gjsaasiixtm", "zjvkviirhgfgrws", "pgratzvzbglbyvi")) + .withVectorStoreConnections(Arrays.asList("tbrxkjz", "rgxffmshkw", "bkgozxwopdbydpi", "qaclnapxbiy")) + .withStorageConnections(Arrays.asList("gjkn", "smfcttuxuuyilfl")) + .withThreadStorageConnections(Arrays.asList("quvre", "mrnjh")); model = BinaryData.fromObject(model).toObject(ProjectCapabilityHostProperties.class); - Assertions.assertEquals("sizmoae", model.aiServicesConnections().get(0)); - Assertions.assertEquals("ive", model.vectorStoreConnections().get(0)); - Assertions.assertEquals("gaufcs", model.storageConnections().get(0)); - Assertions.assertEquals("tw", model.threadStorageConnections().get(0)); + Assertions.assertEquals("izruwnpqxpxiwfc", model.aiServicesConnections().get(0)); + Assertions.assertEquals("tbrxkjz", model.vectorStoreConnections().get(0)); + Assertions.assertEquals("gjkn", model.storageConnections().get(0)); + Assertions.assertEquals("quvre", model.threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostResourceArmPaginatedResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostResourceArmPaginatedResultTests.java index 9103db969446..7e3b98b4d833 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostResourceArmPaginatedResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostResourceArmPaginatedResultTests.java @@ -12,12 +12,12 @@ public final class ProjectCapabilityHostResourceArmPaginatedResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectCapabilityHostResourceArmPaginatedResult model = BinaryData.fromString( - "{\"nextLink\":\"gmnsghpxy\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"wjjkh\",\"yomacluzvxnqm\",\"rpqpd\",\"wmkoisq\"],\"vectorStoreConnections\":[\"f\",\"xuifmcsypobkdqz\"],\"storageConnections\":[\"sylollgtr\",\"zzydmxzjijpvua\",\"rkihcirld\"],\"threadStorageConnections\":[\"rdcoxnbkkj\",\"nurnnq\",\"nqbpi\"],\"provisioningState\":\"Creating\"},\"id\":\"tgrdogypx\",\"name\":\"x\",\"type\":\"bfihw\"},{\"properties\":{\"aiServicesConnections\":[\"ctafsrbxrblm\",\"iowxi\"],\"vectorStoreConnections\":[\"nxw\"],\"storageConnections\":[\"nepzwakls\",\"sbq\"],\"threadStorageConnections\":[\"gwwrxaomzis\",\"lrrcz\",\"zkhhltnjadhqo\"],\"provisioningState\":\"Canceled\"},\"id\":\"oyueayfbpcmsp\",\"name\":\"byrrueqth\",\"type\":\"mg\"}]}") + "{\"nextLink\":\"ztczytq\",\"value\":[{\"properties\":{\"aiServicesConnections\":[\"uunfprnjletlxsm\",\"pddouifamowaziyn\",\"nlqwzdvpiwhx\",\"szdtmaajquh\"],\"vectorStoreConnections\":[\"lrjvmtyg\"],\"storageConnections\":[\"zyos\",\"spshckfkyjp\",\"sp\"],\"threadStorageConnections\":[\"sdfppyogtie\",\"ujtv\"],\"provisioningState\":\"Creating\"},\"id\":\"n\",\"name\":\"xrx\",\"type\":\"unjdx\"}]}") .toObject(ProjectCapabilityHostResourceArmPaginatedResult.class); - Assertions.assertEquals("gmnsghpxy", model.nextLink()); - Assertions.assertEquals("wjjkh", model.value().get(0).properties().aiServicesConnections().get(0)); - Assertions.assertEquals("f", model.value().get(0).properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("sylollgtr", model.value().get(0).properties().storageConnections().get(0)); - Assertions.assertEquals("rdcoxnbkkj", model.value().get(0).properties().threadStorageConnections().get(0)); + Assertions.assertEquals("ztczytq", model.nextLink()); + Assertions.assertEquals("uunfprnjletlxsm", model.value().get(0).properties().aiServicesConnections().get(0)); + Assertions.assertEquals("lrjvmtyg", model.value().get(0).properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("zyos", model.value().get(0).properties().storageConnections().get(0)); + Assertions.assertEquals("sdfppyogtie", model.value().get(0).properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateMockTests.java index 56fbc6142713..b23c769d84a9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsCreateOrUpdateMockTests.java @@ -23,7 +23,7 @@ public final class ProjectCapabilityHostsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"aiServicesConnections\":[\"fytdxmly\",\"zlyvapbkrbuog\",\"tdlt\"],\"vectorStoreConnections\":[\"haizijv\"],\"storageConnections\":[\"zeohlpsftqkrvm\"],\"threadStorageConnections\":[\"vvcpwtqsuspn\",\"mzy\"],\"provisioningState\":\"Succeeded\"},\"id\":\"tevrntfknwac\",\"name\":\"csyotctkhfhf\",\"type\":\"atvcsxr\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"oduifvulxfa\",\"yrvjlgdezvjq\",\"ahoyiyaxqvj\",\"eiwtczkdd\"],\"vectorStoreConnections\":[\"vbooqbmdqrxy\",\"laetscflwtjdtlr\",\"e\",\"ooy\"],\"storageConnections\":[\"xdtzcqipsdudgco\",\"zomehxlantolam\"],\"threadStorageConnections\":[\"juxkqll\"],\"provisioningState\":\"Succeeded\"},\"id\":\"vwdtgckzdqiqdl\",\"name\":\"atrkwxoauwxs\",\"type\":\"ykznhrfgslglhp\"}"; 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("cdio") - .withExistingProject("wvwiftdjtvbfpfh", "uptsyqcjnqswxdo", "umxquk") + .define("j") + .withExistingProject("mvhzfovanyrvaprt", "elgwewi", "fyaqandmymnqo") .withProperties(new ProjectCapabilityHostProperties() - .withAiServicesConnections(Arrays.asList("qddnhfknebwed", "pnyzcwyjs", "kaqldqabnwvpa", "bqxfbb")) - .withVectorStoreConnections(Arrays.asList("fddofxnf", "mjyyr", "aedwov")) - .withStorageConnections(Arrays.asList("tjgo", "ayokrwfmihw", "adhed")) - .withThreadStorageConnections(Arrays.asList("bdczvothmkhjao"))) + .withAiServicesConnections(Arrays.asList("vsfbp", "vzopaxmfmvsm")) + .withVectorStoreConnections(Arrays.asList("xfaxdtnq", "fbsatroi")) + .withStorageConnections(Arrays.asList("sugmocpcjyc", "oelrgttwfl", "siuorinikcedpk", "riwmmtmqrxrzqv")) + .withThreadStorageConnections(Arrays.asList("zyayubtgmbxi", "ahr", "gpx", "ibplnupoyryefqm"))) .create(); - Assertions.assertEquals("fytdxmly", response.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("haizijv", response.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("zeohlpsftqkrvm", response.properties().storageConnections().get(0)); - Assertions.assertEquals("vvcpwtqsuspn", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("oduifvulxfa", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("vbooqbmdqrxy", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("xdtzcqipsdudgco", response.properties().storageConnections().get(0)); + Assertions.assertEquals("juxkqll", response.properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetWithResponseMockTests.java index 7d02dda19293..814aae4316d0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ProjectCapabilityHostsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"aiServicesConnections\":[\"qnghxnimvyujr\",\"gunnqgypuqt\",\"ylquevqmvyumgm\",\"uebsnznwgsqufmjx\"],\"vectorStoreConnections\":[\"seqcazisvbrqgc\",\"jp\",\"awepkwonrzpgh\"],\"storageConnections\":[\"tbgblxbuibrvjzta\",\"lvsmfjihv\",\"jcq\"],\"threadStorageConnections\":[\"j\",\"uqmmfjewfeqbavdo\"],\"provisioningState\":\"Failed\"},\"id\":\"gufmwe\",\"name\":\"vxgwz\",\"type\":\"kwdtlcj\"}"; + = "{\"properties\":{\"aiServicesConnections\":[\"zbkuckgkdsksw\",\"iiqqcqikclsmalns\",\"woykdnonaaxwm\"],\"vectorStoreConnections\":[\"ujlqcwnynlle\"],\"storageConnections\":[\"cbgvsbt\",\"ertoxadhxuvj\"],\"threadStorageConnections\":[\"nrqstjcmetwmlg\",\"cvnpv\",\"dhgjnaqyqi\",\"slz\"],\"provisioningState\":\"Failed\"},\"id\":\"svmwbi\",\"name\":\"ekdtfobvfiyb\",\"type\":\"qich\"}"; 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("njxm", "vsduydw", "wg", "uhhqldrdymnswxie", com.azure.core.util.Context.NONE) + .getWithResponse("xtokljmtz", "paxwfqty", "qi", "rcltungbsoljckm", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("qnghxnimvyujr", response.properties().aiServicesConnections().get(0)); - Assertions.assertEquals("seqcazisvbrqgc", response.properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("tbgblxbuibrvjzta", response.properties().storageConnections().get(0)); - Assertions.assertEquals("j", response.properties().threadStorageConnections().get(0)); + Assertions.assertEquals("zbkuckgkdsksw", response.properties().aiServicesConnections().get(0)); + Assertions.assertEquals("ujlqcwnynlle", response.properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("cbgvsbt", response.properties().storageConnections().get(0)); + Assertions.assertEquals("nrqstjcmetwmlg", response.properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListMockTests.java index 89151497e9d0..dc50657b92ab 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectCapabilityHostsListMockTests.java @@ -22,7 +22,7 @@ public final class ProjectCapabilityHostsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"bgo\"],\"vectorStoreConnections\":[\"oymdvhhplk\",\"wwd\"],\"storageConnections\":[\"veqmgkc\",\"w\"],\"threadStorageConnections\":[\"xryearmhpwbuklvs\",\"fasgtlvhqpo\",\"losjaemcez\",\"vftmh\"],\"provisioningState\":\"Deleting\"},\"id\":\"kjyghztms\",\"name\":\"iwtp\",\"type\":\"flcezs\"}]}"; + = "{\"value\":[{\"properties\":{\"aiServicesConnections\":[\"pzl\",\"ryfmxmdu\"],\"vectorStoreConnections\":[\"kgilnoudccgnd\",\"gdpri\",\"gqqyeqfcbuulpyuf\",\"qjfshtujcyo\"],\"storageConnections\":[\"imwdcsklkqnqvki\",\"nmbzmecuy\",\"zwimbzayspz\",\"rietvfp\"],\"threadStorageConnections\":[\"zxplgtpvdvatlz\",\"gschnzrsbk\"],\"provisioningState\":\"Creating\"},\"id\":\"lzdmnfmfwsxafo\",\"name\":\"uworimmov\",\"type\":\"wdehk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,14 @@ 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.projectCapabilityHosts().list("p", "cqzvzrbvgwxhlxr", "xvmdr", com.azure.core.util.Context.NONE); + PagedIterable response = manager.projectCapabilityHosts() + .list("ybfzdqekivycp", "cv", "izulrqtbht", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bgo", response.iterator().next().properties().aiServicesConnections().get(0)); - Assertions.assertEquals("oymdvhhplk", response.iterator().next().properties().vectorStoreConnections().get(0)); - Assertions.assertEquals("veqmgkc", response.iterator().next().properties().storageConnections().get(0)); - Assertions.assertEquals("xryearmhpwbuklvs", + Assertions.assertEquals("pzl", response.iterator().next().properties().aiServicesConnections().get(0)); + Assertions.assertEquals("kgilnoudccgnd", + response.iterator().next().properties().vectorStoreConnections().get(0)); + Assertions.assertEquals("imwdcsklkqnqvki", response.iterator().next().properties().storageConnections().get(0)); + Assertions.assertEquals("zxplgtpvdvatlz", response.iterator().next().properties().threadStorageConnections().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateWithResponseMockTests.java index 263a961db001..5ccf25ad8303 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsCreateWithResponseMockTests.java @@ -10,6 +10,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; +import com.azure.resourcemanager.cognitiveservices.fluent.models.ConnectionPropertiesV2BasicResourceInner; import com.azure.resourcemanager.cognitiveservices.models.ConnectionCategory; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2; import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource; @@ -28,7 +29,7 @@ public final class ProjectConnectionsCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"ODataRest\",\"createdByWorkspaceArmId\":\"fxl\",\"error\":\"mfj\",\"expiryTime\":\"2021-06-16T15:07:39Z\",\"group\":\"Database\",\"isSharedToAll\":true,\"metadata\":{\"xmkhmq\":\"fydrfbgcnyxb\",\"styygjq\":\"ncgaull\",\"fvvzucqfgufjnbx\":\"ulmwqgmhmqmiwx\",\"ekzouyvew\":\"bmwdukinhlxhgde\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"gldohgcandxfhh\",\"te\"],\"target\":\"dqtdnnc\",\"useWorkspaceManagedIdentity\":true},\"id\":\"jdshvv\",\"name\":\"k\",\"type\":\"xccyijjimhijzr\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Pinecone\",\"createdByWorkspaceArmId\":\"iggbnv\",\"error\":\"o\",\"expiryTime\":\"2021-08-03T06:36Z\",\"group\":\"File\",\"isSharedToAll\":true,\"metadata\":{\"obdoey\":\"oeamo\",\"kwmnfeub\":\"fpnimtwuuhaueg\",\"kwfugiphrrkuu\":\"zjy\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"zzfopu\"],\"target\":\"qusvwlujopwnib\",\"useWorkspaceManagedIdentity\":false},\"id\":\"zt\",\"name\":\"dqumqvfm\",\"type\":\"caddtgc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,30 +39,31 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.projectConnections() - .define("m") - .withExistingProject("uogkscxjfsgm", "spoebnx", "qcowscuyfql") - .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.AZURE_SYNAPSE_ANALYTICS) - .withError("ikxkca") - .withExpiryTime(OffsetDateTime.parse("2021-07-03T08:39:58Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("i", "goocqsazmzlpc")) - .withPeRequirement(ManagedPERequirement.REQUIRED) - .withPeStatus(ManagedPEStatus.ACTIVE) - .withSharedUserList(Arrays.asList("ic", "zfvwjdthkvpyeyoa")) - .withTarget("nmpnqu") - .withUseWorkspaceManagedIdentity(false)) - .create(); + .createWithResponse("rrynjcwmhly", "gnukxrkemjpe", "ulrlzaudgjtfbcl", "kkucddwnh", + new ConnectionPropertiesV2BasicResourceInner() + .withProperties(new ConnectionPropertiesV2().withCategory(ConnectionCategory.HUBSPOT) + .withError("rjwayhicqq") + .withExpiryTime(OffsetDateTime.parse("2021-09-21T19:19:24Z")) + .withIsSharedToAll(true) + .withMetadata(mapOf("v", "lizedvbia", "wkhojqttbspvkhg", "srgekzyqxadyfhb")) + .withPeRequirement(ManagedPERequirement.REQUIRED) + .withPeStatus(ManagedPEStatus.INACTIVE) + .withSharedUserList(Arrays.asList("zstuj", "zx", "kn", "fdrld")) + .withTarget("ehi") + .withUseWorkspaceManagedIdentity(false)), + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(ConnectionCategory.ODATA_REST, response.properties().category()); - Assertions.assertEquals("mfj", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-16T15:07:39Z"), response.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.PINECONE, response.properties().category()); + Assertions.assertEquals("o", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T06:36Z"), response.properties().expiryTime()); Assertions.assertTrue(response.properties().isSharedToAll()); - Assertions.assertEquals("fydrfbgcnyxb", response.properties().metadata().get("xmkhmq")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); - Assertions.assertEquals("gldohgcandxfhh", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("dqtdnnc", response.properties().target()); - Assertions.assertTrue(response.properties().useWorkspaceManagedIdentity()); + Assertions.assertEquals("oeamo", response.properties().metadata().get("obdoey")); + Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); + Assertions.assertEquals("zzfopu", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("qusvwlujopwnib", response.properties().target()); + Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteWithResponseMockTests.java index b2c16c444435..de2b0f045c76 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsDeleteWithResponseMockTests.java @@ -28,8 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.projectConnections() - .deleteWithResponse("elnirupkqnst", "aqpibjg", "vswmehfxrtt", "bmsennqfabqcama", - com.azure.core.util.Context.NONE); + .deleteWithResponse("djxh", "ghgodkynrceq", "v", "dbd", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetWithResponseMockTests.java index 3328e91d4997..c5e3cbb382f7 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class ProjectConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"MicrosoftFabric\",\"createdByWorkspaceArmId\":\"kpaxnlsfg\",\"error\":\"scaccptbz\",\"expiryTime\":\"2021-08-09T03:44:47Z\",\"group\":\"GenericProtocol\",\"isSharedToAll\":false,\"metadata\":{\"pzzwahdrdvhaztk\":\"eecvjwyuveox\",\"mw\":\"bivzfgxmbry\",\"qsykq\":\"bios\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"xtfdag\",\"mrcokzzertkounz\",\"iywhubymfpop\"],\"target\":\"zebqnnfywtkqows\",\"useWorkspaceManagedIdentity\":false},\"id\":\"czygpmgfjcu\",\"name\":\"ojhhylxdevfiyy\",\"type\":\"otuzbybwjmtftc\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"SapHana\",\"createdByWorkspaceArmId\":\"gzjxxlf\",\"error\":\"lzuqloiwyayyzivr\",\"expiryTime\":\"2021-04-17T04:49:28Z\",\"group\":\"ServicesAndApps\",\"isSharedToAll\":true,\"metadata\":{\"eifibfiplhx\":\"hwhrktj\",\"jow\":\"nsmy\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"dsqcmhnxl\",\"buwodmachbkv\",\"rpbj\"],\"target\":\"vgoqple\",\"useWorkspaceManagedIdentity\":false},\"id\":\"kzdllczdprwnhkgq\",\"name\":\"goxsstci\",\"type\":\"rak\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,18 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response = manager.projectConnections() - .getWithResponse("oyqxfvgyxz", "xynofxlttxoqxtd", "zujsjirkrp", "kcjhmmofbnivd", - com.azure.core.util.Context.NONE) + .getWithResponse("mgvmuy", "kmlwkt", "ow", "kroyrdurxflzqji", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.MICROSOFT_FABRIC, response.properties().category()); - Assertions.assertEquals("scaccptbz", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T03:44:47Z"), response.properties().expiryTime()); - Assertions.assertFalse(response.properties().isSharedToAll()); - Assertions.assertEquals("eecvjwyuveox", response.properties().metadata().get("pzzwahdrdvhaztk")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, response.properties().peRequirement()); + Assertions.assertEquals(ConnectionCategory.SAP_HANA, response.properties().category()); + Assertions.assertEquals("lzuqloiwyayyzivr", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-17T04:49:28Z"), response.properties().expiryTime()); + Assertions.assertTrue(response.properties().isSharedToAll()); + Assertions.assertEquals("hwhrktj", response.properties().metadata().get("eifibfiplhx")); + Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); - Assertions.assertEquals("xtfdag", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("zebqnnfywtkqows", response.properties().target()); + Assertions.assertEquals("dsqcmhnxl", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("vgoqple", response.properties().target()); Assertions.assertFalse(response.properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListMockTests.java index 3570fa2dfdfa..4e4ff3890949 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsListMockTests.java @@ -25,7 +25,7 @@ public final class ProjectConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"OpenAI\",\"createdByWorkspaceArmId\":\"zpcjcnwjzbqblxr\",\"error\":\"vdsvoqizawwsds\",\"expiryTime\":\"2021-11-02T21:00:21Z\",\"group\":\"AzureAI\",\"isSharedToAll\":true,\"metadata\":{\"wzrdqyoybm\":\"wooauffhxfqk\",\"to\":\"n\"},\"peRequirement\":\"NotApplicable\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"ov\",\"bhrpqphkv\"],\"target\":\"zadcrxyla\",\"useWorkspaceManagedIdentity\":true},\"id\":\"yzvelffo\",\"name\":\"uriwhjdfrw\",\"type\":\"sshrmnkcclpc\"}]}"; + = "{\"value\":[{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"SapBw\",\"createdByWorkspaceArmId\":\"zdprmimrljdpoqfx\",\"error\":\"mhk\",\"expiryTime\":\"2021-10-22T00:02:25Z\",\"group\":\"Database\",\"isSharedToAll\":false,\"metadata\":{\"mq\":\"cloamfmxtllflt\"},\"peRequirement\":\"Required\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"hggabqbgamklil\",\"rwdvffhsdpzou\",\"ktqrxqwqnjxrdf\",\"dtullygtavczcxdf\"],\"target\":\"a\",\"useWorkspaceManagedIdentity\":true},\"id\":\"lxrljphraspifl\",\"name\":\"imixlmdbgice\",\"type\":\"fgsmdrjuqb\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,20 +35,19 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.projectConnections() - .list("ectcxsfmbzdx", "synbkdn", "yufxuzmsvzyq", "brnxhjtlxfikj", "xaravwwuasnjeglh", false, + .list("mmxjdnajuopj", "yqmkwlh", "cwlo", "dejkluxxrwzobuz", "sxgamtdtkw", false, com.azure.core.util.Context.NONE); - Assertions.assertEquals(ConnectionCategory.OPEN_AI, response.iterator().next().properties().category()); - Assertions.assertEquals("vdsvoqizawwsds", response.iterator().next().properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T21:00:21Z"), + Assertions.assertEquals(ConnectionCategory.SAP_BW, response.iterator().next().properties().category()); + Assertions.assertEquals("mhk", response.iterator().next().properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-22T00:02:25Z"), response.iterator().next().properties().expiryTime()); - Assertions.assertTrue(response.iterator().next().properties().isSharedToAll()); - Assertions.assertEquals("wooauffhxfqk", response.iterator().next().properties().metadata().get("wzrdqyoybm")); - Assertions.assertEquals(ManagedPERequirement.NOT_APPLICABLE, - response.iterator().next().properties().peRequirement()); + Assertions.assertFalse(response.iterator().next().properties().isSharedToAll()); + Assertions.assertEquals("cloamfmxtllflt", response.iterator().next().properties().metadata().get("mq")); + Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.iterator().next().properties().peRequirement()); Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.iterator().next().properties().peStatus()); - Assertions.assertEquals("ov", response.iterator().next().properties().sharedUserList().get(0)); - Assertions.assertEquals("zadcrxyla", response.iterator().next().properties().target()); + Assertions.assertEquals("hggabqbgamklil", response.iterator().next().properties().sharedUserList().get(0)); + Assertions.assertEquals("a", response.iterator().next().properties().target()); Assertions.assertTrue(response.iterator().next().properties().useWorkspaceManagedIdentity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateWithResponseMockTests.java similarity index 57% rename from sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateWithResponseMockTests.java rename to sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateWithResponseMockTests.java index 057a7956484f..d32d77497c04 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/AccountConnectionsUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectConnectionsUpdateWithResponseMockTests.java @@ -25,11 +25,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class AccountConnectionsUpdateWithResponseMockTests { +public final class ProjectConnectionsUpdateWithResponseMockTests { @Test public void testUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"SapEcc\",\"createdByWorkspaceArmId\":\"pbyfyvynpmggq\",\"error\":\"g\",\"expiryTime\":\"2021-01-10T15:04:45Z\",\"group\":\"Azure\",\"isSharedToAll\":false,\"metadata\":{\"foizorbloejz\":\"cd\",\"kq\":\"axz\",\"p\":\"vde\"},\"peRequirement\":\"Required\",\"peStatus\":\"Inactive\",\"sharedUserList\":[\"kfrpmplubp\"],\"target\":\"rmj\",\"useWorkspaceManagedIdentity\":true},\"id\":\"ghtb\",\"name\":\"tpkimskhnkkhbykr\",\"type\":\"mhrcmelycpgoku\"}"; + = "{\"properties\":{\"authType\":\"ConnectionPropertiesV2\",\"category\":\"Responsys\",\"createdByWorkspaceArmId\":\"adeghztldsvc\",\"error\":\"jiahuqy\",\"expiryTime\":\"2021-10-14T09:40:55Z\",\"group\":\"AzureAI\",\"isSharedToAll\":false,\"metadata\":{\"xiy\":\"jjqhddwvm\",\"bn\":\"okyfoz\"},\"peRequirement\":\"NotRequired\",\"peStatus\":\"NotApplicable\",\"sharedUserList\":[\"pgaixwrgrkkderf\",\"swqi\",\"wepwoggg\"],\"target\":\"wnxhtf\",\"useWorkspaceManagedIdentity\":true},\"id\":\"sudzpg\",\"name\":\"hzp\",\"type\":\"fqum\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,31 +39,32 @@ public void testUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ConnectionPropertiesV2BasicResource response - = manager.accountConnections() - .updateWithResponse("uvsqj", "rvjnqtaqgxqb", "kceincnrec", + = manager.projectConnections() + .updateWithResponse("xegtvgwyur", "elfnzzryiz", "bxgde", "xlayunomir", new ConnectionUpdateContent().withProperties(new ConnectionPropertiesV2() - .withCategory(ConnectionCategory.SAP_OPEN_HUB) - .withError("smjsqsvzvmx") - .withExpiryTime(OffsetDateTime.parse("2021-06-04T09:32Z")) - .withIsSharedToAll(true) - .withMetadata(mapOf("gvf", "vhgsulwvgseuf", "wuhyzekypy", "juzkilmc", "paxhpz", "vljlbzdlby")) - .withPeRequirement(ManagedPERequirement.NOT_REQUIRED) - .withPeStatus(ManagedPEStatus.INACTIVE) - .withSharedUserList(Arrays.asList("bhanz")) - .withTarget("sfhshag") - .withUseWorkspaceManagedIdentity(true)), + .withCategory(ConnectionCategory.MICROSOFT_FABRIC) + .withError("nbcpjstbhemhcucs") + .withExpiryTime(OffsetDateTime.parse("2021-02-07T02:30:22Z")) + .withIsSharedToAll(false) + .withMetadata( + mapOf("su", "eapdrbzyv", "hmhjd", "dulpodkaxpfobk", "eluqr", "lt", "aysrkgzky", "jadhfztl")) + .withPeRequirement(ManagedPERequirement.NOT_APPLICABLE) + .withPeStatus(ManagedPEStatus.ACTIVE) + .withSharedUserList(Arrays.asList("pzqxlcweakfec", "vxfaqufqizj", "ppwooaj", "yyjmjjxiz")) + .withTarget("xhnzlslekcttgzkj") + .withUseWorkspaceManagedIdentity(false)), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ConnectionCategory.SAP_ECC, response.properties().category()); - Assertions.assertEquals("g", response.properties().error()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T15:04:45Z"), response.properties().expiryTime()); + Assertions.assertEquals(ConnectionCategory.RESPONSYS, response.properties().category()); + Assertions.assertEquals("jiahuqy", response.properties().error()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-14T09:40:55Z"), response.properties().expiryTime()); Assertions.assertFalse(response.properties().isSharedToAll()); - Assertions.assertEquals("cd", response.properties().metadata().get("foizorbloejz")); - Assertions.assertEquals(ManagedPERequirement.REQUIRED, response.properties().peRequirement()); - Assertions.assertEquals(ManagedPEStatus.INACTIVE, response.properties().peStatus()); - Assertions.assertEquals("kfrpmplubp", response.properties().sharedUserList().get(0)); - Assertions.assertEquals("rmj", response.properties().target()); + Assertions.assertEquals("jjqhddwvm", response.properties().metadata().get("xiy")); + Assertions.assertEquals(ManagedPERequirement.NOT_REQUIRED, response.properties().peRequirement()); + Assertions.assertEquals(ManagedPEStatus.NOT_APPLICABLE, response.properties().peStatus()); + Assertions.assertEquals("pgaixwrgrkkderf", response.properties().sharedUserList().get(0)); + Assertions.assertEquals("wnxhtf", response.properties().target()); Assertions.assertTrue(response.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 52119e03f54f..068d68f72c81 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,29 +18,29 @@ public final class ProjectInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"ccxlzhcoxovnek\",\"description\":\"nlusfnrd\",\"endpoints\":{\"ttgepuslvyjtcv\":\"txrdcqtjvi\",\"ughtuqfecjxeygtu\":\"wkasiziesf\",\"cbuewmrswnjlxuz\":\"xu\",\"aqehg\":\"hwpusxj\"},\"isDefault\":true},\"tags\":{\"nwfepbnwg\":\"jqatucoigebxn\",\"jgcgbjbgdlfgtdys\":\"m\",\"zjrwdkqze\":\"aquflqbctqha\"},\"location\":\"jleziunjx\",\"etag\":\"zantkwceg\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"nseqacjjvp\",\"principalId\":\"guooqjagmdit\",\"userAssignedIdentities\":{\"lmotoebnfxofvcj\":{\"principalId\":\"ookjbsahrtdtpde\",\"clientId\":\"ac\"},\"excmjurbuhhl\":{\"principalId\":\"dirazf\",\"clientId\":\"ejwabmdujtmvco\"},\"kffdjktsys\":{\"principalId\":\"ql\",\"clientId\":\"srogtu\"}}},\"id\":\"fvcl\",\"name\":\"lxnfuijtkbusqogs\",\"type\":\"ikayiansharuj\"}") + "{\"properties\":{\"provisioningState\":\"Failed\",\"displayName\":\"ljeamu\",\"description\":\"zmlovuanash\",\"endpoints\":{\"zsdbccxjmon\":\"pmjerbdkelvidiz\",\"uqj\":\"dgnwncypuuwwlt\"},\"isDefault\":true},\"tags\":{\"lyhb\":\"keifzzhmkdasv\",\"chxgs\":\"cu\"},\"location\":\"oldforobw\",\"etag\":\"vizbfhfo\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"pbt\",\"principalId\":\"dxe\",\"userAssignedIdentities\":{\"ahnomdrkywu\":{\"principalId\":\"belawumuaslzkwr\",\"clientId\":\"oycqucwy\"},\"yb\":{\"principalId\":\"svfuurutlwexxwl\",\"clientId\":\"niexzsrzpgepq\"},\"q\":{\"principalId\":\"wpgdak\",\"clientId\":\"zyvli\"},\"mysu\":{\"principalId\":\"kcxk\",\"clientId\":\"bn\"}}},\"id\":\"wq\",\"name\":\"ntvlwijpsttexo\",\"type\":\"qpwcyyufmh\"}") .toObject(ProjectInner.class); - Assertions.assertEquals("ccxlzhcoxovnek", model.properties().displayName()); - Assertions.assertEquals("nlusfnrd", model.properties().description()); - Assertions.assertEquals("jqatucoigebxn", model.tags().get("nwfepbnwg")); - Assertions.assertEquals("jleziunjx", model.location()); + Assertions.assertEquals("ljeamu", model.properties().displayName()); + Assertions.assertEquals("zmlovuanash", model.properties().description()); + Assertions.assertEquals("keifzzhmkdasv", model.tags().get("lyhb")); + Assertions.assertEquals("oldforobw", model.location()); Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProjectInner model = new ProjectInner() - .withProperties(new ProjectProperties().withDisplayName("ccxlzhcoxovnek").withDescription("nlusfnrd")) - .withTags(mapOf("nwfepbnwg", "jqatucoigebxn", "jgcgbjbgdlfgtdys", "m", "zjrwdkqze", "aquflqbctqha")) - .withLocation("jleziunjx") + .withProperties(new ProjectProperties().withDisplayName("ljeamu").withDescription("zmlovuanash")) + .withTags(mapOf("lyhb", "keifzzhmkdasv", "chxgs", "cu")) + .withLocation("oldforobw") .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("lmotoebnfxofvcj", new UserAssignedIdentity(), "excmjurbuhhl", - new UserAssignedIdentity(), "kffdjktsys", new UserAssignedIdentity()))); + .withUserAssignedIdentities(mapOf("ahnomdrkywu", new UserAssignedIdentity(), "yb", + new UserAssignedIdentity(), "q", new UserAssignedIdentity(), "mysu", new UserAssignedIdentity()))); model = BinaryData.fromObject(model).toObject(ProjectInner.class); - Assertions.assertEquals("ccxlzhcoxovnek", model.properties().displayName()); - Assertions.assertEquals("nlusfnrd", model.properties().description()); - Assertions.assertEquals("jqatucoigebxn", model.tags().get("nwfepbnwg")); - Assertions.assertEquals("jleziunjx", model.location()); + Assertions.assertEquals("ljeamu", model.properties().displayName()); + Assertions.assertEquals("zmlovuanash", model.properties().description()); + Assertions.assertEquals("keifzzhmkdasv", model.tags().get("lyhb")); + Assertions.assertEquals("oldforobw", model.location()); Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED, model.identity().type()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectListResultTests.java index 90021f548d25..1ce34f804491 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectListResultTests.java @@ -12,8 +12,8 @@ public final class ProjectListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProjectListResult model = BinaryData.fromString( - "{\"nextLink\":\"lyetndnbfqygg\",\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"mtrwah\",\"description\":\"mu\",\"endpoints\":{\"fusuckzmkwklsno\":\"byrplrohkpig\"},\"isDefault\":false},\"tags\":{\"alhhjnhgwydyynfs\":\"e\"},\"location\":\"hgbvqtan\",\"etag\":\"fdlpukhpyr\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"cpeogkhnmgbrou\",\"principalId\":\"dbhfhp\",\"userAssignedIdentities\":{\"tehtuevrhrljyoog\":{\"principalId\":\"jzoywjxhp\",\"clientId\":\"lontacnpq\"},\"htkln\":{\"principalId\":\"hnsduugwbsreur\",\"clientId\":\"kfuarenlv\"}}},\"id\":\"afvvk\",\"name\":\"f\",\"type\":\"devjb\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"xypokkhmi\",\"description\":\"cymczngn\",\"endpoints\":{\"wuninv\":\"x\",\"h\":\"db\"},\"isDefault\":false},\"tags\":{\"tddmf\":\"qecrqctmxx\",\"pxbannovvoxc\":\"huytxzvtzn\"},\"location\":\"tprwnw\",\"etag\":\"oevytlyokr\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"xv\",\"principalId\":\"asbcrymodizrx\",\"userAssignedIdentities\":{\"vfxzopjh\":{\"principalId\":\"d\",\"clientId\":\"azpmkmlmv\"},\"bnzqcyknapq\":{\"principalId\":\"xliohrdddt\",\"clientId\":\"xqbawpc\"},\"fmuvapckccr\":{\"principalId\":\"yuicdhzbdy\",\"clientId\":\"wgbdvibidmhmwffp\"},\"haim\":{\"principalId\":\"weyoxoy\",\"clientId\":\"k\"}}},\"id\":\"iroqbosh\",\"name\":\"ragapyyrmfsvbp\",\"type\":\"vbopfppdbwnu\"}]}") + "{\"nextLink\":\"lyjdfqwm\",\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"vruzslzojhpctfnm\",\"description\":\"otngfdgu\",\"endpoints\":{\"zabs\":\"zihgrkyu\",\"hojeevy\":\"mfp\",\"czbgomfgbeg\":\"yhsgz\",\"rfxeeebtij\":\"qgleohibetnluank\"},\"isDefault\":false},\"tags\":{\"bqqxlaj\":\"mq\",\"acevehjkuyx\":\"nw\",\"aeylinm\":\"afgaoqlt\",\"irpghriypoqeyh\":\"gv\"},\"location\":\"h\",\"etag\":\"prlpy\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"qdsmexiit\",\"principalId\":\"uxtyasiibmi\",\"userAssignedIdentities\":{\"rhc\":{\"principalId\":\"ustgnljhnmgixhc\",\"clientId\":\"vmqfoud\"},\"bxhugcmjkavlgorb\":{\"principalId\":\"yprotwyp\",\"clientId\":\"d\"}}},\"id\":\"tp\",\"name\":\"dtzfjltfvnzcy\",\"type\":\"t\"}]}") .toObject(ProjectListResult.class); - Assertions.assertEquals("lyetndnbfqygg", model.nextLink()); + Assertions.assertEquals("lyjdfqwm", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectPropertiesTests.java index d0d3b51ecc3f..93e77203d114 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\":\"xfz\",\"description\":\"qttv\",\"endpoints\":{\"qekewvnqvcd\":\"qhjpenuygbqe\",\"punj\":\"guaucmfdjwnla\",\"sserxhtvsoxhlwn\":\"ikczvvitacgxmf\",\"uuuybnchrsziz\":\"sjgqrsxyp\"},\"isDefault\":true}") + "{\"provisioningState\":\"Accepted\",\"displayName\":\"uwm\",\"description\":\"pkcdqzhlct\",\"endpoints\":{\"jrcg\":\"nqndyfpchrqbn\",\"oxjumvqqo\":\"gydcw\",\"jtlo\":\"ihrraiouaub\",\"iflrzpasccbiu\":\"xfuojrn\"},\"isDefault\":true}") .toObject(ProjectProperties.class); - Assertions.assertEquals("xfz", model.displayName()); - Assertions.assertEquals("qttv", model.description()); + Assertions.assertEquals("uwm", model.displayName()); + Assertions.assertEquals("pkcdqzhlct", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProjectProperties model = new ProjectProperties().withDisplayName("xfz").withDescription("qttv"); + ProjectProperties model = new ProjectProperties().withDisplayName("uwm").withDescription("pkcdqzhlct"); model = BinaryData.fromObject(model).toObject(ProjectProperties.class); - Assertions.assertEquals("xfz", model.displayName()); - Assertions.assertEquals("qttv", model.description()); + Assertions.assertEquals("uwm", model.displayName()); + Assertions.assertEquals("pkcdqzhlct", 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 744aef9ee065..6694bb2034ef 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\":\"agjhxerxlobkdbtq\",\"description\":\"mmniiqyholhjnskb\",\"endpoints\":{\"blxk\":\"cnqwlctmw\"},\"isDefault\":true},\"tags\":{\"sp\":\"xrktjcjigcw\",\"sevchefpg\":\"nbqx\",\"mmrimaabsq\":\"edyybruholaemwcg\",\"smihrijezbfsjwfc\":\"lonbzaowcahdkmb\"},\"location\":\"lkvbgukbsv\",\"etag\":\"yotygnb\",\"identity\":{\"type\":\"SystemAssigned, UserAssigned\",\"tenantId\":\"clxaxw\",\"principalId\":\"faspsdzkucszghd\",\"userAssignedIdentities\":{\"u\":{\"principalId\":\"pmnxclfr\",\"clientId\":\"zrn\"}}},\"id\":\"vp\",\"name\":\"ofddtbfmek\",\"type\":\"cnginxdvm\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"displayName\":\"ayqshwyqxridttbs\",\"description\":\"jmkgxqwqueuuylzt\",\"endpoints\":{\"fvezefk\":\"izevjyk\",\"zcntogffjwajnrtw\":\"kqtwqlepjjzkcasf\",\"zkn\":\"vaqkifmxawost\",\"vwfnqqwypvn\":\"rkmjqncfvdscnhe\"},\"isDefault\":true},\"tags\":{\"ggrssgwjfkain\":\"od\",\"ztscbgmusaictds\":\"muymvec\"},\"location\":\"kzzohnrddc\",\"etag\":\"eqozrehlbz\",\"identity\":{\"type\":\"SystemAssigned\",\"tenantId\":\"jrqvzyuexozon\",\"principalId\":\"pam\",\"userAssignedIdentities\":{\"asormrexzvdube\":{\"principalId\":\"abcreuwz\",\"clientId\":\"gyjxvc\"},\"dbakr\":{\"principalId\":\"zygba\",\"clientId\":\"vecovsdqhzr\"},\"hrkombcdta\":{\"principalId\":\"mz\",\"clientId\":\"ppkeqsifjmclngyg\"},\"wkpts\":{\"principalId\":\"opggorwjoqtrotp\",\"clientId\":\"lpofyrl\"}}},\"id\":\"xjgvh\",\"name\":\"ccbmkakm\",\"type\":\"ookbpu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,21 +37,21 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Project response = manager.projects() - .define("bjepzwhj") - .withExistingAccount("yawkch", "apitskshfyftt") - .withRegion("tcxmmqm") - .withTags(mapOf("pzupzwwy", "s", "mxpqkjnpyriwn", "bdjzghximkg")) - .withProperties(new ProjectProperties().withDisplayName("bggcj").withDescription("hblivwehsudym")) + .define("mnb") + .withExistingAccount("tylcu", "za") + .withRegion("qwczsyiq") + .withTags(mapOf("tbdmvsbyidae", "usxxhdodpjwybl", "vekmkwjfbotloggd", "q", "ursuivuxcjk", "s")) + .withProperties(new ProjectProperties().withDisplayName("tdbjmbnvynfaoo").withDescription("c")) .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("acan", new UserAssignedIdentity(), "nydscdkx", - new UserAssignedIdentity(), "fixoskk", new UserAssignedIdentity()))) + .withUserAssignedIdentities(mapOf("umc", new UserAssignedIdentity(), "svfnkwm", + new UserAssignedIdentity(), "cjdk", new UserAssignedIdentity()))) .create(); - Assertions.assertEquals("agjhxerxlobkdbtq", response.properties().displayName()); - Assertions.assertEquals("mmniiqyholhjnskb", response.properties().description()); - Assertions.assertEquals("xrktjcjigcw", response.tags().get("sp")); - Assertions.assertEquals("lkvbgukbsv", response.location()); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); + Assertions.assertEquals("ayqshwyqxridttbs", response.properties().displayName()); + Assertions.assertEquals("jmkgxqwqueuuylzt", response.properties().description()); + Assertions.assertEquals("od", response.tags().get("ggrssgwjfkain")); + Assertions.assertEquals("kzzohnrddc", 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 f6ec6eaf1455..85607af630d9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.projects().delete("ka", "bpyhssrlvkpkp", "ocm", com.azure.core.util.Context.NONE); + manager.projects().delete("ukib", "iglh", "hzwxq", com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetWithResponseMockTests.java index 0bad3eef40cb..0f5c28fefe1d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ProjectsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"eywetkrhlolmcn\",\"description\":\"pfgsvbbvaqdljnp\",\"endpoints\":{\"huekdxljzvdovb\":\"rnrdetawevx\"},\"isDefault\":false},\"tags\":{\"c\":\"lprdaqccddcbnygd\",\"zlrz\":\"xwbpwyykdig\"},\"location\":\"asd\",\"etag\":\"dmjqmvy\",\"identity\":{\"type\":\"SystemAssigned, UserAssigned\",\"tenantId\":\"larh\",\"principalId\":\"wvcaz\",\"userAssignedIdentities\":{\"lgf\":{\"principalId\":\"dzffzjwztsmpchg\",\"clientId\":\"y\"}}},\"id\":\"tig\",\"name\":\"gfrrkdknczgoryw\",\"type\":\"vojtvmdevdlhqv\"}"; + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"displayName\":\"atfybip\",\"description\":\"dm\",\"endpoints\":{\"nasttuxvzfqayop\":\"bd\",\"q\":\"tsixhgvbhxmndztg\",\"jdqknhqn\":\"ayqmarxneibpgbrh\",\"nnohmmzngo\":\"otpu\"},\"isDefault\":false},\"tags\":{\"ugkfhaxttpfsm\":\"ypwyiulayno\",\"ucumlddauqml\":\"gsgh\",\"rigrjdljlkq\":\"feothxu\",\"ulhgltoiz\":\"vkrbzkuastaxklpr\"},\"location\":\"vscksgfyys\",\"etag\":\"ekgafxczvfcck\",\"identity\":{\"type\":\"SystemAssigned, UserAssigned\",\"tenantId\":\"ety\",\"principalId\":\"szrtlhpdhwynct\",\"userAssignedIdentities\":{\"tiklsm\":{\"principalId\":\"njfmbbfnvjxit\",\"clientId\":\"vnk\"},\"avqdorbccqcd\":{\"principalId\":\"hql\",\"clientId\":\"qksyiibhyxwbgbu\"},\"rdtnagzl\":{\"principalId\":\"hojvlirkn\",\"clientId\":\"osa\"},\"cybdueurgm\":{\"principalId\":\"yaixihzqj\",\"clientId\":\"smuydqfttk\"}}},\"id\":\"cp\",\"name\":\"shlojermh\",\"type\":\"icsbfdjhyaakn\"}"; 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("nomwnwnghojovke", "ymicjixx", "sfpcrtnuguefxxij", com.azure.core.util.Context.NONE) + .getWithResponse("iz", "cqhyftcvbz", "gwhgkgsoau", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("eywetkrhlolmcn", response.properties().displayName()); - Assertions.assertEquals("pfgsvbbvaqdljnp", response.properties().description()); - Assertions.assertEquals("lprdaqccddcbnygd", response.tags().get("c")); - Assertions.assertEquals("asd", response.location()); + Assertions.assertEquals("atfybip", response.properties().displayName()); + Assertions.assertEquals("dm", response.properties().description()); + Assertions.assertEquals("ypwyiulayno", response.tags().get("ugkfhaxttpfsm")); + Assertions.assertEquals("vscksgfyys", response.location()); Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, response.identity().type()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListMockTests.java index 78bc10c72697..7df9ae0cb3aa 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProjectsListMockTests.java @@ -23,7 +23,7 @@ public final class ProjectsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"displayName\":\"k\",\"description\":\"yddt\",\"endpoints\":{\"gkord\":\"udvafnbfbqvenqnx\"},\"isDefault\":false},\"tags\":{\"prldidwm\":\"ecwzvcmbpwdluda\",\"gwn\":\"ffbvtzldzchub\"},\"location\":\"uvigv\",\"etag\":\"hfrbzakpjt\",\"identity\":{\"type\":\"SystemAssigned, UserAssigned\",\"tenantId\":\"pojpsucmximcw\",\"principalId\":\"ynqjgsat\",\"userAssignedIdentities\":{\"xhirc\":{\"principalId\":\"cb\",\"clientId\":\"gcru\"},\"znad\":{\"principalId\":\"cvsvk\",\"clientId\":\"bjolpyoklkv\"},\"owxxbh\":{\"principalId\":\"ml\",\"clientId\":\"oi\"},\"sikawanvmwd\":{\"principalId\":\"syio\",\"clientId\":\"mqwtqszzgy\"}}},\"id\":\"jqcrbk\",\"name\":\"mpnbnfgyweoj\",\"type\":\"epgcmahiwf\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"displayName\":\"lh\",\"description\":\"xgffklvq\",\"endpoints\":{\"nwxlwm\":\"trdgscnvqeons\",\"opvkvtwfves\":\"zyohxpthc\"},\"isDefault\":true},\"tags\":{\"mlcdyarnggcjfwbl\":\"kh\"},\"location\":\"xka\",\"etag\":\"colmugp\",\"identity\":{\"type\":\"UserAssigned\",\"tenantId\":\"dkluwzxeygzvt\",\"principalId\":\"vjhubnobguqisqs\",\"userAssignedIdentities\":{\"cvqdvrdmvxyrxd\":{\"principalId\":\"mioyjpn\",\"clientId\":\"viqcpszp\"},\"yidoxznvg\":{\"principalId\":\"vqojbxaotcgbz\",\"clientId\":\"btplefoi\"}}},\"id\":\"tmuuvdawsx\",\"name\":\"rszbkn\",\"type\":\"mxlpnerxrz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,13 +33,12 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.projects().list("ccebxxopyicyvspe", "lhwyykgvrccpumd", com.azure.core.util.Context.NONE); + = manager.projects().list("ejp", "ilhvtozyagjj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("k", response.iterator().next().properties().displayName()); - Assertions.assertEquals("yddt", response.iterator().next().properties().description()); - Assertions.assertEquals("ecwzvcmbpwdluda", response.iterator().next().tags().get("prldidwm")); - Assertions.assertEquals("uvigv", response.iterator().next().location()); - Assertions.assertEquals(ResourceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, - response.iterator().next().identity().type()); + Assertions.assertEquals("lh", response.iterator().next().properties().displayName()); + Assertions.assertEquals("xgffklvq", response.iterator().next().properties().description()); + Assertions.assertEquals("kh", response.iterator().next().tags().get("mlcdyarnggcjfwbl")); + Assertions.assertEquals("xka", response.iterator().next().location()); + Assertions.assertEquals(ResourceIdentityType.USER_ASSIGNED, response.iterator().next().identity().type()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssuePropertiesTests.java index 45180b4628eb..dee49d5bf71e 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\":\"ujeickp\",\"severity\":\"cpopmxel\",\"description\":\"clt\",\"suggestedResourceIds\":[\"dexxmlfmkqscazua\",\"xtzx\",\"uamwabzxrvxc\"],\"suggestedAccessRules\":[{\"name\":\"phai\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"flv\",\"sgzwywakoihknsm\",\"blmljh\",\"nymzotqyr\"],\"subscriptions\":[{\"id\":\"bmqqvxmvw\"},{\"id\":\"tayx\"},{\"id\":\"supe\"}],\"networkSecurityPerimeters\":[{\"id\":\"qnhcvsqltnzoibg\",\"perimeterGuid\":\"gnxf\",\"location\":\"onmpqoxwdof\"},{\"id\":\"xiqxeiiqbimh\",\"perimeterGuid\":\"wwinhehf\",\"location\":\"ofvwbcb\"}],\"fullyQualifiedDomainNames\":[\"b\",\"kbwvqvxkdiv\"]}},{\"name\":\"heb\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"uwfmduragegizvc\",\"felisdjub\"],\"subscriptions\":[{\"id\":\"igkxkbsazga\"},{\"id\":\"acy\"}],\"networkSecurityPerimeters\":[{\"id\":\"dmspof\",\"perimeterGuid\":\"vuhrylni\",\"location\":\"rz\"}],\"fullyQualifiedDomainNames\":[\"jed\",\"st\",\"vnlvxbcuiiznktwf\"]}},{\"name\":\"snvpdibmi\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"bkiw\"],\"subscriptions\":[{\"id\":\"yophz\"},{\"id\":\"l\"},{\"id\":\"crpfbcunez\"}],\"networkSecurityPerimeters\":[{\"id\":\"elfwy\",\"perimeterGuid\":\"lwxjwetn\",\"location\":\"ihclafzv\"}],\"fullyQualifiedDomainNames\":[\"pt\"]}}]}") + "{\"issueType\":\"wwnpj\",\"severity\":\"fz\",\"description\":\"pchwa\",\"suggestedResourceIds\":[\"ousnfepgfewe\",\"wlyxgncxyk\"],\"suggestedAccessRules\":[{\"name\":\"h\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"x\",\"h\",\"cporxvxcjz\"],\"subscriptions\":[{\"id\":\"xfpxtgqscja\"},{\"id\":\"t\"}],\"networkSecurityPerimeters\":[{\"id\":\"qaz\",\"perimeterGuid\":\"tgguwpijrajcivmm\",\"location\":\"f\"},{\"id\":\"iwrxgkn\",\"perimeterGuid\":\"vyi\",\"location\":\"qodfvp\"},{\"id\":\"hoxgsgbpf\",\"perimeterGuid\":\"djtxvzflbq\",\"location\":\"aqvlgafcqusr\"},{\"id\":\"etnwsdtutnw\",\"perimeterGuid\":\"uycvuzhyrmewip\",\"location\":\"ekdxuku\"}],\"fullyQualifiedDomainNames\":[\"jjxundxgke\",\"wzhhzjhfjmhvvmuv\",\"pmuneqsx\",\"mhfbuzjy\"]}},{\"name\":\"sasbhu\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"uemsly\"],\"subscriptions\":[{\"id\":\"rpfoobr\"}],\"networkSecurityPerimeters\":[{\"id\":\"msjnygqdnfw\",\"perimeterGuid\":\"dzgtil\",\"location\":\"hnfhqlyvijouwi\"}],\"fullyQualifiedDomainNames\":[\"oyzunbixxr\",\"ikvcpwp\",\"clrcivtsox\"]}}]}") .toObject(ProvisioningIssueProperties.class); - Assertions.assertEquals("ujeickp", model.issueType()); - Assertions.assertEquals("cpopmxel", model.severity()); - Assertions.assertEquals("clt", model.description()); - Assertions.assertEquals("dexxmlfmkqscazua", model.suggestedResourceIds().get(0)); - Assertions.assertEquals("phai", model.suggestedAccessRules().get(0).name()); + Assertions.assertEquals("wwnpj", model.issueType()); + Assertions.assertEquals("fz", model.severity()); + Assertions.assertEquals("pchwa", model.description()); + Assertions.assertEquals("ousnfepgfewe", model.suggestedResourceIds().get(0)); + Assertions.assertEquals("h", model.suggestedAccessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.OUTBOUND, model.suggestedAccessRules().get(0).properties().direction()); - Assertions.assertEquals("flv", model.suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("bmqqvxmvw", + Assertions.assertEquals("x", model.suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); + Assertions.assertEquals("xfpxtgqscja", model.suggestedAccessRules().get(0).properties().subscriptions().get(0).id()); - Assertions.assertEquals("qnhcvsqltnzoibg", + Assertions.assertEquals("qaz", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).id()); - Assertions.assertEquals("gnxf", + Assertions.assertEquals("tgguwpijrajcivmm", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).perimeterGuid()); - Assertions.assertEquals("onmpqoxwdof", + Assertions.assertEquals("f", model.suggestedAccessRules().get(0).properties().networkSecurityPerimeters().get(0).location()); - Assertions.assertEquals("b", + Assertions.assertEquals("jjxundxgke", model.suggestedAccessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java index f37d45602ba8..96397a131cc6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ProvisioningIssueTests.java @@ -13,19 +13,19 @@ public final class ProvisioningIssueTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProvisioningIssue model = BinaryData.fromString( - "{\"name\":\"vcwwyyurmochppr\",\"properties\":{\"issueType\":\"nmokayzejnhlbk\",\"severity\":\"z\",\"description\":\"piljhahzvech\",\"suggestedResourceIds\":[\"nwieholewjw\",\"uubw\",\"fqsfa\"],\"suggestedAccessRules\":[{\"name\":\"ferr\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"mfxapjwogqqno\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"btqwpwyawbzas\",\"bucljgkyexaogu\",\"aipidsdaultxi\",\"jumfqwazlnq\"]}},{\"name\":\"cjngzqdqxtbjwgny\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"vtuikzhajq\",\"lcfhmlrqryxy\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"sovwxznptgoeiyb\"]}},{\"name\":\"bp\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"kvntjlrigjkskyri\"],\"subscriptions\":[{},{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"xwaabzmifrygznmm\",\"xrizkzobgop\"]}},{\"name\":\"hsln\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"xynl\",\"xecwcro\",\"phslhcawjutifdw\",\"mvi\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"tzh\",\"aglkafhon\"]}}]}}") + "{\"name\":\"jqctojcmisofie\",\"properties\":{\"issueType\":\"foj\",\"severity\":\"dh\",\"description\":\"plcplcwkhi\",\"suggestedResourceIds\":[\"lhzdsqtzb\",\"rgnowcjhfgm\",\"ecactx\",\"wotey\"],\"suggestedAccessRules\":[{\"name\":\"uqovekqvgqouwif\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"ivqikfxcvhr\",\"sphuagrttikteus\",\"c\",\"kvyklxubyjaffmm\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{}],\"fullyQualifiedDomainNames\":[\"ubgq\"]}},{\"name\":\"rtalmet\",\"properties\":{\"direction\":\"Outbound\",\"addressPrefixes\":[\"lqxihhrmooiz\",\"seypxiutcxapz\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{}],\"fullyQualifiedDomainNames\":[\"g\"]}},{\"name\":\"joxslhvnhla\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"zjcjbtr\",\"aehvvibrxjjstoq\",\"eitpkxztmo\"],\"subscriptions\":[{}],\"networkSecurityPerimeters\":[{}],\"fullyQualifiedDomainNames\":[\"dgfcwqmp\",\"maqxzhemjyh\"]}},{\"name\":\"uj\",\"properties\":{\"direction\":\"Inbound\",\"addressPrefixes\":[\"zzwc\",\"lkb\",\"wpfaj\"],\"subscriptions\":[{},{},{},{}],\"networkSecurityPerimeters\":[{},{},{},{}],\"fullyQualifiedDomainNames\":[\"tjjguktalhsnvkc\",\"mxzrpoa\",\"mlnwiaaomylweazu\",\"cse\"]}}]}}") .toObject(ProvisioningIssue.class); - Assertions.assertEquals("vcwwyyurmochppr", model.name()); - Assertions.assertEquals("nmokayzejnhlbk", model.properties().issueType()); - Assertions.assertEquals("z", model.properties().severity()); - Assertions.assertEquals("piljhahzvech", model.properties().description()); - Assertions.assertEquals("nwieholewjw", model.properties().suggestedResourceIds().get(0)); - Assertions.assertEquals("ferr", model.properties().suggestedAccessRules().get(0).name()); + Assertions.assertEquals("jqctojcmisofie", model.name()); + Assertions.assertEquals("foj", model.properties().issueType()); + Assertions.assertEquals("dh", model.properties().severity()); + Assertions.assertEquals("plcplcwkhi", model.properties().description()); + Assertions.assertEquals("lhzdsqtzb", model.properties().suggestedResourceIds().get(0)); + Assertions.assertEquals("uqovekqvgqouwif", model.properties().suggestedAccessRules().get(0).name()); Assertions.assertEquals(NspAccessRuleDirection.INBOUND, model.properties().suggestedAccessRules().get(0).properties().direction()); - Assertions.assertEquals("mfxapjwogqqno", + Assertions.assertEquals("ivqikfxcvhr", model.properties().suggestedAccessRules().get(0).properties().addressPrefixes().get(0)); - Assertions.assertEquals("btqwpwyawbzas", + Assertions.assertEquals("ubgq", model.properties().suggestedAccessRules().get(0).properties().fullyQualifiedDomainNames().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierInnerTests.java index f50903a0621c..2aaad4b63282 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,7 +14,7 @@ public final class QuotaTierInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaTierInner model = BinaryData.fromString( - "{\"properties\":{\"currentTierName\":\"scbbxig\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-08-22T00:00:42Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"opedbwdpyqyybxub\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-02-01T03:34:42Z\",\"upgradeUnavailabilityReason\":\"bqwremjela\"}},\"id\":\"cigeleohdbvqvw\",\"name\":\"kjopwbeon\",\"type\":\"lkwzdqybxceakxcp\"}") + "{\"properties\":{\"currentTierName\":\"nkvxlxpaglqi\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-03-28T16:32:20Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"hpzvuqdflvoniyp\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-06-28T02:42:03Z\",\"upgradeUnavailabilityReason\":\"zgp\"}},\"id\":\"ivhjknidi\",\"name\":\"gqjxgpnrhgovfgp\",\"type\":\"kqmhhaowjr\"}") .toObject(QuotaTierInner.class); Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, model.properties().tierUpgradePolicy()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierListResultTests.java index 8e6cb3cf7ab9..1443b2e90ff0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierListResultTests.java @@ -12,8 +12,8 @@ public final class QuotaTierListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaTierListResult model = BinaryData.fromString( - "{\"nextLink\":\"pli\",\"value\":[{\"properties\":{\"currentTierName\":\"oyxqvapcohhou\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-03-07T19:11:16Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"cxzrzdcgdzben\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-03-01T15:01:40Z\",\"upgradeUnavailabilityReason\":\"etzqd\"}},\"id\":\"jwfljhznamtua\",\"name\":\"mzwcjjncqt\",\"type\":\"z\"},{\"properties\":{\"currentTierName\":\"vgbgatzuuvbxng\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-04-05T17:37:26Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"httzlswvajqfutlx\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-12-02T18:43:19Z\",\"upgradeUnavailabilityReason\":\"unwqr\"}},\"id\":\"frgqhaohcm\",\"name\":\"uocnjrohmbpyr\",\"type\":\"xameblydyvkfkm\"},{\"properties\":{\"currentTierName\":\"xne\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-07-26T11:57:58Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"lfpya\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-03-16T02:53:36Z\",\"upgradeUnavailabilityReason\":\"oavyun\"}},\"id\":\"xlghieegj\",\"name\":\"gvvpasek\",\"type\":\"gbuxantuygdh\"},{\"properties\":{\"currentTierName\":\"i\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-12-09T06:35:55Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"qofu\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-06-19T10:30:26Z\",\"upgradeUnavailabilityReason\":\"lexwhcbjp\"}},\"id\":\"k\",\"name\":\"phuuuerctato\",\"type\":\"intqpbrlcyr\"}]}") + "{\"nextLink\":\"crmnzhrgmqgjs\",\"value\":[{\"properties\":{\"currentTierName\":\"bfrmbodthsqqgvri\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-07-03T17:54:20Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"c\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-07-14T07:01:39Z\",\"upgradeUnavailabilityReason\":\"usx\"}},\"id\":\"zlwvsgmwohqfz\",\"name\":\"zvuxm\",\"type\":\"kjsvthnwpzteko\"},{\"properties\":{\"currentTierName\":\"ibiattg\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-10-04T06:14:32Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"angcfhnykz\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-08-16T18:37Z\",\"upgradeUnavailabilityReason\":\"x\"}},\"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\"}]}") .toObject(QuotaTierListResult.class); - Assertions.assertEquals("pli", model.nextLink()); + Assertions.assertEquals("crmnzhrgmqgjs", model.nextLink()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierPropertiesTests.java index bb5ea197fec7..6ac6dc0530eb 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\":\"oqfyiaseqch\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-08-04T17:40:23Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"zisgykiuemvanb\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-07-11T14:17:07Z\",\"upgradeUnavailabilityReason\":\"rx\"}}") + "{\"currentTierName\":\"vuporqzdfuydzv\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-07-31T18:55:59Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"mx\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-01-20T08:33:12Z\",\"upgradeUnavailabilityReason\":\"mvkhlggd\"}}") .toObject(QuotaTierProperties.class); Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, model.tierUpgradePolicy()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierUpgradeEligibilityInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierUpgradeEligibilityInfoTests.java index 11e720249fec..6c53a107391f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierUpgradeEligibilityInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTierUpgradeEligibilityInfoTests.java @@ -14,11 +14,11 @@ public final class QuotaTierUpgradeEligibilityInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QuotaTierUpgradeEligibilityInfo model = BinaryData.fromString( - "{\"nextTierName\":\"sojklinhmdptys\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2020-12-25T21:15:26Z\",\"upgradeUnavailabilityReason\":\"zxojpslsv\"}") + "{\"nextTierName\":\"em\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-10-24T18:45:15Z\",\"upgradeUnavailabilityReason\":\"uwiwtglxxhljfpg\"}") .toObject(QuotaTierUpgradeEligibilityInfo.class); - Assertions.assertEquals("sojklinhmdptys", model.nextTierName()); - Assertions.assertEquals(UpgradeAvailabilityStatus.NOT_AVAILABLE, model.upgradeAvailabilityStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-25T21:15:26Z"), model.upgradeApplicableDate()); - Assertions.assertEquals("zxojpslsv", model.upgradeUnavailabilityReason()); + Assertions.assertEquals("em", model.nextTierName()); + Assertions.assertEquals(UpgradeAvailabilityStatus.AVAILABLE, model.upgradeAvailabilityStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-24T18:45:15Z"), model.upgradeApplicableDate()); + Assertions.assertEquals("uwiwtglxxhljfpg", model.upgradeUnavailabilityReason()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateWithResponseMockTests.java index 188df63f9c2b..18e4721346ee 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersCreateOrUpdateWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class QuotaTiersCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"currentTierName\":\"nhzcknjxizb\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-07-05T14:50:54Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"ztxfexwacyyjmlxp\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-05-18T23:17:09Z\",\"upgradeUnavailabilityReason\":\"fevuii\"}},\"id\":\"ibfkcjytq\",\"name\":\"cizeqqfopvnopm\",\"type\":\"tdsfh\"}"; + = "{\"properties\":{\"currentTierName\":\"szp\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-12-08T15:58:57Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"dzzmssgpgv\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-06-10T06:37:26Z\",\"upgradeUnavailabilityReason\":\"db\"}},\"id\":\"zsqunycwzt\",\"name\":\"vvw\",\"type\":\"nmrkkyjtrepwpwf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +33,11 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); QuotaTier response = manager.quotaTiers() - .define("ugeerclbltbhpwac") + .define("tmdofgeoag") .withProperties( new QuotaTierProperties().withTierUpgradePolicy(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE)) .create(); - Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, response.properties().tierUpgradePolicy()); + Assertions.assertEquals(TierUpgradePolicy.ONCE_UPGRADE_IS_AVAILABLE, response.properties().tierUpgradePolicy()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetWithResponseMockTests.java index 4d0cdd38e0fd..276b37b614a6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class QuotaTiersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"currentTierName\":\"blehhkplo\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-03-21T01:51:52Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"ksadzi\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-07-24T18:17:44Z\",\"upgradeUnavailabilityReason\":\"t\"}},\"id\":\"u\",\"name\":\"fvvraab\",\"type\":\"urdeewlsuxp\"}"; + = "{\"properties\":{\"currentTierName\":\"oaeoc\",\"tierUpgradePolicy\":\"NoAutoUpgrade\",\"assignmentDate\":\"2021-09-09T10:15:07Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"vkbdgddkrhdccxbe\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-12-01T21:52:32Z\",\"upgradeUnavailabilityReason\":\"zwtjwwguzytijc\"}},\"id\":\"nondegjdyd\",\"name\":\"qkkkbjuckcatuqbh\",\"type\":\"owcnxtpz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,8 +31,7 @@ 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("hnmizhvprhqq", com.azure.core.util.Context.NONE).getValue(); + QuotaTier response = manager.quotaTiers().getWithResponse("yjfzi", com.azure.core.util.Context.NONE).getValue(); Assertions.assertEquals(TierUpgradePolicy.NO_AUTO_UPGRADE, response.properties().tierUpgradePolicy()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java index dd3368dc1ce1..74bfa1984ba0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/QuotaTiersListMockTests.java @@ -23,7 +23,7 @@ public final class QuotaTiersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"currentTierName\":\"kdwjyjiznioro\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-03-06T04:45:53Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"pmcreihu\",\"upgradeAvailabilityStatus\":\"Available\",\"upgradeApplicableDate\":\"2021-01-16T20:00:11Z\",\"upgradeUnavailabilityReason\":\"hminuwqxungrobgw\"}},\"id\":\"sxjwdy\",\"name\":\"wxm\",\"type\":\"zjow\"}]}"; + = "{\"value\":[{\"properties\":{\"currentTierName\":\"seidtoakatpr\",\"tierUpgradePolicy\":\"OnceUpgradeIsAvailable\",\"assignmentDate\":\"2021-02-28T18:57:07Z\",\"tierUpgradeEligibilityInfo\":{\"nextTierName\":\"qfdpf\",\"upgradeAvailabilityStatus\":\"NotAvailable\",\"upgradeApplicableDate\":\"2021-10-26T15:41:59Z\",\"upgradeUnavailabilityReason\":\"cshtkutzcttbqgdi\"}},\"id\":\"amm\",\"name\":\"zjgcfjfx\",\"type\":\"bwjjirmuydgf\"}]}"; 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 053ca6bb1d83..b6798e720cd9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListItemsResultTests.java @@ -12,11 +12,11 @@ public final class RaiBlockListItemsResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlockListItemsResult model = BinaryData.fromString( - "{\"nextLink\":\"bzevwrd\",\"value\":[{\"properties\":{\"pattern\":\"uvsj\",\"isRegex\":true},\"etag\":\"myst\",\"tags\":{\"er\":\"qypfcv\",\"bm\":\"hp\",\"sspuunnoxyhkx\":\"pjbabwidfc\"},\"id\":\"ddrihpf\",\"name\":\"oqcaaewdaomdj\",\"type\":\"l\"},{\"properties\":{\"pattern\":\"xkzb\",\"isRegex\":false},\"etag\":\"eivsiykzkdnc\",\"tags\":{\"pgogtqxepny\":\"onbzoggculapzwy\",\"uajlyj\":\"b\",\"uxrkjp\":\"lvofqzhvfcibyfmo\",\"wiivwzjbhyzsx\":\"dwxf\"},\"id\":\"kambtrnegvmnvuqe\",\"name\":\"vldspa\",\"type\":\"tjb\"},{\"properties\":{\"pattern\":\"mflvest\",\"isRegex\":false},\"etag\":\"rriloz\",\"tags\":{\"iycslevuf\":\"ewchpxlktwku\",\"tqedcgzulwm\":\"ztcktyh\",\"rjvpglydzgkrvqee\":\"rqzz\"},\"id\":\"oepry\",\"name\":\"t\",\"type\":\"wytpzdmovz\"},{\"properties\":{\"pattern\":\"aawzqadfl\",\"isRegex\":false},\"etag\":\"iglaecx\",\"tags\":{\"mlqtmldgxob\":\"icokpv\"},\"id\":\"rclnpkc\",\"name\":\"ayzri\",\"type\":\"khyawfvjlboxqv\"}]}") + "{\"nextLink\":\"lfaoqzpiyylhaln\",\"value\":[{\"properties\":{\"pattern\":\"sp\",\"isRegex\":true},\"etag\":\"vwitqscyw\",\"tags\":{\"brgz\":\"woluhczbwemhair\"},\"id\":\"msweypqwdxggicc\",\"name\":\"n\",\"type\":\"qhuexm\"}]}") .toObject(RaiBlockListItemsResult.class); - Assertions.assertEquals("bzevwrd", model.nextLink()); - Assertions.assertEquals("uvsj", model.value().get(0).properties().pattern()); + Assertions.assertEquals("lfaoqzpiyylhaln", model.nextLink()); + Assertions.assertEquals("sp", model.value().get(0).properties().pattern()); Assertions.assertTrue(model.value().get(0).properties().isRegex()); - Assertions.assertEquals("qypfcv", model.value().get(0).tags().get("er")); + Assertions.assertEquals("woluhczbwemhair", model.value().get(0).tags().get("brgz")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java index 4c272680223b..0f537fcfd2b0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlockListResultTests.java @@ -12,10 +12,10 @@ public final class RaiBlockListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlockListResult model = BinaryData.fromString( - "{\"nextLink\":\"uzqgnjdgkynsc\",\"value\":[{\"properties\":{\"description\":\"vhxnk\"},\"etag\":\"tkubotppn\",\"tags\":{\"frbbc\":\"zxhi\"},\"id\":\"qagt\",\"name\":\"tdhlfkqo\",\"type\":\"py\"},{\"properties\":{\"description\":\"trdcnifmzzs\"},\"etag\":\"m\",\"tags\":{\"ocxvdfffwafqr\":\"ysuxmprafwgck\",\"vkbunzozudh\":\"udaspavehh\",\"moy\":\"xg\",\"f\":\"cdyuibhmfdnbzyd\"},\"id\":\"cjnaeoisrvhmgor\",\"name\":\"fukiscvwmzhw\",\"type\":\"lefaxvxilcbtgn\"},{\"properties\":{\"description\":\"eyqxtjjfzql\"},\"etag\":\"ycavodggxdbees\",\"tags\":{\"wqfbylyrfgiagt\":\"knlrariaawiuagy\",\"zjvusfzldmo\":\"ojocqwogf\"},\"id\":\"xylfsb\",\"name\":\"kadpysown\",\"type\":\"tgkbugrjqctojc\"}]}") + "{\"nextLink\":\"xnavvwxq\",\"value\":[{\"properties\":{\"description\":\"nyowxwlmdjrkvfg\"},\"etag\":\"fvpdbo\",\"tags\":{\"bdeibqipqk\":\"izsjqlhkrr\",\"rwkq\":\"hvxndzwmkrefajpj\",\"sjabibs\":\"yhgbijtjivfx\",\"bjxbkzbzk\":\"stawfsdjpvkv\"},\"id\":\"ncj\",\"name\":\"budurgkakmo\",\"type\":\"zhjjklffhmouwq\"}]}") .toObject(RaiBlockListResult.class); - Assertions.assertEquals("uzqgnjdgkynsc", model.nextLink()); - Assertions.assertEquals("vhxnk", model.value().get(0).properties().description()); - Assertions.assertEquals("zxhi", model.value().get(0).tags().get("frbbc")); + Assertions.assertEquals("xnavvwxq", model.nextLink()); + Assertions.assertEquals("nyowxwlmdjrkvfg", model.value().get(0).properties().description()); + Assertions.assertEquals("izsjqlhkrr", model.value().get(0).tags().get("bdeibqipqk")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java index ec1591857f11..1de7002bfcb2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistConfigTests.java @@ -11,17 +11,17 @@ public final class RaiBlocklistConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiBlocklistConfig model = BinaryData.fromString("{\"blocklistName\":\"mojmsvpkjprvkw\",\"blocking\":true}") + RaiBlocklistConfig model = BinaryData.fromString("{\"blocklistName\":\"wsobqwcsdbn\",\"blocking\":false}") .toObject(RaiBlocklistConfig.class); - Assertions.assertEquals("mojmsvpkjprvkw", model.blocklistName()); - Assertions.assertTrue(model.blocking()); + Assertions.assertEquals("wsobqwcsdbn", model.blocklistName()); + Assertions.assertFalse(model.blocking()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistConfig model = new RaiBlocklistConfig().withBlocklistName("mojmsvpkjprvkw").withBlocking(true); + RaiBlocklistConfig model = new RaiBlocklistConfig().withBlocklistName("wsobqwcsdbn").withBlocking(false); model = BinaryData.fromObject(model).toObject(RaiBlocklistConfig.class); - Assertions.assertEquals("mojmsvpkjprvkw", model.blocklistName()); - Assertions.assertTrue(model.blocking()); + Assertions.assertEquals("wsobqwcsdbn", model.blocklistName()); + Assertions.assertFalse(model.blocking()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java index a68cd491a25d..470aac066e45 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistInnerTests.java @@ -15,20 +15,20 @@ public final class RaiBlocklistInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlocklistInner model = BinaryData.fromString( - "{\"properties\":{\"description\":\"p\"},\"etag\":\"a\",\"tags\":{\"ezwwv\":\"dz\",\"kphhq\":\"iqyuvvfo\"},\"id\":\"kvylauyavl\",\"name\":\"wmn\",\"type\":\"sttijfybvp\"}") + "{\"properties\":{\"description\":\"tg\"},\"etag\":\"lfeadcygq\",\"tags\":{\"fpel\":\"hejhzisx\",\"ujzra\":\"lppvksrpq\",\"bhshfwpracstwity\":\"htwdwrftswibyrcd\"},\"id\":\"evxccedcp\",\"name\":\"md\",\"type\":\"odn\"}") .toObject(RaiBlocklistInner.class); - Assertions.assertEquals("p", model.properties().description()); - Assertions.assertEquals("dz", model.tags().get("ezwwv")); + Assertions.assertEquals("tg", model.properties().description()); + Assertions.assertEquals("hejhzisx", model.tags().get("fpel")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiBlocklistInner model - = new RaiBlocklistInner().withProperties(new RaiBlocklistProperties().withDescription("p")) - .withTags(mapOf("ezwwv", "dz", "kphhq", "iqyuvvfo")); + = new RaiBlocklistInner().withProperties(new RaiBlocklistProperties().withDescription("tg")) + .withTags(mapOf("fpel", "hejhzisx", "ujzra", "lppvksrpq", "bhshfwpracstwity", "htwdwrftswibyrcd")); model = BinaryData.fromObject(model).toObject(RaiBlocklistInner.class); - Assertions.assertEquals("p", model.properties().description()); - Assertions.assertEquals("dz", model.tags().get("ezwwv")); + Assertions.assertEquals("tg", model.properties().description()); + Assertions.assertEquals("hejhzisx", model.tags().get("fpel")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemBulkRequestTests.java index 130ee63f41c6..ca845376bd34 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,20 @@ public final class RaiBlocklistItemBulkRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlocklistItemBulkRequest model = BinaryData - .fromString("{\"name\":\"lmxhomdyn\",\"properties\":{\"pattern\":\"digumbnr\",\"isRegex\":true}}") + .fromString("{\"name\":\"tlstvlzywem\",\"properties\":{\"pattern\":\"ncsdtclusiyp\",\"isRegex\":true}}") .toObject(RaiBlocklistItemBulkRequest.class); - Assertions.assertEquals("lmxhomdyn", model.name()); - Assertions.assertEquals("digumbnr", model.properties().pattern()); + Assertions.assertEquals("tlstvlzywem", model.name()); + Assertions.assertEquals("ncsdtclusiyp", model.properties().pattern()); Assertions.assertTrue(model.properties().isRegex()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistItemBulkRequest model = new RaiBlocklistItemBulkRequest().withName("lmxhomdyn") - .withProperties(new RaiBlocklistItemProperties().withPattern("digumbnr").withIsRegex(true)); + RaiBlocklistItemBulkRequest model = new RaiBlocklistItemBulkRequest().withName("tlstvlzywem") + .withProperties(new RaiBlocklistItemProperties().withPattern("ncsdtclusiyp").withIsRegex(true)); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemBulkRequest.class); - Assertions.assertEquals("lmxhomdyn", model.name()); - Assertions.assertEquals("digumbnr", model.properties().pattern()); + Assertions.assertEquals("tlstvlzywem", model.name()); + Assertions.assertEquals("ncsdtclusiyp", model.properties().pattern()); Assertions.assertTrue(model.properties().isRegex()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java index 706f4662a413..7af79019ab83 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemInnerTests.java @@ -15,22 +15,22 @@ public final class RaiBlocklistItemInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlocklistItemInner model = BinaryData.fromString( - "{\"properties\":{\"pattern\":\"ccybvp\",\"isRegex\":false},\"etag\":\"kudzpxgwj\",\"tags\":{\"yohpfkyrkdbdgiog\":\"agst\"},\"id\":\"kmnwqjnobaiyhddv\",\"name\":\"acegfnmntf\",\"type\":\"mvmemfnczd\"}") + "{\"properties\":{\"pattern\":\"gmhrskdsnfdsdoak\",\"isRegex\":true},\"etag\":\"mkkzevdlhe\",\"tags\":{\"bbejdcngqqm\":\"sdsttwvog\",\"wr\":\"akufgmjz\"},\"id\":\"rtwaenuuzko\",\"name\":\"bminrfdwoyuhhzi\",\"type\":\"iefozbhdmsml\"}") .toObject(RaiBlocklistItemInner.class); - Assertions.assertEquals("ccybvp", model.properties().pattern()); - Assertions.assertFalse(model.properties().isRegex()); - Assertions.assertEquals("agst", model.tags().get("yohpfkyrkdbdgiog")); + Assertions.assertEquals("gmhrskdsnfdsdoak", model.properties().pattern()); + Assertions.assertTrue(model.properties().isRegex()); + Assertions.assertEquals("sdsttwvog", model.tags().get("bbejdcngqqm")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiBlocklistItemInner model = new RaiBlocklistItemInner() - .withProperties(new RaiBlocklistItemProperties().withPattern("ccybvp").withIsRegex(false)) - .withTags(mapOf("yohpfkyrkdbdgiog", "agst")); + .withProperties(new RaiBlocklistItemProperties().withPattern("gmhrskdsnfdsdoak").withIsRegex(true)) + .withTags(mapOf("bbejdcngqqm", "sdsttwvog", "wr", "akufgmjz")); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemInner.class); - Assertions.assertEquals("ccybvp", model.properties().pattern()); - Assertions.assertFalse(model.properties().isRegex()); - Assertions.assertEquals("agst", model.tags().get("yohpfkyrkdbdgiog")); + Assertions.assertEquals("gmhrskdsnfdsdoak", model.properties().pattern()); + Assertions.assertTrue(model.properties().isRegex()); + Assertions.assertEquals("sdsttwvog", model.tags().get("bbejdcngqqm")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java index 80c13a6d5f33..e2f14d5fc339 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemPropertiesTests.java @@ -11,17 +11,18 @@ public final class RaiBlocklistItemPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiBlocklistItemProperties model = BinaryData.fromString("{\"pattern\":\"vbalxlllc\",\"isRegex\":true}") + RaiBlocklistItemProperties model = BinaryData.fromString("{\"pattern\":\"qhoftrmaequiah\",\"isRegex\":true}") .toObject(RaiBlocklistItemProperties.class); - Assertions.assertEquals("vbalxlllc", model.pattern()); + Assertions.assertEquals("qhoftrmaequiah", model.pattern()); Assertions.assertTrue(model.isRegex()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistItemProperties model = new RaiBlocklistItemProperties().withPattern("vbalxlllc").withIsRegex(true); + RaiBlocklistItemProperties model + = new RaiBlocklistItemProperties().withPattern("qhoftrmaequiah").withIsRegex(true); model = BinaryData.fromObject(model).toObject(RaiBlocklistItemProperties.class); - Assertions.assertEquals("vbalxlllc", model.pattern()); + Assertions.assertEquals("qhoftrmaequiah", model.pattern()); Assertions.assertTrue(model.isRegex()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java index 126b4e86d815..9a2b5fe53001 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchAddWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RaiBlocklistItemsBatchAddWithResponseMockTests { @Test public void testBatchAddWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"d\"},\"etag\":\"idt\",\"tags\":{\"yznm\":\"m\",\"oxuwhttnzqsaqm\":\"gcdogcvucgy\",\"dzzmssgpgv\":\"bgszplusdek\",\"squnycwztlv\":\"kyejidbdq\"},\"id\":\"snmr\",\"name\":\"kyjtrepw\",\"type\":\"wfkcauxuvavcpf\"}"; + = "{\"properties\":{\"description\":\"xbydesqlvgecpw\"},\"etag\":\"ljtzx\",\"tags\":{\"pjxvazyjf\":\"sdobygoogxq\",\"djnosdkvibf\":\"csa\",\"trnzpducdaaktu\":\"sgm\",\"oimyfpqd\":\"ktz\"},\"id\":\"kpp\",\"name\":\"wyytfvpctf\",\"type\":\"ikff\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,13 +34,19 @@ public void testBatchAddWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklist response = manager.raiBlocklistItems() - .batchAddWithResponse("zjgcfjfx", "bwjjirmuydgf", "tmdofgeoag", - Arrays.asList(new RaiBlocklistItemBulkRequest().withName("ftnxodwxmdajwiy") - .withProperties(new RaiBlocklistItemProperties().withPattern("sevmdmzenlrstg").withIsRegex(false))), + .batchAddWithResponse("wi", "qtow", "h", Arrays.asList( + new RaiBlocklistItemBulkRequest().withName("coybaj") + .withProperties(new RaiBlocklistItemProperties().withPattern("ubfajc").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("qwmchqohtfxc") + .withProperties(new RaiBlocklistItemProperties().withPattern("ukiymjzpwdlvwt").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("osaonhqnamppu") + .withProperties(new RaiBlocklistItemProperties().withPattern("ssaekewnaze").withIsRegex(true)), + new RaiBlocklistItemBulkRequest().withName("aj") + .withProperties(new RaiBlocklistItemProperties().withPattern("izyddcvxodk").withIsRegex(false))), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("d", response.properties().description()); - Assertions.assertEquals("m", response.tags().get("yznm")); + Assertions.assertEquals("xbydesqlvgecpw", response.properties().description()); + Assertions.assertEquals("sdobygoogxq", response.tags().get("pjxvazyjf")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java index 066b5a3bba42..3d9fdccfc108 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsBatchDeleteWithResponseMockTests.java @@ -29,8 +29,8 @@ public void testBatchDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.raiBlocklistItems() - .batchDeleteWithResponse("dofuckclb", "xlu", "vsolzwil", - Arrays.asList("gojfsqe", "uuxjxhfx", "jwpdkkt", "mbmxbmbrwgzzxl"), com.azure.core.util.Context.NONE); + .batchDeleteWithResponse("fgkuh", "nwhvuldbkkejj", "jigawgaz", + Arrays.asList("jqifhujjsbcml", "aahzbhuroolkol", "rhhmojusu"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java index c369f61cee6f..cd03b6879277 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RaiBlocklistItemsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"pattern\":\"klajvcfocz\",\"isRegex\":false},\"etag\":\"jovtkwxnhwhhn\",\"tags\":{\"ee\":\"zaa\",\"jeatea\":\"pmjen\"},\"id\":\"crxoxdj\",\"name\":\"l\",\"type\":\"n\"}"; + = "{\"properties\":{\"pattern\":\"dlgyqixokwtjawh\",\"isRegex\":true},\"etag\":\"qfqqdlcvmyolc\",\"tags\":{\"z\":\"jchtvsnvlaqd\",\"othymgobl\":\"zawatuwqkokbc\"},\"id\":\"snwgwimaa\",\"name\":\"eakhtmhobcya\",\"type\":\"rfvqtvkhgvo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,15 +34,15 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklistItem response = manager.raiBlocklistItems() - .define("vwglgwzpv") - .withExistingRaiBlocklist("bkhxsdplaum", "dmhweqjfyxydgto", "vq") - .withTags(mapOf("q", "qgsoyqyxyjrc", "eaoo", "bispglqjoxtdah")) - .withProperties(new RaiBlocklistItemProperties().withPattern("glhpse").withIsRegex(false)) + .define("xkukm") + .withExistingRaiBlocklist("gfjzcvaax", "ia", "ahfxwccok") + .withTags(mapOf("nkgzukwdr", "olnthb", "jmlfuyfjbp", "zkjthfceyjn", "yjmqrf", "iddhlrufzc")) + .withProperties(new RaiBlocklistItemProperties().withPattern("ynuhh").withIsRegex(true)) .create(); - Assertions.assertEquals("klajvcfocz", response.properties().pattern()); - Assertions.assertFalse(response.properties().isRegex()); - Assertions.assertEquals("zaa", response.tags().get("ee")); + Assertions.assertEquals("dlgyqixokwtjawh", response.properties().pattern()); + Assertions.assertTrue(response.properties().isRegex()); + Assertions.assertEquals("jchtvsnvlaqd", response.tags().get("z")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java index 9fae9d545564..3803fa715492 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RaiBlocklistItemsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"pattern\":\"xdtzcqipsdudgco\",\"isRegex\":false},\"etag\":\"ehxlantolamlb\",\"tags\":{\"zdqiqdlrat\":\"xkqllczipvwdtgc\",\"auwxsuykznhrfgsl\":\"kwx\",\"eo\":\"lhpryjfzihuio\",\"dd\":\"pajtfeyvkbd\"},\"id\":\"hdccxb\",\"name\":\"uuqutkzwtjwwgu\",\"type\":\"ytijcxfnond\"}"; + = "{\"properties\":{\"pattern\":\"xximwgxq\",\"isRegex\":false},\"etag\":\"otjgxieqfkyfhi\",\"tags\":{\"jbmgeumexmjbxcb\":\"aqupbyynvskp\",\"iscr\":\"cwkqmtxape\",\"trqrejda\":\"ilg\",\"lfxlmuifmuadj\":\"huqimlda\"},\"id\":\"snc\",\"name\":\"kiioshj\",\"type\":\"cz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklistItem response = manager.raiBlocklistItems() - .getWithResponse("ovbooqbmdqrxy", "laetscflwtjdtlr", "e", "ooy", com.azure.core.util.Context.NONE) + .getWithResponse("yimyccgrvk", "xzznnui", "ersejeg", "rkjguwrjmwvvbt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xdtzcqipsdudgco", response.properties().pattern()); + Assertions.assertEquals("xximwgxq", response.properties().pattern()); Assertions.assertFalse(response.properties().isRegex()); - Assertions.assertEquals("xkqllczipvwdtgc", response.tags().get("zdqiqdlrat")); + Assertions.assertEquals("aqupbyynvskp", response.tags().get("jbmgeumexmjbxcb")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java index 81d9e186f0ba..d5b068f9a08c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistItemsListMockTests.java @@ -22,7 +22,7 @@ public final class RaiBlocklistItemsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"pattern\":\"n\",\"isRegex\":true},\"etag\":\"dlyseidtoa\",\"tags\":{\"qfdpf\":\"prytgrhz\"},\"id\":\"rptvcshtkutzcttb\",\"name\":\"gdirda\",\"type\":\"m\"}]}"; + = "{\"value\":[{\"properties\":{\"pattern\":\"kxpylrwox\",\"isRegex\":false},\"etag\":\"syxjijeyp\",\"tags\":{\"kdkgawqwjxildfkc\":\"bker\",\"oisfmnaybdjn\":\"feygzqp\"},\"id\":\"mentqo\",\"name\":\"tw\",\"type\":\"ymxymu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ 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.raiBlocklistItems().list("gjdydhqkk", "bjuckc", "tuqbhp", com.azure.core.util.Context.NONE); + PagedIterable response = manager.raiBlocklistItems() + .list("tybnxgztlcgctj", "hfjv", "ywjzebecuvlbefvw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("n", response.iterator().next().properties().pattern()); - Assertions.assertTrue(response.iterator().next().properties().isRegex()); - Assertions.assertEquals("prytgrhz", response.iterator().next().tags().get("qfdpf")); + Assertions.assertEquals("kxpylrwox", response.iterator().next().properties().pattern()); + Assertions.assertFalse(response.iterator().next().properties().isRegex()); + Assertions.assertEquals("bker", response.iterator().next().tags().get("kdkgawqwjxildfkc")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java index 6263f704ea01..b3993b839851 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistPropertiesTests.java @@ -12,14 +12,14 @@ public final class RaiBlocklistPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiBlocklistProperties model - = BinaryData.fromString("{\"description\":\"krsgsgb\"}").toObject(RaiBlocklistProperties.class); - Assertions.assertEquals("krsgsgb", model.description()); + = BinaryData.fromString("{\"description\":\"xltjcvnhltiu\"}").toObject(RaiBlocklistProperties.class); + Assertions.assertEquals("xltjcvnhltiu", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiBlocklistProperties model = new RaiBlocklistProperties().withDescription("krsgsgb"); + RaiBlocklistProperties model = new RaiBlocklistProperties().withDescription("xltjcvnhltiu"); model = BinaryData.fromObject(model).toObject(RaiBlocklistProperties.class); - Assertions.assertEquals("krsgsgb", model.description()); + Assertions.assertEquals("xltjcvnhltiu", model.description()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java index bf0bce052e44..08a6edc0d727 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RaiBlocklistsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"ffhtjnw\"},\"etag\":\"stfjxtvl\",\"tags\":{\"iomxeezw\":\"qfcwr\",\"egmxdbsohc\":\"hjmbji\",\"z\":\"hpyvdkgdet\",\"ekwuyckyvn\":\"canzb\"},\"id\":\"smuffiwjb\",\"name\":\"tvbpzujqj\",\"type\":\"otdxpo\"}"; + = "{\"properties\":{\"description\":\"jgwecywnfyszzacz\"},\"etag\":\"nqbdnddbboz\",\"tags\":{\"eihtpmnoejh\":\"rmkjmyitrchwudlx\",\"kydpmypgfqvmtywh\":\"lfmsibzoyrfg\",\"xpejpewpy\":\"a\",\"zgeuqxbpiat\":\"lfxampqc\"},\"id\":\"aujegqdtadra\",\"name\":\"gddhjkrukizyhgs\",\"type\":\"tnqsktx\"}"; 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("eylqlocvvujexayg") - .withExistingAccount("vhxowpcbapnpxra", "awbmpsp") - .withTags(mapOf("wjopackyhydvik", "zlvssq", "illxg", "fngp", "dye", "scizwgsoriobijei")) - .withProperties(new RaiBlocklistProperties().withDescription("kgjn")) + .define("dsaidjanormovdxx") + .withExistingAccount("suxxc", "bmyqjog") + .withTags(mapOf("egrhrh", "lkyozdsfzj", "xvgjbfi", "slejtvxj")) + .withProperties(new RaiBlocklistProperties().withDescription("tujmoil")) .create(); - Assertions.assertEquals("ffhtjnw", response.properties().description()); - Assertions.assertEquals("qfcwr", response.tags().get("iomxeezw")); + Assertions.assertEquals("jgwecywnfyszzacz", response.properties().description()); + Assertions.assertEquals("rmkjmyitrchwudlx", response.tags().get("eihtpmnoejh")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java index 2ae238f27d0b..a46a8a8c0ae6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RaiBlocklistsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"description\":\"oyqxlunkf\"},\"etag\":\"mcxqqxmyzklao\",\"tags\":{\"qr\":\"ohrvmz\",\"znllaslk\":\"zadi\"},\"id\":\"hjqjpv\",\"name\":\"aihxjtgzgtaiywbq\",\"type\":\"roigbsfsgsaenwld\"}"; + = "{\"properties\":{\"description\":\"pxecxqnwhscozaw\"},\"etag\":\"gxsmpknpwirfljfe\",\"tags\":{\"xudnmckap\":\"ou\",\"cdgmoqu\":\"hknqiijge\"},\"id\":\"ihkkyowl\",\"name\":\"jouw\",\"type\":\"ldxwhieproqksm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiBlocklist response = manager.raiBlocklists() - .getWithResponse("ryyinz", "dolrndw", "bvxvza", com.azure.core.util.Context.NONE) + .getWithResponse("gxkfnaoaqymhccto", "uowyrnskbyhqu", "czygxv", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("oyqxlunkf", response.properties().description()); - Assertions.assertEquals("ohrvmz", response.tags().get("qr")); + Assertions.assertEquals("pxecxqnwhscozaw", response.properties().description()); + Assertions.assertEquals("ou", response.tags().get("xudnmckap")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java index 65968458b534..df17163913c8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiBlocklistsListMockTests.java @@ -22,7 +22,7 @@ public final class RaiBlocklistsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"description\":\"ldsxebuhsxrz\"},\"etag\":\"gsdaluyckh\",\"tags\":{\"s\":\"ouxly\",\"dcaytujraxd\":\"uerbgpxebjl\",\"gtnse\":\"pryj\"},\"id\":\"yljurkeposehqqyl\",\"name\":\"pctwjwdsdlzmkx\",\"type\":\"rxxxoteehkhowgom\"}]}"; + = "{\"value\":[{\"properties\":{\"description\":\"rqxw\"},\"etag\":\"jtdrhutf\",\"tags\":{\"szxvctkbbxuhar\":\"dtxopgehpadkmdzg\"},\"id\":\"ir\",\"name\":\"ccla\",\"type\":\"voyn\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiBlocklists().list("mhljqlxspm", "jc", com.azure.core.util.Context.NONE); + = manager.raiBlocklists().list("xmcvprstvkitbfjt", "yotnplfacqo", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ldsxebuhsxrz", response.iterator().next().properties().description()); - Assertions.assertEquals("ouxly", response.iterator().next().tags().get("s")); + Assertions.assertEquals("rqxw", response.iterator().next().properties().description()); + Assertions.assertEquals("dtxopgehpadkmdzg", response.iterator().next().tags().get("szxvctkbbxuhar")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java index 240ba9cefc36..2be058d4101e 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterInnerTests.java @@ -13,10 +13,10 @@ public final class RaiContentFilterInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiContentFilterInner model = BinaryData.fromString( - "{\"properties\":{\"name\":\"wm\",\"isMultiLevelFilter\":true,\"source\":\"Prompt\"},\"id\":\"jscjpahl\",\"name\":\"veabfqxnmwmqtib\",\"type\":\"yijddtvqcttad\"}") + "{\"properties\":{\"name\":\"rrilbywdxsmic\",\"isMultiLevelFilter\":true,\"source\":\"PreToolCall\"},\"id\":\"cj\",\"name\":\"n\",\"type\":\"nszqujiz\"}") .toObject(RaiContentFilterInner.class); - Assertions.assertEquals("wm", model.properties().name()); + Assertions.assertEquals("rrilbywdxsmic", model.properties().name()); Assertions.assertTrue(model.properties().isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.properties().source()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.properties().source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java index b5fd928d24c7..8c389fe6f2a1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterListResultTests.java @@ -13,11 +13,11 @@ public final class RaiContentFilterListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiContentFilterListResult model = BinaryData.fromString( - "{\"nextLink\":\"pndzaapmudqmeq\",\"value\":[{\"properties\":{\"name\":\"bu\",\"isMultiLevelFilter\":true,\"source\":\"Prompt\"},\"id\":\"beybpmzznrtffyaq\",\"name\":\"tmhheioqa\",\"type\":\"hvseufuqyrx\"}]}") + "{\"nextLink\":\"hjoxo\",\"value\":[{\"properties\":{\"name\":\"sbpimlq\",\"isMultiLevelFilter\":true,\"source\":\"Completion\"},\"id\":\"gxxlxsffgcvizq\",\"name\":\"dwl\",\"type\":\"w\"},{\"properties\":{\"name\":\"upfgfbk\",\"isMultiLevelFilter\":true,\"source\":\"PostRun\"},\"id\":\"gkfmins\",\"name\":\"owzfttsttkt\",\"type\":\"ahbqactxtgzuk\"}]}") .toObject(RaiContentFilterListResult.class); - Assertions.assertEquals("pndzaapmudqmeq", model.nextLink()); - Assertions.assertEquals("bu", model.value().get(0).properties().name()); + Assertions.assertEquals("hjoxo", model.nextLink()); + Assertions.assertEquals("sbpimlq", model.value().get(0).properties().name()); Assertions.assertTrue(model.value().get(0).properties().isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.value().get(0).properties().source()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, model.value().get(0).properties().source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFilterPropertiesTests.java index 099168bc25a7..9cad3939e786 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\":\"aeukm\",\"isMultiLevelFilter\":true,\"source\":\"PreToolCall\"}") - .toObject(RaiContentFilterProperties.class); - Assertions.assertEquals("aeukm", model.name()); - Assertions.assertTrue(model.isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.source()); + RaiContentFilterProperties model = BinaryData + .fromString("{\"name\":\"oqytibyowbblgy\",\"isMultiLevelFilter\":false,\"source\":\"Completion\"}") + .toObject(RaiContentFilterProperties.class); + Assertions.assertEquals("oqytibyowbblgy", model.name()); + Assertions.assertFalse(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 3016da1bcf75..387607c7d727 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class RaiContentFiltersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"name\":\"gucbmt\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"nstjcyyuvtz\",\"name\":\"xzhclec\",\"type\":\"wtzqzcloyhy\"}"; + = "{\"properties\":{\"name\":\"strkzxsgtznsvl\",\"isMultiLevelFilter\":false,\"source\":\"Prompt\"},\"id\":\"pimyndnoxax\",\"name\":\"rqaqotn\",\"type\":\"dxolousdv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiContentFilter response = manager.raiContentFilters() - .getWithResponse("vtjr", "eikmwlaoklfni", com.azure.core.util.Context.NONE) + .getWithResponse("klqiyndveqel", "b", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gucbmt", response.properties().name()); + Assertions.assertEquals("strkzxsgtznsvl", response.properties().name()); Assertions.assertFalse(response.properties().isMultiLevelFilter()); Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().source()); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java index 78abbc66d963..4661930a435c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiContentFiltersListMockTests.java @@ -23,7 +23,7 @@ public final class RaiContentFiltersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"name\":\"yorjplbchych\",\"isMultiLevelFilter\":true,\"source\":\"PreRun\"},\"id\":\"bqvum\",\"name\":\"xqjsiuepm\",\"type\":\"xfnzlpq\"}]}"; + = "{\"value\":[{\"properties\":{\"name\":\"m\",\"isMultiLevelFilter\":false,\"source\":\"PostToolCall\"},\"id\":\"pizfulgyc\",\"name\":\"sd\",\"type\":\"tqgkujd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,10 +33,11 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiContentFilters().list("pgidhzgyresgzsdt", com.azure.core.util.Context.NONE); + = manager.raiContentFilters().list("g", com.azure.core.util.Context.NONE); - Assertions.assertEquals("yorjplbchych", response.iterator().next().properties().name()); - Assertions.assertTrue(response.iterator().next().properties().isMultiLevelFilter()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.iterator().next().properties().source()); + Assertions.assertEquals("m", response.iterator().next().properties().name()); + Assertions.assertFalse(response.iterator().next().properties().isMultiLevelFilter()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, + response.iterator().next().properties().source()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressManagedIdentityRefTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressManagedIdentityRefTests.java deleted file mode 100644 index 1e3b7ef15687..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressManagedIdentityRefTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressManagedIdentityRef; -import org.junit.jupiter.api.Assertions; - -public final class RaiEgressManagedIdentityRefTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RaiEgressManagedIdentityRef model - = BinaryData.fromString("{\"resource\":\"hvcyyysfg\",\"format\":\"tcubiipuipwoqonm\"}") - .toObject(RaiEgressManagedIdentityRef.class); - Assertions.assertEquals("hvcyyysfg", model.resource()); - Assertions.assertEquals("tcubiipuipwoqonm", model.format()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RaiEgressManagedIdentityRef model - = new RaiEgressManagedIdentityRef().withResource("hvcyyysfg").withFormat("tcubiipuipwoqonm"); - model = BinaryData.fromObject(model).toObject(RaiEgressManagedIdentityRef.class); - Assertions.assertEquals("hvcyyysfg", model.resource()); - Assertions.assertEquals("tcubiipuipwoqonm", model.format()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressPolicyConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressPolicyConfigTests.java deleted file mode 100644 index b2ecfa53e7fb..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressPolicyConfigTests.java +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderOperation; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderTransform; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderValueRef; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressScheme; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class RaiEgressPolicyConfigTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RaiEgressPolicyConfig model = BinaryData.fromString( - "{\"mode\":\"Enforced\",\"defaultAction\":\"Deny\",\"description\":\"fnhtbaxkgxyw\",\"rules\":[{\"name\":\"pyklyhpluodpvru\",\"description\":\"lgzi\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"stgktst\",\"path\":\"xeclzedqbcvhzlhp\"},\"action\":{\"actionType\":\"Transform\",\"headers\":[{\"operation\":\"Remove\",\"name\":\"dlwwqfbumlkxt\",\"value\":\"jfsmlmbtxhwgfwsr\",\"valueRef\":{}},{\"operation\":\"Remove\",\"name\":\"coezbrhubskh\",\"value\":\"ygo\",\"valueRef\":{}}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"qjbvleorfmlu\",\"path\":\"tqzfavyv\"}}},{\"name\":\"qqybarye\",\"description\":\"yjkqabqgzslesjcb\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"ntiew\",\"path\":\"cv\"},\"action\":{\"actionType\":\"Transform\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"behwagohb\",\"value\":\"fkmr\",\"valueRef\":{}}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"mxtd\",\"path\":\"futacoebjvewzc\"}}}]}") - .toObject(RaiEgressPolicyConfig.class); - Assertions.assertEquals(RaiEgressMode.ENFORCED, model.mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.defaultAction()); - Assertions.assertEquals("fnhtbaxkgxyw", model.description()); - Assertions.assertEquals("pyklyhpluodpvru", model.rules().get(0).name()); - Assertions.assertEquals("lgzi", model.rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, model.rules().get(0).ruleType()); - Assertions.assertEquals("stgktst", model.rules().get(0).match().host()); - Assertions.assertEquals("xeclzedqbcvhzlhp", model.rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, model.rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.REMOVE, - model.rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("dlwwqfbumlkxt", model.rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals("jfsmlmbtxhwgfwsr", model.rules().get(0).action().headers().get(0).value()); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.rules().get(0).action().rewrite().scheme()); - Assertions.assertEquals("qjbvleorfmlu", model.rules().get(0).action().rewrite().host()); - Assertions.assertEquals("tqzfavyv", model.rules().get(0).action().rewrite().path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RaiEgressPolicyConfig model = new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.DENY) - .withDescription("fnhtbaxkgxyw") - .withRules(Arrays - .asList( - new RaiEgressRule().withName("pyklyhpluodpvru") - .withDescription("lgzi") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("stgktst").withPath("xeclzedqbcvhzlhp")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM) - .withHeaders(Arrays.asList( - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) - .withName("dlwwqfbumlkxt") - .withValue("jfsmlmbtxhwgfwsr") - .withValueRef(new RaiEgressHeaderValueRef()), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) - .withName("coezbrhubskh") - .withValue("ygo") - .withValueRef(new RaiEgressHeaderValueRef()))) - .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) - .withHost("qjbvleorfmlu") - .withPath("tqzfavyv"))), - new RaiEgressRule().withName("qqybarye") - .withDescription("yjkqabqgzslesjcb") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("ntiew").withPath("cv")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM) - .withHeaders(Arrays - .asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("behwagohb") - .withValue("fkmr") - .withValueRef(new RaiEgressHeaderValueRef()))) - .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) - .withHost("mxtd") - .withPath("futacoebjvewzc"))))); - model = BinaryData.fromObject(model).toObject(RaiEgressPolicyConfig.class); - Assertions.assertEquals(RaiEgressMode.ENFORCED, model.mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.defaultAction()); - Assertions.assertEquals("fnhtbaxkgxyw", model.description()); - Assertions.assertEquals("pyklyhpluodpvru", model.rules().get(0).name()); - Assertions.assertEquals("lgzi", model.rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, model.rules().get(0).ruleType()); - Assertions.assertEquals("stgktst", model.rules().get(0).match().host()); - Assertions.assertEquals("xeclzedqbcvhzlhp", model.rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, model.rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.REMOVE, - model.rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("dlwwqfbumlkxt", model.rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals("jfsmlmbtxhwgfwsr", model.rules().get(0).action().headers().get(0).value()); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.rules().get(0).action().rewrite().scheme()); - Assertions.assertEquals("qjbvleorfmlu", model.rules().get(0).action().rewrite().host()); - Assertions.assertEquals("tqzfavyv", model.rules().get(0).action().rewrite().path()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRewriteTargetTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRewriteTargetTests.java deleted file mode 100644 index 414173b8fcc1..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRewriteTargetTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressScheme; -import org.junit.jupiter.api.Assertions; - -public final class RaiEgressRewriteTargetTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RaiEgressRewriteTarget model = BinaryData.fromString("{\"scheme\":\"https\",\"host\":\"k\",\"path\":\"zshq\"}") - .toObject(RaiEgressRewriteTarget.class); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.scheme()); - Assertions.assertEquals("k", model.host()); - Assertions.assertEquals("zshq", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RaiEgressRewriteTarget model - = new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS).withHost("k").withPath("zshq"); - model = BinaryData.fromObject(model).toObject(RaiEgressRewriteTarget.class); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.scheme()); - Assertions.assertEquals("k", model.host()); - Assertions.assertEquals("zshq", model.path()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRuleMatchTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRuleMatchTests.java deleted file mode 100644 index 5800ff3ba05b..000000000000 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiEgressRuleMatchTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.cognitiveservices.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch; -import org.junit.jupiter.api.Assertions; - -public final class RaiEgressRuleMatchTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - RaiEgressRuleMatch model = BinaryData.fromString("{\"host\":\"qchiszep\",\"path\":\"bjcrxgibbdaxco\"}") - .toObject(RaiEgressRuleMatch.class); - Assertions.assertEquals("qchiszep", model.host()); - Assertions.assertEquals("bjcrxgibbdaxco", model.path()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - RaiEgressRuleMatch model = new RaiEgressRuleMatch().withHost("qchiszep").withPath("bjcrxgibbdaxco"); - model = BinaryData.fromObject(model).toObject(RaiEgressRuleMatch.class); - Assertions.assertEquals("qchiszep", model.host()); - Assertions.assertEquals("bjcrxgibbdaxco", model.path()); - } -} diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesCreateOrUpdateWithResponseMockTests.java index 6135afb9b57b..d489a703c8a0 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 @@ -13,14 +13,6 @@ import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; import com.azure.resourcemanager.cognitiveservices.models.RaiActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; @@ -40,7 +32,7 @@ public final class RaiPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"jstbhemhcucsqsnx\",\"contentFilters\":[{\"name\":\"feapdrbzyvbsuadu\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"RETRY\"},{\"name\":\"zh\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"dhfztlra\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"kyhudbkuwpzqxl\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"Completion\",\"safetyProviderName\":\"jvxfaqufqizjvppw\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"yjmjjxizxpxhnzls\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Deny\",\"description\":\"jtyqpd\",\"rules\":[{\"name\":\"egh\",\"description\":\"ldsvc\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}}]}},\"etag\":\"h\",\"tags\":{\"jqhddwvmqxiyoo\":\"mjzucwwme\",\"aix\":\"yfozkbnzxbypfqp\"},\"id\":\"grkkderfrswq\",\"name\":\"kwepwo\",\"type\":\"ggicwnxhtfmcqbs\"}"; + = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"hpjhxpcv\",\"contentFilters\":[{\"name\":\"eitaneqadynzjahw\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"None\"},{\"name\":\"eevsa\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostToolCall\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"Prompt\",\"blocklistName\":\"glcxkxg\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"ysemtmesrfsvpin\",\"blocking\":false},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"tdiswxspvckojaz\",\"blocking\":false}]},\"etag\":\"pftesubzpvpvdy\",\"tags\":{\"nxmlbmuoswk\":\"covqseusrfjbdxzf\",\"yzlwhbwzjnufzrf\":\"mdihdcy\",\"qgnnbz\":\"m\",\"ubjtvgjsxmtyjjv\":\"tftedz\"},\"id\":\"dpw\",\"name\":\"obt\",\"type\":\"phtitsffofwanmhk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -50,82 +42,67 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiPolicy response = manager.raiPolicies() - .define("qx") - .withExistingAccount("wkslvlized", "biabvnsrgekz") - .withTags(mapOf("tgctxe", "ad", "fnzzryizwbxg", "tvgwyurbe")) - .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.BLOCKING) - .withBasePolicyName("wkhojqttbspvkhg") + .define("sergdtpe") + .withExistingAccount("ehaqidoyzltgio", "qoqpepiaeap") + .withTags(mapOf("bkut", "v", "ynbpvzlqywauy", "umltwjflu", "hmocgjshg", "njc", "rhwv", "u")) + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) + .withBasePolicyName("qwbp") .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("sgyzstujrzxr") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.MEDIUM) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.NONE), - new RaiPolicyContentFilter().withName("iiit") + new RaiPolicyContentFilter().withName("jubkhjozfymcwmb") .withEnabled(true) .withSeverityThreshold(ContentLevel.LOW) .withBlocking(false) .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.BLOCKING))) - .withCustomBlocklists(Arrays.asList(new CustomBlocklistConfig().withBlocklistName("azcsozjvx") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL))) - .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("vt") + .withAction(RaiActionType.RETRY), + new RaiPolicyContentFilter().withName("psejbsvsiaies") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.LOW) .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_RUN) + .withAction(RaiActionType.BLOCKING))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("jlnldpxottdiiaoc") + .withBlocking(false) .withSource(RaiPolicyContentSource.PRE_RUN), - new SafetyProviderConfig().withSafetyProviderName("zyxwhoe") + new CustomBlocklistConfig().withBlocklistName("hweebiph") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_RUN), + new CustomBlocklistConfig().withBlocklistName("qwoqs") .withBlocking(false) .withSource(RaiPolicyContentSource.PROMPT))) - .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.ALLOW) - .withDescription("ysfpnimtwu") - .withRules(Arrays.asList( - new RaiEgressRule().withName("uegn") - .withDescription("mnfeub") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.TRANSFORM)), - new RaiEgressRule().withName("r") - .withDescription("fugiphrrkuu") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.REWRITE)), - new RaiEgressRule().withName("urhzzf") - .withDescription("ueoqusvwluj") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.REWRITE)))))) + .withSafetyProviders(Arrays.asList( + new SafetyProviderConfig().withSafetyProviderName("ybspijhfrzg") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new SafetyProviderConfig().withSafetyProviderName("wu") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_RUN), + new SafetyProviderConfig().withSafetyProviderName("mo") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_RUN), + new SafetyProviderConfig().withSafetyProviderName("ilz") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL)))) .create(); - Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.properties().mode()); - Assertions.assertEquals("jstbhemhcucsqsnx", response.properties().basePolicyName()); - Assertions.assertEquals("feapdrbzyvbsuadu", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.properties().mode()); + Assertions.assertEquals("hpjhxpcv", response.properties().basePolicyName()); + Assertions.assertEquals("eitaneqadynzjahw", 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.assertEquals(ContentLevel.LOW, response.properties().contentFilters().get(0).severityThreshold()); Assertions.assertFalse(response.properties().contentFilters().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.RETRY, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("dhfztlra", response.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, + Assertions.assertEquals(RaiActionType.NONE, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("glcxkxg", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("jvxfaqufqizjvppw", - response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals("ysemtmesrfsvpin", response.properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.AUDIT, response.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, response.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("jtyqpd", response.properties().egressPolicy().description()); - Assertions.assertEquals("egh", response.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("ldsvc", response.properties().egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, response.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, - response.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("mjzucwwme", response.tags().get("jqhddwvmqxiyoo")); + Assertions.assertEquals("covqseusrfjbdxzf", response.tags().get("nxmlbmuoswk")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesGetWithResponseMockTests.java index 3a7cbe9a42e0..1bb8dc5ec529 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 @@ -12,10 +12,6 @@ import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; import com.azure.resourcemanager.cognitiveservices.models.RaiActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; @@ -29,7 +25,7 @@ public final class RaiPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"fjxokye\",\"contentFilters\":[{\"name\":\"svfnkwm\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"BLOCKING\"},{\"name\":\"ugjqyckgtxkrdt\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"zoonsv\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"whdyslbklglm\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"yqshwyqxridtt\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"qwqueuuy\",\"rules\":[{\"name\":\"pziiz\",\"description\":\"jyk\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"zefkhkqtwqlepjj\",\"description\":\"c\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"zcntogffjwajnrtw\",\"description\":\"aqkifmxawostfz\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}}]}},\"etag\":\"m\",\"tags\":{\"ypvndrw\":\"cfvdscnhemvwfnqq\"},\"id\":\"od\",\"name\":\"ggrssgwjfkain\",\"type\":\"muymvec\"}"; + = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"ugdybnhrxlel\",\"contentFilters\":[{\"name\":\"eizcpih\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PreToolCall\",\"action\":\"BLOCKING\"},{\"name\":\"aydb\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"rlgwqkpmmzpsta\",\"blocking\":true},{\"source\":\"PreRun\",\"blocklistName\":\"ubmomsgvvjh\",\"blocking\":true},{\"source\":\"PostRun\",\"blocklistName\":\"hewjjmajnkdflqio\",\"blocking\":true},{\"source\":\"PreRun\",\"blocklistName\":\"kzfzqxjosho\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PreToolCall\",\"safetyProviderName\":\"pkhx\",\"blocking\":true},{\"source\":\"Completion\",\"safetyProviderName\":\"lwkbfok\",\"blocking\":true}]},\"etag\":\"p\",\"tags\":{\"yfcemftz\":\"ufgjblcdr\",\"ekdfqnhttwd\":\"yykyalu\",\"mhmnulwemp\":\"wrczfjjnnuxxrk\",\"usnaw\":\"cifrhjulrsulwzpf\"},\"id\":\"hgz\",\"name\":\"tfriyrgko\",\"type\":\"kvzwxxyxhighctx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,33 +35,26 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiPolicy response = manager.raiPolicies() - .getWithResponse("muafmczfedyuepsv", "lti", "ajjvywe", com.azure.core.util.Context.NONE) + .getWithResponse("qelwgdhuruzytza", "ogatmoljiy", "mpinmzvfkneerzzt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(RaiPolicyMode.BLOCKING, response.properties().mode()); - Assertions.assertEquals("fjxokye", response.properties().basePolicyName()); - Assertions.assertEquals("svfnkwm", response.properties().contentFilters().get(0).name()); - Assertions.assertTrue(response.properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.MEDIUM, response.properties().contentFilters().get(0).severityThreshold()); - Assertions.assertTrue(response.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.properties().mode()); + Assertions.assertEquals("ugdybnhrxlel", response.properties().basePolicyName()); + Assertions.assertEquals("eizcpih", 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.assertFalse(response.properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + response.properties().contentFilters().get(0).source()); Assertions.assertEquals(RaiActionType.BLOCKING, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("zoonsv", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals("rlgwqkpmmzpsta", response.properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("whdyslbklglm", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals("pkhx", response.properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertTrue(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.AUDIT, response.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, response.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("qwqueuuy", response.properties().egressPolicy().description()); - Assertions.assertEquals("pziiz", response.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("jyk", response.properties().egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, response.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, - response.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("cfvdscnhemvwfnqq", response.tags().get("ypvndrw")); + Assertions.assertEquals("ufgjblcdr", response.tags().get("yfcemftz")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPoliciesListMockTests.java index cc717da77a86..7b56e00cbf69 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 @@ -13,10 +13,6 @@ import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; import com.azure.resourcemanager.cognitiveservices.models.RaiActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; @@ -30,7 +26,7 @@ public final class RaiPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"lbz\",\"contentFilters\":[{\"name\":\"n\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"HITL\"},{\"name\":\"nynpameudpabcre\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"RETRY\"},{\"name\":\"asormrexzvdube\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"RETRY\"},{\"name\":\"ovsdqhzrtdbakrli\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"ngygnhrko\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreToolCall\",\"safetyProviderName\":\"opggorwjoqtrotp\",\"blocking\":false},{\"source\":\"Completion\",\"safetyProviderName\":\"yrlmwkptsk\",\"blocking\":false},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"xccb\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"ookbpu\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Deny\",\"description\":\"mlwktfo\",\"rules\":[{\"name\":\"royrdurxf\",\"description\":\"qjimejtgzjxxlfej\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}},{\"name\":\"loiwy\",\"description\":\"yzivrm\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"qlhchwhrktjle\",\"description\":\"ibfiplhxfnsm\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"wlyeyz\",\"description\":\"dsqcmhnxl\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}}]}},\"etag\":\"dmac\",\"tags\":{\"qplehmumkzdllczd\":\"vnrpbjrmvg\",\"ivrakfrryn\":\"rwnhkgqggoxsst\",\"mjpequlr\":\"cwmhlymgnukxrk\",\"dwnhczbutoucgjti\":\"zaudgjtfbclakkuc\"},\"id\":\"way\",\"name\":\"icqqw\",\"type\":\"v\"}]}"; + = "{\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"kgqaboo\",\"contentFilters\":[{\"name\":\"sgyc\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"RETRY\"},{\"name\":\"aeohpjhgejkbvhh\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"HITL\"},{\"name\":\"bkhxj\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"BLOCKING\"},{\"name\":\"nkobektmbozom\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"HITL\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"znuxkeuairaabmdl\",\"blocking\":true},{\"source\":\"PreToolCall\",\"blocklistName\":\"f\",\"blocking\":true},{\"source\":\"Completion\",\"blocklistName\":\"mom\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"pkcdpreyxely\",\"blocking\":true},{\"source\":\"Completion\",\"safetyProviderName\":\"rufssjyg\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"bh\",\"blocking\":false}]},\"etag\":\"mqfmefgvqcpd\",\"tags\":{\"djhunhghcgawnr\":\"quxweyslandkd\",\"bfsx\":\"nquoxsotireimse\",\"mxcjzlquzexokjx\":\"tcyilbvz\"},\"id\":\"jvbzinzabwmvog\",\"name\":\"jsvlpg\",\"type\":\"dnw\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -40,41 +36,29 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiPolicies().list("ztscbgmusaictds", "nkzzohnrddclz", com.azure.core.util.Context.NONE); + = manager.raiPolicies().list("xmolpcqydeyk", "skiczd", com.azure.core.util.Context.NONE); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, response.iterator().next().properties().mode()); - Assertions.assertEquals("lbz", response.iterator().next().properties().basePolicyName()); - Assertions.assertEquals("n", response.iterator().next().properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, response.iterator().next().properties().mode()); + Assertions.assertEquals("kgqaboo", response.iterator().next().properties().basePolicyName()); + Assertions.assertEquals("sgyc", response.iterator().next().properties().contentFilters().get(0).name()); Assertions.assertTrue(response.iterator().next().properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.MEDIUM, + Assertions.assertEquals(ContentLevel.HIGH, response.iterator().next().properties().contentFilters().get(0).severityThreshold()); - Assertions.assertFalse(response.iterator().next().properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PROMPT, + Assertions.assertTrue(response.iterator().next().properties().contentFilters().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.iterator().next().properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.HITL, + Assertions.assertEquals(RaiActionType.RETRY, response.iterator().next().properties().contentFilters().get(0).action()); - Assertions.assertEquals("ngygnhrko", + Assertions.assertEquals("znuxkeuairaabmdl", response.iterator().next().properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(response.iterator().next().properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.iterator().next().properties().customBlocklists().get(0).source()); - Assertions.assertEquals("opggorwjoqtrotp", + Assertions.assertEquals("pkcdpreyxely", response.iterator().next().properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertFalse(response.iterator().next().properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + Assertions.assertTrue(response.iterator().next().properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.iterator().next().properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.ENFORCED, response.iterator().next().properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, - response.iterator().next().properties().egressPolicy().defaultAction()); - Assertions.assertEquals("mlwktfo", response.iterator().next().properties().egressPolicy().description()); - Assertions.assertEquals("royrdurxf", - response.iterator().next().properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("qjimejtgzjxxlfej", - response.iterator().next().properties().egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, - response.iterator().next().properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.TRANSFORM, - response.iterator().next().properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("vnrpbjrmvg", response.iterator().next().tags().get("qplehmumkzdllczd")); + Assertions.assertEquals("quxweyslandkd", response.iterator().next().tags().get("djhunhghcgawnr")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java index c84f0423d8e2..606daecb9a56 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyContentFilterTests.java @@ -15,30 +15,30 @@ public final class RaiPolicyContentFilterTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyContentFilter model = BinaryData.fromString( - "{\"name\":\"dftuljltduce\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"RETRY\"}") + "{\"name\":\"tzpofncckwyfzq\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"BLOCKING\"}") .toObject(RaiPolicyContentFilter.class); - Assertions.assertEquals("dftuljltduce", model.name()); - Assertions.assertTrue(model.enabled()); - Assertions.assertEquals(ContentLevel.HIGH, model.severityThreshold()); + Assertions.assertEquals("tzpofncckwyfzq", model.name()); + Assertions.assertFalse(model.enabled()); + Assertions.assertEquals(ContentLevel.LOW, model.severityThreshold()); Assertions.assertFalse(model.blocking()); Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); - Assertions.assertEquals(RaiActionType.RETRY, model.action()); + Assertions.assertEquals(RaiActionType.BLOCKING, model.action()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiPolicyContentFilter model = new RaiPolicyContentFilter().withName("dftuljltduce") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.HIGH) + RaiPolicyContentFilter model = new RaiPolicyContentFilter().withName("tzpofncckwyfzq") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.LOW) .withBlocking(false) .withSource(RaiPolicyContentSource.PROMPT) - .withAction(RaiActionType.RETRY); + .withAction(RaiActionType.BLOCKING); model = BinaryData.fromObject(model).toObject(RaiPolicyContentFilter.class); - Assertions.assertEquals("dftuljltduce", model.name()); - Assertions.assertTrue(model.enabled()); - Assertions.assertEquals(ContentLevel.HIGH, model.severityThreshold()); + Assertions.assertEquals("tzpofncckwyfzq", model.name()); + Assertions.assertFalse(model.enabled()); + Assertions.assertEquals(ContentLevel.LOW, model.severityThreshold()); Assertions.assertFalse(model.blocking()); Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.source()); - Assertions.assertEquals(RaiActionType.RETRY, model.action()); + Assertions.assertEquals(RaiActionType.BLOCKING, model.action()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyInnerTests.java index 599cb9f35380..7b71996c5498 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 @@ -9,17 +9,6 @@ import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; import com.azure.resourcemanager.cognitiveservices.models.RaiActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderOperation; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderTransform; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; @@ -34,144 +23,91 @@ public final class RaiPolicyInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Default\",\"basePolicyName\":\"rkpyouaibrebqaay\",\"contentFilters\":[{\"name\":\"xqtnq\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"ANNOTATING\"},{\"name\":\"pjpqqmtedltmmji\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"BLOCKING\"},{\"name\":\"qncygupkvi\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"BLOCKING\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"totxhojujb\",\"blocking\":true},{\"source\":\"Completion\",\"blocklistName\":\"uvhixbjxyfwn\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"ttpkiwkkbnujrywv\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Deny\",\"description\":\"rd\",\"rules\":[{\"name\":\"iithtywu\",\"description\":\"cbihwqk\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"twjchrdg\",\"path\":\"hxumwctondzj\"},\"action\":{\"actionType\":\"Allow\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"dlwggytsbwtovv\"},{\"operation\":\"Insert\",\"name\":\"seinqfiuf\"},{\"operation\":\"Insert\",\"name\":\"knpirgnepttwq\"}],\"rewrite\":{}}},{\"name\":\"niffcdmqnroj\",\"description\":\"ijnkrxfrdd\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"tizzronasxif\",\"path\":\"zq\"},\"action\":{\"actionType\":\"Allow\",\"headers\":[{\"operation\":\"Set\",\"name\":\"wesgogczh\"}],\"rewrite\":{}}},{\"name\":\"nxkrlgnyhmossxkk\",\"description\":\"h\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"xjb\",\"path\":\"qxvcxgfrpdsofb\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Set\",\"name\":\"vbuswd\"},{\"operation\":\"Insert\",\"name\":\"yybyc\"},{\"operation\":\"Remove\",\"name\":\"nvjsrtkfa\"}],\"rewrite\":{}}}]}},\"etag\":\"pqgik\",\"tags\":{\"sewgioilqukr\":\"rtxdyuxzejnt\"},\"id\":\"xtqmieoxor\",\"name\":\"gufhyaomtbg\",\"type\":\"havgrvk\"}") + "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"a\",\"contentFilters\":[{\"name\":\"arm\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"None\"},{\"name\":\"yxxrwlycoduh\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"RETRY\"},{\"name\":\"ajxq\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"BLOCKING\"},{\"name\":\"gssofwq\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PreRun\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"q\",\"blocking\":true},{\"source\":\"Completion\",\"blocklistName\":\"yxbaaabjyvayf\",\"blocking\":false},{\"source\":\"Completion\",\"blocklistName\":\"tuzqogsexne\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"ewzsyyceuzsoib\",\"blocking\":true},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"xtrthz\",\"blocking\":false}]},\"etag\":\"dwkqbrq\",\"tags\":{\"tiirqtdqoa\":\"axhexiilivp\"},\"id\":\"r\",\"name\":\"zfgs\",\"type\":\"uyfxrxxleptramxj\"}") .toObject(RaiPolicyInner.class); - Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.properties().mode()); - Assertions.assertEquals("rkpyouaibrebqaay", model.properties().basePolicyName()); - Assertions.assertEquals("xqtnq", model.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, model.properties().mode()); + Assertions.assertEquals("a", model.properties().basePolicyName()); + Assertions.assertEquals("arm", 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.assertEquals(ContentLevel.MEDIUM, model.properties().contentFilters().get(0).severityThreshold()); Assertions.assertFalse(model.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, model.properties().contentFilters().get(0).action()); - Assertions.assertEquals("totxhojujb", model.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.NONE, model.properties().contentFilters().get(0).action()); + Assertions.assertEquals("q", model.properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(model.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("ttpkiwkkbnujrywv", model.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + model.properties().customBlocklists().get(0).source()); + Assertions.assertEquals("ewzsyyceuzsoib", model.properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertTrue(model.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.ENFORCED, model.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("rd", model.properties().egressPolicy().description()); - Assertions.assertEquals("iithtywu", model.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("cbihwqk", model.properties().egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, model.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals("twjchrdg", model.properties().egressPolicy().rules().get(0).match().host()); - Assertions.assertEquals("hxumwctondzj", model.properties().egressPolicy().rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.ALLOW, - model.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.INSERT, - model.properties().egressPolicy().rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("dlwggytsbwtovv", - model.properties().egressPolicy().rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals("rtxdyuxzejnt", model.tags().get("sewgioilqukr")); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().safetyProviders().get(0).source()); + Assertions.assertEquals("axhexiilivp", model.tags().get("tiirqtdqoa")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiPolicyInner model = new RaiPolicyInner() - .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.DEFAULT) - .withBasePolicyName("rkpyouaibrebqaay") + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.BLOCKING) + .withBasePolicyName("a") .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("xqtnq") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.ANNOTATING), - new RaiPolicyContentFilter().withName("pjpqqmtedltmmji") + new RaiPolicyContentFilter().withName("arm") .withEnabled(false) .withSeverityThreshold(ContentLevel.MEDIUM) - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION) - .withAction(RaiActionType.BLOCKING), - new RaiPolicyContentFilter().withName("qncygupkvi") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PROMPT) + .withAction(RaiActionType.NONE), + new RaiPolicyContentFilter().withName("yxxrwlycoduh") .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_RUN) + .withAction(RaiActionType.RETRY), + new RaiPolicyContentFilter().withName("ajxq") + .withEnabled(false) .withSeverityThreshold(ContentLevel.LOW) .withBlocking(true) - .withSource(RaiPolicyContentSource.PROMPT) - .withAction(RaiActionType.BLOCKING))) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withAction(RaiActionType.BLOCKING), + new RaiPolicyContentFilter().withName("gssofwq") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.MEDIUM) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_RUN) + .withAction(RaiActionType.RETRY))) .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("totxhojujb") + new CustomBlocklistConfig().withBlocklistName("q") .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN), - new CustomBlocklistConfig().withBlocklistName("uvhixbjxyfwn") + .withSource(RaiPolicyContentSource.COMPLETION), + new CustomBlocklistConfig().withBlocklistName("yxbaaabjyvayf") + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION), + new CustomBlocklistConfig().withBlocklistName("tuzqogsexne") .withBlocking(false) .withSource(RaiPolicyContentSource.COMPLETION))) - .withSafetyProviders(Arrays - .asList(new SafetyProviderConfig().withSafetyProviderName("ttpkiwkkbnujrywv") + .withSafetyProviders(Arrays.asList( + new SafetyProviderConfig().withSafetyProviderName("ewzsyyceuzsoib") .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN))) - .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.DENY) - .withDescription("rd") - .withRules(Arrays.asList( - new RaiEgressRule().withName("iithtywu") - .withDescription("cbihwqk") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("twjchrdg").withPath("hxumwctondzj")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW) - .withHeaders(Arrays.asList( - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("dlwggytsbwtovv"), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("seinqfiuf"), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("knpirgnepttwq"))) - .withRewrite(new RaiEgressRewriteTarget())), - new RaiEgressRule().withName("niffcdmqnroj") - .withDescription("ijnkrxfrdd") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("tizzronasxif").withPath("zq")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW) - .withHeaders(Arrays - .asList(new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) - .withName("wesgogczh"))) - .withRewrite(new RaiEgressRewriteTarget())), - new RaiEgressRule().withName("nxkrlgnyhmossxkk") - .withDescription("h") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("xjb").withPath("qxvcxgfrpdsofb")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY) - .withHeaders(Arrays.asList( - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.SET) - .withName("vbuswd"), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.INSERT) - .withName("yybyc"), - new RaiEgressHeaderTransform().withOperation(RaiEgressHeaderOperation.REMOVE) - .withName("nvjsrtkfa"))) - .withRewrite(new RaiEgressRewriteTarget())))))) - .withTags(mapOf("sewgioilqukr", "rtxdyuxzejnt")); + .withSource(RaiPolicyContentSource.POST_RUN), + new SafetyProviderConfig().withSafetyProviderName("xtrthz") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL)))) + .withTags(mapOf("tiirqtdqoa", "axhexiilivp")); model = BinaryData.fromObject(model).toObject(RaiPolicyInner.class); - Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.properties().mode()); - Assertions.assertEquals("rkpyouaibrebqaay", model.properties().basePolicyName()); - Assertions.assertEquals("xqtnq", model.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, model.properties().mode()); + Assertions.assertEquals("a", model.properties().basePolicyName()); + Assertions.assertEquals("arm", 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.assertEquals(ContentLevel.MEDIUM, model.properties().contentFilters().get(0).severityThreshold()); Assertions.assertFalse(model.properties().contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, model.properties().contentFilters().get(0).action()); - Assertions.assertEquals("totxhojujb", model.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.NONE, model.properties().contentFilters().get(0).action()); + Assertions.assertEquals("q", model.properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(model.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("ttpkiwkkbnujrywv", model.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + model.properties().customBlocklists().get(0).source()); + Assertions.assertEquals("ewzsyyceuzsoib", model.properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertTrue(model.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.ENFORCED, model.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.DENY, model.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("rd", model.properties().egressPolicy().description()); - Assertions.assertEquals("iithtywu", model.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("cbihwqk", model.properties().egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, model.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals("twjchrdg", model.properties().egressPolicy().rules().get(0).match().host()); - Assertions.assertEquals("hxumwctondzj", model.properties().egressPolicy().rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.ALLOW, - model.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.INSERT, - model.properties().egressPolicy().rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("dlwggytsbwtovv", - model.properties().egressPolicy().rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals("rtxdyuxzejnt", model.tags().get("sewgioilqukr")); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.properties().safetyProviders().get(0).source()); + Assertions.assertEquals("axhexiilivp", model.tags().get("tiirqtdqoa")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyListResultTests.java index 3154c9af0e72..89ebe032afe9 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 @@ -8,10 +8,6 @@ import com.azure.resourcemanager.cognitiveservices.implementation.models.RaiPolicyListResult; import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; import com.azure.resourcemanager.cognitiveservices.models.RaiActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; import org.junit.jupiter.api.Assertions; @@ -20,38 +16,27 @@ public final class RaiPolicyListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyListResult model = BinaryData.fromString( - "{\"nextLink\":\"impevf\",\"value\":[{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"ywdxsmic\",\"contentFilters\":[{\"name\":\"fscjfnynszquji\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"},{\"name\":\"bblgyavut\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"ANNOTATING\"},{\"name\":\"sbpimlq\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"PostToolCall\",\"action\":\"None\"},{\"name\":\"ffgcvizqz\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"}],\"customBlocklists\":[{\"source\":\"Completion\",\"blocklistName\":\"ubdyhgk\",\"blocking\":false},{\"source\":\"Completion\",\"blocklistName\":\"owzfttsttkt\",\"blocking\":false},{\"source\":\"PostToolCall\",\"blocklistName\":\"ctxtgzukxi\",\"blocking\":false},{\"source\":\"Prompt\",\"blocklistName\":\"qqqxhrnxrx\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"okqdzfvaz\",\"blocking\":false},{\"source\":\"Completion\",\"safetyProviderName\":\"qttbaj\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"opidkqqfkuv\",\"rules\":[{\"name\":\"kdmligovi\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Allow\"}},{\"name\":\"kpmloa\",\"ruleType\":\"Fqdn\",\"action\":{\"actionType\":\"Deny\"}}]}},\"etag\":\"ocbgoorbteoyb\",\"tags\":{\"il\":\"xakvvjgslor\",\"t\":\"yw\"},\"id\":\"kxn\",\"name\":\"edabgyvudtjue\",\"type\":\"bcihxuuwhc\"}]}") + "{\"nextLink\":\"ncormrlxqtvcof\",\"value\":[{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"bgdknnqv\",\"contentFilters\":[{\"name\":\"qntorudsgsahmkyc\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"None\"},{\"name\":\"uruv\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"BLOCKING\"}],\"customBlocklists\":[{\"source\":\"Prompt\",\"blocklistName\":\"fkifr\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"jmqlgkfb\",\"blocking\":false},{\"source\":\"PreRun\",\"blocklistName\":\"n\",\"blocking\":false},{\"source\":\"PreToolCall\",\"blocklistName\":\"ujitcjedftww\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"c\",\"blocking\":true},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"uicybxarzgszuf\",\"blocking\":true},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"p\",\"blocking\":false}]},\"etag\":\"mciodhkhazxkhn\",\"tags\":{\"okdwb\":\"nlwntoe\",\"cmrvexzt\":\"hksz\",\"gsfraoyzkoow\":\"bt\"},\"id\":\"mnguxawqaldsyu\",\"name\":\"ximerqfobwyznk\",\"type\":\"ykutwpf\"}]}") .toObject(RaiPolicyListResult.class); - Assertions.assertEquals("impevf", model.nextLink()); - Assertions.assertEquals(RaiPolicyMode.DEFERRED, model.value().get(0).properties().mode()); - Assertions.assertEquals("ywdxsmic", model.value().get(0).properties().basePolicyName()); - Assertions.assertEquals("fscjfnynszquji", model.value().get(0).properties().contentFilters().get(0).name()); - Assertions.assertFalse(model.value().get(0).properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.LOW, + Assertions.assertEquals("ncormrlxqtvcof", model.nextLink()); + Assertions.assertEquals(RaiPolicyMode.DEFAULT, model.value().get(0).properties().mode()); + Assertions.assertEquals("bgdknnqv", model.value().get(0).properties().basePolicyName()); + Assertions.assertEquals("qntorudsgsahmkyc", model.value().get(0).properties().contentFilters().get(0).name()); + Assertions.assertTrue(model.value().get(0).properties().contentFilters().get(0).enabled()); + Assertions.assertEquals(ContentLevel.MEDIUM, model.value().get(0).properties().contentFilters().get(0).severityThreshold()); Assertions.assertFalse(model.value().get(0).properties().contentFilters().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.value().get(0).properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.ANNOTATING, - model.value().get(0).properties().contentFilters().get(0).action()); - Assertions.assertEquals("ubdyhgk", model.value().get(0).properties().customBlocklists().get(0).blocklistName()); - Assertions.assertFalse(model.value().get(0).properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.COMPLETION, + Assertions.assertEquals(RaiActionType.NONE, model.value().get(0).properties().contentFilters().get(0).action()); + Assertions.assertEquals("fkifr", model.value().get(0).properties().customBlocklists().get(0).blocklistName()); + Assertions.assertTrue(model.value().get(0).properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, model.value().get(0).properties().customBlocklists().get(0).source()); - Assertions.assertEquals("okqdzfvaz", - model.value().get(0).properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertFalse(model.value().get(0).properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, + Assertions.assertEquals("c", model.value().get(0).properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertTrue(model.value().get(0).properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.value().get(0).properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.AUDIT, model.value().get(0).properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, - model.value().get(0).properties().egressPolicy().defaultAction()); - Assertions.assertEquals("opidkqqfkuv", model.value().get(0).properties().egressPolicy().description()); - Assertions.assertEquals("kdmligovi", model.value().get(0).properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, - model.value().get(0).properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.ALLOW, - model.value().get(0).properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("xakvvjgslor", model.value().get(0).tags().get("il")); + Assertions.assertEquals("nlwntoe", model.value().get(0).tags().get("okdwb")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiPolicyPropertiesTests.java index c9e2b378bc9b..0fc6ad7ebd7c 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 @@ -8,18 +8,6 @@ import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; import com.azure.resourcemanager.cognitiveservices.models.RaiActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderOperation; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressHeaderTransform; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRewriteTarget; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressScheme; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; @@ -32,152 +20,75 @@ public final class RaiPolicyPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiPolicyProperties model = BinaryData.fromString( - "{\"type\":\"SystemManaged\",\"mode\":\"Asynchronous_filter\",\"basePolicyName\":\"hpjbib\",\"contentFilters\":[{\"name\":\"xumvfcluyovw\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"BLOCKING\"},{\"name\":\"hwzdgirujbz\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"Completion\",\"action\":\"HITL\"},{\"name\":\"pniyujviyl\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PostRun\",\"action\":\"None\"},{\"name\":\"efr\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"None\"}],\"customBlocklists\":[{\"source\":\"PostToolCall\",\"blocklistName\":\"fhir\",\"blocking\":true},{\"source\":\"Prompt\",\"blocklistName\":\"oftpipiwycz\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PostToolCall\",\"safetyProviderName\":\"lihhyuspskasdvlm\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"ulucv\",\"blocking\":true},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"euzvx\",\"blocking\":false}],\"egressPolicy\":{\"mode\":\"Enforced\",\"defaultAction\":\"Allow\",\"description\":\"txifqj\",\"rules\":[{\"name\":\"mrhublwpc\",\"description\":\"utr\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"auutpwoqhihe\",\"path\":\"g\"},\"action\":{\"actionType\":\"Rewrite\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"qntcypsxjvfoimwk\"}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"izjx\",\"path\":\"dfcea\"}}},{\"name\":\"vlhv\",\"description\":\"dyftumrtwna\",\"ruleType\":\"Fqdn\",\"match\":{\"host\":\"biwkojgcyzt\",\"path\":\"mznbaeqphch\"},\"action\":{\"actionType\":\"Deny\",\"headers\":[{\"operation\":\"Insert\",\"name\":\"pxehuwrykqga\"},{\"operation\":\"Remove\",\"name\":\"mvikl\"}],\"rewrite\":{\"scheme\":\"https\",\"host\":\"hbejdznxcvdsrhnj\",\"path\":\"olvtnovqfzge\"}}}]}}") + "{\"type\":\"SystemManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"wxuqlcvydypatdoo\",\"contentFilters\":[{\"name\":\"niodkooeb\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"RETRY\"},{\"name\":\"kcrodtjinfw\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"PreToolCall\",\"action\":\"BLOCKING\"}],\"customBlocklists\":[{\"source\":\"PostToolCall\",\"blocklistName\":\"oakggkfpag\",\"blocking\":false},{\"source\":\"PostRun\",\"blocklistName\":\"pqblylsyxkqjnsj\",\"blocking\":false}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"sdszue\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"f\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"nqicvinvkjjxdxrb\",\"blocking\":false},{\"source\":\"PostRun\",\"safetyProviderName\":\"ewyhml\",\"blocking\":false}]}") .toObject(RaiPolicyProperties.class); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.mode()); - Assertions.assertEquals("hpjbib", model.basePolicyName()); - Assertions.assertEquals("xumvfcluyovw", model.contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, model.mode()); + Assertions.assertEquals("wxuqlcvydypatdoo", model.basePolicyName()); + Assertions.assertEquals("niodkooeb", model.contentFilters().get(0).name()); Assertions.assertTrue(model.contentFilters().get(0).enabled()); Assertions.assertEquals(ContentLevel.LOW, model.contentFilters().get(0).severityThreshold()); Assertions.assertTrue(model.contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, model.contentFilters().get(0).action()); - Assertions.assertEquals("fhir", model.customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(model.customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.RETRY, model.contentFilters().get(0).action()); + Assertions.assertEquals("oakggkfpag", model.customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(model.customBlocklists().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.customBlocklists().get(0).source()); - Assertions.assertEquals("lihhyuspskasdvlm", model.safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(model.safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.ENFORCED, model.egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, model.egressPolicy().defaultAction()); - Assertions.assertEquals("txifqj", model.egressPolicy().description()); - Assertions.assertEquals("mrhublwpc", model.egressPolicy().rules().get(0).name()); - Assertions.assertEquals("utr", model.egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, model.egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals("auutpwoqhihe", model.egressPolicy().rules().get(0).match().host()); - Assertions.assertEquals("g", model.egressPolicy().rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, - model.egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.INSERT, - model.egressPolicy().rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("qntcypsxjvfoimwk", - model.egressPolicy().rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.egressPolicy().rules().get(0).action().rewrite().scheme()); - Assertions.assertEquals("izjx", model.egressPolicy().rules().get(0).action().rewrite().host()); - Assertions.assertEquals("dfcea", model.egressPolicy().rules().get(0).action().rewrite().path()); + Assertions.assertEquals("sdszue", model.safetyProviders().get(0).safetyProviderName()); + Assertions.assertFalse(model.safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.safetyProviders().get(0).source()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiPolicyProperties model - = new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) - .withBasePolicyName("hpjbib") - .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("xumvfcluyovw") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.LOW) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.BLOCKING), - new RaiPolicyContentFilter().withName("hwzdgirujbz") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.LOW) - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION) - .withAction(RaiActionType.HITL), - new RaiPolicyContentFilter().withName("pniyujviyl") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.NONE), - new RaiPolicyContentFilter().withName("efr") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.MEDIUM) - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.NONE))) - .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("fhir") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL), - new CustomBlocklistConfig().withBlocklistName("oftpipiwycz") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PROMPT))) - .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("lihhyuspskasdvlm") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL), - new SafetyProviderConfig().withSafetyProviderName("ulucv") - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN), - new SafetyProviderConfig().withSafetyProviderName("euzvx") - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL))) - .withEgressPolicy( - new RaiEgressPolicyConfig().withMode(RaiEgressMode.ENFORCED) - .withDefaultAction(RaiEgressDefaultAction.ALLOW) - .withDescription("txifqj") - .withRules( - Arrays.asList( - new RaiEgressRule().withName("mrhublwpc") - .withDescription("utr") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("auutpwoqhihe").withPath("g")) - .withAction(new RaiEgressRuleAction() - .withActionType(RaiEgressRuleActionType.REWRITE) - .withHeaders(Arrays.asList(new RaiEgressHeaderTransform() - .withOperation(RaiEgressHeaderOperation.INSERT) - .withName("qntcypsxjvfoimwk"))) - .withRewrite(new RaiEgressRewriteTarget() - .withScheme(RaiEgressScheme.HTTPS) - .withHost("izjx") - .withPath("dfcea"))), - new RaiEgressRule().withName("vlhv") - .withDescription("dyftumrtwna") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch().withHost("biwkojgcyzt").withPath("mznbaeqphch")) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY) - .withHeaders(Arrays.asList(new RaiEgressHeaderTransform() - .withOperation(RaiEgressHeaderOperation.INSERT) - .withName("pxehuwrykqga"), - new RaiEgressHeaderTransform() - .withOperation(RaiEgressHeaderOperation.REMOVE) - .withName("mvikl"))) - .withRewrite(new RaiEgressRewriteTarget().withScheme(RaiEgressScheme.HTTPS) - .withHost("hbejdznxcvdsrhnj") - .withPath("olvtnovqfzge")))))); + RaiPolicyProperties model = new RaiPolicyProperties().withMode(RaiPolicyMode.BLOCKING) + .withBasePolicyName("wxuqlcvydypatdoo") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("niodkooeb") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.LOW) + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withAction(RaiActionType.RETRY), + new RaiPolicyContentFilter().withName("kcrodtjinfw") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL) + .withAction(RaiActionType.BLOCKING))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("oakggkfpag") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new CustomBlocklistConfig().withBlocklistName("pqblylsyxkqjnsj") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_RUN))) + .withSafetyProviders(Arrays.asList( + new SafetyProviderConfig().withSafetyProviderName("sdszue") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_RUN), + new SafetyProviderConfig().withSafetyProviderName("f") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new SafetyProviderConfig().withSafetyProviderName("nqicvinvkjjxdxrb") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_RUN), + new SafetyProviderConfig().withSafetyProviderName("ewyhml") + .withBlocking(false) + .withSource(RaiPolicyContentSource.POST_RUN))); model = BinaryData.fromObject(model).toObject(RaiPolicyProperties.class); - Assertions.assertEquals(RaiPolicyMode.ASYNCHRONOUS_FILTER, model.mode()); - Assertions.assertEquals("hpjbib", model.basePolicyName()); - Assertions.assertEquals("xumvfcluyovw", model.contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.BLOCKING, model.mode()); + Assertions.assertEquals("wxuqlcvydypatdoo", model.basePolicyName()); + Assertions.assertEquals("niodkooeb", model.contentFilters().get(0).name()); Assertions.assertTrue(model.contentFilters().get(0).enabled()); Assertions.assertEquals(ContentLevel.LOW, model.contentFilters().get(0).severityThreshold()); Assertions.assertTrue(model.contentFilters().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, model.contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, model.contentFilters().get(0).action()); - Assertions.assertEquals("fhir", model.customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(model.customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, model.contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.RETRY, model.contentFilters().get(0).action()); + Assertions.assertEquals("oakggkfpag", model.customBlocklists().get(0).blocklistName()); + Assertions.assertFalse(model.customBlocklists().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.customBlocklists().get(0).source()); - Assertions.assertEquals("lihhyuspskasdvlm", model.safetyProviders().get(0).safetyProviderName()); - Assertions.assertTrue(model.safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.ENFORCED, model.egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, model.egressPolicy().defaultAction()); - Assertions.assertEquals("txifqj", model.egressPolicy().description()); - Assertions.assertEquals("mrhublwpc", model.egressPolicy().rules().get(0).name()); - Assertions.assertEquals("utr", model.egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, model.egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals("auutpwoqhihe", model.egressPolicy().rules().get(0).match().host()); - Assertions.assertEquals("g", model.egressPolicy().rules().get(0).match().path()); - Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, - model.egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals(RaiEgressHeaderOperation.INSERT, - model.egressPolicy().rules().get(0).action().headers().get(0).operation()); - Assertions.assertEquals("qntcypsxjvfoimwk", - model.egressPolicy().rules().get(0).action().headers().get(0).name()); - Assertions.assertEquals(RaiEgressScheme.HTTPS, model.egressPolicy().rules().get(0).action().rewrite().scheme()); - Assertions.assertEquals("izjx", model.egressPolicy().rules().get(0).action().rewrite().host()); - Assertions.assertEquals("dfcea", model.egressPolicy().rules().get(0).action().rewrite().path()); + Assertions.assertEquals("sdszue", model.safetyProviders().get(0).safetyProviderName()); + Assertions.assertFalse(model.safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, 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 ce6d6e5cd014..995b0ea0a311 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiSafetyProviderConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiSafetyProviderConfigTests.java @@ -12,18 +12,18 @@ public final class RaiSafetyProviderConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiSafetyProviderConfig model - = BinaryData.fromString("{\"safetyProviderName\":\"sdshmkxmaehvb\",\"blocking\":true}") + = BinaryData.fromString("{\"safetyProviderName\":\"jjcanvxbvtv\",\"blocking\":false}") .toObject(RaiSafetyProviderConfig.class); - Assertions.assertEquals("sdshmkxmaehvb", model.safetyProviderName()); - Assertions.assertTrue(model.blocking()); + Assertions.assertEquals("jjcanvxbvtv", model.safetyProviderName()); + Assertions.assertFalse(model.blocking()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiSafetyProviderConfig model - = new RaiSafetyProviderConfig().withSafetyProviderName("sdshmkxmaehvb").withBlocking(true); + = new RaiSafetyProviderConfig().withSafetyProviderName("jjcanvxbvtv").withBlocking(false); model = BinaryData.fromObject(model).toObject(RaiSafetyProviderConfig.class); - Assertions.assertEquals("sdshmkxmaehvb", model.safetyProviderName()); - Assertions.assertTrue(model.blocking()); + Assertions.assertEquals("jjcanvxbvtv", model.safetyProviderName()); + Assertions.assertFalse(model.blocking()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelInnerTests.java index 6dabe9cbf796..5b1c2ce2407d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelInnerTests.java @@ -18,39 +18,36 @@ public final class RaiToolLabelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelInner model = BinaryData.fromString( - "{\"properties\":{\"toolConnectionName\":\"zhyrmewipmve\",\"accountScope\":{\"labelValues\":{\"zhhzjhfjmhvvmu\":\"kuqgsjjxundxgket\",\"yihsasbhudypohyu\":\"gpmuneqsxvmhfbuz\"}},\"projectScopes\":[{\"project\":\"lynsqyrpf\",\"labelValues\":{\"nfwqzdzgtilaxhn\":\"brlttymsjnygq\",\"wivkxo\":\"hqlyvijo\"}},{\"project\":\"zunbixx\",\"labelValues\":{\"clrcivtsox\":\"ikvcpwp\"}},{\"project\":\"rkenx\",\"labelValues\":{\"awaoqvmmbnpqfrt\":\"yyefrpmpdnqqs\"}}]},\"etag\":\"kzmegnitgvkxlz\",\"tags\":{\"cealzxwh\":\"rfe\"},\"id\":\"nsymoyqhlwigd\",\"name\":\"vbkbxgomf\",\"type\":\"juwasqvdaeyyguxa\"}") + "{\"properties\":{\"toolConnectionName\":\"xqv\",\"accountScope\":{\"labelValues\":{\"pqlmfe\":\"oymgccelvezr\",\"ob\":\"kerqwkyh\",\"edkowepbqpcrfk\":\"pg\",\"tn\":\"wccsnjvcdwxlpqek\"}},\"projectScopes\":[{\"project\":\"jsyingwfqatm\",\"labelValues\":{\"gikdgsz\":\"htmdvy\",\"birryuzhl\":\"w\",\"qrvqq\":\"kj\"}},{\"project\":\"atjinrvgoupmfiib\",\"labelValues\":{\"lvrwxkvtkk\":\"gjio\",\"k\":\"llqwjygvjayvblmh\",\"gsopbyrqufegxu\":\"uhbxvvy\"}}]},\"etag\":\"zfbn\",\"tags\":{\"hrixkwmy\":\"ctlpdngitvgb\",\"hbpnaixexccbd\":\"jejveg\",\"htpwij\":\"eaxhcexdrrvqahqk\"},\"id\":\"yjsvfyc\",\"name\":\"z\",\"type\":\"fvoow\"}") .toObject(RaiToolLabelInner.class); - Assertions.assertEquals("zhyrmewipmve", model.properties().toolConnectionName()); - Assertions.assertEquals("kuqgsjjxundxgket", - model.properties().accountScope().labelValues().get("zhhzjhfjmhvvmu")); - Assertions.assertEquals("lynsqyrpf", model.properties().projectScopes().get(0).project()); - Assertions.assertEquals("brlttymsjnygq", - model.properties().projectScopes().get(0).labelValues().get("nfwqzdzgtilaxhn")); - Assertions.assertEquals("rfe", model.tags().get("cealzxwh")); + Assertions.assertEquals("xqv", model.properties().toolConnectionName()); + Assertions.assertEquals("oymgccelvezr", model.properties().accountScope().labelValues().get("pqlmfe")); + Assertions.assertEquals("jsyingwfqatm", model.properties().projectScopes().get(0).project()); + Assertions.assertEquals("htmdvy", model.properties().projectScopes().get(0).labelValues().get("gikdgsz")); + Assertions.assertEquals("ctlpdngitvgb", model.tags().get("hrixkwmy")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiToolLabelInner model = new RaiToolLabelInner() - .withProperties(new RaiToolLabelProperties().withToolConnectionName("zhyrmewipmve") - .withAccountScope(new RaiToolLabelPropertiesAccountScope().withLabelValues( - mapOf("zhhzjhfjmhvvmu", "kuqgsjjxundxgket", "yihsasbhudypohyu", "gpmuneqsxvmhfbuz"))) - .withProjectScopes(Arrays.asList( - new RaiToolLabelPropertiesProjectScopesItem().withProject("lynsqyrpf") - .withLabelValues(mapOf("nfwqzdzgtilaxhn", "brlttymsjnygq", "wivkxo", "hqlyvijo")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("zunbixx") - .withLabelValues(mapOf("clrcivtsox", "ikvcpwp")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("rkenx") - .withLabelValues(mapOf("awaoqvmmbnpqfrt", "yyefrpmpdnqqs"))))) - .withTags(mapOf("cealzxwh", "rfe")); + RaiToolLabelInner model + = new RaiToolLabelInner() + .withProperties( + new RaiToolLabelProperties().withToolConnectionName("xqv") + .withAccountScope(new RaiToolLabelPropertiesAccountScope().withLabelValues(mapOf("pqlmfe", + "oymgccelvezr", "ob", "kerqwkyh", "edkowepbqpcrfk", "pg", "tn", "wccsnjvcdwxlpqek"))) + .withProjectScopes(Arrays.asList( + new RaiToolLabelPropertiesProjectScopesItem().withProject("jsyingwfqatm") + .withLabelValues(mapOf("gikdgsz", "htmdvy", "birryuzhl", "w", "qrvqq", "kj")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("atjinrvgoupmfiib") + .withLabelValues(mapOf("lvrwxkvtkk", "gjio", "k", "llqwjygvjayvblmh", "gsopbyrqufegxu", + "uhbxvvy"))))) + .withTags(mapOf("hrixkwmy", "ctlpdngitvgb", "hbpnaixexccbd", "jejveg", "htpwij", "eaxhcexdrrvqahqk")); model = BinaryData.fromObject(model).toObject(RaiToolLabelInner.class); - Assertions.assertEquals("zhyrmewipmve", model.properties().toolConnectionName()); - Assertions.assertEquals("kuqgsjjxundxgket", - model.properties().accountScope().labelValues().get("zhhzjhfjmhvvmu")); - Assertions.assertEquals("lynsqyrpf", model.properties().projectScopes().get(0).project()); - Assertions.assertEquals("brlttymsjnygq", - model.properties().projectScopes().get(0).labelValues().get("nfwqzdzgtilaxhn")); - Assertions.assertEquals("rfe", model.tags().get("cealzxwh")); + Assertions.assertEquals("xqv", model.properties().toolConnectionName()); + Assertions.assertEquals("oymgccelvezr", model.properties().accountScope().labelValues().get("pqlmfe")); + Assertions.assertEquals("jsyingwfqatm", model.properties().projectScopes().get(0).project()); + Assertions.assertEquals("htmdvy", model.properties().projectScopes().get(0).labelValues().get("gikdgsz")); + Assertions.assertEquals("ctlpdngitvgb", model.tags().get("hrixkwmy")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesAccountScopeTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesAccountScopeTests.java index 43ea83bdadda..0b55603ac808 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,19 +13,17 @@ public final class RaiToolLabelPropertiesAccountScopeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RaiToolLabelPropertiesAccountScope model = BinaryData - .fromString( - "{\"labelValues\":{\"kzddrtkgdojbmxva\":\"merteeammxqiek\",\"vecuijpx\":\"refdee\",\"wprtu\":\"xs\"}}") + RaiToolLabelPropertiesAccountScope model = BinaryData.fromString("{\"labelValues\":{\"sttp\":\"o\"}}") .toObject(RaiToolLabelPropertiesAccountScope.class); - Assertions.assertEquals("merteeammxqiek", model.labelValues().get("kzddrtkgdojbmxva")); + Assertions.assertEquals("o", model.labelValues().get("sttp")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiToolLabelPropertiesAccountScope model = new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("kzddrtkgdojbmxva", "merteeammxqiek", "vecuijpx", "refdee", "wprtu", "xs")); + RaiToolLabelPropertiesAccountScope model + = new RaiToolLabelPropertiesAccountScope().withLabelValues(mapOf("sttp", "o")); model = BinaryData.fromObject(model).toObject(RaiToolLabelPropertiesAccountScope.class); - Assertions.assertEquals("merteeammxqiek", model.labelValues().get("kzddrtkgdojbmxva")); + Assertions.assertEquals("o", model.labelValues().get("sttp")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesProjectScopesItemTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesProjectScopesItemTests.java index 10a4352ec233..830d3b6995de 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 @@ -14,20 +14,21 @@ public final class RaiToolLabelPropertiesProjectScopesItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelPropertiesProjectScopesItem model = BinaryData.fromString( - "{\"project\":\"wsawddjibabxvi\",\"labelValues\":{\"ecdmdqbwpy\":\"tvtzeexavoxtfg\",\"gsfjac\":\"q\",\"d\":\"slhhxudbxv\"}}") + "{\"project\":\"iwkkbn\",\"labelValues\":{\"urdoi\":\"rywvtylbfpn\",\"xcbihw\":\"iithtywu\",\"twjchrdg\":\"knfd\",\"uu\":\"ihxumwctondzj\"}}") .toObject(RaiToolLabelPropertiesProjectScopesItem.class); - Assertions.assertEquals("wsawddjibabxvi", model.project()); - Assertions.assertEquals("tvtzeexavoxtfg", model.labelValues().get("ecdmdqbwpy")); + Assertions.assertEquals("iwkkbn", model.project()); + Assertions.assertEquals("rywvtylbfpn", model.labelValues().get("urdoi")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiToolLabelPropertiesProjectScopesItem model - = new RaiToolLabelPropertiesProjectScopesItem().withProject("wsawddjibabxvi") - .withLabelValues(mapOf("ecdmdqbwpy", "tvtzeexavoxtfg", "gsfjac", "q", "d", "slhhxudbxv")); + = new RaiToolLabelPropertiesProjectScopesItem().withProject("iwkkbn") + .withLabelValues( + mapOf("urdoi", "rywvtylbfpn", "xcbihw", "iithtywu", "twjchrdg", "knfd", "uu", "ihxumwctondzj")); model = BinaryData.fromObject(model).toObject(RaiToolLabelPropertiesProjectScopesItem.class); - Assertions.assertEquals("wsawddjibabxvi", model.project()); - Assertions.assertEquals("tvtzeexavoxtfg", model.labelValues().get("ecdmdqbwpy")); + Assertions.assertEquals("iwkkbn", model.project()); + Assertions.assertEquals("rywvtylbfpn", model.labelValues().get("urdoi")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesTests.java index 5361e183c0ed..30923f3a3860 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelPropertiesTests.java @@ -17,27 +17,34 @@ public final class RaiToolLabelPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelProperties model = BinaryData.fromString( - "{\"toolConnectionName\":\"jsqzhzbezk\",\"accountScope\":{\"labelValues\":{\"cddyvvjsk\":\"idxas\",\"atjeaahh\":\"fmocwahpq\",\"kzyb\":\"jhhn\"}},\"projectScopes\":[{\"project\":\"idjks\",\"labelValues\":{\"jlageu\":\"kyxvxevblbjedn\",\"ynenlsvxeizz\":\"ulxunsmjbnkpp\",\"ckt\":\"wklnsrmffeyc\"}}]}") + "{\"toolConnectionName\":\"rvmtgjq\",\"accountScope\":{\"labelValues\":{\"ronzmyhgfip\":\"s\",\"waekrrjreafxtsgu\":\"sxkm\"}},\"projectScopes\":[{\"project\":\"glikkxwslolb\",\"labelValues\":{\"felfktg\":\"vuzlm\",\"xeznoi\":\"lcrpw\"}},{\"project\":\"brnjwmw\",\"labelValues\":{\"hsxttaugzxnf\":\"nbsazejjoqkag\"}},{\"project\":\"azpxdtnkdmkqjjl\",\"labelValues\":{\"aysjkixqtnqttez\":\"envrkpyouaibrebq\",\"akpjpqqmtedlt\":\"wfff\"}},{\"project\":\"mjihyeozphv\",\"labelValues\":{\"cwxqu\":\"uyqncygupkvipmd\",\"xhojuj\":\"evzhfsto\",\"hixbjxyfwnyl\":\"ypelmcu\"}}]}") .toObject(RaiToolLabelProperties.class); - Assertions.assertEquals("jsqzhzbezk", model.toolConnectionName()); - Assertions.assertEquals("idxas", model.accountScope().labelValues().get("cddyvvjsk")); - Assertions.assertEquals("idjks", model.projectScopes().get(0).project()); - Assertions.assertEquals("kyxvxevblbjedn", model.projectScopes().get(0).labelValues().get("jlageu")); + Assertions.assertEquals("rvmtgjq", model.toolConnectionName()); + Assertions.assertEquals("s", model.accountScope().labelValues().get("ronzmyhgfip")); + Assertions.assertEquals("glikkxwslolb", model.projectScopes().get(0).project()); + Assertions.assertEquals("vuzlm", model.projectScopes().get(0).labelValues().get("felfktg")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiToolLabelProperties model = new RaiToolLabelProperties().withToolConnectionName("jsqzhzbezk") + RaiToolLabelProperties model = new RaiToolLabelProperties().withToolConnectionName("rvmtgjq") .withAccountScope(new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("cddyvvjsk", "idxas", "atjeaahh", "fmocwahpq", "kzyb", "jhhn"))) - .withProjectScopes(Arrays.asList(new RaiToolLabelPropertiesProjectScopesItem().withProject("idjks") - .withLabelValues( - mapOf("jlageu", "kyxvxevblbjedn", "ynenlsvxeizz", "ulxunsmjbnkpp", "ckt", "wklnsrmffeyc")))); + .withLabelValues(mapOf("ronzmyhgfip", "s", "waekrrjreafxtsgu", "sxkm"))) + .withProjectScopes(Arrays.asList( + new RaiToolLabelPropertiesProjectScopesItem().withProject("glikkxwslolb") + .withLabelValues(mapOf("felfktg", "vuzlm", "xeznoi", "lcrpw")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("brnjwmw") + .withLabelValues(mapOf("hsxttaugzxnf", "nbsazejjoqkag")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("azpxdtnkdmkqjjl") + .withLabelValues(mapOf("aysjkixqtnqttez", "envrkpyouaibrebq", "akpjpqqmtedlt", "wfff")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("mjihyeozphv") + .withLabelValues( + mapOf("cwxqu", "uyqncygupkvipmd", "xhojuj", "evzhfsto", "hixbjxyfwnyl", "ypelmcu")))); model = BinaryData.fromObject(model).toObject(RaiToolLabelProperties.class); - Assertions.assertEquals("jsqzhzbezk", model.toolConnectionName()); - Assertions.assertEquals("idxas", model.accountScope().labelValues().get("cddyvvjsk")); - Assertions.assertEquals("idjks", model.projectScopes().get(0).project()); - Assertions.assertEquals("kyxvxevblbjedn", model.projectScopes().get(0).labelValues().get("jlageu")); + Assertions.assertEquals("rvmtgjq", model.toolConnectionName()); + Assertions.assertEquals("s", model.accountScope().labelValues().get("ronzmyhgfip")); + Assertions.assertEquals("glikkxwslolb", model.projectScopes().get(0).project()); + Assertions.assertEquals("vuzlm", model.projectScopes().get(0).labelValues().get("felfktg")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelResultTests.java index d7a55bff0f63..c1f68b2103f2 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelResultTests.java @@ -12,15 +12,15 @@ public final class RaiToolLabelResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiToolLabelResult model = BinaryData.fromString( - "{\"nextLink\":\"nsiru\",\"value\":[{\"properties\":{\"toolConnectionName\":\"mes\",\"accountScope\":{\"labelValues\":{\"boxdfgsftufq\":\"pagzrcxfailcfxwm\",\"zvytnrzvuljraaer\":\"brjlnacgcckknhxk\"}},\"projectScopes\":[{\"project\":\"kqg\",\"labelValues\":{\"vbroylaxxu\":\"kjq\",\"sfjbjsvg\":\"cdisd\",\"lxgccknfnwmbtm\":\"rwhryvycytd\",\"hchrphkmcrjdqn\":\"pdvjdhttzaefedx\"}},{\"project\":\"dfzpbgtgkylkdg\",\"labelValues\":{\"wxezwzhok\":\"jeuut\",\"ehgpp\":\"bwnhhtql\"}},{\"project\":\"pifhpfeoajvgcxtx\",\"labelValues\":{\"tugsresmkssjh\":\"sheafid\",\"egprhptil\":\"iftxfkf\",\"qtgdqohmcwsl\":\"ucb\",\"tpwb\":\"riz\"}}]},\"etag\":\"lllibph\",\"tags\":{\"kan\":\"mizak\",\"zhajoylhjlmuo\":\"jpdn\",\"eecjmeis\":\"xprimrsop\"},\"id\":\"tvasy\",\"name\":\"wxdzaumweoohgu\",\"type\":\"fuzboyjathwtzolb\"}]}") + "{\"nextLink\":\"dlwggytsbwtovv\",\"value\":[{\"properties\":{\"toolConnectionName\":\"inqfiufxqknpirgn\",\"accountScope\":{\"labelValues\":{\"ojlpijnkrxf\":\"wqmsniffcdmqn\",\"nasx\":\"ddhcratizzr\",\"zq\":\"ft\",\"tw\":\"zh\"}},\"projectScopes\":[{\"project\":\"ogczhonnxkrlg\",\"labelValues\":{\"rghxjb\":\"hmossxkkgth\",\"rnsvbuswd\":\"hqxvcxgfrpdsofbs\",\"ybycnunvj\":\"z\"}},{\"project\":\"rtkfawnopq\",\"labelValues\":{\"ejnt\":\"kyzirtxdyux\",\"dxtqmieoxo\":\"sewgioilqukr\",\"hhavgrvkffovjz\":\"ggufhyaomtb\"}},{\"project\":\"pjbi\",\"labelValues\":{\"luyovwxnbkfezzx\":\"jmfxumvf\",\"wzdgirujbzbo\":\"cy\",\"pniyujviyl\":\"vzzbtdcq\"}},{\"project\":\"dshf\",\"labelValues\":{\"bgye\":\"n\",\"cotmr\":\"rymsgaojfmw\",\"yczuhxacpq\":\"hirctymoxoftpipi\",\"wdgzxulucv\":\"lihhyuspskasdvlm\"}}]},\"etag\":\"mrsreuzvxurisjnh\",\"tags\":{\"hu\":\"xifqjzgxm\",\"cesutrgjupauut\":\"lw\"},\"id\":\"oqh\",\"name\":\"hej\",\"type\":\"g\"},{\"properties\":{\"toolConnectionName\":\"pnfqntcyp\",\"accountScope\":{\"labelValues\":{\"dfcea\":\"foimwkslircizjxv\",\"gdyftumrtwna\":\"vlhv\",\"wkojgcyztsfmzn\":\"jslb\"}},\"projectScopes\":[{\"project\":\"qphchqnrnrpxehuw\",\"labelValues\":{\"gaifmvik\":\"k\",\"xcv\":\"bydvkhbejdz\",\"v\":\"srhnjivo\"}},{\"project\":\"novqfzge\",\"labelValues\":{\"mtmczuome\":\"dftuljltduce\",\"qioknssxmojm\":\"wcw\",\"kwcf\":\"vpkjpr\"}},{\"project\":\"ql\",\"labelValues\":{\"tczheydbsdshmkx\":\"x\",\"ltfnhtbaxkgx\":\"aehvbbxuri\"}}]},\"etag\":\"rc\",\"tags\":{\"hpluodpvruudlg\":\"kl\",\"eclze\":\"ibthostgktstvd\",\"kdl\":\"qbcvhzlhplod\",\"mbtxhwgf\":\"wqfbumlkxtrqjfsm\"},\"id\":\"rtawcoezb\",\"name\":\"hubskhudygooo\",\"type\":\"kqfqjbvl\"},{\"properties\":{\"toolConnectionName\":\"rfmluiqtq\",\"accountScope\":{\"labelValues\":{\"kq\":\"yvnqqybaryeuay\",\"tiewdj\":\"bqgzslesjcbhern\"}},\"projectScopes\":[{\"project\":\"quwrbehwag\",\"labelValues\":{\"tdrjfutacoebj\":\"buffkmrqemvvhm\",\"guaadraufactkahz\":\"ewzcjznmwcp\",\"jjziuxxpsh\":\"v\"}},{\"project\":\"eekulfgslqubkwd\",\"labelValues\":{\"inyflnorwmduvwp\":\"nrdsutujbazpjuoh\"}},{\"project\":\"lvxwmyg\",\"labelValues\":{\"crxgibb\":\"pgpqchiszepnnb\",\"sukokwbqplhl\":\"axconfozauo\"}}]},\"etag\":\"uuepzlrphwzsoldw\",\"tags\":{\"talywjhhgdnhxms\":\"qdunvmnnrwrbior\",\"omi\":\"v\",\"gdufiqnd\":\"ox\",\"chvcyyysfgdo\":\"euzaof\"},\"id\":\"ubiipuipwoqonma\",\"name\":\"jeknizshq\",\"type\":\"cimpevfg\"}]}") .toObject(RaiToolLabelResult.class); - Assertions.assertEquals("nsiru", model.nextLink()); - Assertions.assertEquals("mes", model.value().get(0).properties().toolConnectionName()); - Assertions.assertEquals("pagzrcxfailcfxwm", - model.value().get(0).properties().accountScope().labelValues().get("boxdfgsftufq")); - Assertions.assertEquals("kqg", model.value().get(0).properties().projectScopes().get(0).project()); - Assertions.assertEquals("kjq", - model.value().get(0).properties().projectScopes().get(0).labelValues().get("vbroylaxxu")); - Assertions.assertEquals("mizak", model.value().get(0).tags().get("kan")); + Assertions.assertEquals("dlwggytsbwtovv", model.nextLink()); + Assertions.assertEquals("inqfiufxqknpirgn", model.value().get(0).properties().toolConnectionName()); + Assertions.assertEquals("wqmsniffcdmqn", + model.value().get(0).properties().accountScope().labelValues().get("ojlpijnkrxf")); + Assertions.assertEquals("ogczhonnxkrlg", model.value().get(0).properties().projectScopes().get(0).project()); + Assertions.assertEquals("hmossxkkgth", + model.value().get(0).properties().projectScopes().get(0).labelValues().get("rghxjb")); + Assertions.assertEquals("xifqjzgxm", model.value().get(0).tags().get("hu")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateWithResponseMockTests.java index e9f9b0181d1b..87abbcd6888a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsCreateOrUpdateWithResponseMockTests.java @@ -27,7 +27,7 @@ public final class RaiToolLabelsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"toolConnectionName\":\"bm\",\"accountScope\":{\"labelValues\":{\"ewxtrl\":\"xduetbapfc\",\"kjpirgzxvbczw\":\"bpxya\",\"i\":\"yegbthms\",\"ozfvualjt\":\"jbuiggru\"}},\"projectScopes\":[{\"project\":\"vsdwsngkrfihscj\",\"labelValues\":{\"a\":\"kmhzbh\",\"nnx\":\"fbwih\"}},{\"project\":\"mvynuqqko\",\"labelValues\":{\"fzs\":\"uratnicp\",\"yrletndqlmf\":\"le\"}}]},\"etag\":\"gnbbuypwovvvsfle\",\"tags\":{\"pxrl\":\"oqayrehjuqwv\",\"qzubfonfd\":\"hpzihacenqqzlx\",\"jcw\":\"gmkfw\",\"zl\":\"ewfhxwyrkbre\"},\"id\":\"njpchamkaeplr\",\"name\":\"jub\",\"type\":\"wuyw\"}"; + = "{\"properties\":{\"toolConnectionName\":\"hpcvr\",\"accountScope\":{\"labelValues\":{\"vfxlapjajodmkrr\":\"vtktyhh\",\"rabwlyvxc\":\"epgqvqokqlujqg\",\"stvzuzhasupml\":\"pqvctsfaeuhwwsk\"}},\"projectScopes\":[{\"project\":\"pgzvzqazvbka\",\"labelValues\":{\"yiysjqheni\":\"ptgongruat\",\"ysc\":\"beqngubabyjde\",\"zjemexmnvkvm\":\"ey\"}},{\"project\":\"wrxlniwmcpmrrdlh\",\"labelValues\":{\"hbeae\":\"vmi\",\"ner\":\"jzmhkdclacroczfm\"}},{\"project\":\"eluxzshxzez\",\"labelValues\":{\"fsgqkstyecupyuij\":\"uzudlevzskejcg\",\"vs\":\"ard\",\"mazpzdqwuzvcmc\":\"c\",\"vfrjwu\":\"kxizek\"}}]},\"etag\":\"o\",\"tags\":{\"rdemdidack\":\"ajbvbn\",\"pztdivyk\":\"idgzwdydamis\",\"shxuknsykdtoi\":\"xkqejtpjfojiunr\",\"nvxuldxonckb\":\"oancdrco\"},\"id\":\"blfxlupibaqzi\",\"name\":\"xz\",\"type\":\"zweghlwwbogvg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,27 +37,27 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiToolLabel response = manager.raiToolLabels() - .define("mlf") - .withExistingAccount("gfdt", "cmspsanmameubkqi") - .withTags(mapOf("fasfod", "z", "kwgqrn", "opalvngtwyu")) - .withProperties(new RaiToolLabelProperties().withToolConnectionName("lqcskkqjmxptueip") + .define("pfliwo") + .withExistingAccount("ktwtk", "ih") + .withTags(mapOf("rshzzbgullcxiqqz", "agxsurej", "ouigdmfivjqte", "koxdupnamgl")) + .withProperties(new RaiToolLabelProperties().withToolConnectionName("guuzh") .withAccountScope(new RaiToolLabelPropertiesAccountScope() - .withLabelValues(mapOf("mrpahuuonj", "wdr", "cjo", "kxukguehvvpxjoe"))) + .withLabelValues(mapOf("usybke", "dpcmhjh", "fztsi", "ym", "qs", "sc"))) .withProjectScopes(Arrays.asList( - new RaiToolLabelPropertiesProjectScopesItem().withProject("eui") - .withLabelValues(mapOf("nvhgnhtmeplh", "mt", "ummmkvavucgji", "pjbap", "mnuf", "aiq")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("hr") - .withLabelValues(mapOf("wuzdmh", "x", "jmxmlitqdsj", "wlvi")), - new RaiToolLabelPropertiesProjectScopesItem().withProject("pdviscotyxbrii") - .withLabelValues(mapOf("dslvrqo", "f", "deotmfx", "mwsieeailwdqmqf", "g", "kd", "uafixlxicwgp", - "gnamkuuyiu"))))) + new RaiToolLabelPropertiesProjectScopesItem().withProject("i") + .withLabelValues(mapOf("eseuugci", "ymkouih", "qbe", "zhogsmgbvmtdw")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("jnfveg") + .withLabelValues(mapOf("znhtf", "btvkbi", "aczmuh", "ficudyhiz")), + new RaiToolLabelPropertiesProjectScopesItem().withProject("cakznhokhoitwhrj") + .withLabelValues(mapOf("jpg", "mmazdnckid", "bssdpjeyoqxd", "hzqpxzbawkikcdgf"))))) .create(); - Assertions.assertEquals("bm", response.properties().toolConnectionName()); - Assertions.assertEquals("xduetbapfc", response.properties().accountScope().labelValues().get("ewxtrl")); - Assertions.assertEquals("vsdwsngkrfihscj", response.properties().projectScopes().get(0).project()); - Assertions.assertEquals("kmhzbh", response.properties().projectScopes().get(0).labelValues().get("a")); - Assertions.assertEquals("oqayrehjuqwv", response.tags().get("pxrl")); + Assertions.assertEquals("hpcvr", response.properties().toolConnectionName()); + Assertions.assertEquals("vtktyhh", response.properties().accountScope().labelValues().get("vfxlapjajodmkrr")); + Assertions.assertEquals("pgzvzqazvbka", response.properties().projectScopes().get(0).project()); + Assertions.assertEquals("ptgongruat", + response.properties().projectScopes().get(0).labelValues().get("yiysjqheni")); + Assertions.assertEquals("ajbvbn", response.tags().get("rdemdidack")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetWithResponseMockTests.java index f7a09bb7a267..0222a071f342 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RaiToolLabelsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"toolConnectionName\":\"evyllznfhkqyt\",\"accountScope\":{\"labelValues\":{\"gfzdgjfcycrsvl\":\"do\",\"ajquzxpixhyoi\":\"yyhigqkzjuqw\",\"bennmfkbp\":\"nfdbgsoscienezf\"}},\"projectScopes\":[{\"project\":\"tekwwnthropm\",\"labelValues\":{\"yiurztvktjh\":\"d\"}}]},\"etag\":\"ec\",\"tags\":{\"g\":\"qyouerg\",\"yedzfzq\":\"puzxkpyehhfdyldh\",\"e\":\"yuqht\"},\"id\":\"unokakzwhpjl\",\"name\":\"yxedznmx\",\"type\":\"fomckewv\"}"; + = "{\"properties\":{\"toolConnectionName\":\"fq\",\"accountScope\":{\"labelValues\":{\"m\":\"o\",\"lvzkl\":\"xwr\",\"kakvlbishjvpza\":\"vbgikyj\"}},\"projectScopes\":[{\"project\":\"oskaoizji\",\"labelValues\":{\"ujvqynvavit\":\"fgcdiykkcxw\",\"raxq\":\"dmuqohhi\",\"dbwen\":\"ddrwjcljbrhlhpvz\",\"ztiucwviql\":\"inafhxrzfrm\"}},{\"project\":\"ukhk\",\"labelValues\":{\"stsinvag\":\"qxgcbvzarmqcbpo\"}},{\"project\":\"vjyhdrxbrdvc\",\"labelValues\":{\"txnmxgnmguz\":\"qwh\",\"kbd\":\"uwvorbalkjn\",\"gxiynecovagzk\":\"lltqstqkqs\",\"qiawzl\":\"eubanlxunpqcc\"}},{\"project\":\"klaslga\",\"labelValues\":{\"oejtig\":\"zuxlrarwpewsau\",\"pytn\":\"sx\",\"jnhj\":\"qbalahovuuwxhme\",\"fbbcngkegxcypxbb\":\"oti\"}}]},\"etag\":\"twilyrzoxp\",\"tags\":{\"lqownkiua\":\"lfr\"},\"id\":\"wnah\",\"name\":\"k\",\"type\":\"jjmztnlmsoodtmv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiToolLabel response = manager.raiToolLabels() - .getWithResponse("wqpjnxjkhtupsvy", "uweuiy", "fwkztsms", com.azure.core.util.Context.NONE) + .getWithResponse("cscpiuzvkunh", "i", "juktirzkaugpucd", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("evyllznfhkqyt", response.properties().toolConnectionName()); - Assertions.assertEquals("do", response.properties().accountScope().labelValues().get("gfzdgjfcycrsvl")); - Assertions.assertEquals("tekwwnthropm", response.properties().projectScopes().get(0).project()); - Assertions.assertEquals("d", response.properties().projectScopes().get(0).labelValues().get("yiurztvktjh")); - Assertions.assertEquals("qyouerg", response.tags().get("g")); + Assertions.assertEquals("fq", response.properties().toolConnectionName()); + Assertions.assertEquals("o", response.properties().accountScope().labelValues().get("m")); + Assertions.assertEquals("oskaoizji", response.properties().projectScopes().get(0).project()); + Assertions.assertEquals("fgcdiykkcxw", + response.properties().projectScopes().get(0).labelValues().get("ujvqynvavit")); + Assertions.assertEquals("lfr", response.tags().get("lqownkiua")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListMockTests.java index e5c3d10b4e10..87f11ec1c9d8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiToolLabelsListMockTests.java @@ -22,7 +22,7 @@ public final class RaiToolLabelsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"toolConnectionName\":\"fptofhgnuywez\",\"accountScope\":{\"labelValues\":{\"pmpv\":\"dgaaqwvkgjpy\",\"nukkfaxzsvb\":\"nogehlufbort\",\"skobqoclflioewy\":\"xyji\",\"p\":\"xessmvrk\"}},\"projectScopes\":[{\"project\":\"qfbdxmdses\",\"labelValues\":{\"tlpd\":\"ujbjppp\",\"hieatnejr\":\"bfm\",\"qplgtkihonikz\":\"min\"}},{\"project\":\"r\",\"labelValues\":{\"gkensckhbmcarmo\":\"ffjilzfbpnt\"}}]},\"etag\":\"xxkwykuqdndx\",\"tags\":{\"gga\":\"h\"},\"id\":\"dgtfpeersc\",\"name\":\"xrnrnjrcufmbga\",\"type\":\"n\"}]}"; + = "{\"value\":[{\"properties\":{\"toolConnectionName\":\"zrpywlptyuqh\",\"accountScope\":{\"labelValues\":{\"npcfyk\":\"skykpfuofix\"}},\"projectScopes\":[{\"project\":\"ycpawm\",\"labelValues\":{\"pcf\":\"prdpwrpc\"}},{\"project\":\"fwzlgzawkgyepeya\",\"labelValues\":{\"zxkzrntmkct\":\"nidmdiaw\",\"hqodv\":\"huosgwqpsqaz\",\"ti\":\"gcnbhcbmjk\",\"ynts\":\"n\"}},{\"project\":\"jmfmeftvhkm\",\"labelValues\":{\"bwgmjgrul\":\"gjrhs\",\"tpfdzxcouzfwofwa\":\"fogxhcxnw\",\"dtzxsoe\":\"ukz\"}},{\"project\":\"nlwglihezomucmq\",\"labelValues\":{\"etbzdrdpuenxkgtl\":\"snio\",\"bnbmxlxm\":\"lmtrlxcznnhz\",\"toqcahfsgbjm\":\"tygeqzus\",\"wliso\":\"reesrfwsszvl\"}}]},\"etag\":\"tfx\",\"tags\":{\"foygizmshxxba\":\"qmipfj\",\"toxjdzj\":\"zabulnvgsk\",\"paydhfn\":\"jznvhxqqmq\"},\"id\":\"c\",\"name\":\"mtfshksnyzmspa\",\"type\":\"wbwmbnlslcefiq\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiToolLabels().list("yifop", "fjjtpdyzou", com.azure.core.util.Context.NONE); + = manager.raiToolLabels().list("cdhdyswcrpt", "eajczxvlgsrgkr", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fptofhgnuywez", response.iterator().next().properties().toolConnectionName()); - Assertions.assertEquals("dgaaqwvkgjpy", - response.iterator().next().properties().accountScope().labelValues().get("pmpv")); - Assertions.assertEquals("qfbdxmdses", response.iterator().next().properties().projectScopes().get(0).project()); - Assertions.assertEquals("ujbjppp", - response.iterator().next().properties().projectScopes().get(0).labelValues().get("tlpd")); - Assertions.assertEquals("h", response.iterator().next().tags().get("gga")); + Assertions.assertEquals("zrpywlptyuqh", response.iterator().next().properties().toolConnectionName()); + Assertions.assertEquals("skykpfuofix", + response.iterator().next().properties().accountScope().labelValues().get("npcfyk")); + Assertions.assertEquals("ycpawm", response.iterator().next().properties().projectScopes().get(0).project()); + Assertions.assertEquals("prdpwrpc", + response.iterator().next().properties().projectScopes().get(0).labelValues().get("pcf")); + Assertions.assertEquals("qmipfj", response.iterator().next().tags().get("foygizmshxxba")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicInnerTests.java index 269d6ef50c30..c0219ed60248 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicInnerTests.java @@ -16,41 +16,41 @@ public final class RaiTopicInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiTopicInner model = BinaryData.fromString( - "{\"properties\":{\"topicId\":\"of\",\"topicName\":\"ypefojyqdhcupl\",\"description\":\"lcwkhihihlhz\",\"sampleBlobUrl\":\"qtz\",\"status\":\"rgnowcjhfgm\",\"failedReason\":\"cact\",\"createdAt\":\"2021-12-08T12:06:58Z\",\"lastModifiedAt\":\"2021-03-09T08:38:36Z\"},\"etag\":\"yowc\",\"tags\":{\"zmpjwyiv\":\"ovekqvgqouwi\",\"cvhrfsp\":\"ikf\",\"kvyklxubyjaffmm\":\"uagrttikteusqc\"},\"id\":\"lcqcuubgqibrt\",\"name\":\"lmetttwgdslqxi\",\"type\":\"hrmooi\"}") + "{\"properties\":{\"topicId\":\"rfzeey\",\"topicName\":\"izikayuhq\",\"description\":\"jbsybbqw\",\"sampleBlobUrl\":\"t\",\"status\":\"gmfpgvmp\",\"failedReason\":\"as\",\"createdAt\":\"2021-03-17T23:54:57Z\",\"lastModifiedAt\":\"2021-05-09T14:17:26Z\"},\"etag\":\"x\",\"tags\":{\"pdrhne\":\"wutwbdsre\",\"gpikpzimejza\":\"yowqkdwytisibir\",\"rjqc\":\"lfzxiavrmbzonoki\"},\"id\":\"gzpfrla\",\"name\":\"szrnwo\",\"type\":\"indfpwpjyl\"}") .toObject(RaiTopicInner.class); - Assertions.assertEquals("of", model.properties().topicId()); - Assertions.assertEquals("ypefojyqdhcupl", model.properties().topicName()); - Assertions.assertEquals("lcwkhihihlhz", model.properties().description()); - Assertions.assertEquals("qtz", model.properties().sampleBlobUrl()); - Assertions.assertEquals("rgnowcjhfgm", model.properties().status()); - Assertions.assertEquals("cact", model.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T12:06:58Z"), model.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T08:38:36Z"), model.properties().lastModifiedAt()); - Assertions.assertEquals("ovekqvgqouwi", model.tags().get("zmpjwyiv")); + Assertions.assertEquals("rfzeey", model.properties().topicId()); + Assertions.assertEquals("izikayuhq", model.properties().topicName()); + Assertions.assertEquals("jbsybbqw", model.properties().description()); + Assertions.assertEquals("t", model.properties().sampleBlobUrl()); + Assertions.assertEquals("gmfpgvmp", model.properties().status()); + Assertions.assertEquals("as", model.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T23:54:57Z"), model.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-09T14:17:26Z"), model.properties().lastModifiedAt()); + Assertions.assertEquals("wutwbdsre", model.tags().get("pdrhne")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RaiTopicInner model = new RaiTopicInner() - .withProperties(new RaiTopicProperties().withTopicId("of") - .withTopicName("ypefojyqdhcupl") - .withDescription("lcwkhihihlhz") - .withSampleBlobUrl("qtz") - .withStatus("rgnowcjhfgm") - .withFailedReason("cact") - .withCreatedAt(OffsetDateTime.parse("2021-12-08T12:06:58Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-03-09T08:38:36Z"))) - .withTags(mapOf("zmpjwyiv", "ovekqvgqouwi", "cvhrfsp", "ikf", "kvyklxubyjaffmm", "uagrttikteusqc")); + .withProperties(new RaiTopicProperties().withTopicId("rfzeey") + .withTopicName("izikayuhq") + .withDescription("jbsybbqw") + .withSampleBlobUrl("t") + .withStatus("gmfpgvmp") + .withFailedReason("as") + .withCreatedAt(OffsetDateTime.parse("2021-03-17T23:54:57Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-05-09T14:17:26Z"))) + .withTags(mapOf("pdrhne", "wutwbdsre", "gpikpzimejza", "yowqkdwytisibir", "rjqc", "lfzxiavrmbzonoki")); model = BinaryData.fromObject(model).toObject(RaiTopicInner.class); - Assertions.assertEquals("of", model.properties().topicId()); - Assertions.assertEquals("ypefojyqdhcupl", model.properties().topicName()); - Assertions.assertEquals("lcwkhihihlhz", model.properties().description()); - Assertions.assertEquals("qtz", model.properties().sampleBlobUrl()); - Assertions.assertEquals("rgnowcjhfgm", model.properties().status()); - Assertions.assertEquals("cact", model.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-08T12:06:58Z"), model.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T08:38:36Z"), model.properties().lastModifiedAt()); - Assertions.assertEquals("ovekqvgqouwi", model.tags().get("zmpjwyiv")); + Assertions.assertEquals("rfzeey", model.properties().topicId()); + Assertions.assertEquals("izikayuhq", model.properties().topicName()); + Assertions.assertEquals("jbsybbqw", model.properties().description()); + Assertions.assertEquals("t", model.properties().sampleBlobUrl()); + Assertions.assertEquals("gmfpgvmp", model.properties().status()); + Assertions.assertEquals("as", model.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T23:54:57Z"), model.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-09T14:17:26Z"), model.properties().lastModifiedAt()); + Assertions.assertEquals("wutwbdsre", model.tags().get("pdrhne")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicPropertiesTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicPropertiesTests.java index 9f27e8e936e8..8a94af11affd 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicPropertiesTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicPropertiesTests.java @@ -13,36 +13,36 @@ public final class RaiTopicPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiTopicProperties model = BinaryData.fromString( - "{\"topicId\":\"seypxiutcxapz\",\"topicName\":\"rpetogebjoxsl\",\"description\":\"nhl\",\"sampleBlobUrl\":\"rqnkkzjcjbtr\",\"status\":\"ehvvib\",\"failedReason\":\"jj\",\"createdAt\":\"2021-01-18T04:33:41Z\",\"lastModifiedAt\":\"2021-02-02T14:44:22Z\"}") + "{\"topicId\":\"tlhflsjcdhszf\",\"topicName\":\"fbgofeljagrqmqh\",\"description\":\"vriiio\",\"sampleBlobUrl\":\"al\",\"status\":\"fk\",\"failedReason\":\"vsexsowuelu\",\"createdAt\":\"2021-01-18T04:02:59Z\",\"lastModifiedAt\":\"2021-05-16T23:42:24Z\"}") .toObject(RaiTopicProperties.class); - Assertions.assertEquals("seypxiutcxapz", model.topicId()); - Assertions.assertEquals("rpetogebjoxsl", model.topicName()); - Assertions.assertEquals("nhl", model.description()); - Assertions.assertEquals("rqnkkzjcjbtr", model.sampleBlobUrl()); - Assertions.assertEquals("ehvvib", model.status()); - Assertions.assertEquals("jj", model.failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T04:33:41Z"), model.createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-02T14:44:22Z"), model.lastModifiedAt()); + Assertions.assertEquals("tlhflsjcdhszf", model.topicId()); + Assertions.assertEquals("fbgofeljagrqmqh", model.topicName()); + Assertions.assertEquals("vriiio", model.description()); + Assertions.assertEquals("al", model.sampleBlobUrl()); + Assertions.assertEquals("fk", model.status()); + Assertions.assertEquals("vsexsowuelu", model.failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T04:02:59Z"), model.createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-16T23:42:24Z"), model.lastModifiedAt()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RaiTopicProperties model = new RaiTopicProperties().withTopicId("seypxiutcxapz") - .withTopicName("rpetogebjoxsl") - .withDescription("nhl") - .withSampleBlobUrl("rqnkkzjcjbtr") - .withStatus("ehvvib") - .withFailedReason("jj") - .withCreatedAt(OffsetDateTime.parse("2021-01-18T04:33:41Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-02-02T14:44:22Z")); + RaiTopicProperties model = new RaiTopicProperties().withTopicId("tlhflsjcdhszf") + .withTopicName("fbgofeljagrqmqh") + .withDescription("vriiio") + .withSampleBlobUrl("al") + .withStatus("fk") + .withFailedReason("vsexsowuelu") + .withCreatedAt(OffsetDateTime.parse("2021-01-18T04:02:59Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-05-16T23:42:24Z")); model = BinaryData.fromObject(model).toObject(RaiTopicProperties.class); - Assertions.assertEquals("seypxiutcxapz", model.topicId()); - Assertions.assertEquals("rpetogebjoxsl", model.topicName()); - Assertions.assertEquals("nhl", model.description()); - Assertions.assertEquals("rqnkkzjcjbtr", model.sampleBlobUrl()); - Assertions.assertEquals("ehvvib", model.status()); - Assertions.assertEquals("jj", model.failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T04:33:41Z"), model.createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-02T14:44:22Z"), model.lastModifiedAt()); + Assertions.assertEquals("tlhflsjcdhszf", model.topicId()); + Assertions.assertEquals("fbgofeljagrqmqh", model.topicName()); + Assertions.assertEquals("vriiio", model.description()); + Assertions.assertEquals("al", model.sampleBlobUrl()); + Assertions.assertEquals("fk", model.status()); + Assertions.assertEquals("vsexsowuelu", model.failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T04:02:59Z"), model.createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-16T23:42:24Z"), model.lastModifiedAt()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicResultTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicResultTests.java index 067662c0e49c..83fc6d9de403 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicResultTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicResultTests.java @@ -13,19 +13,19 @@ public final class RaiTopicResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RaiTopicResult model = BinaryData.fromString( - "{\"nextLink\":\"it\",\"value\":[{\"properties\":{\"topicId\":\"moob\",\"topicName\":\"ft\",\"description\":\"gfcwqmpimaqxzhem\",\"sampleBlobUrl\":\"h\",\"status\":\"uj\",\"failedReason\":\"t\",\"createdAt\":\"2021-02-28T12:44:36Z\",\"lastModifiedAt\":\"2021-10-12T17:43:23Z\"},\"etag\":\"culkbawpfaj\",\"tags\":{\"vkcdmxzr\":\"ltlwtjjguktalhs\",\"aaomylweazu\":\"oaimlnw\",\"hwwn\":\"cse\",\"ousnfepgfewe\":\"jhlfzswpchwahf\"},\"id\":\"l\",\"name\":\"xgncxyk\",\"type\":\"hdjhlimmbcx\"},{\"properties\":{\"topicId\":\"cporxvxcjz\",\"topicName\":\"izxfpxt\",\"description\":\"scjavftju\",\"sampleBlobUrl\":\"qaz\",\"status\":\"tgguwpijrajcivmm\",\"failedReason\":\"f\",\"createdAt\":\"2021-01-23T22:13:23Z\",\"lastModifiedAt\":\"2021-08-19T01:45:54Z\"},\"etag\":\"gkn\",\"tags\":{\"oxgsgbpfgzdjtx\":\"yinzqodfvpgs\"},\"id\":\"flbqvgaq\",\"name\":\"lgafcqusrdve\",\"type\":\"nwsdtutnwlduyc\"}]}") + "{\"nextLink\":\"xvrhmzkwp\",\"value\":[{\"properties\":{\"topicId\":\"pughftqsxh\",\"topicName\":\"ujxukndxd\",\"description\":\"rjguufzdmsyqtf\",\"sampleBlobUrl\":\"whbotzingamv\",\"status\":\"ho\",\"failedReason\":\"qzudphq\",\"createdAt\":\"2021-03-24T10:30:38Z\",\"lastModifiedAt\":\"2021-09-10T05:23:41Z\"},\"etag\":\"wynwcvtbvkayhm\",\"tags\":{\"npwzcjaes\":\"yqiatkzwp\",\"hwyg\":\"vvsccyajguq\"},\"id\":\"vdnkfxusem\",\"name\":\"wzrmuh\",\"type\":\"pfcqdp\"}]}") .toObject(RaiTopicResult.class); - Assertions.assertEquals("it", model.nextLink()); - Assertions.assertEquals("moob", model.value().get(0).properties().topicId()); - Assertions.assertEquals("ft", model.value().get(0).properties().topicName()); - Assertions.assertEquals("gfcwqmpimaqxzhem", model.value().get(0).properties().description()); - Assertions.assertEquals("h", model.value().get(0).properties().sampleBlobUrl()); - Assertions.assertEquals("uj", model.value().get(0).properties().status()); - Assertions.assertEquals("t", model.value().get(0).properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T12:44:36Z"), + Assertions.assertEquals("xvrhmzkwp", model.nextLink()); + Assertions.assertEquals("pughftqsxh", model.value().get(0).properties().topicId()); + Assertions.assertEquals("ujxukndxd", model.value().get(0).properties().topicName()); + Assertions.assertEquals("rjguufzdmsyqtf", model.value().get(0).properties().description()); + Assertions.assertEquals("whbotzingamv", model.value().get(0).properties().sampleBlobUrl()); + Assertions.assertEquals("ho", model.value().get(0).properties().status()); + Assertions.assertEquals("qzudphq", model.value().get(0).properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-24T10:30:38Z"), model.value().get(0).properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-12T17:43:23Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T05:23:41Z"), model.value().get(0).properties().lastModifiedAt()); - Assertions.assertEquals("ltlwtjjguktalhs", model.value().get(0).tags().get("vkcdmxzr")); + Assertions.assertEquals("yqiatkzwp", model.value().get(0).tags().get("npwzcjaes")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateWithResponseMockTests.java index b3dccbc6704c..d727f22b3a31 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsCreateOrUpdateWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RaiTopicsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"topicId\":\"bpjzobdwbcpraswk\",\"topicName\":\"ydtnaczkfwfatgaw\",\"description\":\"nskivdwgt\",\"sampleBlobUrl\":\"umecsaaq\",\"status\":\"qbdiuycsbskowkr\",\"failedReason\":\"zhrbkhtmqo\",\"createdAt\":\"2021-04-11T19:48Z\",\"lastModifiedAt\":\"2021-01-22T22:25:46Z\"},\"etag\":\"gqgucyhfaimqvd\",\"tags\":{\"gfmq\":\"zkgyfpeoe\",\"ixvlz\":\"sk\",\"yntvzjyielbq\":\"xplhpeva\"},\"id\":\"vbqv\",\"name\":\"nmpecqxgiqasifub\",\"type\":\"snstl\"}"; + = "{\"properties\":{\"topicId\":\"kbvcpxtzhigqqbti\",\"topicName\":\"kjblornsihqh\",\"description\":\"smusuaawj\",\"sampleBlobUrl\":\"xwjnfcz\",\"status\":\"nii\",\"failedReason\":\"x\",\"createdAt\":\"2021-07-14T21:14:44Z\",\"lastModifiedAt\":\"2021-11-21T08:32:04Z\"},\"etag\":\"sjtgirnbgmgmddo\",\"tags\":{\"ltwmpftmf\":\"y\",\"jogsyx\":\"e\",\"nrecchdidrm\":\"etamfddrvlkpzwb\",\"wmjpjbweunxcqrr\":\"hkahmjedbiucvkh\"},\"id\":\"ufoihppiybxv\",\"name\":\"nzuz\",\"type\":\"bgk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,28 +34,28 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiTopic response = manager.raiTopics() - .define("nqxgz") - .withExistingAccount("yxqfmzsizzhravr", "jkjymgqbgcx") - .withTags(mapOf("qiyv", "fyjfd")) - .withProperties(new RaiTopicProperties().withTopicId("rmk") - .withTopicName("rghskir") - .withDescription("pupkcbkfukd") - .withSampleBlobUrl("qnv") - .withStatus("dydshk") - .withFailedReason("fyaloowwzizzny") - .withCreatedAt(OffsetDateTime.parse("2021-05-26T12:09:53Z")) - .withLastModifiedAt(OffsetDateTime.parse("2021-05-23T02:06:42Z"))) + .define("tn") + .withExistingAccount("gmlilwzghjhjvmab", "zbwaybfmdafbgym") + .withTags(mapOf("dj", "picdbk")) + .withProperties(new RaiTopicProperties().withTopicId("eojxrjn") + .withTopicName("conxavi") + .withDescription("eychbji") + .withSampleBlobUrl("fsgnw") + .withStatus("zed") + .withFailedReason("l") + .withCreatedAt(OffsetDateTime.parse("2021-07-28T04:40:09Z")) + .withLastModifiedAt(OffsetDateTime.parse("2021-03-22T21:52:30Z"))) .create(); - Assertions.assertEquals("bpjzobdwbcpraswk", response.properties().topicId()); - Assertions.assertEquals("ydtnaczkfwfatgaw", response.properties().topicName()); - Assertions.assertEquals("nskivdwgt", response.properties().description()); - Assertions.assertEquals("umecsaaq", response.properties().sampleBlobUrl()); - Assertions.assertEquals("qbdiuycsbskowkr", response.properties().status()); - Assertions.assertEquals("zhrbkhtmqo", response.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-11T19:48Z"), response.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T22:25:46Z"), response.properties().lastModifiedAt()); - Assertions.assertEquals("zkgyfpeoe", response.tags().get("gfmq")); + Assertions.assertEquals("kbvcpxtzhigqqbti", response.properties().topicId()); + Assertions.assertEquals("kjblornsihqh", response.properties().topicName()); + Assertions.assertEquals("smusuaawj", response.properties().description()); + Assertions.assertEquals("xwjnfcz", response.properties().sampleBlobUrl()); + Assertions.assertEquals("nii", response.properties().status()); + Assertions.assertEquals("x", response.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-14T21:14:44Z"), response.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T08:32:04Z"), response.properties().lastModifiedAt()); + Assertions.assertEquals("y", response.tags().get("ltwmpftmf")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetWithResponseMockTests.java index 5b3b412b5f94..dc96e6068f8f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class RaiTopicsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"topicId\":\"xwjwilm\",\"topicName\":\"sl\",\"description\":\"teptwujjzgxqgqwl\",\"sampleBlobUrl\":\"hgt\",\"status\":\"vtqqy\",\"failedReason\":\"kkt\",\"createdAt\":\"2021-10-16T22:29:02Z\",\"lastModifiedAt\":\"2021-01-29T05:32:48Z\"},\"etag\":\"gm\",\"tags\":{\"h\":\"vvmvmcofn\",\"snqliwkmzojfe\":\"bsn\",\"nazgbjbhrpgiq\":\"yalhtgm\"},\"id\":\"tcucrcmmai\",\"name\":\"p\",\"type\":\"jiwifhbksldttoh\"}"; + = "{\"properties\":{\"topicId\":\"hxdfbkl\",\"topicName\":\"ich\",\"description\":\"sysmvxodgw\",\"sampleBlobUrl\":\"kzsifcuvb\",\"status\":\"jgc\",\"failedReason\":\"vecb\",\"createdAt\":\"2021-09-18T13:24:44Z\",\"lastModifiedAt\":\"2021-11-29T11:21:45Z\"},\"etag\":\"xrizagbbgi\",\"tags\":{\"pgdqxwabzrw\":\"sy\",\"kptjqgkifmmai\":\"qrxhaclcdos\",\"d\":\"wh\",\"qwuntob\":\"kp\"},\"id\":\"z\",\"name\":\"zz\",\"type\":\"lw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,17 +31,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RaiTopic response = manager.raiTopics() - .getWithResponse("cslhwuusi", "cktybhjuxid", "hxomilddxjx", com.azure.core.util.Context.NONE) + .getWithResponse("fpjbqggwe", "iwdhdmncgbfzu", "cstu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xwjwilm", response.properties().topicId()); - Assertions.assertEquals("sl", response.properties().topicName()); - Assertions.assertEquals("teptwujjzgxqgqwl", response.properties().description()); - Assertions.assertEquals("hgt", response.properties().sampleBlobUrl()); - Assertions.assertEquals("vtqqy", response.properties().status()); - Assertions.assertEquals("kkt", response.properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-16T22:29:02Z"), response.properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-29T05:32:48Z"), response.properties().lastModifiedAt()); - Assertions.assertEquals("vvmvmcofn", response.tags().get("h")); + Assertions.assertEquals("hxdfbkl", response.properties().topicId()); + Assertions.assertEquals("ich", response.properties().topicName()); + Assertions.assertEquals("sysmvxodgw", response.properties().description()); + Assertions.assertEquals("kzsifcuvb", response.properties().sampleBlobUrl()); + Assertions.assertEquals("jgc", response.properties().status()); + Assertions.assertEquals("vecb", response.properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-18T13:24:44Z"), response.properties().createdAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-29T11:21:45Z"), response.properties().lastModifiedAt()); + Assertions.assertEquals("sy", response.tags().get("pgdqxwabzrw")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListMockTests.java index d1c1586b87c3..4ee887f80bf0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/RaiTopicsListMockTests.java @@ -22,7 +22,7 @@ public final class RaiTopicsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"topicId\":\"mgl\",\"topicName\":\"oi\",\"description\":\"trawrqkza\",\"sampleBlobUrl\":\"unmpaklwzl\",\"status\":\"epr\",\"failedReason\":\"jzltkaszfjs\",\"createdAt\":\"2021-06-26T09:59:20Z\",\"lastModifiedAt\":\"2021-08-04T18:18:13Z\"},\"etag\":\"xapgrcqebmvrdjom\",\"tags\":{\"dsbgzan\":\"sbvvdlsflxkqesdf\",\"dhqnufbxweiib\":\"oinmphymcqidklt\",\"vfnybydh\":\"toj\",\"rhjkehw\":\"ihaouwudhua\"},\"id\":\"mosqircamqprlob\",\"name\":\"ugejcvjkjyczcmt\",\"type\":\"gelajdyolje\"}]}"; + = "{\"value\":[{\"properties\":{\"topicId\":\"bal\",\"topicName\":\"xa\",\"description\":\"zfytlbtlqhopxou\",\"sampleBlobUrl\":\"rsifliky\",\"status\":\"zkg\",\"failedReason\":\"xfmyrqs\",\"createdAt\":\"2021-03-28T18:58:57Z\",\"lastModifiedAt\":\"2021-03-18T20:41:24Z\"},\"etag\":\"zanmhwgpter\",\"tags\":{\"kskw\":\"wki\",\"olzkgys\":\"tsdetjygowifcq\"},\"id\":\"zyybzo\",\"name\":\"lvoc\",\"type\":\"tvdxxhe\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,18 +32,18 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.raiTopics().list("clnaihtg", "iqikvllr", com.azure.core.util.Context.NONE); + = manager.raiTopics().list("vydjufbnk", "blaxpegj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("mgl", response.iterator().next().properties().topicId()); - Assertions.assertEquals("oi", response.iterator().next().properties().topicName()); - Assertions.assertEquals("trawrqkza", response.iterator().next().properties().description()); - Assertions.assertEquals("unmpaklwzl", response.iterator().next().properties().sampleBlobUrl()); - Assertions.assertEquals("epr", response.iterator().next().properties().status()); - Assertions.assertEquals("jzltkaszfjs", response.iterator().next().properties().failedReason()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-26T09:59:20Z"), + Assertions.assertEquals("bal", response.iterator().next().properties().topicId()); + Assertions.assertEquals("xa", response.iterator().next().properties().topicName()); + Assertions.assertEquals("zfytlbtlqhopxou", response.iterator().next().properties().description()); + Assertions.assertEquals("rsifliky", response.iterator().next().properties().sampleBlobUrl()); + Assertions.assertEquals("zkg", response.iterator().next().properties().status()); + Assertions.assertEquals("xfmyrqs", response.iterator().next().properties().failedReason()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-28T18:58:57Z"), response.iterator().next().properties().createdAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-04T18:18:13Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-03-18T20:41:24Z"), response.iterator().next().properties().lastModifiedAt()); - Assertions.assertEquals("sbvvdlsflxkqesdf", response.iterator().next().tags().get("dsbgzan")); + Assertions.assertEquals("wki", response.iterator().next().tags().get("kskw")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ReplacementConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ReplacementConfigTests.java index 2f9831099bcd..f83c37b09796 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ReplacementConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ReplacementConfigTests.java @@ -13,11 +13,11 @@ public final class ReplacementConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ReplacementConfig model = BinaryData.fromString( - "{\"targetModelName\":\"eh\",\"targetModelVersion\":\"vecxgodebfqkk\",\"autoUpgradeStartDate\":\"2021-10-28T16:20:15Z\",\"upgradeOnExpiryLeadTimeDays\":1171229778}") + "{\"targetModelName\":\"qagnbuyn\",\"targetModelVersion\":\"jggmebfsiarbu\",\"autoUpgradeStartDate\":\"2021-02-21T10:02:12Z\",\"upgradeOnExpiryLeadTimeDays\":357365351}") .toObject(ReplacementConfig.class); - Assertions.assertEquals("eh", model.targetModelName()); - Assertions.assertEquals("vecxgodebfqkk", model.targetModelVersion()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-28T16:20:15Z"), model.autoUpgradeStartDate()); - Assertions.assertEquals(1171229778, model.upgradeOnExpiryLeadTimeDays()); + Assertions.assertEquals("qagnbuyn", model.targetModelName()); + Assertions.assertEquals("jggmebfsiarbu", model.targetModelVersion()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-21T10:02:12Z"), model.autoUpgradeStartDate()); + Assertions.assertEquals(357365351, model.upgradeOnExpiryLeadTimeDays()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceBaseTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceBaseTests.java index c1f1cbe9c1fc..fc5c13f5164c 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceBaseTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceBaseTests.java @@ -13,18 +13,20 @@ public final class ResourceBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceBase model = BinaryData.fromString("{\"description\":\"aoaguhicqlli\",\"tags\":{\"jvhrweft\":\"ac\"}}") + ResourceBase model = BinaryData.fromString( + "{\"description\":\"wmrswnjlxuzrh\",\"tags\":{\"qehgpd\":\"sxjb\",\"xncnwfe\":\"hzjqatucoige\",\"cgbjbgdlfgt\":\"bnwgfmxj\"}}") .toObject(ResourceBase.class); - Assertions.assertEquals("aoaguhicqlli", model.description()); - Assertions.assertEquals("ac", model.tags().get("jvhrweft")); + Assertions.assertEquals("wmrswnjlxuzrh", model.description()); + Assertions.assertEquals("sxjb", model.tags().get("qehgpd")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceBase model = new ResourceBase().withDescription("aoaguhicqlli").withTags(mapOf("jvhrweft", "ac")); + ResourceBase model = new ResourceBase().withDescription("wmrswnjlxuzrh") + .withTags(mapOf("qehgpd", "sxjb", "xncnwfe", "hzjqatucoige", "cgbjbgdlfgt", "bnwgfmxj")); model = BinaryData.fromObject(model).toObject(ResourceBase.class); - Assertions.assertEquals("aoaguhicqlli", model.description()); - Assertions.assertEquals("ac", model.tags().get("jvhrweft")); + Assertions.assertEquals("wmrswnjlxuzrh", model.description()); + Assertions.assertEquals("sxjb", model.tags().get("qehgpd")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java index 314aee81abdd..dbfe0efb491b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckDomainAvailabilityWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ResourceProvidersCheckDomainAvailabilityWithResponseMockTests @Test public void testCheckDomainAvailabilityWithResponse() throws Exception { String responseStr - = "{\"isSubdomainAvailable\":true,\"reason\":\"eoxinhgre\",\"subdomainName\":\"twhlpuzjpce\",\"type\":\"nzangprbfaxy\",\"kind\":\"lbciphmsexro\"}"; + = "{\"isSubdomainAvailable\":false,\"reason\":\"jrhuzgf\",\"subdomainName\":\"njt\",\"type\":\"sllywpvtio\",\"kind\":\"bpdbollgr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,16 @@ public void testCheckDomainAvailabilityWithResponse() throws Exception { DomainAvailability response = manager.resourceProviders() .checkDomainAvailabilityWithResponse( - new CheckDomainAvailabilityParameter().withSubdomainName("fyvrtpqpemhzcgk") - .withType("epdqhqyhwq") - .withKind("mvxqab"), + new CheckDomainAvailabilityParameter().withSubdomainName("kfnjyixhafrat") + .withType("xmbjroum") + .withKind("n"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertTrue(response.isSubdomainAvailable()); - Assertions.assertEquals("eoxinhgre", response.reason()); - Assertions.assertEquals("twhlpuzjpce", response.subdomainName()); - Assertions.assertEquals("nzangprbfaxy", response.type()); - Assertions.assertEquals("lbciphmsexro", response.kind()); + Assertions.assertFalse(response.isSubdomainAvailable()); + Assertions.assertEquals("jrhuzgf", response.reason()); + Assertions.assertEquals("njt", response.subdomainName()); + Assertions.assertEquals("sllywpvtio", response.type()); + Assertions.assertEquals("bpdbollgr", response.kind()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java index 5565c0809d84..e3b437662926 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceProvidersCheckSkuAvailabilityWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class ResourceProvidersCheckSkuAvailabilityWithResponseMockTests { @Test public void testCheckSkuAvailabilityWithResponse() throws Exception { String responseStr - = "{\"value\":[{\"kind\":\"dxcltuubwyvpj\",\"type\":\"wcpjqduqgi\",\"skuName\":\"xkydfbwlja\",\"skuAvailable\":true,\"reason\":\"rkjd\",\"message\":\"r\"},{\"kind\":\"iegftc\",\"type\":\"iiftksd\",\"skuName\":\"dnkefgm\",\"skuAvailable\":true,\"reason\":\"eb\",\"message\":\"czldbglzoutbaaqg\"},{\"kind\":\"kajclyzgsn\",\"type\":\"bjgmnzj\",\"skuName\":\"vmrxkhlobvvjbh\",\"skuAvailable\":false,\"reason\":\"qayfl\",\"message\":\"yu\"},{\"kind\":\"n\",\"type\":\"dtelvhyibdrqrs\",\"skuName\":\"buubpyrowt\",\"skuAvailable\":true,\"reason\":\"tfwfqchvczevj\",\"message\":\"cta\"}]}"; + = "{\"value\":[{\"kind\":\"smaklixqcahy\",\"type\":\"alybxawoijpo\",\"skuName\":\"blxpkkwjdjodq\",\"skuAvailable\":true,\"reason\":\"ncn\",\"message\":\"mehllizhceu\"},{\"kind\":\"qodkadppyibngql\",\"type\":\"ywrxw\",\"skuName\":\"dtluvvadswzsn\",\"skuAvailable\":true,\"reason\":\"lowuowhlxlnwyr\",\"message\":\"uvblg\"},{\"kind\":\"kzkltrfowt\",\"type\":\"rfmvlihcvjdrqcrj\",\"skuName\":\"h\",\"skuAvailable\":false,\"reason\":\"vhdxlwyo\",\"message\":\"fqz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,18 +33,19 @@ public void testCheckSkuAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SkuAvailabilityListResult response = manager.resourceProviders() - .checkSkuAvailabilityWithResponse("qpilrgu", - new CheckSkuAvailabilityParameter().withSkus(Arrays.asList("anlduwzorxsb", "x", "qk")) - .withKind("xym") - .withType("kqv"), + .checkSkuAvailabilityWithResponse("eyguq", + new CheckSkuAvailabilityParameter() + .withSkus(Arrays.asList("ijiitns", "xlzdesygrijwa", "ufanray", "fueqfrojs")) + .withKind("dgrhydkygywezs") + .withType("iecafygzmxi"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("dxcltuubwyvpj", response.value().get(0).kind()); - Assertions.assertEquals("wcpjqduqgi", response.value().get(0).type()); - Assertions.assertEquals("xkydfbwlja", response.value().get(0).skuName()); + Assertions.assertEquals("smaklixqcahy", response.value().get(0).kind()); + Assertions.assertEquals("alybxawoijpo", response.value().get(0).type()); + Assertions.assertEquals("blxpkkwjdjodq", response.value().get(0).skuName()); Assertions.assertTrue(response.value().get(0).skuAvailable()); - Assertions.assertEquals("rkjd", response.value().get(0).reason()); - Assertions.assertEquals("r", response.value().get(0).message()); + Assertions.assertEquals("ncn", response.value().get(0).reason()); + Assertions.assertEquals("mehllizhceu", response.value().get(0).message()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkuRestrictionInfoTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkuRestrictionInfoTests.java index 913dba484b5f..ef3c06021601 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkuRestrictionInfoTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ResourceSkuRestrictionInfoTests.java @@ -11,11 +11,10 @@ public final class ResourceSkuRestrictionInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceSkuRestrictionInfo model = BinaryData - .fromString( - "{\"locations\":[\"ncaqttiekoifu\"],\"zones\":[\"ttzgixgyrihlg\",\"gbehlqtxnr\",\"lkndrndpgfjodh\"]}") + ResourceSkuRestrictionInfo model = BinaryData.fromString( + "{\"locations\":[\"jfkakfqfrke\",\"yildudxjascow\",\"f\",\"jkpdxphlkksnm\"],\"zones\":[\"yfijdkzuqnws\",\"thuqolyahluq\",\"qulsutrjbhxykfhy\"]}") .toObject(ResourceSkuRestrictionInfo.class); - Assertions.assertEquals("ncaqttiekoifu", model.locations().get(0)); - Assertions.assertEquals("ttzgixgyrihlg", model.zones().get(0)); + Assertions.assertEquals("jfkakfqfrke", model.locations().get(0)); + Assertions.assertEquals("yfijdkzuqnws", model.zones().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SafetyProviderConfigTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SafetyProviderConfigTests.java index c34dbfbd4c1a..b7c353c0d410 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SafetyProviderConfigTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SafetyProviderConfigTests.java @@ -12,22 +12,22 @@ public final class SafetyProviderConfigTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SafetyProviderConfig model - = BinaryData.fromString("{\"source\":\"PreRun\",\"safetyProviderName\":\"yxgtczh\",\"blocking\":false}") - .toObject(SafetyProviderConfig.class); - Assertions.assertEquals("yxgtczh", model.safetyProviderName()); + SafetyProviderConfig model = BinaryData + .fromString("{\"source\":\"PostToolCall\",\"safetyProviderName\":\"cqdpfuv\",\"blocking\":false}") + .toObject(SafetyProviderConfig.class); + Assertions.assertEquals("cqdpfuv", model.safetyProviderName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, model.source()); + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, model.source()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SafetyProviderConfig model = new SafetyProviderConfig().withSafetyProviderName("yxgtczh") + SafetyProviderConfig model = new SafetyProviderConfig().withSafetyProviderName("cqdpfuv") .withBlocking(false) - .withSource(RaiPolicyContentSource.PRE_RUN); + .withSource(RaiPolicyContentSource.POST_TOOL_CALL); model = BinaryData.fromObject(model).toObject(SafetyProviderConfig.class); - Assertions.assertEquals("yxgtczh", model.safetyProviderName()); + Assertions.assertEquals("cqdpfuv", model.safetyProviderName()); Assertions.assertFalse(model.blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_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/ServiceTagOutboundRuleDestinationTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleDestinationTests.java index 18c17dd36af3..af20cc9d841a 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleDestinationTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleDestinationTests.java @@ -14,27 +14,27 @@ public final class ServiceTagOutboundRuleDestinationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceTagOutboundRuleDestination model = BinaryData.fromString( - "{\"serviceTag\":\"jfdoesxxhm\",\"protocol\":\"dbckyo\",\"portRanges\":\"xkxhnegknjzrbhtm\",\"action\":\"Deny\",\"addressPrefixes\":[\"kaobrl\",\"pgsn\",\"agnchjhgemuowaky\",\"a\"]}") + "{\"serviceTag\":\"izmoaeds\",\"protocol\":\"wuived\",\"portRanges\":\"gyeewxeiq\",\"action\":\"Deny\",\"addressPrefixes\":[\"omguamlj\"]}") .toObject(ServiceTagOutboundRuleDestination.class); - Assertions.assertEquals("jfdoesxxhm", model.serviceTag()); - Assertions.assertEquals("dbckyo", model.protocol()); - Assertions.assertEquals("xkxhnegknjzrbhtm", model.portRanges()); + Assertions.assertEquals("izmoaeds", model.serviceTag()); + Assertions.assertEquals("wuived", model.protocol()); + Assertions.assertEquals("gyeewxeiq", model.portRanges()); Assertions.assertEquals(RuleAction.DENY, model.action()); - Assertions.assertEquals("kaobrl", model.addressPrefixes().get(0)); + Assertions.assertEquals("omguamlj", model.addressPrefixes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceTagOutboundRuleDestination model = new ServiceTagOutboundRuleDestination().withServiceTag("jfdoesxxhm") - .withProtocol("dbckyo") - .withPortRanges("xkxhnegknjzrbhtm") + ServiceTagOutboundRuleDestination model = new ServiceTagOutboundRuleDestination().withServiceTag("izmoaeds") + .withProtocol("wuived") + .withPortRanges("gyeewxeiq") .withAction(RuleAction.DENY) - .withAddressPrefixes(Arrays.asList("kaobrl", "pgsn", "agnchjhgemuowaky", "a")); + .withAddressPrefixes(Arrays.asList("omguamlj")); model = BinaryData.fromObject(model).toObject(ServiceTagOutboundRuleDestination.class); - Assertions.assertEquals("jfdoesxxhm", model.serviceTag()); - Assertions.assertEquals("dbckyo", model.protocol()); - Assertions.assertEquals("xkxhnegknjzrbhtm", model.portRanges()); + Assertions.assertEquals("izmoaeds", model.serviceTag()); + Assertions.assertEquals("wuived", model.protocol()); + Assertions.assertEquals("gyeewxeiq", model.portRanges()); Assertions.assertEquals(RuleAction.DENY, model.action()); - Assertions.assertEquals("kaobrl", model.addressPrefixes().get(0)); + Assertions.assertEquals("omguamlj", model.addressPrefixes().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleTests.java index ac008646b5c2..f5636f1e60d6 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/ServiceTagOutboundRuleTests.java @@ -17,33 +17,33 @@ public final class ServiceTagOutboundRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ServiceTagOutboundRule model = BinaryData.fromString( - "{\"type\":\"ServiceTag\",\"destination\":{\"serviceTag\":\"zyqu\",\"protocol\":\"sqxutr\",\"portRanges\":\"rruyuu\",\"action\":\"Allow\",\"addressPrefixes\":[\"bjwcolbmx\",\"b\",\"w\"]},\"category\":\"UserDefined\",\"status\":\"Failed\",\"errorInformation\":\"pr\",\"parentRuleNames\":[\"xhmtfhocnxzc\",\"jhngxnoq\",\"xtdisnjevhd\",\"mydidwhepfw\"]}") + "{\"type\":\"ServiceTag\",\"destination\":{\"serviceTag\":\"bqgvgovpbbtte\",\"protocol\":\"oknssqyzqedikdf\",\"portRanges\":\"biqmrjgei\",\"action\":\"Allow\",\"addressPrefixes\":[\"gwfiwzcxmjpby\",\"phmgtvljvrcmyfq\"]},\"category\":\"Dependency\",\"status\":\"Active\",\"errorInformation\":\"pomyqwcabvnuile\",\"parentRuleNames\":[\"swlpaugmrmfj\",\"rxwtoaukhfkvc\"]}") .toObject(ServiceTagOutboundRule.class); - Assertions.assertEquals(RuleCategory.USER_DEFINED, model.category()); - Assertions.assertEquals(RuleStatus.FAILED, model.status()); - Assertions.assertEquals("zyqu", model.destination().serviceTag()); - Assertions.assertEquals("sqxutr", model.destination().protocol()); - Assertions.assertEquals("rruyuu", model.destination().portRanges()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); + Assertions.assertEquals(RuleStatus.ACTIVE, model.status()); + Assertions.assertEquals("bqgvgovpbbtte", model.destination().serviceTag()); + Assertions.assertEquals("oknssqyzqedikdf", model.destination().protocol()); + Assertions.assertEquals("biqmrjgei", model.destination().portRanges()); Assertions.assertEquals(RuleAction.ALLOW, model.destination().action()); - Assertions.assertEquals("bjwcolbmx", model.destination().addressPrefixes().get(0)); + Assertions.assertEquals("gwfiwzcxmjpby", model.destination().addressPrefixes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ServiceTagOutboundRule model = new ServiceTagOutboundRule().withCategory(RuleCategory.USER_DEFINED) - .withStatus(RuleStatus.FAILED) - .withDestination(new ServiceTagOutboundRuleDestination().withServiceTag("zyqu") - .withProtocol("sqxutr") - .withPortRanges("rruyuu") + ServiceTagOutboundRule model = new ServiceTagOutboundRule().withCategory(RuleCategory.DEPENDENCY) + .withStatus(RuleStatus.ACTIVE) + .withDestination(new ServiceTagOutboundRuleDestination().withServiceTag("bqgvgovpbbtte") + .withProtocol("oknssqyzqedikdf") + .withPortRanges("biqmrjgei") .withAction(RuleAction.ALLOW) - .withAddressPrefixes(Arrays.asList("bjwcolbmx", "b", "w"))); + .withAddressPrefixes(Arrays.asList("gwfiwzcxmjpby", "phmgtvljvrcmyfq"))); model = BinaryData.fromObject(model).toObject(ServiceTagOutboundRule.class); - Assertions.assertEquals(RuleCategory.USER_DEFINED, model.category()); - Assertions.assertEquals(RuleStatus.FAILED, model.status()); - Assertions.assertEquals("zyqu", model.destination().serviceTag()); - Assertions.assertEquals("sqxutr", model.destination().protocol()); - Assertions.assertEquals("rruyuu", model.destination().portRanges()); + Assertions.assertEquals(RuleCategory.DEPENDENCY, model.category()); + Assertions.assertEquals(RuleStatus.ACTIVE, model.status()); + Assertions.assertEquals("bqgvgovpbbtte", model.destination().serviceTag()); + Assertions.assertEquals("oknssqyzqedikdf", model.destination().protocol()); + Assertions.assertEquals("biqmrjgei", model.destination().portRanges()); Assertions.assertEquals(RuleAction.ALLOW, model.destination().action()); - Assertions.assertEquals("bjwcolbmx", model.destination().addressPrefixes().get(0)); + Assertions.assertEquals("gwfiwzcxmjpby", model.destination().addressPrefixes().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java index 7c3318c87371..2dae7bb24ce3 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuResourceInnerTests.java @@ -13,18 +13,18 @@ public final class SkuResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SkuResourceInner model = BinaryData.fromString( - "{\"resourceType\":\"mszkkfo\",\"sku\":{\"name\":\"eyfkzikfja\",\"tier\":\"Basic\",\"size\":\"ivx\",\"family\":\"zel\",\"capacity\":1240770029},\"capacity\":{\"minimum\":2047901217,\"maximum\":1960013520,\"step\":1789990861,\"default\":730394428,\"allowedValues\":[1417911120,1449386799]}}") + "{\"resourceType\":\"znelixhnrztfolh\",\"sku\":{\"name\":\"xknalaulppg\",\"tier\":\"Enterprise\",\"size\":\"napnyiropuhpigv\",\"family\":\"ylgqgitxmedjvcsl\",\"capacity\":1361907690},\"capacity\":{\"minimum\":745098113,\"maximum\":785152893,\"step\":960001198,\"default\":668336306,\"allowedValues\":[808952037,1935411854,1481822403]}}") .toObject(SkuResourceInner.class); - Assertions.assertEquals("mszkkfo", model.resourceType()); - Assertions.assertEquals("eyfkzikfja", model.sku().name()); - Assertions.assertEquals(SkuTier.BASIC, model.sku().tier()); - Assertions.assertEquals("ivx", model.sku().size()); - Assertions.assertEquals("zel", model.sku().family()); - Assertions.assertEquals(1240770029, model.sku().capacity()); - Assertions.assertEquals(2047901217, model.capacity().minimum()); - Assertions.assertEquals(1960013520, model.capacity().maximum()); - Assertions.assertEquals(1789990861, model.capacity().step()); - Assertions.assertEquals(730394428, model.capacity().defaultProperty()); - Assertions.assertEquals(1417911120, model.capacity().allowedValues().get(0)); + Assertions.assertEquals("znelixhnrztfolh", model.resourceType()); + Assertions.assertEquals("xknalaulppg", model.sku().name()); + Assertions.assertEquals(SkuTier.ENTERPRISE, model.sku().tier()); + Assertions.assertEquals("napnyiropuhpigv", model.sku().size()); + Assertions.assertEquals("ylgqgitxmedjvcsl", model.sku().family()); + Assertions.assertEquals(1361907690, model.sku().capacity()); + Assertions.assertEquals(745098113, model.capacity().minimum()); + Assertions.assertEquals(785152893, model.capacity().maximum()); + Assertions.assertEquals(960001198, model.capacity().step()); + Assertions.assertEquals(668336306, model.capacity().defaultProperty()); + Assertions.assertEquals(808952037, model.capacity().allowedValues().get(0)); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuTests.java index ec5b38251815..807f839383a1 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SkuTests.java @@ -13,27 +13,27 @@ public final class SkuTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Sku model = BinaryData.fromString( - "{\"name\":\"dkexxppofm\",\"tier\":\"Enterprise\",\"size\":\"fjpgddtocjjxhvp\",\"family\":\"uexhdzx\",\"capacity\":1730783579}") + "{\"name\":\"zaqsqsycbkbfk\",\"tier\":\"Standard\",\"size\":\"kexxppof\",\"family\":\"axcfjpgddtocjjx\",\"capacity\":256483207}") .toObject(Sku.class); - Assertions.assertEquals("dkexxppofm", model.name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, model.tier()); - Assertions.assertEquals("fjpgddtocjjxhvp", model.size()); - Assertions.assertEquals("uexhdzx", model.family()); - Assertions.assertEquals(1730783579, model.capacity()); + Assertions.assertEquals("zaqsqsycbkbfk", model.name()); + Assertions.assertEquals(SkuTier.STANDARD, model.tier()); + Assertions.assertEquals("kexxppof", model.size()); + Assertions.assertEquals("axcfjpgddtocjjx", model.family()); + Assertions.assertEquals(256483207, model.capacity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Sku model = new Sku().withName("dkexxppofm") - .withTier(SkuTier.ENTERPRISE) - .withSize("fjpgddtocjjxhvp") - .withFamily("uexhdzx") - .withCapacity(1730783579); + Sku model = new Sku().withName("zaqsqsycbkbfk") + .withTier(SkuTier.STANDARD) + .withSize("kexxppof") + .withFamily("axcfjpgddtocjjx") + .withCapacity(256483207); model = BinaryData.fromObject(model).toObject(Sku.class); - Assertions.assertEquals("dkexxppofm", model.name()); - Assertions.assertEquals(SkuTier.ENTERPRISE, model.tier()); - Assertions.assertEquals("fjpgddtocjjxhvp", model.size()); - Assertions.assertEquals("uexhdzx", model.family()); - Assertions.assertEquals(1730783579, model.capacity()); + Assertions.assertEquals("zaqsqsycbkbfk", model.name()); + Assertions.assertEquals(SkuTier.STANDARD, model.tier()); + Assertions.assertEquals("kexxppof", model.size()); + Assertions.assertEquals("axcfjpgddtocjjx", model.family()); + Assertions.assertEquals(256483207, model.capacity()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests.java index 4300fe823f06..8d0e673f8b0e 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 @@ -14,14 +14,6 @@ import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; import com.azure.resourcemanager.cognitiveservices.models.CustomBlocklistConfig; import com.azure.resourcemanager.cognitiveservices.models.RaiActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressPolicyConfig; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRule; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleMatch; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; @@ -41,7 +33,7 @@ public final class SubscriptionRaiPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"vsfbp\",\"contentFilters\":[{\"name\":\"paxmfm\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"PreToolCall\",\"blocklistName\":\"bsat\",\"blocking\":true},{\"source\":\"PreToolCall\",\"blocklistName\":\"sugmocpcjyc\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"wfldsiuorinik\",\"blocking\":false},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"riwmmtmqrxrzqv\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"tg\",\"rules\":[{\"name\":\"iqahragpx\",\"description\":\"bp\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}},{\"name\":\"o\",\"description\":\"yefqmwovyztx\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Rewrite\"}}]}},\"etag\":\"pbjceegvy\",\"tags\":{\"ukkrehyh\":\"tkutnjil\",\"fvulxfaryr\":\"mjodu\"},\"id\":\"lgdezvjqw\",\"name\":\"hoyiyaxqvjweiw\",\"type\":\"czkddn\"}"; + = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Blocking\",\"basePolicyName\":\"llwkt\",\"contentFilters\":[{\"name\":\"wavvqxuajgcqwuly\",\"enabled\":true,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"BLOCKING\"}],\"customBlocklists\":[{\"source\":\"PostToolCall\",\"blocklistName\":\"clhuulriqbyokv\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PostRun\",\"safetyProviderName\":\"rsltt\",\"blocking\":true},{\"source\":\"PreRun\",\"safetyProviderName\":\"wsuoardnagttpu\",\"blocking\":true},{\"source\":\"PostToolCall\",\"safetyProviderName\":\"rholhujbfwxi\",\"blocking\":true},{\"source\":\"PreToolCall\",\"safetyProviderName\":\"l\",\"blocking\":false}]},\"etag\":\"rxslwhdmcv\",\"tags\":{\"pcqzg\":\"bzjhfvhuwzb\"},\"id\":\"otjecohmxvvl\",\"name\":\"rskapbxwieexu\",\"type\":\"aderltfokyk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -50,101 +42,70 @@ public void testCreateOrUpdateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - RaiPolicy response = manager.subscriptionRaiPolicies() - .createOrUpdateWithResponse("ikclsm", new RaiPolicyInner() - .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER) - .withBasePolicyName("ykdnonaaxwmg") - .withContentFilters(Arrays.asList( - new RaiPolicyContentFilter().withName("lqcwnynll") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.ANNOTATING), - new RaiPolicyContentFilter().withName("ertoxadhxuvj") - .withEnabled(true) - .withSeverityThreshold(ContentLevel.HIGH) - .withBlocking(false) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL) - .withAction(RaiActionType.NONE), - new RaiPolicyContentFilter().withName("twmlg") - .withEnabled(false) - .withSeverityThreshold(ContentLevel.LOW) - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN) - .withAction(RaiActionType.ANNOTATING))) - .withCustomBlocklists(Arrays.asList( - new CustomBlocklistConfig().withBlocklistName("i") - .withBlocking(true) - .withSource(RaiPolicyContentSource.PRE_RUN), - new CustomBlocklistConfig().withBlocklistName("cdsvmwbitek") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_TOOL_CALL))) - .withSafetyProviders(Arrays.asList( - new SafetyProviderConfig().withSafetyProviderName("ybxq") - .withBlocking(true) - .withSource(RaiPolicyContentSource.POST_RUN), - new SafetyProviderConfig().withSafetyProviderName("fzdqekiv") - .withBlocking(false) - .withSource(RaiPolicyContentSource.PROMPT), - new SafetyProviderConfig().withSafetyProviderName("diz") - .withBlocking(true) - .withSource(RaiPolicyContentSource.COMPLETION))) - .withEgressPolicy(new RaiEgressPolicyConfig().withMode(RaiEgressMode.AUDIT) - .withDefaultAction(RaiEgressDefaultAction.DENY) - .withDescription("ezp") - .withRules(Arrays.asList( - new RaiEgressRule().withName("ryfmxmdu") - .withDescription("fkgilnoudccgnd") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY)), - new RaiEgressRule().withName("r") - .withDescription("gqqyeqfcbuulpyuf") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW)), - new RaiEgressRule().withName("shtujcyoh") - .withDescription("imwdcsklkqnqvki") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.DENY)), - new RaiEgressRule().withName("zmec") - .withDescription("rzwimbzayspz") - .withRuleType(RaiEgressRuleType.FQDN) - .withMatch(new RaiEgressRuleMatch()) - .withAction(new RaiEgressRuleAction().withActionType(RaiEgressRuleActionType.ALLOW)))))) - .withTags(mapOf("gschnzrsbk", "xplgtpvdvatlz", "ws", "zovlzdmnfm", "orimmo", "afofu", "ovanyrva", - "zwdehkkmvhz")), - com.azure.core.util.Context.NONE) - .getValue(); + RaiPolicy response + = manager.subscriptionRaiPolicies() + .createOrUpdateWithResponse("ngdyfcixrhlcq", new RaiPolicyInner() + .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.DEFERRED) + .withBasePolicyName("iutg") + .withContentFilters(Arrays.asList( + new RaiPolicyContentFilter().withName("a") + .withEnabled(false) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(true) + .withSource(RaiPolicyContentSource.COMPLETION) + .withAction(RaiActionType.HITL), + new RaiPolicyContentFilter().withName("hncogmipnml") + .withEnabled(true) + .withSeverityThreshold(ContentLevel.HIGH) + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_RUN) + .withAction(RaiActionType.RETRY))) + .withCustomBlocklists(Arrays.asList( + new CustomBlocklistConfig().withBlocklistName("pomxpu") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new CustomBlocklistConfig().withBlocklistName("jyies") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_RUN), + new CustomBlocklistConfig().withBlocklistName("uoutmpy") + .withBlocking(false) + .withSource(RaiPolicyContentSource.PRE_TOOL_CALL))) + .withSafetyProviders(Arrays.asList( + new SafetyProviderConfig().withSafetyProviderName("bgbwwz") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_RUN), + new SafetyProviderConfig().withSafetyProviderName("nncfmaciqgjjrlhi") + .withBlocking(true) + .withSource(RaiPolicyContentSource.POST_TOOL_CALL), + new SafetyProviderConfig().withSafetyProviderName("tbouguxtnd") + .withBlocking(true) + .withSource(RaiPolicyContentSource.PRE_RUN), + new SafetyProviderConfig().withSafetyProviderName("bas") + .withBlocking(false) + .withSource(RaiPolicyContentSource.COMPLETION)))) + .withTags(mapOf("fjmsp", "npbbfqv", "jmphfkyezolgj", "gzfeuzj", "uydoccnx", "mi", "batecaat", + "hanzbuiad")), + com.azure.core.util.Context.NONE) + .getValue(); Assertions.assertEquals(RaiPolicyMode.BLOCKING, response.properties().mode()); - Assertions.assertEquals("vsfbp", response.properties().basePolicyName()); - Assertions.assertEquals("paxmfm", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals("llwkt", response.properties().basePolicyName()); + Assertions.assertEquals("wavvqxuajgcqwuly", response.properties().contentFilters().get(0).name()); Assertions.assertTrue(response.properties().contentFilters().get(0).enabled()); - Assertions.assertEquals(ContentLevel.LOW, response.properties().contentFilters().get(0).severityThreshold()); + Assertions.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.RETRY, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("bsat", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertEquals(RaiActionType.BLOCKING, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("clhuulriqbyokv", response.properties().customBlocklists().get(0).blocklistName()); Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_TOOL_CALL, + Assertions.assertEquals(RaiPolicyContentSource.POST_TOOL_CALL, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("wfldsiuorinik", response.properties().safetyProviders().get(0).safetyProviderName()); - Assertions.assertFalse(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, + Assertions.assertEquals("rsltt", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertTrue(response.properties().safetyProviders().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.AUDIT, response.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, response.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("tg", response.properties().egressPolicy().description()); - Assertions.assertEquals("iqahragpx", response.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("bp", response.properties().egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, response.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.REWRITE, - response.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("tkutnjil", response.tags().get("ukkrehyh")); + Assertions.assertEquals("bzjhfvhuwzb", response.tags().get("pcqzg")); } // Use "Map.of" if available diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesGetWithResponseMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/SubscriptionRaiPoliciesGetWithResponseMockTests.java index b24da9a62ad2..16ad1b95a194 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 @@ -12,10 +12,6 @@ import com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager; import com.azure.resourcemanager.cognitiveservices.models.ContentLevel; import com.azure.resourcemanager.cognitiveservices.models.RaiActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressDefaultAction; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressMode; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleActionType; -import com.azure.resourcemanager.cognitiveservices.models.RaiEgressRuleType; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicy; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource; import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode; @@ -29,7 +25,7 @@ public final class SubscriptionRaiPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"type\":\"SystemManaged\",\"mode\":\"Default\",\"basePolicyName\":\"gfqumjdjxhzghgo\",\"contentFilters\":[{\"name\":\"rceqavfdbdfm\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"Prompt\",\"action\":\"BLOCKING\"},{\"name\":\"yqmkwlh\",\"enabled\":false,\"severityThreshold\":\"High\",\"blocking\":true,\"source\":\"PreRun\",\"action\":\"ANNOTATING\"},{\"name\":\"xxr\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":true,\"source\":\"PreToolCall\",\"action\":\"HITL\"},{\"name\":\"tdtkwppthuz\",\"enabled\":true,\"severityThreshold\":\"High\",\"blocking\":false,\"source\":\"Completion\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"PostRun\",\"blocklistName\":\"emhkftbaewht\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"PreRun\",\"safetyProviderName\":\"xtllfltymqcnr\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"gabqbg\",\"blocking\":true},{\"source\":\"Completion\",\"safetyProviderName\":\"irw\",\"blocking\":true}],\"egressPolicy\":{\"mode\":\"Audit\",\"defaultAction\":\"Allow\",\"description\":\"ouh\",\"rules\":[{\"name\":\"rxqwqnjxrd\",\"description\":\"dtullygtavczcxdf\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Deny\"}},{\"name\":\"yf\",\"description\":\"xrljphraspi\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Transform\"}},{\"name\":\"m\",\"description\":\"lmdbgic\",\"ruleType\":\"Fqdn\",\"match\":{},\"action\":{\"actionType\":\"Allow\"}}]}},\"etag\":\"mdrjuqbpxt\",\"tags\":{\"yqiprclt\":\"jmtznpaxwfqt\"},\"id\":\"gbsoljckmiigzb\",\"name\":\"uck\",\"type\":\"kdskswtiiqqc\"}"; + = "{\"properties\":{\"type\":\"UserManaged\",\"mode\":\"Deferred\",\"basePolicyName\":\"kscvgllixdgbyf\",\"contentFilters\":[{\"name\":\"qkjvxprwpxsoohu\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"RETRY\"},{\"name\":\"ggg\",\"enabled\":true,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"Prompt\",\"action\":\"None\"},{\"name\":\"rtmdylperpil\",\"enabled\":false,\"severityThreshold\":\"Low\",\"blocking\":false,\"source\":\"PostRun\",\"action\":\"ANNOTATING\"},{\"name\":\"fbodetresrgvts\",\"enabled\":false,\"severityThreshold\":\"Medium\",\"blocking\":false,\"source\":\"PreRun\",\"action\":\"RETRY\"}],\"customBlocklists\":[{\"source\":\"PreRun\",\"blocklistName\":\"gjypanhxmpdxxze\",\"blocking\":true}],\"safetyProviders\":[{\"source\":\"Prompt\",\"safetyProviderName\":\"nxlkfhglhrfoxqwe\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"cselqxovppqibuk\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"rmlccmet\",\"blocking\":true},{\"source\":\"PostRun\",\"safetyProviderName\":\"fqbqnasd\",\"blocking\":false}]},\"etag\":\"zsieuscplhyvd\",\"tags\":{\"ezsvkolrupjov\":\"yzkxitds\",\"razwzlpzbt\":\"ozsaye\",\"epfnoc\":\"uykykipfsd\"},\"id\":\"ezacfpztga\",\"name\":\"wyqejgaao\",\"type\":\"ctgkppgkqzkcyzmf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,33 +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("d", com.azure.core.util.Context.NONE).getValue(); + RaiPolicy response = manager.subscriptionRaiPolicies() + .getWithResponse("cauwazcgwdfriwg", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(RaiPolicyMode.DEFAULT, response.properties().mode()); - Assertions.assertEquals("gfqumjdjxhzghgo", response.properties().basePolicyName()); - Assertions.assertEquals("rceqavfdbdfm", response.properties().contentFilters().get(0).name()); + Assertions.assertEquals(RaiPolicyMode.DEFERRED, response.properties().mode()); + Assertions.assertEquals("kscvgllixdgbyf", response.properties().basePolicyName()); + Assertions.assertEquals("qkjvxprwpxsoohu", 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.PROMPT, response.properties().contentFilters().get(0).source()); - Assertions.assertEquals(RaiActionType.BLOCKING, response.properties().contentFilters().get(0).action()); - Assertions.assertEquals("emhkftbaewht", response.properties().customBlocklists().get(0).blocklistName()); - Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(ContentLevel.MEDIUM, response.properties().contentFilters().get(0).severityThreshold()); + Assertions.assertFalse(response.properties().contentFilters().get(0).blocking()); Assertions.assertEquals(RaiPolicyContentSource.POST_RUN, + response.properties().contentFilters().get(0).source()); + Assertions.assertEquals(RaiActionType.RETRY, response.properties().contentFilters().get(0).action()); + Assertions.assertEquals("gjypanhxmpdxxze", response.properties().customBlocklists().get(0).blocklistName()); + Assertions.assertTrue(response.properties().customBlocklists().get(0).blocking()); + Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, response.properties().customBlocklists().get(0).source()); - Assertions.assertEquals("xtllfltymqcnr", response.properties().safetyProviders().get(0).safetyProviderName()); + Assertions.assertEquals("nxlkfhglhrfoxqwe", + response.properties().safetyProviders().get(0).safetyProviderName()); Assertions.assertTrue(response.properties().safetyProviders().get(0).blocking()); - Assertions.assertEquals(RaiPolicyContentSource.PRE_RUN, - response.properties().safetyProviders().get(0).source()); - Assertions.assertEquals(RaiEgressMode.AUDIT, response.properties().egressPolicy().mode()); - Assertions.assertEquals(RaiEgressDefaultAction.ALLOW, response.properties().egressPolicy().defaultAction()); - Assertions.assertEquals("ouh", response.properties().egressPolicy().description()); - Assertions.assertEquals("rxqwqnjxrd", response.properties().egressPolicy().rules().get(0).name()); - Assertions.assertEquals("dtullygtavczcxdf", response.properties().egressPolicy().rules().get(0).description()); - Assertions.assertEquals(RaiEgressRuleType.FQDN, response.properties().egressPolicy().rules().get(0).ruleType()); - Assertions.assertEquals(RaiEgressRuleActionType.DENY, - response.properties().egressPolicy().rules().get(0).action().actionType()); - Assertions.assertEquals("jmtznpaxwfqt", response.tags().get("yqiprclt")); + Assertions.assertEquals(RaiPolicyContentSource.PROMPT, response.properties().safetyProviders().get(0).source()); + Assertions.assertEquals("yzkxitds", response.tags().get("ezsvkolrupjov")); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/TrafficRoutingRuleTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/TrafficRoutingRuleTests.java index 21a70fcc9560..9d501c25735b 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/TrafficRoutingRuleTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/TrafficRoutingRuleTests.java @@ -12,24 +12,24 @@ public final class TrafficRoutingRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TrafficRoutingRule model = BinaryData.fromString( - "{\"ruleId\":\"muabwibvjogjonmc\",\"description\":\"foyzbamwineof\",\"deploymentId\":\"kak\",\"trafficPercentage\":1325802844}") + "{\"ruleId\":\"yqltqsro\",\"description\":\"uwkffdjktsysid\",\"deploymentId\":\"c\",\"trafficPercentage\":2092148385}") .toObject(TrafficRoutingRule.class); - Assertions.assertEquals("muabwibvjogjonmc", model.ruleId()); - Assertions.assertEquals("foyzbamwineof", model.description()); - Assertions.assertEquals("kak", model.deploymentId()); - Assertions.assertEquals(1325802844, model.trafficPercentage()); + Assertions.assertEquals("yqltqsro", model.ruleId()); + Assertions.assertEquals("uwkffdjktsysid", model.description()); + Assertions.assertEquals("c", model.deploymentId()); + Assertions.assertEquals(2092148385, model.trafficPercentage()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TrafficRoutingRule model = new TrafficRoutingRule().withRuleId("muabwibvjogjonmc") - .withDescription("foyzbamwineof") - .withDeploymentId("kak") - .withTrafficPercentage(1325802844); + TrafficRoutingRule model = new TrafficRoutingRule().withRuleId("yqltqsro") + .withDescription("uwkffdjktsysid") + .withDeploymentId("c") + .withTrafficPercentage(2092148385); model = BinaryData.fromObject(model).toObject(TrafficRoutingRule.class); - Assertions.assertEquals("muabwibvjogjonmc", model.ruleId()); - Assertions.assertEquals("foyzbamwineof", model.description()); - Assertions.assertEquals("kak", model.deploymentId()); - Assertions.assertEquals(1325802844, model.trafficPercentage()); + Assertions.assertEquals("yqltqsro", model.ruleId()); + Assertions.assertEquals("uwkffdjktsysid", model.description()); + Assertions.assertEquals("c", model.deploymentId()); + Assertions.assertEquals(2092148385, model.trafficPercentage()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java index a8c741030bf8..18bd847f9fc4 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageInnerTests.java @@ -15,17 +15,17 @@ public final class UsageInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageInner model = BinaryData.fromString( - "{\"unit\":\"CountPerSecond\",\"name\":{\"value\":\"nbpoczvyifqrvkdv\",\"localizedValue\":\"llr\"},\"quotaPeriod\":\"vdfwatkpn\",\"limit\":64.15778922246344,\"currentValue\":70.74757992055699,\"nextResetTime\":\"zwtruwiqzbqjvsov\",\"status\":\"Blocked\",\"scopeType\":\"Global\",\"scopeId\":\"spkwlhzdobpxjm\"}") + "{\"unit\":\"Count\",\"name\":{\"value\":\"sfcpkvxodpuozm\",\"localizedValue\":\"ydagfuaxbe\"},\"quotaPeriod\":\"iu\",\"limit\":22.413429318671486,\"currentValue\":75.16582098477036,\"nextResetTime\":\"xw\",\"status\":\"Blocked\",\"scopeType\":\"Regional\",\"scopeId\":\"bsureximo\"}") .toObject(UsageInner.class); - Assertions.assertEquals(UnitType.COUNT_PER_SECOND, model.unit()); - Assertions.assertEquals("nbpoczvyifqrvkdv", model.name().value()); - Assertions.assertEquals("llr", model.name().localizedValue()); - Assertions.assertEquals("vdfwatkpn", model.quotaPeriod()); - Assertions.assertEquals(64.15778922246344D, model.limit()); - Assertions.assertEquals(70.74757992055699D, model.currentValue()); - Assertions.assertEquals("zwtruwiqzbqjvsov", model.nextResetTime()); + Assertions.assertEquals(UnitType.COUNT, model.unit()); + Assertions.assertEquals("sfcpkvxodpuozm", model.name().value()); + Assertions.assertEquals("ydagfuaxbe", model.name().localizedValue()); + Assertions.assertEquals("iu", model.quotaPeriod()); + Assertions.assertEquals(22.413429318671486D, model.limit()); + Assertions.assertEquals(75.16582098477036D, model.currentValue()); + Assertions.assertEquals("xw", model.nextResetTime()); Assertions.assertEquals(QuotaUsageStatus.BLOCKED, model.status()); - Assertions.assertEquals(QuotaScopeType.GLOBAL, model.scopeType()); - Assertions.assertEquals("spkwlhzdobpxjm", model.scopeId()); + Assertions.assertEquals(QuotaScopeType.REGIONAL, model.scopeType()); + Assertions.assertEquals("bsureximo", model.scopeId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java index 3d632c3397b5..98ef3ccb8de8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsageListResultInnerTests.java @@ -15,18 +15,18 @@ public final class UsageListResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageListResultInner model = BinaryData.fromString( - "{\"nextLink\":\"mohctb\",\"value\":[{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"ndnvo\",\"localizedValue\":\"ujjugwdkcglh\"},\"quotaPeriod\":\"azjdyggd\",\"limit\":92.2174087854439,\"currentValue\":3.8497339257224095,\"nextResetTime\":\"ofqweykhmenevfye\",\"status\":\"Blocked\",\"scopeType\":\"Classic\",\"scopeId\":\"cibvyvdcsitynn\"},{\"unit\":\"Bytes\",\"name\":{\"value\":\"ctehfiqscjey\",\"localizedValue\":\"hezrkgq\"},\"quotaPeriod\":\"jrefovgmkqsle\",\"limit\":97.29868657736189,\"currentValue\":91.19923353577501,\"nextResetTime\":\"k\",\"status\":\"Included\",\"scopeType\":\"Classic\",\"scopeId\":\"gjcrcczsqpjhvm\"},{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"ysou\",\"localizedValue\":\"e\"},\"quotaPeriod\":\"noae\",\"limit\":94.26749513394212,\"currentValue\":97.24576844160318,\"nextResetTime\":\"rpmopjmc\",\"status\":\"Included\",\"scopeType\":\"Regional\",\"scopeId\":\"thfuiuaodsfcpkvx\"},{\"unit\":\"BytesPerSecond\",\"name\":{\"value\":\"zmyzydagf\",\"localizedValue\":\"xbezyiuokktwh\"},\"quotaPeriod\":\"xw\",\"limit\":48.933406236795584,\"currentValue\":60.16505440558948,\"nextResetTime\":\"ureximoryocfs\",\"status\":\"Included\",\"scopeType\":\"DataZone\",\"scopeId\":\"dystkiiuxhqyud\"}]}") + "{\"nextLink\":\"dkcglhsl\",\"value\":[{\"unit\":\"Count\",\"name\":{\"value\":\"dtjixhb\",\"localizedValue\":\"ofqweykhmenevfye\"},\"quotaPeriod\":\"whybcib\",\"limit\":53.581217264194194,\"currentValue\":12.89051185586626,\"nextResetTime\":\"ynnaam\",\"status\":\"InOverage\",\"scopeType\":\"Regional\",\"scopeId\":\"f\"},{\"unit\":\"Count\",\"name\":{\"value\":\"eypvhezrkg\",\"localizedValue\":\"c\"},\"quotaPeriod\":\"efovgmk\",\"limit\":33.12551044707579,\"currentValue\":38.22056349066922,\"nextResetTime\":\"yqjpkcatt\",\"status\":\"Unknown\",\"scopeType\":\"Regional\",\"scopeId\":\"cczsq\"},{\"unit\":\"Milliseconds\",\"name\":{\"value\":\"daj\",\"localizedValue\":\"ysou\"},\"quotaPeriod\":\"e\",\"limit\":21.05759367053658,\"currentValue\":74.55696647155128,\"nextResetTime\":\"fhyhltrpmopjmcma\",\"status\":\"Included\",\"scopeType\":\"Classic\",\"scopeId\":\"fu\"}]}") .toObject(UsageListResultInner.class); - Assertions.assertEquals("mohctb", model.nextLink()); - Assertions.assertEquals(UnitType.BYTES_PER_SECOND, model.value().get(0).unit()); - Assertions.assertEquals("ndnvo", model.value().get(0).name().value()); - Assertions.assertEquals("ujjugwdkcglh", model.value().get(0).name().localizedValue()); - Assertions.assertEquals("azjdyggd", model.value().get(0).quotaPeriod()); - Assertions.assertEquals(92.2174087854439D, model.value().get(0).limit()); - Assertions.assertEquals(3.8497339257224095D, model.value().get(0).currentValue()); - Assertions.assertEquals("ofqweykhmenevfye", model.value().get(0).nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.BLOCKED, model.value().get(0).status()); - Assertions.assertEquals(QuotaScopeType.CLASSIC, model.value().get(0).scopeType()); - Assertions.assertEquals("cibvyvdcsitynn", model.value().get(0).scopeId()); + Assertions.assertEquals("dkcglhsl", model.nextLink()); + Assertions.assertEquals(UnitType.COUNT, model.value().get(0).unit()); + Assertions.assertEquals("dtjixhb", model.value().get(0).name().value()); + Assertions.assertEquals("ofqweykhmenevfye", model.value().get(0).name().localizedValue()); + Assertions.assertEquals("whybcib", model.value().get(0).quotaPeriod()); + Assertions.assertEquals(53.581217264194194D, model.value().get(0).limit()); + Assertions.assertEquals(12.89051185586626D, model.value().get(0).currentValue()); + Assertions.assertEquals("ynnaam", model.value().get(0).nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.IN_OVERAGE, model.value().get(0).status()); + Assertions.assertEquals(QuotaScopeType.REGIONAL, model.value().get(0).scopeType()); + Assertions.assertEquals("f", model.value().get(0).scopeId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java index 739acba1c2e4..3d802a75cbe0 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UsagesListMockTests.java @@ -25,7 +25,7 @@ public final class UsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"unit\":\"Count\",\"name\":{\"value\":\"weacfxaubu\",\"localizedValue\":\"uetcnx\"},\"quotaPeriod\":\"qzzdckhsq\",\"limit\":52.85072457031858,\"currentValue\":82.20062413283634,\"nextResetTime\":\"owo\",\"status\":\"Unknown\",\"scopeType\":\"DataZone\",\"scopeId\":\"yokohlsfjfouq\"}]}"; + = "{\"value\":[{\"unit\":\"Bytes\",\"name\":{\"value\":\"tm\",\"localizedValue\":\"xrq\"},\"quotaPeriod\":\"fzfvwj\",\"limit\":52.774865017982656,\"currentValue\":65.15024271340616,\"nextResetTime\":\"yoafinmp\",\"status\":\"InOverage\",\"scopeType\":\"Classic\",\"scopeId\":\"jr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,17 +34,17 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.usages().list("i", "zhpjgqz", com.azure.core.util.Context.NONE); + PagedIterable response = manager.usages().list("tsvgoocqs", "zmz", com.azure.core.util.Context.NONE); - Assertions.assertEquals(UnitType.COUNT, response.iterator().next().unit()); - Assertions.assertEquals("weacfxaubu", response.iterator().next().name().value()); - Assertions.assertEquals("uetcnx", response.iterator().next().name().localizedValue()); - Assertions.assertEquals("qzzdckhsq", response.iterator().next().quotaPeriod()); - Assertions.assertEquals(52.85072457031858D, response.iterator().next().limit()); - Assertions.assertEquals(82.20062413283634D, response.iterator().next().currentValue()); - Assertions.assertEquals("owo", response.iterator().next().nextResetTime()); - Assertions.assertEquals(QuotaUsageStatus.UNKNOWN, response.iterator().next().status()); - Assertions.assertEquals(QuotaScopeType.DATA_ZONE, response.iterator().next().scopeType()); - Assertions.assertEquals("yokohlsfjfouq", response.iterator().next().scopeId()); + Assertions.assertEquals(UnitType.BYTES, response.iterator().next().unit()); + Assertions.assertEquals("tm", response.iterator().next().name().value()); + Assertions.assertEquals("xrq", response.iterator().next().name().localizedValue()); + Assertions.assertEquals("fzfvwj", response.iterator().next().quotaPeriod()); + Assertions.assertEquals(52.774865017982656D, response.iterator().next().limit()); + Assertions.assertEquals(65.15024271340616D, response.iterator().next().currentValue()); + Assertions.assertEquals("yoafinmp", response.iterator().next().nextResetTime()); + Assertions.assertEquals(QuotaUsageStatus.IN_OVERAGE, response.iterator().next().status()); + Assertions.assertEquals(QuotaScopeType.CLASSIC, response.iterator().next().scopeType()); + Assertions.assertEquals("jr", response.iterator().next().scopeId()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserAssignedIdentityTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserAssignedIdentityTests.java index 51fddca6e939..31ba96f7c4c9 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserAssignedIdentityTests.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/UserAssignedIdentityTests.java @@ -10,7 +10,7 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"bhj\",\"clientId\":\"igeho\"}") + UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"vdfgiotk\",\"clientId\":\"utqxlngx\"}") .toObject(UserAssignedIdentity.class); } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/VersionedAgentReferenceTests.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/test/java/com/azure/resourcemanager/cognitiveservices/generated/VersionedAgentReferenceTests.java index c11359c909f3..704003e3d6dd 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 @@ -11,21 +11,22 @@ public final class VersionedAgentReferenceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VersionedAgentReference model - = BinaryData.fromString("{\"agentVersion\":\"uvp\",\"agentId\":\"glpm\",\"agentName\":\"dcueljtiahxmfq\"}") - .toObject(VersionedAgentReference.class); - Assertions.assertEquals("glpm", model.agentId()); - Assertions.assertEquals("dcueljtiahxmfq", model.agentName()); - Assertions.assertEquals("uvp", model.agentVersion()); + VersionedAgentReference model = BinaryData + .fromString("{\"agentVersion\":\"vvbxiwkgfbqljnq\",\"agentId\":\"ychocokulehu\",\"agentName\":\"lrqff\"}") + .toObject(VersionedAgentReference.class); + Assertions.assertEquals("ychocokulehu", model.agentId()); + Assertions.assertEquals("lrqff", model.agentName()); + Assertions.assertEquals("vvbxiwkgfbqljnq", model.agentVersion()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VersionedAgentReference model - = new VersionedAgentReference().withAgentId("glpm").withAgentName("dcueljtiahxmfq").withAgentVersion("uvp"); + VersionedAgentReference model = new VersionedAgentReference().withAgentId("ychocokulehu") + .withAgentName("lrqff") + .withAgentVersion("vvbxiwkgfbqljnq"); model = BinaryData.fromObject(model).toObject(VersionedAgentReference.class); - Assertions.assertEquals("glpm", model.agentId()); - Assertions.assertEquals("dcueljtiahxmfq", model.agentName()); - Assertions.assertEquals("uvp", model.agentVersion()); + Assertions.assertEquals("ychocokulehu", model.agentId()); + Assertions.assertEquals("lrqff", model.agentName()); + Assertions.assertEquals("vvbxiwkgfbqljnq", model.agentVersion()); } } diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml index cecbdf3bb541..a1c495351c9f 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/cognitiveservices/CognitiveServices.Management -commit: 39bf1b80fd8bc55b091192d51d67433c84930639 +commit: 721bc9a088852bd224dfbf441f29daa5f8f6c9d9 repo: Azure/azure-rest-api-specs additionalDirectories: