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