diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md
index 3d72349a1a19..514a0b5a7e32 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md
@@ -1,14 +1,1068 @@
# Release History
-## 1.5.0-beta.1 (Unreleased)
+## 1.5.0-beta.1 (2026-03-26)
+
+- Azure Resource Manager CognitiveServices client library for Java. This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package api-version 2026-01-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+
+### Breaking Changes
+
+#### `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.ResourceSkuListResult` was removed
+
+#### `models.QuotaTierListResult` was removed
+
+#### `models.ConnectionPropertiesV2BasicResourceArmPaginatedResult` was removed
+
+#### `models.RaiBlockListResult` was removed
+
+#### `models.ConnectionPropertiesV2BasicResource$DefinitionStages` was modified
+
+* `withExistingAccount(java.lang.String,java.lang.String)` was removed in stage 1
+
+#### `models.RegenerateKeyParameters` was modified
+
+* `validate()` was removed
+
+#### `models.Sku` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceSkuRestrictions` was modified
+
+* `ResourceSkuRestrictions()` was changed to private access
+* `validate()` was removed
+* `withValues(java.util.List)` was removed
+* `withReasonCode(models.ResourceSkuRestrictionsReasonCode)` was removed
+* `withRestrictionInfo(models.ResourceSkuRestrictionInfo)` was removed
+* `withType(models.ResourceSkuRestrictionsType)` was removed
+
+#### `models.ApiProperties` was modified
+
+* `validate()` was removed
+
+#### `models.NetworkSecurityPerimeterConfigurationProperties` was modified
+
+* `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access
+* `validate()` was removed
+* `withResourceAssociation(models.NetworkSecurityPerimeterConfigurationAssociationInfo)` was removed
+* `withProvisioningIssues(java.util.List)` was removed
+* `withProfile(models.NetworkSecurityPerimeterProfileInfo)` was removed
+* `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` 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
+
+* `batchDeleteWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.Object,com.azure.core.util.Context)` was removed
+* `batchDelete(java.lang.String,java.lang.String,java.lang.String,java.lang.Object)` was removed
+
+#### `models.NetworkSecurityPerimeterAccessRule` was modified
+
+* `NetworkSecurityPerimeterAccessRule()` was changed to private access
+* `validate()` was removed
+* `withProperties(models.NetworkSecurityPerimeterAccessRuleProperties)` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.CustomTopicConfig` was modified
+
+* `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
+* `validate()` was removed
+* `withProperties(models.PrivateLinkResourceProperties)` was removed
+
+#### `models.AccountConnections` was modified
+
+* `define(java.lang.String)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getById(java.lang.String)` was removed
+* `deleteById(java.lang.String)` was removed
+
+#### `models.RaiBlocklistProperties` was modified
+
+* `validate()` was removed
+
+#### `models.SkuAvailability` was modified
+
+* `SkuAvailability()` was changed to private access
+* `withType(java.lang.String)` was removed
+* `validate()` was removed
+* `withSkuName(java.lang.String)` was removed
+* `withSkuAvailable(java.lang.Boolean)` was removed
+* `withKind(java.lang.String)` was removed
+* `withMessage(java.lang.String)` was removed
+* `withReason(java.lang.String)` was removed
+
+#### `models.RequestMatchPattern` was modified
+
+* `RequestMatchPattern()` was changed to private access
+* `withMethod(java.lang.String)` was removed
+* `withPath(java.lang.String)` was removed
+* `validate()` was removed
+
+#### `models.ConnectionPropertiesV2BasicResource$Definition` was modified
+
+* `withExistingAccount(java.lang.String,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
+* `withUnit(java.lang.String)` was removed
+* `withQuantity(java.lang.Long)` 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
+* `validate()` was removed
+* `withAutoUpgradeStartDate(java.time.OffsetDateTime)` was removed
+* `withTargetModelVersion(java.lang.String)` was removed
+* `withTargetModelName(java.lang.String)` was removed
+* `withUpgradeOnExpiryLeadTimeDays(java.lang.Integer)` 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
+* `withEnabledLogCategories(java.util.List)` was removed
+* `withAccessRulesVersion(java.lang.Long)` was removed
+* `validate()` was removed
+* `withDiagnosticSettingsVersion(java.lang.Long)` was removed
+* `withName(java.lang.String)` was removed
+* `withAccessRules(java.util.List)` was removed
+
+#### `models.ModelSku` was modified
+
+* `ModelSku()` was changed to private access
+* `withName(java.lang.String)` was removed
+* `withCost(java.util.List)` was removed
+* `withUsageName(java.lang.String)` was removed
+* `validate()` was removed
+* `withRateLimits(java.util.List)` was removed
+* `withCapacity(models.CapacityConfig)` was removed
+* `withDeprecationDate(java.time.OffsetDateTime)` 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
+
+* `validate()` was removed
+
+#### `models.SkuChangeInfo` was modified
+
+* `SkuChangeInfo()` was changed to private access
+* `withCountOfUpgradesAfterDowngrades(java.lang.Float)` was removed
+* `withLastChangeDate(java.lang.String)` was removed
+* `validate()` was removed
+* `withCountOfDowngrades(java.lang.Float)` 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
+
+#### `models.DeploymentProperties` was modified
+
+* `validate()` was removed
+
+#### `models.QuotaLimit` was modified
+
+* `QuotaLimit()` was changed to private access
+* `validate()` was removed
+* `withRenewalPeriod(java.lang.Float)` was removed
+* `withCount(java.lang.Float)` was removed
+* `withRules(java.util.List)` 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
+* `withLocalizedValue(java.lang.String)` was removed
+* `withValue(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
+* `withFineTune(java.lang.String)` was removed
+* `withDeprecationStatus(models.DeprecationStatus)` was removed
+* `validate()` was removed
+* `withInference(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
+* `withUpgradeApplicableDate(java.time.OffsetDateTime)` was removed
+* `validate()` was removed
+* `withNextTierName(java.lang.String)` was removed
+* `withUpgradeUnavailabilityReason(java.lang.String)` was removed
+
+#### `models.BillingMeterInfo` was modified
+
+* `BillingMeterInfo()` was changed to private access
+* `withMeterId(java.lang.String)` was removed
+* `validate()` was removed
+* `withName(java.lang.String)` was removed
+* `withUnit(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
+* `validate()` was removed
+* `withIssueType(java.lang.String)` was removed
+* `withSeverity(java.lang.String)` was removed
+* `withDescription(java.lang.String)` was removed
+* `withSuggestedAccessRules(java.util.List)` was removed
+* `withSuggestedResourceIds(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
+* `withDynamicThrottlingEnabled(java.lang.Boolean)` was removed
+* `withMatchPatterns(java.util.List)` was removed
+* `withRenewalPeriod(java.lang.Float)` was removed
+* `withKey(java.lang.String)` was removed
+* `withMinCount(java.lang.Float)` was removed
+* `validate()` was removed
+* `withCount(java.lang.Float)` was removed
+
+#### `models.AbusePenalty` was modified
+
+* `AbusePenalty()` was changed to private access
+* `validate()` was removed
+* `withExpiration(java.time.OffsetDateTime)` was removed
+* `withRateLimitPercentage(java.lang.Float)` was removed
+* `withAction(models.AbusePenaltyAction)` was removed
+
+#### `models.CommitmentCost` was modified
+
+* `CommitmentCost()` was changed to private access
+* `withOverageMeterId(java.lang.String)` was removed
+* `validate()` was removed
+* `withCommitmentMeterId(java.lang.String)` was removed
+
+#### `models.NetworkSecurityPerimeterAccessRuleProperties` was modified
+
+* `NetworkSecurityPerimeterAccessRuleProperties()` was changed to private access
+* `withAddressPrefixes(java.util.List)` was removed
+* `validate()` was removed
+* `withNetworkSecurityPerimeters(java.util.List)` was removed
+* `withDirection(models.NspAccessRuleDirection)` was removed
+* `withSubscriptions(java.util.List)` was removed
+* `withFullyQualifiedDomainNames(java.util.List)` was removed
+
+#### `models.PatchResourceTagsAndSku` was modified
+
+* `validate()` was removed
+
+#### `models.CapacityConfig` was modified
+
+* `CapacityConfig()` was changed to private access
+* `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
+* `validate()` was removed
+
+#### `models.RaiContentFilterProperties` was modified
+
+* `RaiContentFilterProperties()` was changed to private access
+* `withIsMultiLevelFilter(java.lang.Boolean)` was removed
+* `withSource(models.RaiPolicyContentSource)` was removed
+* `validate()` was removed
+* `withName(java.lang.String)` was removed
+
+#### `models.ModelSkuCapacityProperties` was modified
+
+* `ModelSkuCapacityProperties()` was changed to private access
+* `withModel(models.DeploymentModel)` was removed
+* `withAvailableCapacity(java.lang.Float)` was removed
+* `withSkuName(java.lang.String)` was removed
+* `withAvailableFinetuneCapacity(java.lang.Float)` was removed
+* `validate()` was removed
+
+#### `models.ProjectConnections` was modified
+
+* `createWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ConnectionPropertiesV2BasicResourceInner,com.azure.core.util.Context)` was removed
+* `create(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was removed
+* `updateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,models.ConnectionUpdateContent,com.azure.core.util.Context)` was removed
+* `update(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was removed
+
+#### `models.SkuCapability` was modified
+
+* `SkuCapability()` was changed to private access
+* `withName(java.lang.String)` was removed
+* `validate()` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.NetworkRuleSet` was modified
+
+* `validate()` was removed
+
+#### `models.Usage` was modified
+
+* `Usage()` was removed
+* `withLimit(java.lang.Double)` was removed
+* `withNextResetTime(java.lang.String)` was removed
+* `withQuotaPeriod(java.lang.String)` was removed
+* `withName(models.MetricName)` was removed
+* `withCurrentValue(java.lang.Double)` was removed
+* `toJson(com.azure.json.JsonWriter)` was removed
+* `java.lang.String nextResetTime()` -> `java.lang.String nextResetTime()`
+* `withUnit(models.UnitType)` was removed
+* `java.lang.Double currentValue()` -> `java.lang.Double currentValue()`
+* `java.lang.Double limit()` -> `java.lang.Double limit()`
+* `models.QuotaUsageStatus status()` -> `models.QuotaUsageStatus status()`
+* `models.MetricName name()` -> `models.MetricName name()`
+* `fromJson(com.azure.json.JsonReader)` was removed
+* `validate()` was removed
+* `java.lang.String quotaPeriod()` -> `java.lang.String quotaPeriod()`
+* `models.UnitType unit()` -> `models.UnitType unit()`
+* `withStatus(models.QuotaUsageStatus)` was removed
+
+#### `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.RaiTopicConfig` 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
+* `withName(java.lang.String)` was removed
+* `withProperties(models.ProvisioningIssueProperties)` 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
+* `withId(java.lang.String)` was removed
+* `validate()` was removed
+* `withPerimeterGuid(java.lang.String)` was removed
+* `withLocation(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
+* `validate()` was removed
+* `withLocations(java.util.List)` was removed
+* `withZones(java.util.List)` was removed
+
+#### `models.CalculateModelCapacityResultEstimatedCapacity` was modified
+
+* `CalculateModelCapacityResultEstimatedCapacity()` was changed to private access
+* `withDeployableValue(java.lang.Integer)` was removed
+* `validate()` was removed
+* `withValue(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)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CapabilityHostInner,com.azure.core.util.Context)` 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
+* `withRenewalPeriod(java.lang.Float)` was removed
+* `validate()` was removed
+* `withRules(java.util.List)` was removed
+* `withCount(java.lang.Float)` 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
-### Breaking Changes
+* `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.ComputeOperationStatusProperties` 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
-### Bugs Fixed
+* `models.ManagedNetworkSettingsPropertiesBasicResource` was added
+
+* `models.AgentReferenceResourceArmPaginatedResult` was added
+
+* `models.FoundryAutoUpgradeMode` was added
+
+* `models.ProjectCapabilityHost$Definition` was added
+
+* `models.OutboundRuleListResult` 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.ComputeOperationStatus` 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.RaiExternalSafetyProvider` 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.ComputeOperationStatusType` 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.FoundryAutoUpgrade` 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.RaiExternalSafetyProviderProperties` 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.ComputeOperations` 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.AccountConnections` was modified
+
+* `create(java.lang.String,java.lang.String,java.lang.String)` was added
+* `updateWithResponse(java.lang.String,java.lang.String,java.lang.String,models.ConnectionUpdateContent,com.azure.core.util.Context)` was added
+* `createWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.ConnectionPropertiesV2BasicResourceInner,com.azure.core.util.Context)` was added
+* `update(java.lang.String,java.lang.String,java.lang.String)` 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
+
+#### `models.ConnectionPropertiesV2BasicResource$Definition` was modified
+
+* `withExistingProject(java.lang.String,java.lang.String,java.lang.String)` was added
+
+#### `CognitiveServicesManager` was modified
+
+* `managedNetworkSettingsOperations()` was added
+* `computeOperations()` was added
+* `testRaiExternalSafetyProviders()` was added
+* `raiExternalSafetyProviders()` was added
+* `outboundRules()` was added
+* `agentApplications()` was added
+* `managedNetworkProvisions()` was added
+* `agentDeployments()` was added
+* `raiToolLabels()` was added
+* `raiExternalSafetyProvidersOperations()` was added
+* `outboundRulesOperations()` was added
+* `subscriptionRaiPolicies()` 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
+
+* `withServiceTier(models.ServiceTier)` was added
+* `withDeploymentState(models.DeploymentState)` was added
+* `deploymentState()` was added
+* `withRouting(models.DeploymentRouting)` was added
+* `routing()` was added
+* `serviceTier()` was added
+
+#### `models.ConnectionOAuth2` was modified
+
+* `withClientId(java.lang.String)` was added
+
+#### `models.ModelSkuCapacityProperties` was modified
+
+* `scopeId()` was added
+* `scopeType()` was added
+
+#### `models.ProjectConnections` was modified
+
+* `define(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+* `deleteById(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.Usage` was modified
+
+* `innerModel()` was added
+* `scopeType()` was added
+* `scopeId()` was added
+
+#### `models.AccountCapabilityHosts` was modified
+
+* `list(java.lang.String,java.lang.String)` was added
+* `list(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.RaiPolicyContentFilter` was modified
+
+* `action()` was added
+* `withAction(models.RaiActionType)` was added
+
+#### `models.AccountProperties` was modified
+
+* `withFoundryAutoUpgrade(models.FoundryAutoUpgrade)` was added
+* `foundryAutoUpgrade()` 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
+
+* `list(java.lang.String,java.lang.String,java.lang.String)` was added
+* `list(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `define(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+
+#### `models.Deployments` was modified
-### Other Changes
+* `resume(java.lang.String,java.lang.String,java.lang.String)` was added
+* `pause(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
+* `resumeWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
## 1.4.0 (2025-10-24)
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md
index d20a904d5ead..33248d47a138 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 tag package-2025-09-01. 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-01-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-cognitiveservices
- 1.4.0
+ 1.5.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md
index 5e03c547aaba..e7b8ecc4774f 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md
@@ -6,6 +6,7 @@
- [CreateOrUpdate](#accountcapabilityhosts_createorupdate)
- [Delete](#accountcapabilityhosts_delete)
- [Get](#accountcapabilityhosts_get)
+- [List](#accountcapabilityhosts_list)
## AccountConnections
@@ -29,6 +30,25 @@
- [RegenerateKey](#accounts_regeneratekey)
- [Update](#accounts_update)
+## AgentApplications
+
+- [CreateOrUpdate](#agentapplications_createorupdate)
+- [Delete](#agentapplications_delete)
+- [Disable](#agentapplications_disable)
+- [Enable](#agentapplications_enable)
+- [Get](#agentapplications_get)
+- [List](#agentapplications_list)
+- [ListAgents](#agentapplications_listagents)
+
+## AgentDeployments
+
+- [CreateOrUpdate](#agentdeployments_createorupdate)
+- [Delete](#agentdeployments_delete)
+- [Get](#agentdeployments_get)
+- [List](#agentdeployments_list)
+- [Start](#agentdeployments_start)
+- [Stop](#agentdeployments_stop)
+
## CommitmentPlans
- [CreateOrUpdate](#commitmentplans_createorupdate)
@@ -50,6 +70,10 @@
- [List](#commitmenttiers_list)
+## ComputeOperations
+
+- [Get](#computeoperations_get)
+
## DefenderForAISettings
- [CreateOrUpdate](#defenderforaisettings_createorupdate)
@@ -70,6 +94,8 @@
- [Get](#deployments_get)
- [List](#deployments_list)
- [ListSkus](#deployments_listskus)
+- [Pause](#deployments_pause)
+- [Resume](#deployments_resume)
- [Update](#deployments_update)
## EncryptionScopes
@@ -83,6 +109,18 @@
- [List](#locationbasedmodelcapacities_list)
+## ManagedNetworkProvisions
+
+- [ProvisionManagedNetwork](#managednetworkprovisions_provisionmanagednetwork)
+
+## ManagedNetworkSettingsOperation
+
+- [Delete](#managednetworksettingsoperation_delete)
+- [Get](#managednetworksettingsoperation_get)
+- [List](#managednetworksettingsoperation_list)
+- [Patch](#managednetworksettingsoperation_patch)
+- [Put](#managednetworksettingsoperation_put)
+
## ModelCapacities
- [List](#modelcapacities_list)
@@ -101,6 +139,17 @@
- [List](#operations_list)
+## OutboundRule
+
+- [CreateOrUpdate](#outboundrule_createorupdate)
+- [Delete](#outboundrule_delete)
+- [Get](#outboundrule_get)
+- [List](#outboundrule_list)
+
+## OutboundRulesOperation
+
+- [Post](#outboundrulesoperation_post)
+
## PrivateEndpointConnections
- [CreateOrUpdate](#privateendpointconnections_createorupdate)
@@ -117,6 +166,7 @@
- [CreateOrUpdate](#projectcapabilityhosts_createorupdate)
- [Delete](#projectcapabilityhosts_delete)
- [Get](#projectcapabilityhosts_get)
+- [List](#projectcapabilityhosts_list)
## ProjectConnections
@@ -162,6 +212,16 @@
- [Get](#raicontentfilters_get)
- [List](#raicontentfilters_list)
+## RaiExternalSafetyProvider
+
+- [CreateOrUpdate](#raiexternalsafetyprovider_createorupdate)
+- [Delete](#raiexternalsafetyprovider_delete)
+- [Get](#raiexternalsafetyprovider_get)
+
+## RaiExternalSafetyProvidersOperation
+
+- [List](#raiexternalsafetyprovidersoperation_list)
+
## RaiPolicies
- [CreateOrUpdate](#raipolicies_createorupdate)
@@ -169,6 +229,13 @@
- [Get](#raipolicies_get)
- [List](#raipolicies_list)
+## RaiToolLabels
+
+- [CreateOrUpdate](#raitoollabels_createorupdate)
+- [Delete](#raitoollabels_delete)
+- [Get](#raitoollabels_get)
+- [List](#raitoollabels_list)
+
## RaiTopics
- [CreateOrUpdate](#raitopics_createorupdate)
@@ -186,6 +253,16 @@
- [List](#resourceskus_list)
+## SubscriptionRaiPolicy
+
+- [CreateOrUpdate](#subscriptionraipolicy_createorupdate)
+- [Delete](#subscriptionraipolicy_delete)
+- [Get](#subscriptionraipolicy_get)
+
+## TestRaiExternalSafetyProvider
+
+- [CreateOrUpdate](#testraiexternalsafetyprovider_createorupdate)
+
## Usages
- [List](#usages_list)
@@ -199,9 +276,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProperti
*/
public final class AccountCapabilityHostsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AccountCapabilityHost/createOrUpdate.json
+ * x-ms-original-file: 2026-01-15-preview/AccountCapabilityHost/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Account CapabilityHost.
@@ -214,7 +289,8 @@ public final class AccountCapabilityHostsCreateOrUpdateSamples {
.define("capabilityHostName")
.withExistingAccount("test-rg", "account-1")
.withProperties(new CapabilityHostProperties().withCustomerSubnet(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroups/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"))
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroups/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")
+ .withEnablePublicHostingEnvironment(true))
.create();
}
}
@@ -228,9 +304,7 @@ public final class AccountCapabilityHostsCreateOrUpdateSamples {
*/
public final class AccountCapabilityHostsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AccountCapabilityHost/delete.json
+ * x-ms-original-file: 2026-01-15-preview/AccountCapabilityHost/delete.json
*/
/**
* Sample code: Delete Account CapabilityHost.
@@ -253,9 +327,7 @@ public final class AccountCapabilityHostsDeleteSamples {
*/
public final class AccountCapabilityHostsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AccountCapabilityHost/get.json
+ * x-ms-original-file: 2026-01-15-preview/AccountCapabilityHost/get.json
*/
/**
* Sample code: Get Account CapabilityHost.
@@ -270,9 +342,32 @@ public final class AccountCapabilityHostsGetSamples {
}
```
+### AccountCapabilityHosts_List
+
+```java
+/**
+ * Samples for AccountCapabilityHosts List.
+ */
+public final class AccountCapabilityHostsListSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/AccountCapabilityHost/list.json
+ */
+ /**
+ * Sample code: List Account CapabilityHosts.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ listAccountCapabilityHosts(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.accountCapabilityHosts().list("test-rg", "account-1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### 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;
@@ -282,9 +377,7 @@ import java.time.OffsetDateTime;
*/
public final class AccountConnectionsCreateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AccountConnection/create.json
+ * x-ms-original-file: 2026-01-15-preview/AccountConnection/create.json
*/
/**
* Sample code: CreateAccountConnection.
@@ -294,12 +387,12 @@ public final class AccountConnectionsCreateSamples {
public static void
createAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accountConnections()
- .define("connection-1")
- .withExistingAccount("resourceGroup-1", "account-1")
- .withProperties(new NoneAuthTypeConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY)
- .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z"))
- .withTarget("[tartget url]"))
- .create();
+ .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);
}
}
```
@@ -312,9 +405,7 @@ public final class AccountConnectionsCreateSamples {
*/
public final class AccountConnectionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AccountConnection/delete.json
+ * x-ms-original-file: 2026-01-15-preview/AccountConnection/delete.json
*/
/**
* Sample code: DeleteAccountConnection.
@@ -337,9 +428,7 @@ public final class AccountConnectionsDeleteSamples {
*/
public final class AccountConnectionsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AccountConnection/get.json
+ * x-ms-original-file: 2026-01-15-preview/AccountConnection/get.json
*/
/**
* Sample code: GetAccountConnection.
@@ -362,9 +451,7 @@ public final class AccountConnectionsGetSamples {
*/
public final class AccountConnectionsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AccountConnection/list.json
+ * x-ms-original-file: 2026-01-15-preview/AccountConnection/list.json
*/
/**
* Sample code: ListAccountConnections.
@@ -374,7 +461,7 @@ public final class AccountConnectionsListSamples {
public static void
listAccountConnections(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.accountConnections()
- .list("resourceGroup-1", "account-1", "[tartget url]", "ContainerRegistry", null,
+ .list("resourceGroup-1", "account-1", "[target url]", "ContainerRegistry", null,
com.azure.core.util.Context.NONE);
}
}
@@ -386,7 +473,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.ConnectionPropertiesV2BasicResource;
+import com.azure.resourcemanager.cognitiveservices.models.ConnectionUpdateContent;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
@@ -396,9 +483,7 @@ import java.util.Map;
*/
public final class AccountConnectionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AccountConnection/update.json
+ * x-ms-original-file: 2026-01-15-preview/AccountConnection/update.json
*/
/**
* Sample code: UpdateAccountConnection.
@@ -407,17 +492,16 @@ public final class AccountConnectionsUpdateSamples {
*/
public static void
updateAccountConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- 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();
+ 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);
}
// Use "Map.of" if available
@@ -452,9 +536,7 @@ import java.util.Arrays;
*/
public final class AccountsCreateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CreateAccountMin.json
+ * x-ms-original-file: 2026-01-15-preview/CreateAccountMin.json
*/
/**
* Sample code: Create Account Min.
@@ -466,17 +548,15 @@ public final class AccountsCreateSamples {
.define("testCreate1")
.withExistingResourceGroup("myResourceGroup")
.withRegion("West US")
+ .withProperties(new AccountProperties())
.withKind("CognitiveServices")
.withSku(new Sku().withName("S0"))
.withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
- .withProperties(new AccountProperties())
.create();
}
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CreateAccount.json
+ * x-ms-original-file: 2026-01-15-preview/CreateAccount.json
*/
/**
* Sample code: Create Account.
@@ -488,9 +568,6 @@ public final class AccountsCreateSamples {
.define("testCreate1")
.withExistingResourceGroup("myResourceGroup")
.withRegion("West US")
- .withKind("Emotion")
- .withSku(new Sku().withName("S0"))
- .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.withProperties(new AccountProperties()
.withEncryption(
new Encryption().withKeyVaultProperties(new KeyVaultProperties().withKeyName("fakeTokenPlaceholder")
@@ -498,6 +575,9 @@ public final class AccountsCreateSamples {
.withKeyVaultUri("fakeTokenPlaceholder")).withKeySource(KeySource.MICROSOFT_KEY_VAULT))
.withUserOwnedStorage(Arrays.asList(new UserOwnedStorage().withResourceId(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"))))
+ .withKind("Emotion")
+ .withSku(new Sku().withName("S0"))
+ .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.create();
}
}
@@ -511,9 +591,7 @@ public final class AccountsCreateSamples {
*/
public final class AccountsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteAccount.json
+ * x-ms-original-file: 2026-01-15-preview/DeleteAccount.json
*/
/**
* Sample code: Delete Account.
@@ -534,9 +612,7 @@ public final class AccountsDeleteSamples {
*/
public final class AccountsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetAccount.json
+ * x-ms-original-file: 2026-01-15-preview/GetAccount.json
*/
/**
* Sample code: Get Account.
@@ -558,9 +634,7 @@ public final class AccountsGetByResourceGroupSamples {
*/
public final class AccountsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListAccountsBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/ListAccountsBySubscription.json
*/
/**
* Sample code: List Accounts by Subscription.
@@ -582,9 +656,7 @@ public final class AccountsListSamples {
*/
public final class AccountsListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListAccountsByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/ListAccountsByResourceGroup.json
*/
/**
* Sample code: List Accounts by Resource Group.
@@ -606,9 +678,7 @@ public final class AccountsListByResourceGroupSamples {
*/
public final class AccountsListKeysSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/ListKeys.
- * json
+ * x-ms-original-file: 2026-01-15-preview/ListKeys.json
*/
/**
* Sample code: List Keys.
@@ -629,9 +699,7 @@ public final class AccountsListKeysSamples {
*/
public final class AccountsListModelsSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListAccountModels.json
+ * x-ms-original-file: 2026-01-15-preview/ListAccountModels.json
*/
/**
* Sample code: List AccountModels.
@@ -652,9 +720,7 @@ public final class AccountsListModelsSamples {
*/
public final class AccountsListSkusSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/ListSkus.
- * json
+ * x-ms-original-file: 2026-01-15-preview/ListSkus.json
*/
/**
* Sample code: List SKUs.
@@ -675,9 +741,7 @@ public final class AccountsListSkusSamples {
*/
public final class AccountsListUsagesSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/GetUsages
- * .json
+ * x-ms-original-file: 2026-01-15-preview/GetUsages.json
*/
/**
* Sample code: Get Usages.
@@ -688,6 +752,48 @@ public final class AccountsListUsagesSamples {
manager.accounts()
.listUsagesWithResponse("myResourceGroup", "TestUsage02", null, com.azure.core.util.Context.NONE);
}
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetUsagesClassicScope.json
+ */
+ /**
+ * Sample code: Get Usages Classic Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ getUsagesClassicScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.accounts()
+ .listUsagesWithResponse("myResourceGroup", "TestUsage02", null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetUsagesDataZoneScope.json
+ */
+ /**
+ * Sample code: Get Usages DataZone Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ getUsagesDataZoneScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.accounts()
+ .listUsagesWithResponse("myResourceGroup", "TestUsage02", null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetUsagesGlobalScope.json
+ */
+ /**
+ * Sample code: Get Usages Global Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ getUsagesGlobalScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.accounts()
+ .listUsagesWithResponse("myResourceGroup", "TestUsage02", null, com.azure.core.util.Context.NONE);
+ }
}
```
@@ -702,9 +808,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RegenerateKeyParameter
*/
public final class AccountsRegenerateKeySamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * RegenerateKey.json
+ * x-ms-original-file: 2026-01-15-preview/RegenerateKey.json
*/
/**
* Sample code: Regenerate Keys.
@@ -730,9 +834,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku;
*/
public final class AccountsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * UpdateAccount.json
+ * x-ms-original-file: 2026-01-15-preview/UpdateAccount.json
*/
/**
* Sample code: Update Account.
@@ -748,333 +850,660 @@ public final class AccountsUpdateSamples {
}
```
-### CommitmentPlans_CreateOrUpdate
+### AgentApplications_CreateOrUpdate
```java
-import com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanInner;
-import com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod;
-import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties;
-import com.azure.resourcemanager.cognitiveservices.models.HostingModel;
+import com.azure.resourcemanager.cognitiveservices.models.AgenticApplicationProperties;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for CommitmentPlans CreateOrUpdate.
+ * Samples for AgentApplications CreateOrUpdate.
*/
-public final class CommitmentPlansCreateOrUpdateSamples {
+public final class AgentApplicationsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutCommitmentPlan.json
+ * x-ms-original-file: 2026-01-15-preview/AgentApplication/createOrUpdate.json
*/
/**
- * Sample code: PutCommitmentPlan.
+ * Sample code: Create or Update Account Agent Application.
*
* @param manager Entry point to CognitiveServicesManager.
*/
- public static void putCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .createOrUpdateWithResponse("resourceGroupName", "accountName", "commitmentPlanName",
- new CommitmentPlanInner()
- .withProperties(new CommitmentPlanProperties().withHostingModel(HostingModel.WEB)
- .withPlanType("Speech2Text")
- .withCurrent(new CommitmentPeriod().withTier("T1"))
- .withAutoRenew(true)),
- com.azure.core.util.Context.NONE);
+ public static void createOrUpdateAccountAgentApplication(
+ com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentApplications()
+ .define("agent-app-1")
+ .withExistingProject("test-rg", "my-cognitive-services-account", "my-project")
+ .withProperties(
+ new AgenticApplicationProperties().withDescription("Sample agent application for customer support")
+ .withTags(mapOf("environment", "production", "team", "ai-platform"))
+ .withDisplayName("Customer Support Agent"))
+ .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;
}
}
```
-### CommitmentPlans_CreateOrUpdateAssociation
+### AgentApplications_Delete
```java
/**
- * Samples for CommitmentPlans CreateOrUpdateAssociation.
+ * Samples for AgentApplications Delete.
*/
-public final class CommitmentPlansCreateOrUpdateAssociationSamples {
+public final class AgentApplicationsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CreateSharedCommitmentPlanAssociation.json
+ * x-ms-original-file: 2026-01-15-preview/AgentApplication/delete.json
*/
/**
- * Sample code: PutCommitmentPlan.
+ * Sample code: Delete Account Agent Application.
*
* @param manager Entry point to CognitiveServicesManager.
*/
- public static void putCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .defineAssociation("commitmentPlanAssociationName")
- .withExistingCommitmentPlan("resourceGroupName", "commitmentPlanName")
- .withAccountId(
- "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName")
- .create();
+ public static void
+ deleteAccountAgentApplication(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentApplications()
+ .delete("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_CreateOrUpdatePlan
+### AgentApplications_Disable
```java
-import com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod;
-import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties;
-import com.azure.resourcemanager.cognitiveservices.models.HostingModel;
-import com.azure.resourcemanager.cognitiveservices.models.Sku;
-
/**
- * Samples for CommitmentPlans CreateOrUpdatePlan.
+ * Samples for AgentApplications Disable.
*/
-public final class CommitmentPlansCreateOrUpdatePlanSamples {
+public final class AgentApplicationsDisableSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CreateSharedCommitmentPlan.json
+ * x-ms-original-file: 2026-01-15-preview/AgentApplication/disable.json
*/
/**
- * Sample code: Create Commitment Plan.
+ * Sample code: Disable Agent Application.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
- createCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .definePlan("commitmentPlanName")
- .withExistingResourceGroup("resourceGroupName")
- .withRegion("West US")
- .withKind("SpeechServices")
- .withSku(new Sku().withName("S0"))
- .withProperties(new CommitmentPlanProperties().withHostingModel(HostingModel.WEB)
- .withPlanType("STT")
- .withCurrent(new CommitmentPeriod().withTier("T1"))
- .withAutoRenew(true))
- .create();
+ disableAgentApplication(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentApplications()
+ .disableWithResponse("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_Delete
+### AgentApplications_Enable
```java
/**
- * Samples for CommitmentPlans Delete.
+ * Samples for AgentApplications Enable.
*/
-public final class CommitmentPlansDeleteSamples {
+public final class AgentApplicationsEnableSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteCommitmentPlan.json
+ * x-ms-original-file: 2026-01-15-preview/AgentApplication/enable.json
*/
/**
- * Sample code: DeleteCommitmentPlan.
+ * Sample code: Enable Agent Application.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
- deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .delete("resourceGroupName", "accountName", "commitmentPlanName", com.azure.core.util.Context.NONE);
+ enableAgentApplication(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentApplications()
+ .enableWithResponse("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_DeleteAssociation
+### AgentApplications_Get
```java
/**
- * Samples for CommitmentPlans DeleteAssociation.
+ * Samples for AgentApplications Get.
*/
-public final class CommitmentPlansDeleteAssociationSamples {
+public final class AgentApplicationsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteSharedCommitmentPlanAssociation.json
+ * x-ms-original-file: 2026-01-15-preview/AgentApplication/get.json
*/
/**
- * Sample code: DeleteCommitmentPlan.
+ * Sample code: Get Account Agent Application.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
- deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .deleteAssociation("resourceGroupName", "commitmentPlanName", "commitmentPlanAssociationName",
+ getAccountAgentApplication(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentApplications()
+ .getWithResponse("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1",
com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_DeletePlan
+### AgentApplications_List
```java
+import java.util.Arrays;
+
/**
- * Samples for CommitmentPlans DeletePlan.
+ * Samples for AgentApplications List.
*/
-public final class CommitmentPlansDeletePlanSamples {
+public final class AgentApplicationsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteSharedCommitmentPlan.json
+ * x-ms-original-file: 2026-01-15-preview/AgentApplication/list.json
*/
/**
- * Sample code: Delete Commitment Plan.
+ * Sample code: List Account Agent Applications.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
- deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .deletePlan("resourceGroupName", "commitmentPlanName", com.azure.core.util.Context.NONE);
+ listAccountAgentApplications(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentApplications()
+ .list("test-rg", "my-cognitive-services-account", "my-project", 30, null, "string",
+ Arrays.asList("agent-app-1", "agent-app-2"), "test", "name", true, com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_Get
+### AgentApplications_ListAgents
```java
/**
- * Samples for CommitmentPlans Get.
+ * Samples for AgentApplications ListAgents.
*/
-public final class CommitmentPlansGetSamples {
+public final class AgentApplicationsListAgentsSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetCommitmentPlan.json
+ * x-ms-original-file: 2026-01-15-preview/AgentApplication/listAgents.json
*/
/**
- * Sample code: GetCommitmentPlan.
+ * Sample code: List Agents for Agent Application.
*
* @param manager Entry point to CognitiveServicesManager.
*/
- public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .getWithResponse("resourceGroupName", "accountName", "commitmentPlanName",
+ public static void
+ listAgentsForAgentApplication(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentApplications()
+ .listAgentsWithResponse("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1",
com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_GetAssociation
+### AgentDeployments_CreateOrUpdate
```java
+import com.azure.resourcemanager.cognitiveservices.models.AgentDeploymentState;
+import com.azure.resourcemanager.cognitiveservices.models.AgentProtocol;
+import com.azure.resourcemanager.cognitiveservices.models.AgentProtocolVersion;
+import com.azure.resourcemanager.cognitiveservices.models.ManagedAgentDeployment;
+import com.azure.resourcemanager.cognitiveservices.models.VersionedAgentReference;
+import java.util.Arrays;
+
/**
- * Samples for CommitmentPlans GetAssociation.
+ * Samples for AgentDeployments CreateOrUpdate.
*/
-public final class CommitmentPlansGetAssociationSamples {
+public final class AgentDeploymentsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetSharedCommitmentPlanAssociation.json
+ * x-ms-original-file: 2026-01-15-preview/AgentDeployment/createOrUpdate.json
*/
/**
- * Sample code: GetCommitmentPlan.
+ * Sample code: Create or Update Agent Deployment.
*
* @param manager Entry point to CognitiveServicesManager.
*/
- public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .getAssociationWithResponse("resourceGroupName", "commitmentPlanName", "commitmentPlanAssociationName",
- com.azure.core.util.Context.NONE);
+ public static void
+ createOrUpdateAgentDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentDeployments()
+ .define("deployment-1")
+ .withExistingApplication("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1")
+ .withProperties(new ManagedAgentDeployment().withDisplayName("Production Deployment")
+ .withState(AgentDeploymentState.STARTING)
+ .withProtocols(
+ Arrays.asList(new AgentProtocolVersion().withProtocol(AgentProtocol.AGENT).withVersion("1.0")))
+ .withAgents(Arrays.asList(new VersionedAgentReference().withAgentId("agent-123")
+ .withAgentName("support-agent")
+ .withAgentVersion("1.0.0"))))
+ .create();
}
}
```
-### CommitmentPlans_GetByResourceGroup
+### AgentDeployments_Delete
```java
/**
- * Samples for CommitmentPlans GetByResourceGroup.
+ * Samples for AgentDeployments Delete.
*/
-public final class CommitmentPlansGetByResourceGroupSamples {
+public final class AgentDeploymentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetSharedCommitmentPlan.json
+ * x-ms-original-file: 2026-01-15-preview/AgentDeployment/delete.json
*/
/**
- * Sample code: Get Commitment Plan.
+ * Sample code: Delete Agent Deployment.
*
* @param manager Entry point to CognitiveServicesManager.
*/
- public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .getByResourceGroupWithResponse("resourceGroupName", "commitmentPlanName",
+ public static void
+ deleteAgentDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentDeployments()
+ .delete("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1", "deployment-1",
com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_List
+### AgentDeployments_Get
```java
/**
- * Samples for CommitmentPlans List.
+ * Samples for AgentDeployments Get.
*/
-public final class CommitmentPlansListSamples {
+public final class AgentDeploymentsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListCommitmentPlans.json
+ * x-ms-original-file: 2026-01-15-preview/AgentDeployment/get.json
*/
/**
- * Sample code: ListCommitmentPlans.
+ * Sample code: Get Agent Deployment.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
- listCommitmentPlans(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
+ getAgentDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentDeployments()
+ .getWithResponse("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1", "deployment-1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_ListAssociations
+### AgentDeployments_List
```java
+
/**
- * Samples for CommitmentPlans ListAssociations.
+ * Samples for AgentDeployments List.
*/
-public final class CommitmentPlansListAssociationsSamples {
+public final class AgentDeploymentsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListSharedCommitmentPlanAssociations.json
+ * x-ms-original-file: 2026-01-15-preview/AgentDeployment/list.json
*/
/**
- * Sample code: ListCommitmentPlans.
+ * Sample code: List Agent Deployments.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
- listCommitmentPlans(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans()
- .listAssociations("resourceGroupName", "commitmentPlanName", com.azure.core.util.Context.NONE);
+ listAgentDeployments(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentDeployments()
+ .list("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1", null, null, null, null, null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_ListByResourceGroup
+### AgentDeployments_Start
```java
/**
- * Samples for CommitmentPlans ListByResourceGroup.
+ * Samples for AgentDeployments Start.
*/
-public final class CommitmentPlansListByResourceGroupSamples {
+public final class AgentDeploymentsStartSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListSharedCommitmentPlansByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/AgentDeployment/start.json
*/
/**
- * Sample code: List Commitment Plans by Resource Group.
+ * Sample code: Start Agent Deployment.
*
* @param manager Entry point to CognitiveServicesManager.
*/
- public static void listCommitmentPlansByResourceGroup(
- com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.commitmentPlans().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE);
+ public static void
+ startAgentDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentDeployments()
+ .startWithResponse("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1", "deployment-1",
+ com.azure.core.util.Context.NONE);
}
}
```
-### CommitmentPlans_ListPlansBySubscription
+### AgentDeployments_Stop
+
+```java
+/**
+ * Samples for AgentDeployments Stop.
+ */
+public final class AgentDeploymentsStopSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/AgentDeployment/stop.json
+ */
+ /**
+ * Sample code: Stop Agent Deployment.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ stopAgentDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.agentDeployments()
+ .stopWithResponse("test-rg", "my-cognitive-services-account", "my-project", "agent-app-1", "deployment-1",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.cognitiveservices.fluent.models.CommitmentPlanInner;
+import com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod;
+import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties;
+import com.azure.resourcemanager.cognitiveservices.models.HostingModel;
+
+/**
+ * Samples for CommitmentPlans CreateOrUpdate.
+ */
+public final class CommitmentPlansCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/PutCommitmentPlan.json
+ */
+ /**
+ * Sample code: PutCommitmentPlan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void putCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .createOrUpdateWithResponse("resourceGroupName", "accountName", "commitmentPlanName",
+ new CommitmentPlanInner()
+ .withProperties(new CommitmentPlanProperties().withHostingModel(HostingModel.WEB)
+ .withPlanType("Speech2Text")
+ .withCurrent(new CommitmentPeriod().withTier("T1"))
+ .withAutoRenew(true)),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_CreateOrUpdateAssociation
+
+```java
+/**
+ * Samples for CommitmentPlans CreateOrUpdateAssociation.
+ */
+public final class CommitmentPlansCreateOrUpdateAssociationSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/CreateSharedCommitmentPlanAssociation.json
+ */
+ /**
+ * Sample code: PutCommitmentPlan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void putCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .defineAssociation("commitmentPlanAssociationName")
+ .withExistingCommitmentPlan("resourceGroupName", "commitmentPlanName")
+ .withAccountId(
+ "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName")
+ .create();
+ }
+}
+```
+
+### CommitmentPlans_CreateOrUpdatePlan
+
+```java
+import com.azure.resourcemanager.cognitiveservices.models.CommitmentPeriod;
+import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlanProperties;
+import com.azure.resourcemanager.cognitiveservices.models.HostingModel;
+import com.azure.resourcemanager.cognitiveservices.models.Sku;
+
+/**
+ * Samples for CommitmentPlans CreateOrUpdatePlan.
+ */
+public final class CommitmentPlansCreateOrUpdatePlanSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/CreateSharedCommitmentPlan.json
+ */
+ /**
+ * Sample code: Create Commitment Plan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ createCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .definePlan("commitmentPlanName")
+ .withExistingResourceGroup("resourceGroupName")
+ .withRegion("West US")
+ .withProperties(new CommitmentPlanProperties().withHostingModel(HostingModel.WEB)
+ .withPlanType("STT")
+ .withCurrent(new CommitmentPeriod().withTier("T1"))
+ .withAutoRenew(true))
+ .withKind("SpeechServices")
+ .withSku(new Sku().withName("S0"))
+ .create();
+ }
+}
+```
+
+### CommitmentPlans_Delete
+
+```java
+/**
+ * Samples for CommitmentPlans Delete.
+ */
+public final class CommitmentPlansDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/DeleteCommitmentPlan.json
+ */
+ /**
+ * Sample code: DeleteCommitmentPlan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .delete("resourceGroupName", "accountName", "commitmentPlanName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_DeleteAssociation
+
+```java
+/**
+ * Samples for CommitmentPlans DeleteAssociation.
+ */
+public final class CommitmentPlansDeleteAssociationSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/DeleteSharedCommitmentPlanAssociation.json
+ */
+ /**
+ * Sample code: DeleteCommitmentPlan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .deleteAssociation("resourceGroupName", "commitmentPlanName", "commitmentPlanAssociationName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_DeletePlan
+
+```java
+/**
+ * Samples for CommitmentPlans DeletePlan.
+ */
+public final class CommitmentPlansDeletePlanSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/DeleteSharedCommitmentPlan.json
+ */
+ /**
+ * Sample code: Delete Commitment Plan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ deleteCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .deletePlan("resourceGroupName", "commitmentPlanName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_Get
+
+```java
+/**
+ * Samples for CommitmentPlans Get.
+ */
+public final class CommitmentPlansGetSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetCommitmentPlan.json
+ */
+ /**
+ * Sample code: GetCommitmentPlan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .getWithResponse("resourceGroupName", "accountName", "commitmentPlanName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_GetAssociation
+
+```java
+/**
+ * Samples for CommitmentPlans GetAssociation.
+ */
+public final class CommitmentPlansGetAssociationSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetSharedCommitmentPlanAssociation.json
+ */
+ /**
+ * Sample code: GetCommitmentPlan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .getAssociationWithResponse("resourceGroupName", "commitmentPlanName", "commitmentPlanAssociationName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_GetByResourceGroup
+
+```java
+/**
+ * Samples for CommitmentPlans GetByResourceGroup.
+ */
+public final class CommitmentPlansGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetSharedCommitmentPlan.json
+ */
+ /**
+ * Sample code: Get Commitment Plan.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void getCommitmentPlan(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .getByResourceGroupWithResponse("resourceGroupName", "commitmentPlanName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_List
+
+```java
+/**
+ * Samples for CommitmentPlans List.
+ */
+public final class CommitmentPlansListSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListCommitmentPlans.json
+ */
+ /**
+ * Sample code: ListCommitmentPlans.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ listCommitmentPlans(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_ListAssociations
+
+```java
+/**
+ * Samples for CommitmentPlans ListAssociations.
+ */
+public final class CommitmentPlansListAssociationsSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListSharedCommitmentPlanAssociations.json
+ */
+ /**
+ * Sample code: ListCommitmentPlans.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ listCommitmentPlans(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans()
+ .listAssociations("resourceGroupName", "commitmentPlanName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_ListByResourceGroup
+
+```java
+/**
+ * Samples for CommitmentPlans ListByResourceGroup.
+ */
+public final class CommitmentPlansListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListSharedCommitmentPlansByResourceGroup.json
+ */
+ /**
+ * Sample code: List Commitment Plans by Resource Group.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void listCommitmentPlansByResourceGroup(
+ com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.commitmentPlans().listByResourceGroup("resourceGroupName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CommitmentPlans_ListPlansBySubscription
```java
/**
@@ -1082,9 +1511,7 @@ public final class CommitmentPlansListByResourceGroupSamples {
*/
public final class CommitmentPlansListPlansBySubscriptionSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListSharedCommitmentPlansBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/ListSharedCommitmentPlansBySubscription.json
*/
/**
* Sample code: List Accounts by Subscription.
@@ -1110,9 +1537,7 @@ import java.util.Map;
*/
public final class CommitmentPlansUpdatePlanSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * UpdateSharedCommitmentPlan.json
+ * x-ms-original-file: 2026-01-15-preview/UpdateSharedCommitmentPlan.json
*/
/**
* Sample code: Create Commitment Plan.
@@ -1149,9 +1574,7 @@ public final class CommitmentPlansUpdatePlanSamples {
*/
public final class CommitmentTiersListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListCommitmentTiers.json
+ * x-ms-original-file: 2026-01-15-preview/ListCommitmentTiers.json
*/
/**
* Sample code: ListCommitmentTiers.
@@ -1165,6 +1588,29 @@ public final class CommitmentTiersListSamples {
}
```
+### ComputeOperations_Get
+
+```java
+/**
+ * Samples for ComputeOperations Get.
+ */
+public final class ComputeOperationsGetSamples {
+ /*
+ * x-ms-original-file: 2026-01-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);
+ }
+}
+```
+
### DefenderForAISettings_CreateOrUpdate
```java
@@ -1175,9 +1621,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingSt
*/
public final class DefenderForAISettingsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutDefenderForAISetting.json
+ * x-ms-original-file: 2026-01-15-preview/PutDefenderForAISetting.json
*/
/**
* Sample code: PutDefenderForAISetting.
@@ -1203,9 +1647,7 @@ public final class DefenderForAISettingsCreateOrUpdateSamples {
*/
public final class DefenderForAISettingsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetDefenderForAISetting.json
+ * x-ms-original-file: 2026-01-15-preview/GetDefenderForAISetting.json
*/
/**
* Sample code: GetDefenderForAISetting.
@@ -1228,9 +1670,7 @@ public final class DefenderForAISettingsGetSamples {
*/
public final class DefenderForAISettingsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListDefenderForAISetting.json
+ * x-ms-original-file: 2026-01-15-preview/ListDefenderForAISetting.json
*/
/**
* Sample code: ListDefenderForAISetting.
@@ -1255,9 +1695,7 @@ import com.azure.resourcemanager.cognitiveservices.models.DefenderForAISettingSt
*/
public final class DefenderForAISettingsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * UpdateDefenderForAISetting.json
+ * x-ms-original-file: 2026-01-15-preview/UpdateDefenderForAISetting.json
*/
/**
* Sample code: UpdateDefenderForAISetting.
@@ -1282,9 +1720,7 @@ public final class DefenderForAISettingsUpdateSamples {
*/
public final class DeletedAccountsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetDeletedAccount.json
+ * x-ms-original-file: 2026-01-15-preview/GetDeletedAccount.json
*/
/**
* Sample code: Get Account.
@@ -1306,9 +1742,7 @@ public final class DeletedAccountsGetSamples {
*/
public final class DeletedAccountsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListDeletedAccountsBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/ListDeletedAccountsBySubscription.json
*/
/**
* Sample code: List Deleted Accounts by Subscription.
@@ -1330,9 +1764,7 @@ public final class DeletedAccountsListSamples {
*/
public final class DeletedAccountsPurgeSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PurgeDeletedAccount.json
+ * x-ms-original-file: 2026-01-15-preview/PurgeDeletedAccount.json
*/
/**
* Sample code: Delete Account.
@@ -1350,6 +1782,8 @@ 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.DeploymentState;
+import com.azure.resourcemanager.cognitiveservices.models.ServiceTier;
import com.azure.resourcemanager.cognitiveservices.models.Sku;
/**
@@ -1357,9 +1791,7 @@ import com.azure.resourcemanager.cognitiveservices.models.Sku;
*/
public final class DeploymentsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutDeployment.json
+ * x-ms-original-file: 2026-01-15-preview/PutDeployment.json
*/
/**
* Sample code: PutDeployment.
@@ -1370,9 +1802,11 @@ public final class DeploymentsCreateOrUpdateSamples {
manager.deployments()
.define("deploymentName")
.withExistingAccount("resourceGroupName", "accountName")
- .withSku(new Sku().withName("Standard").withCapacity(1))
.withProperties(new DeploymentProperties()
- .withModel(new DeploymentModel().withFormat("OpenAI").withName("ada").withVersion("1")))
+ .withModel(new DeploymentModel().withFormat("OpenAI").withName("ada").withVersion("1"))
+ .withServiceTier(ServiceTier.PRIORITY)
+ .withDeploymentState(DeploymentState.RUNNING))
+ .withSku(new Sku().withName("Standard").withCapacity(1))
.create();
}
}
@@ -1386,9 +1820,7 @@ public final class DeploymentsCreateOrUpdateSamples {
*/
public final class DeploymentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteDeployment.json
+ * x-ms-original-file: 2026-01-15-preview/DeleteDeployment.json
*/
/**
* Sample code: DeleteDeployment.
@@ -1410,9 +1842,7 @@ public final class DeploymentsDeleteSamples {
*/
public final class DeploymentsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetDeployment.json
+ * x-ms-original-file: 2026-01-15-preview/GetDeployment.json
*/
/**
* Sample code: GetDeployment.
@@ -1434,9 +1864,7 @@ public final class DeploymentsGetSamples {
*/
public final class DeploymentsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListDeployments.json
+ * x-ms-original-file: 2026-01-15-preview/ListDeployments.json
*/
/**
* Sample code: ListDeployments.
@@ -1457,9 +1885,7 @@ public final class DeploymentsListSamples {
*/
public final class DeploymentsListSkusSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListDeploymentSkus.json
+ * x-ms-original-file: 2026-01-15-preview/ListDeploymentSkus.json
*/
/**
* Sample code: ListDeploymentSkus.
@@ -1474,6 +1900,50 @@ public final class DeploymentsListSkusSamples {
}
```
+### Deployments_Pause
+
+```java
+/**
+ * Samples for Deployments Pause.
+ */
+public final class DeploymentsPauseSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/PauseDeployment.json
+ */
+ /**
+ * Sample code: PauseDeployment.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void pauseDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.deployments()
+ .pauseWithResponse("resourceGroupName", "accountName", "deploymentName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Deployments_Resume
+
+```java
+/**
+ * Samples for Deployments Resume.
+ */
+public final class DeploymentsResumeSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ResumeDeployment.json
+ */
+ /**
+ * Sample code: ResumeDeployment.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void resumeDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.deployments()
+ .resumeWithResponse("resourceGroupName", "accountName", "deploymentName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Deployments_Update
```java
@@ -1481,162 +1951,390 @@ import com.azure.resourcemanager.cognitiveservices.models.Deployment;
import com.azure.resourcemanager.cognitiveservices.models.Sku;
/**
- * Samples for Deployments Update.
+ * Samples for Deployments Update.
+ */
+public final class DeploymentsUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/UpdateDeployment.json
+ */
+ /**
+ * Sample code: UpdateDeployment.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void updateDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ Deployment resource = manager.deployments()
+ .getWithResponse("resourceGroupName", "accountName", "deploymentName", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withSku(new Sku().withName("Standard").withCapacity(1)).apply();
+ }
+}
+```
+
+### EncryptionScopes_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties;
+import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeState;
+import com.azure.resourcemanager.cognitiveservices.models.KeySource;
+import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties;
+
+/**
+ * Samples for EncryptionScopes CreateOrUpdate.
+ */
+public final class EncryptionScopesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/PutEncryptionScope.json
+ */
+ /**
+ * Sample code: PutEncryptionScope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ putEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.encryptionScopes()
+ .define("encryptionScopeName")
+ .withExistingAccount("resourceGroupName", "accountName")
+ .withProperties(new EncryptionScopeProperties()
+ .withKeyVaultProperties(new KeyVaultProperties().withKeyName("fakeTokenPlaceholder")
+ .withKeyVersion("fakeTokenPlaceholder")
+ .withKeyVaultUri("fakeTokenPlaceholder")
+ .withIdentityClientId("00000000-0000-0000-0000-000000000000"))
+ .withKeySource(KeySource.MICROSOFT_KEY_VAULT)
+ .withState(EncryptionScopeState.ENABLED))
+ .create();
+ }
+}
+```
+
+### EncryptionScopes_Delete
+
+```java
+/**
+ * Samples for EncryptionScopes Delete.
+ */
+public final class EncryptionScopesDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-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-01-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-01-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-01-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-01-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-01-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-01-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);
+ }
+}
+```
+
+### ManagedNetworkProvisions_ProvisionManagedNetwork
+
+```java
+import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisionOptions;
+
+/**
+ * Samples for ManagedNetworkProvisions ProvisionManagedNetwork.
*/
-public final class DeploymentsUpdateSamples {
+public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * UpdateDeployment.json
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/provisionManagedNetwork.json
*/
/**
- * Sample code: UpdateDeployment.
+ * Sample code: Provision ManagedNetwork.
*
* @param manager Entry point to CognitiveServicesManager.
*/
- public static void updateDeployment(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- Deployment resource = manager.deployments()
- .getWithResponse("resourceGroupName", "accountName", "deploymentName", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withSku(new Sku().withName("Standard").withCapacity(1)).apply();
+ public static void
+ provisionManagedNetwork(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.managedNetworkProvisions()
+ .provisionManagedNetwork("test-rg", "cognitive-account-name", "default",
+ new ManagedNetworkProvisionOptions(), com.azure.core.util.Context.NONE);
}
}
```
-### EncryptionScopes_CreateOrUpdate
+### ManagedNetworkSettingsOperation_Delete
```java
-import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeProperties;
-import com.azure.resourcemanager.cognitiveservices.models.EncryptionScopeState;
-import com.azure.resourcemanager.cognitiveservices.models.KeySource;
-import com.azure.resourcemanager.cognitiveservices.models.KeyVaultProperties;
-
/**
- * Samples for EncryptionScopes CreateOrUpdate.
+ * Samples for ManagedNetworkSettingsOperation Delete.
*/
-public final class EncryptionScopesCreateOrUpdateSamples {
+public final class ManagedNetworkSettingsOperationDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutEncryptionScope.json
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/deleteManagedNetworkV2.json
*/
/**
- * Sample code: PutEncryptionScope.
+ * Sample code: Delete ManagedNetworkSettings.
*
* @param manager Entry point to CognitiveServicesManager.
*/
public static void
- putEncryptionScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- manager.encryptionScopes()
- .define("encryptionScopeName")
- .withExistingAccount("resourceGroupName", "accountName")
- .withProperties(new EncryptionScopeProperties()
- .withKeyVaultProperties(new KeyVaultProperties().withKeyName("fakeTokenPlaceholder")
- .withKeyVersion("fakeTokenPlaceholder")
- .withKeyVaultUri("fakeTokenPlaceholder")
- .withIdentityClientId("00000000-0000-0000-0000-000000000000"))
- .withKeySource(KeySource.MICROSOFT_KEY_VAULT)
- .withState(EncryptionScopeState.ENABLED))
- .create();
+ deleteManagedNetworkSettings(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.managedNetworkSettingsOperations()
+ .delete("test-rg", "cognitive-account-name", "default", com.azure.core.util.Context.NONE);
}
}
```
-### EncryptionScopes_Delete
+### ManagedNetworkSettingsOperation_Get
```java
/**
- * Samples for EncryptionScopes Delete.
+ * Samples for ManagedNetworkSettingsOperation Get.
*/
-public final class EncryptionScopesDeleteSamples {
+public final class ManagedNetworkSettingsOperationGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteEncryptionScope.json
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/getManagedNetworkV2.json
*/
/**
- * Sample code: DeleteEncryptionScope.
+ * Sample code: Get ManagedNetworkSettings.
*
* @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);
+ getManagedNetworkSettings(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.managedNetworkSettingsOperations()
+ .getWithResponse("test-rg", "cognitive-account-name", "default", com.azure.core.util.Context.NONE);
}
}
```
-### EncryptionScopes_Get
+### ManagedNetworkSettingsOperation_List
```java
/**
- * Samples for EncryptionScopes Get.
+ * Samples for ManagedNetworkSettingsOperation List.
*/
-public final class EncryptionScopesGetSamples {
+public final class ManagedNetworkSettingsOperationListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetEncryptionScope.json
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/listManagedNetworkV2.json
*/
/**
- * Sample code: GetEncryptionScope.
+ * Sample code: List ManagedNetworkSettings.
*
* @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);
+ listManagedNetworkSettings(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.managedNetworkSettingsOperations()
+ .list("test-rg", "cognitive-account-name", com.azure.core.util.Context.NONE);
}
}
```
-### EncryptionScopes_List
+### ManagedNetworkSettingsOperation_Patch
```java
+import com.azure.resourcemanager.cognitiveservices.models.FirewallSku;
+import com.azure.resourcemanager.cognitiveservices.models.FqdnOutboundRule;
+import com.azure.resourcemanager.cognitiveservices.models.IsolationMode;
+import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsEx;
+import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsProperties;
+import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsPropertiesBasicResource;
+import com.azure.resourcemanager.cognitiveservices.models.RuleCategory;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for EncryptionScopes List.
+ * Samples for ManagedNetworkSettingsOperation Patch.
*/
-public final class EncryptionScopesListSamples {
+public final class ManagedNetworkSettingsOperationPatchSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListEncryptionScopes.json
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/patchManagedNetworkV2.json
*/
/**
- * Sample code: ListEncryptionScopes.
+ * Sample code: Patch ManagedNetworkSettings.
*
* @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);
+ patchManagedNetworkSettings(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ ManagedNetworkSettingsPropertiesBasicResource resource = manager.managedNetworkSettingsOperations()
+ .getWithResponse("test-rg", "cognitive-account-name", "default", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(new ManagedNetworkSettingsProperties().withManagedNetwork(
+ new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND)
+ .withOutboundRules(mapOf("rule_name_1",
+ new FqdnOutboundRule().withCategory(RuleCategory.USER_DEFINED)
+ .withDestination("destination_endpoint")))
+ .withFirewallSku(FirewallSku.STANDARD)))
+ .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;
}
}
```
-### LocationBasedModelCapacities_List
+### ManagedNetworkSettingsOperation_Put
```java
+import com.azure.resourcemanager.cognitiveservices.models.FirewallSku;
+import com.azure.resourcemanager.cognitiveservices.models.FqdnOutboundRule;
+import com.azure.resourcemanager.cognitiveservices.models.IsolationMode;
+import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsEx;
+import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsProperties;
+import com.azure.resourcemanager.cognitiveservices.models.RuleCategory;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for LocationBasedModelCapacities List.
+ * Samples for ManagedNetworkSettingsOperation Put.
*/
-public final class LocationBasedModelCapacitiesListSamples {
+public final class ManagedNetworkSettingsOperationPutSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListLocationBasedModelCapacities.json
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/createOrUpdateManagedNetworkV2.json
*/
/**
- * Sample code: ListLocationBasedModelCapacities.
+ * Sample code: Put ManagedNetworkSettings.
*
* @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);
+ putManagedNetworkSettings(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.managedNetworkSettingsOperations()
+ .define("default")
+ .withExistingAccount("test-rg", "cognitive-account-name")
+ .withProperties(new ManagedNetworkSettingsProperties().withManagedNetwork(
+ new ManagedNetworkSettingsEx().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND)
+ .withOutboundRules(mapOf("rule_name_1",
+ new FqdnOutboundRule().withCategory(RuleCategory.USER_DEFINED)
+ .withDestination("destination_endpoint")))
+ .withFirewallSku(FirewallSku.STANDARD)))
+ .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;
}
}
```
@@ -1649,9 +2347,7 @@ public final class LocationBasedModelCapacitiesListSamples {
*/
public final class ModelCapacitiesListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListModelCapacities.json
+ * x-ms-original-file: 2026-01-15-preview/ListModelCapacities.json
*/
/**
* Sample code: ListModelCapacities.
@@ -1662,6 +2358,45 @@ public final class ModelCapacitiesListSamples {
listModelCapacities(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.modelCapacities().list("OpenAI", "ada", "1", com.azure.core.util.Context.NONE);
}
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesDataZoneScope.json
+ */
+ /**
+ * Sample code: ListModelCapacities DataZone Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ listModelCapacitiesDataZoneScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.modelCapacities().list("OpenAI", "ada", "1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesGlobalScope.json
+ */
+ /**
+ * Sample code: ListModelCapacities Global Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ listModelCapacitiesGlobalScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.modelCapacities().list("OpenAI", "ada", "1", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListModelCapacitiesClassicScope.json
+ */
+ /**
+ * Sample code: ListModelCapacities Classic Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ listModelCapacitiesClassicScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.modelCapacities().list("OpenAI", "ada", "1", com.azure.core.util.Context.NONE);
+ }
}
```
@@ -1673,9 +2408,7 @@ public final class ModelCapacitiesListSamples {
*/
public final class ModelsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListLocationModels.json
+ * x-ms-original-file: 2026-01-15-preview/ListLocationModels.json
*/
/**
* Sample code: ListLocationModels.
@@ -1697,9 +2430,7 @@ public final class ModelsListSamples {
*/
public final class NetworkSecurityPerimeterConfigurationsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetNetworkSecurityPerimeterConfigurations.json
+ * x-ms-original-file: 2026-01-15-preview/GetNetworkSecurityPerimeterConfigurations.json
*/
/**
* Sample code: GetNetworkSecurityPerimeterConfigurations.
@@ -1723,9 +2454,7 @@ public final class NetworkSecurityPerimeterConfigurationsGetSamples {
*/
public final class NetworkSecurityPerimeterConfigurationsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListNetworkSecurityPerimeterConfigurations.json
+ * x-ms-original-file: 2026-01-15-preview/ListNetworkSecurityPerimeterConfigurations.json
*/
/**
* Sample code: ListNetworkSecurityPerimeterConfigurations.
@@ -1748,9 +2477,7 @@ public final class NetworkSecurityPerimeterConfigurationsListSamples {
*/
public final class NetworkSecurityPerimeterConfigurationsReconcileSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ReconcileNetworkSecurityPerimeterConfigurations.json
+ * x-ms-original-file: 2026-01-15-preview/ReconcileNetworkSecurityPerimeterConfigurations.json
*/
/**
* Sample code: ReconcileNetworkSecurityPerimeterConfigurations.
@@ -1773,9 +2500,7 @@ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetOperations.json
+ * x-ms-original-file: 2026-01-15-preview/GetOperations.json
*/
/**
* Sample code: Get Operations.
@@ -1788,6 +2513,155 @@ public final class OperationsListSamples {
}
```
+### OutboundRule_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.cognitiveservices.models.FqdnOutboundRule;
+import com.azure.resourcemanager.cognitiveservices.models.RuleCategory;
+import com.azure.resourcemanager.cognitiveservices.models.RuleStatus;
+
+/**
+ * Samples for OutboundRule CreateOrUpdate.
+ */
+public final class OutboundRuleCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/createOrUpdateRuleV2.json
+ */
+ /**
+ * Sample code: CreateOrUpdate OutboundRule.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ createOrUpdateOutboundRule(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.outboundRules()
+ .define("rule_name_1")
+ .withExistingManagedNetwork("test-rg", "cognitive-account-name", "default")
+ .withProperties(new FqdnOutboundRule().withCategory(RuleCategory.USER_DEFINED)
+ .withStatus(RuleStatus.ACTIVE)
+ .withDestination("destination_endpoint"))
+ .create();
+ }
+}
+```
+
+### OutboundRule_Delete
+
+```java
+/**
+ * Samples for OutboundRule Delete.
+ */
+public final class OutboundRuleDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/deleteRuleV2.json
+ */
+ /**
+ * Sample code: Delete OutboundRule.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ deleteOutboundRule(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.outboundRules()
+ .delete("test-rg", "cognitive-account-name", "default", "rule-name", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OutboundRule_Get
+
+```java
+/**
+ * Samples for OutboundRule Get.
+ */
+public final class OutboundRuleGetSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/getRuleV2.json
+ */
+ /**
+ * Sample code: Get OutboundRule.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void getOutboundRule(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.outboundRules()
+ .getWithResponse("test-rg", "cognitive-account-name", "default", "name_of_the_fqdn_rule",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OutboundRule_List
+
+```java
+/**
+ * Samples for OutboundRule List.
+ */
+public final class OutboundRuleListSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/listRuleV2.json
+ */
+ /**
+ * Sample code: List OutboundRules.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void listOutboundRules(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.outboundRules().list("test-rg", "cognitive-account-name", "default", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OutboundRulesOperation_Post
+
+```java
+import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsBasicResourceInner;
+import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsInner;
+import com.azure.resourcemanager.cognitiveservices.models.FirewallSku;
+import com.azure.resourcemanager.cognitiveservices.models.FqdnOutboundRule;
+import com.azure.resourcemanager.cognitiveservices.models.IsolationMode;
+import com.azure.resourcemanager.cognitiveservices.models.RuleCategory;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for OutboundRulesOperation Post.
+ */
+public final class OutboundRulesOperationPostSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ManagedNetwork/postOutboundRulesV2.json
+ */
+ /**
+ * Sample code: Post OutboundRules.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void postOutboundRules(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.outboundRulesOperations()
+ .post("test-rg", "cognitive-account-name", "default",
+ new ManagedNetworkSettingsBasicResourceInner().withProperties(
+ new ManagedNetworkSettingsInner().withIsolationMode(IsolationMode.ALLOW_ONLY_APPROVED_OUTBOUND)
+ .withOutboundRules(mapOf("rule_name_1",
+ new FqdnOutboundRule().withCategory(RuleCategory.USER_DEFINED)
+ .withDestination("destination_endpoint")))
+ .withFirewallSku(FirewallSku.STANDARD)),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
### PrivateEndpointConnections_CreateOrUpdate
```java
@@ -1800,9 +2674,7 @@ import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkServiceConn
*/
public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutPrivateEndpointConnection.json
+ * x-ms-original-file: 2026-01-15-preview/PutPrivateEndpointConnection.json
*/
/**
* Sample code: PutPrivateEndpointConnection.
@@ -1830,9 +2702,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
*/
public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeletePrivateEndpointConnection.json
+ * x-ms-original-file: 2026-01-15-preview/DeletePrivateEndpointConnection.json
*/
/**
* Sample code: DeletePrivateEndpointConnection.
@@ -1855,9 +2725,7 @@ public final class PrivateEndpointConnectionsDeleteSamples {
*/
public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetPrivateEndpointConnection.json
+ * x-ms-original-file: 2026-01-15-preview/GetPrivateEndpointConnection.json
*/
/**
* Sample code: GetPrivateEndpointConnection.
@@ -1880,9 +2748,7 @@ public final class PrivateEndpointConnectionsGetSamples {
*/
public final class PrivateEndpointConnectionsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListPrivateEndpointConnections.json
+ * x-ms-original-file: 2026-01-15-preview/ListPrivateEndpointConnections.json
*/
/**
* Sample code: GetPrivateEndpointConnection.
@@ -1904,9 +2770,7 @@ public final class PrivateEndpointConnectionsListSamples {
*/
public final class PrivateLinkResourcesListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListPrivateLinkResources.json
+ * x-ms-original-file: 2026-01-15-preview/ListPrivateLinkResources.json
*/
/**
* Sample code: ListPrivateLinkResources.
@@ -1923,17 +2787,15 @@ public final class PrivateLinkResourcesListSamples {
### ProjectCapabilityHosts_CreateOrUpdate
```java
-import com.azure.resourcemanager.cognitiveservices.fluent.models.CapabilityHostInner;
-import com.azure.resourcemanager.cognitiveservices.models.CapabilityHostProperties;
+import com.azure.resourcemanager.cognitiveservices.models.ProjectCapabilityHostProperties;
+import java.util.Arrays;
/**
* Samples for ProjectCapabilityHosts CreateOrUpdate.
*/
public final class ProjectCapabilityHostsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ProjectCapabilityHost/createOrUpdate.json
+ * x-ms-original-file: 2026-01-15-preview/ProjectCapabilityHost/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Project CapabilityHost.
@@ -1943,10 +2805,14 @@ public final class ProjectCapabilityHostsCreateOrUpdateSamples {
public static void createOrUpdateProjectCapabilityHost(
com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.projectCapabilityHosts()
- .createOrUpdate("test-rg", "account-1", "project-1", "capabilityHostName",
- new CapabilityHostInner().withProperties(new CapabilityHostProperties().withCustomerSubnet(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroups/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet")),
- com.azure.core.util.Context.NONE);
+ .define("capabilityHostName")
+ .withExistingProject("test-rg", "account-1", "project-1")
+ .withProperties(
+ new ProjectCapabilityHostProperties().withAiServicesConnections(Arrays.asList("aoai_connection"))
+ .withVectorStoreConnections(Arrays.asList("acs_connection"))
+ .withStorageConnections(Arrays.asList("blob_connection"))
+ .withThreadStorageConnections(Arrays.asList("aca_connection")))
+ .create();
}
}
```
@@ -1959,9 +2825,7 @@ public final class ProjectCapabilityHostsCreateOrUpdateSamples {
*/
public final class ProjectCapabilityHostsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ProjectCapabilityHost/delete.json
+ * x-ms-original-file: 2026-01-15-preview/ProjectCapabilityHost/delete.json
*/
/**
* Sample code: Delete Project CapabilityHost.
@@ -1984,9 +2848,7 @@ public final class ProjectCapabilityHostsDeleteSamples {
*/
public final class ProjectCapabilityHostsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ProjectCapabilityHost/get.json
+ * x-ms-original-file: 2026-01-15-preview/ProjectCapabilityHost/get.json
*/
/**
* Sample code: Get Project CapabilityHost.
@@ -2002,10 +2864,31 @@ public final class ProjectCapabilityHostsGetSamples {
}
```
+### ProjectCapabilityHosts_List
+
+```java
+/**
+ * Samples for ProjectCapabilityHosts List.
+ */
+public final class ProjectCapabilityHostsListSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ProjectCapabilityHost/list.json
+ */
+ /**
+ * Sample code: List Project CapabilityHosts.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ listProjectCapabilityHosts(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.projectCapabilityHosts().list("test-rg", "account-1", "project-1", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### 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;
@@ -2015,9 +2898,7 @@ import java.time.OffsetDateTime;
*/
public final class ProjectConnectionsCreateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ProjectConnection/create.json
+ * x-ms-original-file: 2026-01-15-preview/ProjectConnection/create.json
*/
/**
* Sample code: CreateProjectConnection.
@@ -2027,12 +2908,12 @@ public final class ProjectConnectionsCreateSamples {
public static void
createProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.projectConnections()
- .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("[tartget url]")),
- com.azure.core.util.Context.NONE);
+ .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();
}
}
```
@@ -2045,9 +2926,7 @@ public final class ProjectConnectionsCreateSamples {
*/
public final class ProjectConnectionsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ProjectConnection/delete.json
+ * x-ms-original-file: 2026-01-15-preview/ProjectConnection/delete.json
*/
/**
* Sample code: DeleteProjectConnection.
@@ -2071,9 +2950,7 @@ public final class ProjectConnectionsDeleteSamples {
*/
public final class ProjectConnectionsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ProjectConnection/get.json
+ * x-ms-original-file: 2026-01-15-preview/ProjectConnection/get.json
*/
/**
* Sample code: GetProjectConnection.
@@ -2097,9 +2974,7 @@ public final class ProjectConnectionsGetSamples {
*/
public final class ProjectConnectionsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ProjectConnection/list.json
+ * x-ms-original-file: 2026-01-15-preview/ProjectConnection/list.json
*/
/**
* Sample code: ListProjectConnection.
@@ -2109,7 +2984,7 @@ public final class ProjectConnectionsListSamples {
public static void
listProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.projectConnections()
- .list("resourceGroup-1", "account-1", "project-1", "[tartget url]", "ContainerRegistry", null,
+ .list("resourceGroup-1", "account-1", "project-1", "[target url]", "ContainerRegistry", null,
com.azure.core.util.Context.NONE);
}
}
@@ -2121,7 +2996,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.ConnectionUpdateContent;
+import com.azure.resourcemanager.cognitiveservices.models.ConnectionPropertiesV2BasicResource;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
@@ -2131,9 +3006,7 @@ import java.util.Map;
*/
public final class ProjectConnectionsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ProjectConnection/update.json
+ * x-ms-original-file: 2026-01-15-preview/ProjectConnection/update.json
*/
/**
* Sample code: UpdateProjectConnection.
@@ -2142,16 +3015,17 @@ public final class ProjectConnectionsUpdateSamples {
*/
public static void
updateProjectConnection(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
- 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);
+ 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();
}
// Use "Map.of" if available
@@ -2180,9 +3054,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ResourceIdentityType;
*/
public final class ProjectsCreateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CreateProjectMin.json
+ * x-ms-original-file: 2026-01-15-preview/CreateProjectMin.json
*/
/**
* Sample code: Create Project Min.
@@ -2194,15 +3066,13 @@ public final class ProjectsCreateSamples {
.define("testProject1")
.withExistingAccount("myResourceGroup", "testCreate1")
.withRegion("West US")
- .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.withProperties(new ProjectProperties())
+ .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.create();
}
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CreateProject.json
+ * x-ms-original-file: 2026-01-15-preview/CreateProject.json
*/
/**
* Sample code: Create Project.
@@ -2214,9 +3084,9 @@ public final class ProjectsCreateSamples {
.define("testProject1")
.withExistingAccount("myResourceGroup", "testCreate1")
.withRegion("West US")
- .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.withProperties(
new ProjectProperties().withDisplayName("p1").withDescription("Description of this project"))
+ .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
.create();
}
}
@@ -2230,9 +3100,7 @@ public final class ProjectsCreateSamples {
*/
public final class ProjectsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteProject.json
+ * x-ms-original-file: 2026-01-15-preview/DeleteProject.json
*/
/**
* Sample code: Delete Project.
@@ -2253,9 +3121,7 @@ public final class ProjectsDeleteSamples {
*/
public final class ProjectsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetProject.json
+ * x-ms-original-file: 2026-01-15-preview/GetProject.json
*/
/**
* Sample code: Get Project.
@@ -2277,9 +3143,7 @@ public final class ProjectsGetSamples {
*/
public final class ProjectsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListProjects.json
+ * x-ms-original-file: 2026-01-15-preview/ListProjects.json
*/
/**
* Sample code: List Project.
@@ -2303,9 +3167,7 @@ import com.azure.resourcemanager.cognitiveservices.models.ProjectProperties;
*/
public final class ProjectsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * UpdateProjects.json
+ * x-ms-original-file: 2026-01-15-preview/UpdateProjects.json
*/
/**
* Sample code: Update Project.
@@ -2332,9 +3194,7 @@ import com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy;
*/
public final class QuotaTiersCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CreateOrUpdateQuotaTier.json
+ * x-ms-original-file: 2026-01-15-preview/CreateOrUpdateQuotaTier.json
*/
/**
* Sample code: Update the quota tier resource for a subscription.
@@ -2359,9 +3219,7 @@ public final class QuotaTiersCreateOrUpdateSamples {
*/
public final class QuotaTiersGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetQuotaTier.json
+ * x-ms-original-file: 2026-01-15-preview/GetQuotaTier.json
*/
/**
* Sample code: Get the Quota Tier information for a subscription.
@@ -2383,9 +3241,7 @@ public final class QuotaTiersGetSamples {
*/
public final class QuotaTiersListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListQuotaTiers.json
+ * x-ms-original-file: 2026-01-15-preview/ListQuotaTiers.json
*/
/**
* Sample code: List the Quota Tier for a subscription.
@@ -2411,9 +3267,7 @@ import com.azure.resourcemanager.cognitiveservices.models.TierUpgradePolicy;
*/
public final class QuotaTiersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * UpdateQuotaTier.json
+ * x-ms-original-file: 2026-01-15-preview/UpdateQuotaTier.json
*/
/**
* Sample code: Update the quota tier resource for a subscription.
@@ -2443,9 +3297,7 @@ import java.util.Arrays;
*/
public final class RaiBlocklistItemsBatchAddSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * AddRaiBlocklistItems.json
+ * x-ms-original-file: 2026-01-15-preview/AddRaiBlocklistItems.json
*/
/**
* Sample code: AddRaiBlocklistItems.
@@ -2470,31 +3322,25 @@ public final class RaiBlocklistItemsBatchAddSamples {
### RaiBlocklistItems_BatchDelete
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import java.io.IOException;
+import java.util.Arrays;
/**
* Samples for RaiBlocklistItems BatchDelete.
*/
public final class RaiBlocklistItemsBatchDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteRaiBlocklistItems.json
+ * x-ms-original-file: 2026-01-15-preview/DeleteRaiBlocklistItems.json
*/
/**
* Sample code: DeleteRaiBlocklistItems.
*
* @param manager Entry point to CognitiveServicesManager.
*/
- public static void deleteRaiBlocklistItems(
- com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) throws IOException {
+ public static void
+ deleteRaiBlocklistItems(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.raiBlocklistItems()
.batchDeleteWithResponse("resourceGroupName", "accountName", "raiBlocklistName",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("[\"myblocklistitem1\",\"myblocklistitem2\"]", Object.class, SerializerEncoding.JSON),
- com.azure.core.util.Context.NONE);
+ Arrays.asList("myblocklistitem1", "myblocklistitem2"), com.azure.core.util.Context.NONE);
}
}
```
@@ -2509,9 +3355,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItemProper
*/
public final class RaiBlocklistItemsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutRaiBlocklistItem.json
+ * x-ms-original-file: 2026-01-15-preview/PutRaiBlocklistItem.json
*/
/**
* Sample code: PutRaiBlocklistItem.
@@ -2537,9 +3381,7 @@ public final class RaiBlocklistItemsCreateOrUpdateSamples {
*/
public final class RaiBlocklistItemsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteRaiBlocklistItem.json
+ * x-ms-original-file: 2026-01-15-preview/DeleteRaiBlocklistItem.json
*/
/**
* Sample code: DeleteRaiBlocklistItem.
@@ -2563,9 +3405,7 @@ public final class RaiBlocklistItemsDeleteSamples {
*/
public final class RaiBlocklistItemsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetRaiBlocklistItem.json
+ * x-ms-original-file: 2026-01-15-preview/GetRaiBlocklistItem.json
*/
/**
* Sample code: GetRaiBlocklistItem.
@@ -2589,9 +3429,7 @@ public final class RaiBlocklistItemsGetSamples {
*/
public final class RaiBlocklistItemsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListBlocklistItems.json
+ * x-ms-original-file: 2026-01-15-preview/ListBlocklistItems.json
*/
/**
* Sample code: ListBlocklistItems.
@@ -2616,9 +3454,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistProperties
*/
public final class RaiBlocklistsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutRaiBlocklist.json
+ * x-ms-original-file: 2026-01-15-preview/PutRaiBlocklist.json
*/
/**
* Sample code: PutRaiBlocklist.
@@ -2643,9 +3479,7 @@ public final class RaiBlocklistsCreateOrUpdateSamples {
*/
public final class RaiBlocklistsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteRaiBlocklist.json
+ * x-ms-original-file: 2026-01-15-preview/DeleteRaiBlocklist.json
*/
/**
* Sample code: DeleteRaiBlocklist.
@@ -2668,9 +3502,7 @@ public final class RaiBlocklistsDeleteSamples {
*/
public final class RaiBlocklistsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetRaiBlocklist.json
+ * x-ms-original-file: 2026-01-15-preview/GetRaiBlocklist.json
*/
/**
* Sample code: GetRaiBlocklist.
@@ -2692,9 +3524,7 @@ public final class RaiBlocklistsGetSamples {
*/
public final class RaiBlocklistsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListBlocklists.json
+ * x-ms-original-file: 2026-01-15-preview/ListBlocklists.json
*/
/**
* Sample code: ListBlocklists.
@@ -2715,9 +3545,7 @@ public final class RaiBlocklistsListSamples {
*/
public final class RaiContentFiltersGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetRaiContentFilter.json
+ * x-ms-original-file: 2026-01-15-preview/GetRaiContentFilter.json
*/
/**
* Sample code: GetRaiContentFilters.
@@ -2739,9 +3567,7 @@ public final class RaiContentFiltersGetSamples {
*/
public final class RaiContentFiltersListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListRaiContentFilters.json
+ * x-ms-original-file: 2026-01-15-preview/ListRaiContentFilters.json
*/
/**
* Sample code: ListRaiContentFilters.
@@ -2755,6 +3581,105 @@ public final class RaiContentFiltersListSamples {
}
```
+### RaiExternalSafetyProvider_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiExternalSafetyProviderSchemaInner;
+import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProviderSchemaProperties;
+
+/**
+ * Samples for RaiExternalSafetyProvider CreateOrUpdate.
+ */
+public final class RaiExternalSafetyProviderCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/PutRaiExternalSafetyProvider.json
+ */
+ /**
+ * Sample code: PutRaiExternalSafetyProvider.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ putRaiExternalSafetyProvider(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.raiExternalSafetyProviders()
+ .createOrUpdateWithResponse("safetyProviderName", new RaiExternalSafetyProviderSchemaInner().withProperties(
+ new RaiExternalSafetyProviderSchemaProperties().withProviderId("00000000-0000-0000-0000-000000000000")
+ .withProviderName("safetyProviderName")
+ .withMode("sync")
+ .withUrl("https://example.webhook.endpoint")
+ .withSecretName("fakeTokenPlaceholder")
+ .withManagedIdentity("00000000-0000-0000-0000-000000000000")
+ .withKeyVaultUri("fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiExternalSafetyProvider_Delete
+
+```java
+/**
+ * Samples for RaiExternalSafetyProvider Delete.
+ */
+public final class RaiExternalSafetyProviderDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/DeleteRaiExternalSafetyProvider.json
+ */
+ /**
+ * Sample code: DeleteRaiTopic.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void deleteRaiTopic(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.raiExternalSafetyProviders().delete("safetyProviderName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiExternalSafetyProvider_Get
+
+```java
+/**
+ * Samples for RaiExternalSafetyProvider Get.
+ */
+public final class RaiExternalSafetyProviderGetSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetRaiExternalSafetyProvider.json
+ */
+ /**
+ * Sample code: GetRaiExternalSafetyProvider.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ getRaiExternalSafetyProvider(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.raiExternalSafetyProviders().getWithResponse("safetyProviderName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiExternalSafetyProvidersOperation_List
+
+```java
+/**
+ * Samples for RaiExternalSafetyProvidersOperation List.
+ */
+public final class RaiExternalSafetyProvidersOperationListSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListRaiExternalSafetyProviders.json
+ */
+ /**
+ * Sample code: ListRaiExternalSafetyProviders.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ listRaiExternalSafetyProviders(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.raiExternalSafetyProvidersOperations().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### RaiPolicies_CreateOrUpdate
```java
@@ -2770,9 +3695,7 @@ import java.util.Arrays;
*/
public final class RaiPoliciesCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutRaiPolicy.json
+ * x-ms-original-file: 2026-01-15-preview/PutRaiPolicy.json
*/
/**
* Sample code: PutRaiPolicy.
@@ -2855,9 +3778,7 @@ public final class RaiPoliciesCreateOrUpdateSamples {
*/
public final class RaiPoliciesDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteRaiPolicy.json
+ * x-ms-original-file: 2026-01-15-preview/DeleteRaiPolicy.json
*/
/**
* Sample code: DeleteRaiPolicy.
@@ -2879,9 +3800,7 @@ public final class RaiPoliciesDeleteSamples {
*/
public final class RaiPoliciesGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetRaiPolicy.json
+ * x-ms-original-file: 2026-01-15-preview/GetRaiPolicy.json
*/
/**
* Sample code: GetRaiPolicy.
@@ -2903,9 +3822,7 @@ public final class RaiPoliciesGetSamples {
*/
public final class RaiPoliciesListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListRaiPolicies.json
+ * x-ms-original-file: 2026-01-15-preview/ListRaiPolicies.json
*/
/**
* Sample code: ListRaiPolicies.
@@ -2918,6 +3835,123 @@ public final class RaiPoliciesListSamples {
}
```
+### RaiToolLabels_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelProperties;
+import com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelPropertiesAccountScope;
+import com.azure.resourcemanager.cognitiveservices.models.RaiToolLabelPropertiesProjectScopesItem;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for RaiToolLabels CreateOrUpdate.
+ */
+public final class RaiToolLabelsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/PutRaiToolLabel.json
+ */
+ /**
+ * Sample code: PutRaiToolLabel.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void putRaiToolLabel(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.raiToolLabels()
+ .define("Web_Search")
+ .withExistingAccount("resourceGroupName", "accountName")
+ .withProperties(new RaiToolLabelProperties().withToolConnectionName("Web_Search")
+ .withAccountScope(
+ new RaiToolLabelPropertiesAccountScope().withLabelValues(mapOf("confidentiality", "low")))
+ .withProjectScopes(Arrays.asList(
+ new RaiToolLabelPropertiesProjectScopesItem().withProject("test-project")
+ .withLabelValues(mapOf("confidentiality", "low")),
+ new RaiToolLabelPropertiesProjectScopesItem().withProject("sample-project")
+ .withLabelValues(mapOf("confidentiality", "low")))))
+ .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;
+ }
+}
+```
+
+### RaiToolLabels_Delete
+
+```java
+/**
+ * Samples for RaiToolLabels Delete.
+ */
+public final class RaiToolLabelsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/DeleteRaiToolLabel.json
+ */
+ /**
+ * Sample code: DeleteRaiToolLabel.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ deleteRaiToolLabel(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.raiToolLabels()
+ .delete("resourceGroupName", "accountName", "Web_Search", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiToolLabels_Get
+
+```java
+/**
+ * Samples for RaiToolLabels Get.
+ */
+public final class RaiToolLabelsGetSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetRaiToolLabel.json
+ */
+ /**
+ * Sample code: GetRaiToolLabel.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void getRaiToolLabel(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.raiToolLabels()
+ .getWithResponse("resourceGroupName", "accountName", "ToolLabelName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiToolLabels_List
+
+```java
+/**
+ * Samples for RaiToolLabels List.
+ */
+public final class RaiToolLabelsListSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListRaiToolLabels.json
+ */
+ /**
+ * Sample code: ListRaiToolLabels.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void listRaiToolLabels(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.raiToolLabels().list("resourceGroupName", "accountName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### RaiTopics_CreateOrUpdate
```java
@@ -2928,9 +3962,7 @@ import com.azure.resourcemanager.cognitiveservices.models.RaiTopicProperties;
*/
public final class RaiTopicsCreateOrUpdateSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * PutRaiTopic.json
+ * x-ms-original-file: 2026-01-15-preview/PutRaiTopic.json
*/
/**
* Sample code: PutRaiTopic.
@@ -2957,9 +3989,7 @@ public final class RaiTopicsCreateOrUpdateSamples {
*/
public final class RaiTopicsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * DeleteRaiTopic.json
+ * x-ms-original-file: 2026-01-15-preview/DeleteRaiTopic.json
*/
/**
* Sample code: DeleteRaiTopic.
@@ -2981,9 +4011,7 @@ public final class RaiTopicsDeleteSamples {
*/
public final class RaiTopicsGetSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * GetRaiTopic.json
+ * x-ms-original-file: 2026-01-15-preview/GetRaiTopic.json
*/
/**
* Sample code: GetRaiTopic.
@@ -3005,9 +4033,7 @@ public final class RaiTopicsGetSamples {
*/
public final class RaiTopicsListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListRaiTopics.json
+ * x-ms-original-file: 2026-01-15-preview/ListRaiTopics.json
*/
/**
* Sample code: ListRaiTopics.
@@ -3034,9 +4060,7 @@ import java.util.Arrays;
*/
public final class ResourceProviderCalculateModelCapacitySamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CalculateModelCapacity.json
+ * x-ms-original-file: 2026-01-15-preview/CalculateModelCapacity.json
*/
/**
* Sample code: Calculate Model Capacity.
@@ -3071,9 +4095,7 @@ import com.azure.resourcemanager.cognitiveservices.models.CheckDomainAvailabilit
*/
public final class ResourceProviderCheckDomainAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CheckDomainAvailability.json
+ * x-ms-original-file: 2026-01-15-preview/CheckDomainAvailability.json
*/
/**
* Sample code: Check SKU Availability.
@@ -3102,9 +4124,7 @@ import java.util.Arrays;
*/
public final class ResourceProviderCheckSkuAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * CheckSkuAvailability.json
+ * x-ms-original-file: 2026-01-15-preview/CheckSkuAvailability.json
*/
/**
* Sample code: Check SKU Availability.
@@ -3131,9 +4151,7 @@ public final class ResourceProviderCheckSkuAvailabilitySamples {
*/
public final class ResourceSkusListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/GetSkus.
- * json
+ * x-ms-original-file: 2026-01-15-preview/GetSkus.json
*/
/**
* Sample code: Regenerate Keys.
@@ -3146,6 +4164,174 @@ public final class ResourceSkusListSamples {
}
```
+### SubscriptionRaiPolicy_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner;
+import com.azure.resourcemanager.cognitiveservices.models.ContentLevel;
+import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentFilter;
+import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyContentSource;
+import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyMode;
+import com.azure.resourcemanager.cognitiveservices.models.RaiPolicyProperties;
+import java.util.Arrays;
+
+/**
+ * Samples for SubscriptionRaiPolicy CreateOrUpdate.
+ */
+public final class SubscriptionRaiPolicyCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/PutSubscriptionRaiPolicy.json
+ */
+ /**
+ * Sample code: PutRaiPolicy.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void putRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.subscriptionRaiPolicies()
+ .createOrUpdateWithResponse("raiPolicyName",
+ new RaiPolicyInner()
+ .withProperties(new RaiPolicyProperties().withMode(RaiPolicyMode.ASYNCHRONOUS_FILTER)
+ .withBasePolicyName("Microsoft.Default")
+ .withContentFilters(Arrays.asList(
+ new RaiPolicyContentFilter().withName("Hate")
+ .withEnabled(false)
+ .withSeverityThreshold(ContentLevel.HIGH)
+ .withBlocking(false)
+ .withSource(RaiPolicyContentSource.PROMPT),
+ new RaiPolicyContentFilter().withName("Hate")
+ .withEnabled(true)
+ .withSeverityThreshold(ContentLevel.MEDIUM)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.COMPLETION),
+ new RaiPolicyContentFilter().withName("Sexual")
+ .withEnabled(true)
+ .withSeverityThreshold(ContentLevel.HIGH)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.PROMPT),
+ new RaiPolicyContentFilter().withName("Sexual")
+ .withEnabled(true)
+ .withSeverityThreshold(ContentLevel.MEDIUM)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.COMPLETION),
+ new RaiPolicyContentFilter().withName("Selfharm")
+ .withEnabled(true)
+ .withSeverityThreshold(ContentLevel.HIGH)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.PROMPT),
+ new RaiPolicyContentFilter().withName("Selfharm")
+ .withEnabled(true)
+ .withSeverityThreshold(ContentLevel.MEDIUM)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.COMPLETION),
+ new RaiPolicyContentFilter().withName("Violence")
+ .withEnabled(true)
+ .withSeverityThreshold(ContentLevel.MEDIUM)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.PROMPT),
+ new RaiPolicyContentFilter().withName("Violence")
+ .withEnabled(true)
+ .withSeverityThreshold(ContentLevel.MEDIUM)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.COMPLETION),
+ new RaiPolicyContentFilter().withName("Jailbreak")
+ .withEnabled(true)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.PROMPT),
+ new RaiPolicyContentFilter().withName("Protected Material Text")
+ .withEnabled(true)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.COMPLETION),
+ new RaiPolicyContentFilter().withName("Protected Material Code")
+ .withEnabled(true)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.COMPLETION),
+ new RaiPolicyContentFilter().withName("Profanity")
+ .withEnabled(true)
+ .withBlocking(true)
+ .withSource(RaiPolicyContentSource.PROMPT)))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SubscriptionRaiPolicy_Delete
+
+```java
+/**
+ * Samples for SubscriptionRaiPolicy Delete.
+ */
+public final class SubscriptionRaiPolicyDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/DeleteSubscriptionRaiPolicy.json
+ */
+ /**
+ * Sample code: DeleteRaiPolicy.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void deleteRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.subscriptionRaiPolicies().delete("raiPolicyName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SubscriptionRaiPolicy_Get
+
+```java
+/**
+ * Samples for SubscriptionRaiPolicy Get.
+ */
+public final class SubscriptionRaiPolicyGetSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/GetSubscriptionRaiPolicy.json
+ */
+ /**
+ * Sample code: GetRaiPolicy.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void getRaiPolicy(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.subscriptionRaiPolicies().getWithResponse("raiPolicyName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### TestRaiExternalSafetyProvider_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProviderSchemaProperties;
+
+/**
+ * Samples for TestRaiExternalSafetyProvider CreateOrUpdate.
+ */
+public final class TestRaiExternalSafetyProviderCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/TestRaiExternalSafetyProvider.json
+ */
+ /**
+ * Sample code: TestRaiExternalSafetyProvider.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ testRaiExternalSafetyProvider(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.testRaiExternalSafetyProviders()
+ .define("mySafetyProvider")
+ .withExistingAccount("myResourceGroup", "myCognitiveAccount")
+ .withProperties(
+ new RaiExternalSafetyProviderSchemaProperties().withProviderId("00000000-0000-0000-0000-000000000000")
+ .withProviderName("safetyProviderName")
+ .withMode("sync")
+ .withUrl("https://example-safety-provider.contoso.com/webhook")
+ .withSecretName("fakeTokenPlaceholder")
+ .withManagedIdentity("f3b9c2e7-4aad-4b1f-9d9c-9e9b1e9b1f9b")
+ .withKeyVaultUri("fakeTokenPlaceholder"))
+ .create();
+ }
+}
+```
+
### Usages_List
```java
@@ -3154,9 +4340,7 @@ public final class ResourceSkusListSamples {
*/
public final class UsagesListSamples {
/*
- * x-ms-original-file:
- * specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2025-09-01/examples/
- * ListUsages.json
+ * x-ms-original-file: 2026-01-15-preview/ListUsages.json
*/
/**
* Sample code: Get Usages.
@@ -3166,6 +4350,45 @@ public final class UsagesListSamples {
public static void getUsages(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
manager.usages().list("WestUS", null, com.azure.core.util.Context.NONE);
}
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListUsagesClassicScope.json
+ */
+ /**
+ * Sample code: Get Usages Classic Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ getUsagesClassicScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.usages().list("WestUS", null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListUsagesDataZoneScope.json
+ */
+ /**
+ * Sample code: Get Usages DataZone Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ getUsagesDataZoneScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.usages().list("WestUS", null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/ListUsagesGlobalScope.json
+ */
+ /**
+ * Sample code: Get Usages Global Scope.
+ *
+ * @param manager Entry point to CognitiveServicesManager.
+ */
+ public static void
+ getUsagesGlobalScope(com.azure.resourcemanager.cognitiveservices.CognitiveServicesManager manager) {
+ manager.usages().list("WestUS", null, com.azure.core.util.Context.NONE);
+ }
}
```
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml
index c9db996a2475..7b7883d45698 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for CognitiveServices Management
- This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package tag package-2025-09-01.
+ This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package api-version 2026-01-15-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
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 bf1287d8103f..250727eb5d11 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices;
@@ -28,18 +28,25 @@
import com.azure.resourcemanager.cognitiveservices.implementation.AccountCapabilityHostsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.AccountConnectionsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.AccountsImpl;
+import com.azure.resourcemanager.cognitiveservices.implementation.AgentApplicationsImpl;
+import com.azure.resourcemanager.cognitiveservices.implementation.AgentDeploymentsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.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.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.ManagedNetworkProvisionsImpl;
+import com.azure.resourcemanager.cognitiveservices.implementation.ManagedNetworkSettingsOperationsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.ModelCapacitiesImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.ModelsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.NetworkSecurityPerimeterConfigurationsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.OperationsImpl;
+import com.azure.resourcemanager.cognitiveservices.implementation.OutboundRulesImpl;
+import com.azure.resourcemanager.cognitiveservices.implementation.OutboundRulesOperationsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.ProjectCapabilityHostsImpl;
@@ -49,25 +56,37 @@
import com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistItemsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.RaiBlocklistsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.RaiContentFiltersImpl;
+import com.azure.resourcemanager.cognitiveservices.implementation.RaiExternalSafetyProvidersImpl;
+import com.azure.resourcemanager.cognitiveservices.implementation.RaiExternalSafetyProvidersOperationsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.RaiPoliciesImpl;
+import com.azure.resourcemanager.cognitiveservices.implementation.RaiToolLabelsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.RaiTopicsImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.ResourceProvidersImpl;
import com.azure.resourcemanager.cognitiveservices.implementation.ResourceSkusImpl;
+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.models.AccountCapabilityHosts;
import com.azure.resourcemanager.cognitiveservices.models.AccountConnections;
import com.azure.resourcemanager.cognitiveservices.models.Accounts;
+import com.azure.resourcemanager.cognitiveservices.models.AgentApplications;
+import com.azure.resourcemanager.cognitiveservices.models.AgentDeployments;
import com.azure.resourcemanager.cognitiveservices.models.CommitmentPlans;
import com.azure.resourcemanager.cognitiveservices.models.CommitmentTiers;
+import com.azure.resourcemanager.cognitiveservices.models.ComputeOperations;
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.ManagedNetworkProvisions;
+import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkSettingsOperations;
import com.azure.resourcemanager.cognitiveservices.models.ModelCapacities;
import com.azure.resourcemanager.cognitiveservices.models.Models;
import com.azure.resourcemanager.cognitiveservices.models.NetworkSecurityPerimeterConfigurations;
import com.azure.resourcemanager.cognitiveservices.models.Operations;
+import com.azure.resourcemanager.cognitiveservices.models.OutboundRules;
+import com.azure.resourcemanager.cognitiveservices.models.OutboundRulesOperations;
import com.azure.resourcemanager.cognitiveservices.models.PrivateEndpointConnections;
import com.azure.resourcemanager.cognitiveservices.models.PrivateLinkResources;
import com.azure.resourcemanager.cognitiveservices.models.ProjectCapabilityHosts;
@@ -77,10 +96,15 @@
import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklistItems;
import com.azure.resourcemanager.cognitiveservices.models.RaiBlocklists;
import com.azure.resourcemanager.cognitiveservices.models.RaiContentFilters;
+import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProviders;
+import com.azure.resourcemanager.cognitiveservices.models.RaiExternalSafetyProvidersOperations;
import com.azure.resourcemanager.cognitiveservices.models.RaiPolicies;
+import com.azure.resourcemanager.cognitiveservices.models.RaiToolLabels;
import com.azure.resourcemanager.cognitiveservices.models.RaiTopics;
import com.azure.resourcemanager.cognitiveservices.models.ResourceProviders;
import com.azure.resourcemanager.cognitiveservices.models.ResourceSkus;
+import com.azure.resourcemanager.cognitiveservices.models.SubscriptionRaiPolicies;
+import com.azure.resourcemanager.cognitiveservices.models.TestRaiExternalSafetyProviders;
import com.azure.resourcemanager.cognitiveservices.models.Usages;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -95,30 +119,16 @@
* Cognitive Services Management Client.
*/
public final class CognitiveServicesManager {
- private Accounts accounts;
-
- private DeletedAccounts deletedAccounts;
-
- private ResourceSkus resourceSkus;
-
- private Usages usages;
-
- private Operations operations;
-
private ResourceProviders resourceProviders;
- private CommitmentTiers commitmentTiers;
-
- private Models models;
+ private Operations operations;
- private LocationBasedModelCapacities locationBasedModelCapacities;
+ private Accounts accounts;
- private ModelCapacities modelCapacities;
+ private DeletedAccounts deletedAccounts;
private PrivateEndpointConnections privateEndpointConnections;
- private PrivateLinkResources privateLinkResources;
-
private Deployments deployments;
private CommitmentPlans commitmentPlans;
@@ -127,12 +137,16 @@ public final class CognitiveServicesManager {
private RaiPolicies raiPolicies;
- private RaiBlocklists raiBlocklists;
+ private SubscriptionRaiPolicies subscriptionRaiPolicies;
private RaiBlocklistItems raiBlocklistItems;
+ private RaiBlocklists raiBlocklists;
+
private RaiTopics raiTopics;
+ private RaiToolLabels raiToolLabels;
+
private RaiContentFilters raiContentFilters;
private NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations;
@@ -141,16 +155,50 @@ public final class CognitiveServicesManager {
private Projects projects;
- private AccountConnections accountConnections;
-
private ProjectConnections projectConnections;
- private AccountCapabilityHosts accountCapabilityHosts;
-
private ProjectCapabilityHosts projectCapabilityHosts;
private QuotaTiers quotaTiers;
+ private AgentApplications agentApplications;
+
+ private ComputeOperations computeOperations;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private TestRaiExternalSafetyProviders testRaiExternalSafetyProviders;
+
+ private RaiExternalSafetyProviders raiExternalSafetyProviders;
+
+ private RaiExternalSafetyProvidersOperations raiExternalSafetyProvidersOperations;
+
+ private AccountConnections accountConnections;
+
+ private AccountCapabilityHosts accountCapabilityHosts;
+
+ private OutboundRules outboundRules;
+
+ private ManagedNetworkSettingsOperations managedNetworkSettingsOperations;
+
+ private OutboundRulesOperations outboundRulesOperations;
+
+ private ManagedNetworkProvisions managedNetworkProvisions;
+
+ private AgentDeployments agentDeployments;
+
+ private ResourceSkus resourceSkus;
+
+ private Usages usages;
+
+ private CommitmentTiers commitmentTiers;
+
+ private Models models;
+
+ private LocationBasedModelCapacities locationBasedModelCapacities;
+
+ private ModelCapacities modelCapacities;
+
private final CognitiveServicesManagementClient clientObject;
private CognitiveServicesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -366,66 +414,6 @@ public CognitiveServicesManager authenticate(TokenCredential credential, AzurePr
}
}
- /**
- * Gets the resource collection API of Accounts. It manages Account.
- *
- * @return Resource collection API of Accounts.
- */
- public Accounts accounts() {
- if (this.accounts == null) {
- this.accounts = new AccountsImpl(clientObject.getAccounts(), this);
- }
- return accounts;
- }
-
- /**
- * Gets the resource collection API of DeletedAccounts.
- *
- * @return Resource collection API of DeletedAccounts.
- */
- public DeletedAccounts deletedAccounts() {
- if (this.deletedAccounts == null) {
- this.deletedAccounts = new DeletedAccountsImpl(clientObject.getDeletedAccounts(), this);
- }
- return deletedAccounts;
- }
-
- /**
- * Gets the resource collection API of ResourceSkus.
- *
- * @return Resource collection API of ResourceSkus.
- */
- public ResourceSkus resourceSkus() {
- if (this.resourceSkus == null) {
- this.resourceSkus = new ResourceSkusImpl(clientObject.getResourceSkus(), this);
- }
- return resourceSkus;
- }
-
- /**
- * Gets the resource collection API of Usages.
- *
- * @return Resource collection API of Usages.
- */
- public Usages usages() {
- if (this.usages == null) {
- this.usages = new UsagesImpl(clientObject.getUsages(), this);
- }
- return usages;
- }
-
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
/**
* Gets the resource collection API of ResourceProviders.
*
@@ -439,52 +427,39 @@ public ResourceProviders resourceProviders() {
}
/**
- * Gets the resource collection API of CommitmentTiers.
- *
- * @return Resource collection API of CommitmentTiers.
- */
- public CommitmentTiers commitmentTiers() {
- if (this.commitmentTiers == null) {
- this.commitmentTiers = new CommitmentTiersImpl(clientObject.getCommitmentTiers(), this);
- }
- return commitmentTiers;
- }
-
- /**
- * Gets the resource collection API of Models.
+ * Gets the resource collection API of Operations.
*
- * @return Resource collection API of Models.
+ * @return Resource collection API of Operations.
*/
- public Models models() {
- if (this.models == null) {
- this.models = new ModelsImpl(clientObject.getModels(), this);
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
- return models;
+ return operations;
}
/**
- * Gets the resource collection API of LocationBasedModelCapacities.
+ * Gets the resource collection API of Accounts. It manages Account.
*
- * @return Resource collection API of LocationBasedModelCapacities.
+ * @return Resource collection API of Accounts.
*/
- public LocationBasedModelCapacities locationBasedModelCapacities() {
- if (this.locationBasedModelCapacities == null) {
- this.locationBasedModelCapacities
- = new LocationBasedModelCapacitiesImpl(clientObject.getLocationBasedModelCapacities(), this);
+ public Accounts accounts() {
+ if (this.accounts == null) {
+ this.accounts = new AccountsImpl(clientObject.getAccounts(), this);
}
- return locationBasedModelCapacities;
+ return accounts;
}
/**
- * Gets the resource collection API of ModelCapacities.
+ * Gets the resource collection API of DeletedAccounts.
*
- * @return Resource collection API of ModelCapacities.
+ * @return Resource collection API of DeletedAccounts.
*/
- public ModelCapacities modelCapacities() {
- if (this.modelCapacities == null) {
- this.modelCapacities = new ModelCapacitiesImpl(clientObject.getModelCapacities(), this);
+ public DeletedAccounts deletedAccounts() {
+ if (this.deletedAccounts == null) {
+ this.deletedAccounts = new DeletedAccountsImpl(clientObject.getDeletedAccounts(), this);
}
- return modelCapacities;
+ return deletedAccounts;
}
/**
@@ -500,18 +475,6 @@ public PrivateEndpointConnections privateEndpointConnections() {
return privateEndpointConnections;
}
- /**
- * Gets the resource collection API of PrivateLinkResources.
- *
- * @return Resource collection API of PrivateLinkResources.
- */
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
- }
- return privateLinkResources;
- }
-
/**
* Gets the resource collection API of Deployments. It manages Deployment.
*
@@ -561,15 +524,16 @@ public RaiPolicies raiPolicies() {
}
/**
- * Gets the resource collection API of RaiBlocklists. It manages RaiBlocklist.
+ * Gets the resource collection API of SubscriptionRaiPolicies.
*
- * @return Resource collection API of RaiBlocklists.
+ * @return Resource collection API of SubscriptionRaiPolicies.
*/
- public RaiBlocklists raiBlocklists() {
- if (this.raiBlocklists == null) {
- this.raiBlocklists = new RaiBlocklistsImpl(clientObject.getRaiBlocklists(), this);
+ public SubscriptionRaiPolicies subscriptionRaiPolicies() {
+ if (this.subscriptionRaiPolicies == null) {
+ this.subscriptionRaiPolicies
+ = new SubscriptionRaiPoliciesImpl(clientObject.getSubscriptionRaiPolicies(), this);
}
- return raiBlocklists;
+ return subscriptionRaiPolicies;
}
/**
@@ -584,6 +548,18 @@ public RaiBlocklistItems raiBlocklistItems() {
return raiBlocklistItems;
}
+ /**
+ * Gets the resource collection API of RaiBlocklists. It manages RaiBlocklist.
+ *
+ * @return Resource collection API of RaiBlocklists.
+ */
+ public RaiBlocklists raiBlocklists() {
+ if (this.raiBlocklists == null) {
+ this.raiBlocklists = new RaiBlocklistsImpl(clientObject.getRaiBlocklists(), this);
+ }
+ return raiBlocklists;
+ }
+
/**
* Gets the resource collection API of RaiTopics. It manages RaiTopic.
*
@@ -596,6 +572,18 @@ public RaiTopics raiTopics() {
return raiTopics;
}
+ /**
+ * Gets the resource collection API of RaiToolLabels. It manages RaiToolLabel.
+ *
+ * @return Resource collection API of RaiToolLabels.
+ */
+ public RaiToolLabels raiToolLabels() {
+ if (this.raiToolLabels == null) {
+ this.raiToolLabels = new RaiToolLabelsImpl(clientObject.getRaiToolLabels(), this);
+ }
+ return raiToolLabels;
+ }
+
/**
* Gets the resource collection API of RaiContentFilters.
*
@@ -646,27 +634,127 @@ public Projects projects() {
}
/**
- * Gets the resource collection API of AccountConnections. It manages ConnectionPropertiesV2BasicResource.
+ * Gets the resource collection API of ProjectConnections. It manages ConnectionPropertiesV2BasicResource.
*
- * @return Resource collection API of AccountConnections.
+ * @return Resource collection API of ProjectConnections.
*/
- public AccountConnections accountConnections() {
- if (this.accountConnections == null) {
- this.accountConnections = new AccountConnectionsImpl(clientObject.getAccountConnections(), this);
+ public ProjectConnections projectConnections() {
+ if (this.projectConnections == null) {
+ this.projectConnections = new ProjectConnectionsImpl(clientObject.getProjectConnections(), this);
}
- return accountConnections;
+ return projectConnections;
}
/**
- * Gets the resource collection API of ProjectConnections.
+ * Gets the resource collection API of ProjectCapabilityHosts. It manages ProjectCapabilityHost.
*
- * @return Resource collection API of ProjectConnections.
+ * @return Resource collection API of ProjectCapabilityHosts.
*/
- public ProjectConnections projectConnections() {
- if (this.projectConnections == null) {
- this.projectConnections = new ProjectConnectionsImpl(clientObject.getProjectConnections(), this);
+ public ProjectCapabilityHosts projectCapabilityHosts() {
+ if (this.projectCapabilityHosts == null) {
+ this.projectCapabilityHosts
+ = new ProjectCapabilityHostsImpl(clientObject.getProjectCapabilityHosts(), this);
}
- return projectConnections;
+ return projectCapabilityHosts;
+ }
+
+ /**
+ * Gets the resource collection API of QuotaTiers. It manages QuotaTier.
+ *
+ * @return Resource collection API of QuotaTiers.
+ */
+ public QuotaTiers quotaTiers() {
+ if (this.quotaTiers == null) {
+ this.quotaTiers = new QuotaTiersImpl(clientObject.getQuotaTiers(), this);
+ }
+ return quotaTiers;
+ }
+
+ /**
+ * Gets the resource collection API of AgentApplications. It manages AgentApplication.
+ *
+ * @return Resource collection API of AgentApplications.
+ */
+ public AgentApplications agentApplications() {
+ if (this.agentApplications == null) {
+ this.agentApplications = new AgentApplicationsImpl(clientObject.getAgentApplications(), this);
+ }
+ return agentApplications;
+ }
+
+ /**
+ * 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 PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /**
+ * Gets the resource collection API of TestRaiExternalSafetyProviders. It manages RaiExternalSafetyProviderSchema.
+ *
+ * @return Resource collection API of TestRaiExternalSafetyProviders.
+ */
+ public TestRaiExternalSafetyProviders testRaiExternalSafetyProviders() {
+ if (this.testRaiExternalSafetyProviders == null) {
+ this.testRaiExternalSafetyProviders
+ = new TestRaiExternalSafetyProvidersImpl(clientObject.getTestRaiExternalSafetyProviders(), this);
+ }
+ return testRaiExternalSafetyProviders;
+ }
+
+ /**
+ * Gets the resource collection API of RaiExternalSafetyProviders.
+ *
+ * @return Resource collection API of RaiExternalSafetyProviders.
+ */
+ public RaiExternalSafetyProviders raiExternalSafetyProviders() {
+ if (this.raiExternalSafetyProviders == null) {
+ this.raiExternalSafetyProviders
+ = new RaiExternalSafetyProvidersImpl(clientObject.getRaiExternalSafetyProviders(), this);
+ }
+ return raiExternalSafetyProviders;
+ }
+
+ /**
+ * Gets the resource collection API of RaiExternalSafetyProvidersOperations.
+ *
+ * @return Resource collection API of RaiExternalSafetyProvidersOperations.
+ */
+ public RaiExternalSafetyProvidersOperations raiExternalSafetyProvidersOperations() {
+ if (this.raiExternalSafetyProvidersOperations == null) {
+ this.raiExternalSafetyProvidersOperations = new RaiExternalSafetyProvidersOperationsImpl(
+ clientObject.getRaiExternalSafetyProvidersOperations(), this);
+ }
+ return raiExternalSafetyProvidersOperations;
+ }
+
+ /**
+ * Gets the resource collection API of AccountConnections.
+ *
+ * @return Resource collection API of AccountConnections.
+ */
+ public AccountConnections accountConnections() {
+ if (this.accountConnections == null) {
+ this.accountConnections = new AccountConnectionsImpl(clientObject.getAccountConnections(), this);
+ }
+ return accountConnections;
}
/**
@@ -683,28 +771,140 @@ public AccountCapabilityHosts accountCapabilityHosts() {
}
/**
- * Gets the resource collection API of ProjectCapabilityHosts.
+ * Gets the resource collection API of OutboundRules. It manages OutboundRuleBasicResource.
*
- * @return Resource collection API of ProjectCapabilityHosts.
+ * @return Resource collection API of OutboundRules.
*/
- public ProjectCapabilityHosts projectCapabilityHosts() {
- if (this.projectCapabilityHosts == null) {
- this.projectCapabilityHosts
- = new ProjectCapabilityHostsImpl(clientObject.getProjectCapabilityHosts(), this);
+ public OutboundRules outboundRules() {
+ if (this.outboundRules == null) {
+ this.outboundRules = new OutboundRulesImpl(clientObject.getOutboundRules(), this);
}
- return projectCapabilityHosts;
+ return outboundRules;
}
/**
- * Gets the resource collection API of QuotaTiers. It manages QuotaTier.
+ * Gets the resource collection API of ManagedNetworkSettingsOperations. It manages
+ * ManagedNetworkSettingsPropertiesBasicResource.
*
- * @return Resource collection API of QuotaTiers.
+ * @return Resource collection API of ManagedNetworkSettingsOperations.
*/
- public QuotaTiers quotaTiers() {
- if (this.quotaTiers == null) {
- this.quotaTiers = new QuotaTiersImpl(clientObject.getQuotaTiers(), this);
+ public ManagedNetworkSettingsOperations managedNetworkSettingsOperations() {
+ if (this.managedNetworkSettingsOperations == null) {
+ this.managedNetworkSettingsOperations
+ = new ManagedNetworkSettingsOperationsImpl(clientObject.getManagedNetworkSettingsOperations(), this);
}
- return quotaTiers;
+ return managedNetworkSettingsOperations;
+ }
+
+ /**
+ * Gets the resource collection API of OutboundRulesOperations.
+ *
+ * @return Resource collection API of OutboundRulesOperations.
+ */
+ public OutboundRulesOperations outboundRulesOperations() {
+ if (this.outboundRulesOperations == null) {
+ this.outboundRulesOperations
+ = new OutboundRulesOperationsImpl(clientObject.getOutboundRulesOperations(), this);
+ }
+ return outboundRulesOperations;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkProvisions.
+ *
+ * @return Resource collection API of ManagedNetworkProvisions.
+ */
+ public ManagedNetworkProvisions managedNetworkProvisions() {
+ if (this.managedNetworkProvisions == null) {
+ this.managedNetworkProvisions
+ = new ManagedNetworkProvisionsImpl(clientObject.getManagedNetworkProvisions(), this);
+ }
+ return managedNetworkProvisions;
+ }
+
+ /**
+ * Gets the resource collection API of AgentDeployments. It manages AgentDeployment.
+ *
+ * @return Resource collection API of AgentDeployments.
+ */
+ public AgentDeployments agentDeployments() {
+ if (this.agentDeployments == null) {
+ this.agentDeployments = new AgentDeploymentsImpl(clientObject.getAgentDeployments(), this);
+ }
+ return agentDeployments;
+ }
+
+ /**
+ * Gets the resource collection API of ResourceSkus.
+ *
+ * @return Resource collection API of ResourceSkus.
+ */
+ public ResourceSkus resourceSkus() {
+ if (this.resourceSkus == null) {
+ this.resourceSkus = new ResourceSkusImpl(clientObject.getResourceSkus(), this);
+ }
+ return resourceSkus;
+ }
+
+ /**
+ * Gets the resource collection API of Usages.
+ *
+ * @return Resource collection API of Usages.
+ */
+ public Usages usages() {
+ if (this.usages == null) {
+ this.usages = new UsagesImpl(clientObject.getUsages(), this);
+ }
+ return usages;
+ }
+
+ /**
+ * Gets the resource collection API of CommitmentTiers.
+ *
+ * @return Resource collection API of CommitmentTiers.
+ */
+ public CommitmentTiers commitmentTiers() {
+ if (this.commitmentTiers == null) {
+ this.commitmentTiers = new CommitmentTiersImpl(clientObject.getCommitmentTiers(), this);
+ }
+ return commitmentTiers;
+ }
+
+ /**
+ * Gets the resource collection API of Models.
+ *
+ * @return Resource collection API of Models.
+ */
+ public Models models() {
+ if (this.models == null) {
+ this.models = new ModelsImpl(clientObject.getModels(), this);
+ }
+ return models;
+ }
+
+ /**
+ * Gets the resource collection API of LocationBasedModelCapacities.
+ *
+ * @return Resource collection API of LocationBasedModelCapacities.
+ */
+ public LocationBasedModelCapacities locationBasedModelCapacities() {
+ if (this.locationBasedModelCapacities == null) {
+ this.locationBasedModelCapacities
+ = new LocationBasedModelCapacitiesImpl(clientObject.getLocationBasedModelCapacities(), this);
+ }
+ return locationBasedModelCapacities;
+ }
+
+ /**
+ * Gets the resource collection API of ModelCapacities.
+ *
+ * @return Resource collection API of ModelCapacities.
+ */
+ public ModelCapacities modelCapacities() {
+ if (this.modelCapacities == null) {
+ this.modelCapacities = new ModelCapacitiesImpl(clientObject.getModelCapacities(), this);
+ }
+ return modelCapacities;
}
/**
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountCapabilityHostsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountCapabilityHostsClient.java
index 159390aa4da7..baaa0c2a3778 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountCapabilityHostsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountCapabilityHostsClient.java
@@ -1,11 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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;
@@ -17,156 +18,183 @@
*/
public interface AccountCapabilityHostsClient {
/**
- * Delete account capabilityHost.
+ * Get account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @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.
+ * @return account capabilityHost along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
- String capabilityHostname);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String capabilityHostName, Context context);
/**
- * Delete account capabilityHost.
+ * Get account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param context The context to associate with this operation.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return account capabilityHost.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
- String capabilityHostname, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CapabilityHostInner get(String resourceGroupName, String accountName, String capabilityHostName);
/**
- * Delete account capabilityHost.
+ * Create or update account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHost CapabilityHost definition.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown 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 azure Resource Manager resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String capabilityHostname);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CapabilityHostInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String capabilityHostName, CapabilityHostInner capabilityHost);
/**
- * Delete account capabilityHost.
+ * Create or update account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHost CapabilityHost definition.
* @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 azure Resource Manager resource envelope.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String capabilityHostname, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CapabilityHostInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String capabilityHostName, CapabilityHostInner capabilityHost, Context context);
/**
- * Get account capabilityHost.
+ * Create or update account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param context The context to associate with this operation.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHost CapabilityHost definition.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return account capabilityHost along with {@link Response}.
+ * @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName,
- String capabilityHostname, Context context);
+ CapabilityHostInner createOrUpdate(String resourceGroupName, String accountName, String capabilityHostName,
+ CapabilityHostInner capabilityHost);
/**
- * Get account capabilityHost.
+ * Create or update account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHost CapabilityHost definition.
+ * @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 account capabilityHost.
+ * @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityHostInner get(String resourceGroupName, String accountName, String capabilityHostname);
+ CapabilityHostInner createOrUpdate(String resourceGroupName, String accountName, String capabilityHostName,
+ CapabilityHostInner capabilityHost, Context context);
/**
- * Create or update account capabilityHost.
+ * Delete account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param capabilityHost CapabilityHost definition.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CapabilityHostInner> beginCreateOrUpdate(String resourceGroupName,
- String accountName, String capabilityHostname, CapabilityHostInner capabilityHost);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
+ String capabilityHostName);
/**
- * Create or update account capabilityHost.
+ * Delete account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param capabilityHost CapabilityHost definition.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @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 azure Resource Manager resource envelope.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CapabilityHostInner> beginCreateOrUpdate(String resourceGroupName,
- String accountName, String capabilityHostname, CapabilityHostInner capabilityHost, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String accountName,
+ String capabilityHostName, Context context);
/**
- * Create or update account capabilityHost.
+ * Delete account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param capabilityHost CapabilityHost definition.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityHostInner createOrUpdate(String resourceGroupName, String accountName, String capabilityHostname,
- CapabilityHostInner capabilityHost);
+ void delete(String resourceGroupName, String accountName, String capabilityHostName);
/**
- * Create or update account capabilityHost.
+ * Delete account capabilityHost.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param capabilityHost CapabilityHost definition.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @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 azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityHostInner createOrUpdate(String resourceGroupName, String accountName, String capabilityHostname,
- CapabilityHostInner capabilityHost, Context context);
+ void delete(String resourceGroupName, String accountName, String capabilityHostName, Context context);
+
+ /**
+ * List capabilityHost.
+ *
+ * @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 a paginated list of Capability Host entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
+
+ /**
+ * List capabilityHost.
+ *
+ * @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 a paginated list of Capability Host entities 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/AccountConnectionsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountConnectionsClient.java
index 642abe20c5fa..cd71b737a640 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountConnectionsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AccountConnectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,7 +17,7 @@
*/
public interface AccountConnectionsClient {
/**
- * Delete Cognitive Services account connection by name.
+ * Lists Cognitive Services account connection by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
@@ -26,14 +26,14 @@ public interface AccountConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return connection base resource schema along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String accountName, String connectionName,
- Context context);
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String connectionName, Context context);
/**
- * Delete Cognitive Services account connection by name.
+ * Lists Cognitive Services account connection by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
@@ -41,16 +41,18 @@ Response deleteWithResponse(String resourceGroupName, String accountName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return connection base resource schema.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String connectionName);
+ ConnectionPropertiesV2BasicResourceInner get(String resourceGroupName, String accountName, String connectionName);
/**
- * Lists Cognitive Services account connection by name.
+ * Create or update Cognitive Services account connection under the specified account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
* @param connectionName Friendly name of the connection.
+ * @param connection The object for creating or updating a new account connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -58,11 +60,11 @@ Response deleteWithResponse(String resourceGroupName, String accountName,
* @return connection base resource schema along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName,
- String connectionName, Context context);
+ Response createWithResponse(String resourceGroupName, String accountName,
+ String connectionName, ConnectionPropertiesV2BasicResourceInner connection, Context context);
/**
- * Lists Cognitive Services account connection by name.
+ * Create or update Cognitive Services account connection under the specified account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
@@ -73,7 +75,8 @@ Response getWithResponse(String resour
* @return connection base resource schema.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConnectionPropertiesV2BasicResourceInner get(String resourceGroupName, String accountName, String connectionName);
+ ConnectionPropertiesV2BasicResourceInner create(String resourceGroupName, String accountName,
+ String connectionName);
/**
* Update Cognitive Services account connection under the specified account.
@@ -108,24 +111,23 @@ ConnectionPropertiesV2BasicResourceInner update(String resourceGroupName, String
String connectionName);
/**
- * Create or update Cognitive Services account connection under the specified account.
+ * Delete Cognitive Services account connection by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
* @param connectionName Friendly name of the connection.
- * @param connection The object for creating or updating a new account connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return connection base resource schema along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName, String accountName,
- String connectionName, ConnectionPropertiesV2BasicResourceInner connection, Context context);
+ Response deleteWithResponse(String resourceGroupName, String accountName, String connectionName,
+ Context context);
/**
- * Create or update Cognitive Services account connection under the specified account.
+ * Delete Cognitive Services account connection by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
@@ -133,11 +135,9 @@ Response createWithResponse(String res
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return connection base resource schema.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConnectionPropertiesV2BasicResourceInner create(String resourceGroupName, String accountName,
- String connectionName);
+ void delete(String resourceGroupName, String accountName, String connectionName);
/**
* Lists all the available Cognitive Services account connections under the specified account.
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 d9ba5fb3ee05..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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -22,6 +22,36 @@
* An instance of this class provides access to all the operations defined in AccountsClient.
*/
public interface AccountsClient {
+ /**
+ * Returns a Cognitive Services account specified by the parameters.
+ *
+ * @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 cognitive Services account is an Azure resource representing the provisioned account, it's type, location
+ * and SKU along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String accountName,
+ Context context);
+
+ /**
+ * Returns a Cognitive Services account specified by the parameters.
+ *
+ * @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 cognitive Services account is an Azure resource representing the provisioned account, it's type, location
+ * and SKU.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AccountInner getByResourceGroup(String resourceGroupName, String accountName);
+
/**
* Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for
* developer to access intelligent APIs. It's also the resource type for billing.
@@ -206,36 +236,6 @@ SyncPoller, AccountInner> beginUpdate(String resourceGr
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, Context context);
- /**
- * Returns a Cognitive Services account specified by the parameters.
- *
- * @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 cognitive Services account is an Azure resource representing the provisioned account, it's type, location
- * and SKU along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String accountName,
- Context context);
-
- /**
- * Returns a Cognitive Services account specified by the parameters.
- *
- * @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 cognitive Services account is an Azure resource representing the provisioned account, it's type, location
- * and SKU.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- AccountInner getByResourceGroup(String resourceGroupName, String accountName);
-
/**
* Returns all the resources of a particular type belonging to a resource group.
*
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentApplicationsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentApplicationsClient.java
new file mode 100644
index 000000000000..b478a77d2526
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentApplicationsClient.java
@@ -0,0 +1,318 @@
+// Copyright (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.AgentApplicationInner;
+import com.azure.resourcemanager.cognitiveservices.fluent.models.AgentReferenceResourceArmPaginatedResultInner;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in AgentApplicationsClient.
+ */
+public interface AgentApplicationsClient {
+ /**
+ * Gets an Agent Application by name.
+ *
+ * @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 name Name for the Agent Application.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Agent Application by name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName, String projectName,
+ String name, Context context);
+
+ /**
+ * Gets an Agent Application by name.
+ *
+ * @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 name Name for the Agent Application.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Agent Application by name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentApplicationInner get(String resourceGroupName, String accountName, String projectName, String name);
+
+ /**
+ * Creates or updates an Agent Application (asynchronous).
+ *
+ * @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 name Name for the Agent Application.
+ * @param body Agent Application definition object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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 agent Application resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AgentApplicationInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String projectName, String name, AgentApplicationInner body);
+
+ /**
+ * Creates or updates an Agent Application (asynchronous).
+ *
+ * @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 name Name for the Agent Application.
+ * @param body Agent Application definition object.
+ * @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 agent Application resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AgentApplicationInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String projectName, String name, AgentApplicationInner body, Context context);
+
+ /**
+ * Creates or updates an Agent Application (asynchronous).
+ *
+ * @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 name Name for the Agent Application.
+ * @param body Agent Application definition object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return agent Application resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentApplicationInner createOrUpdate(String resourceGroupName, String accountName, String projectName, String name,
+ AgentApplicationInner body);
+
+ /**
+ * Creates or updates an Agent Application (asynchronous).
+ *
+ * @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 name Name for the Agent Application.
+ * @param body Agent Application definition object.
+ * @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 agent Application resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentApplicationInner createOrUpdate(String resourceGroupName, String accountName, String projectName, String name,
+ AgentApplicationInner body, Context context);
+
+ /**
+ * Delete Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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 name);
+
+ /**
+ * Delete Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @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 name, Context context);
+
+ /**
+ * Delete Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 name);
+
+ /**
+ * Delete Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @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 name, Context context);
+
+ /**
+ * Lists Agent Applications in 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 a paginated list of Agent Application entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String projectName);
+
+ /**
+ * Lists Agent Applications in 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 count Number of agent applications to be retrieved in a page of results.
+ * @param skip Number of agent applications to skip.
+ * @param skipToken Continuation token for pagination.
+ * @param names Names of agent applications to retrieve.
+ * @param searchText Search text for filtering agent applications.
+ * @param orderBy Field to order by.
+ * @param orderByAsc Whether to order in ascending order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Agent Application entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String projectName,
+ Integer count, Integer skip, String skipToken, List names, String searchText, String orderBy,
+ Boolean orderByAsc, Context context);
+
+ /**
+ * Lists agents for an Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Agent Reference entities along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listAgentsWithResponse(String resourceGroupName,
+ String accountName, String projectName, String name, Context context);
+
+ /**
+ * Lists agents for an Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 paginated list of Agent Reference entities.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentReferenceResourceArmPaginatedResultInner listAgents(String resourceGroupName, String accountName,
+ String projectName, String name);
+
+ /**
+ * Enables an Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response enableWithResponse(String resourceGroupName, String accountName, String projectName, String name,
+ Context context);
+
+ /**
+ * Enables an Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 enable(String resourceGroupName, String accountName, String projectName, String name);
+
+ /**
+ * Disables an Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response disableWithResponse(String resourceGroupName, String accountName, String projectName, String name,
+ Context context);
+
+ /**
+ * Disables an Agent Application.
+ *
+ * @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 name Name for the Agent Application.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 disable(String resourceGroupName, String accountName, String projectName, String name);
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentDeploymentsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentDeploymentsClient.java
new file mode 100644
index 000000000000..881f9556f1f8
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/AgentDeploymentsClient.java
@@ -0,0 +1,303 @@
+// Copyright (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.AgentDeploymentInner;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in AgentDeploymentsClient.
+ */
+public interface AgentDeploymentsClient {
+ /**
+ * Gets an Agent Deployment by name.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 an Agent Deployment by name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName, String projectName,
+ String appName, String deploymentName, Context context);
+
+ /**
+ * Gets an Agent Deployment by name.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 an Agent Deployment by name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentDeploymentInner get(String resourceGroupName, String accountName, String projectName, String appName,
+ String deploymentName);
+
+ /**
+ * Creates or updates an Agent Deployment (asynchronous).
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the deployment associated with the Cognitive Services Account.
+ * @param body Agent Deployment definition object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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 agent Deployment resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AgentDeploymentInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String projectName, String appName, String deploymentName, AgentDeploymentInner body);
+
+ /**
+ * Creates or updates an Agent Deployment (asynchronous).
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the deployment associated with the Cognitive Services Account.
+ * @param body Agent Deployment definition object.
+ * @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 agent Deployment resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AgentDeploymentInner> beginCreateOrUpdate(String resourceGroupName,
+ String accountName, String projectName, String appName, String deploymentName, AgentDeploymentInner body,
+ Context context);
+
+ /**
+ * Creates or updates an Agent Deployment (asynchronous).
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the deployment associated with the Cognitive Services Account.
+ * @param body Agent Deployment definition object.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return agent Deployment resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentDeploymentInner createOrUpdate(String resourceGroupName, String accountName, String projectName,
+ String appName, String deploymentName, AgentDeploymentInner body);
+
+ /**
+ * Creates or updates an Agent Deployment (asynchronous).
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the deployment associated with the Cognitive Services Account.
+ * @param body Agent Deployment definition object.
+ * @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 agent Deployment resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AgentDeploymentInner createOrUpdate(String resourceGroupName, String accountName, String projectName,
+ String appName, String deploymentName, AgentDeploymentInner body, Context context);
+
+ /**
+ * Delete Agent Deployment.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 projectName,
+ String appName, String deploymentName);
+
+ /**
+ * Delete Agent Deployment.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 projectName,
+ String appName, String deploymentName, Context context);
+
+ /**
+ * Delete Agent Deployment.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 projectName, String appName,
+ String deploymentName);
+
+ /**
+ * Delete Agent Deployment.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 projectName, String appName, String deploymentName,
+ Context context);
+
+ /**
+ * Lists Agent Deployments in the application.
+ *
+ * @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 appName The name of the application 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 a paginated list of Agent Deployment entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String projectName,
+ String appName);
+
+ /**
+ * Lists Agent Deployments in the application.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param count Number of agent deployments to be retrieved in a page of results.
+ * @param skipToken Continuation token for pagination.
+ * @param names Names of agent deployments to retrieve.
+ * @param orderBy Field to order by.
+ * @param orderByAsc Whether to order in ascending order.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a paginated list of Agent Deployment entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String projectName,
+ String appName, Integer count, String skipToken, List names, String orderBy, Boolean orderByAsc,
+ Context context);
+
+ /**
+ * Starts an Agent Deployment.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response startWithResponse(String resourceGroupName, String accountName, String projectName, String appName,
+ String deploymentName, Context context);
+
+ /**
+ * Starts an Agent Deployment.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 start(String resourceGroupName, String accountName, String projectName, String appName, String deploymentName);
+
+ /**
+ * Stops an Agent Deployment.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response stopWithResponse(String resourceGroupName, String accountName, String projectName, String appName,
+ String deploymentName, Context context);
+
+ /**
+ * Stops an Agent Deployment.
+ *
+ * @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 appName The name of the application associated with the Cognitive Services Account.
+ * @param deploymentName The name of the 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 stop(String resourceGroupName, String accountName, String projectName, String appName, String deploymentName);
+}
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 9bf984b41e94..61ed2e9750b4 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -12,26 +12,26 @@
*/
public interface CognitiveServicesManagementClient {
/**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -46,41 +46,6 @@ public interface CognitiveServicesManagementClient {
*/
Duration getDefaultPollInterval();
- /**
- * Gets the AccountsClient object to access its operations.
- *
- * @return the AccountsClient object.
- */
- AccountsClient getAccounts();
-
- /**
- * Gets the DeletedAccountsClient object to access its operations.
- *
- * @return the DeletedAccountsClient object.
- */
- DeletedAccountsClient getDeletedAccounts();
-
- /**
- * Gets the ResourceSkusClient object to access its operations.
- *
- * @return the ResourceSkusClient object.
- */
- ResourceSkusClient getResourceSkus();
-
- /**
- * Gets the UsagesClient object to access its operations.
- *
- * @return the UsagesClient object.
- */
- UsagesClient getUsages();
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
/**
* Gets the ResourceProvidersClient object to access its operations.
*
@@ -89,32 +54,25 @@ public interface CognitiveServicesManagementClient {
ResourceProvidersClient getResourceProviders();
/**
- * Gets the CommitmentTiersClient object to access its operations.
- *
- * @return the CommitmentTiersClient object.
- */
- CommitmentTiersClient getCommitmentTiers();
-
- /**
- * Gets the ModelsClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the ModelsClient object.
+ * @return the OperationsClient object.
*/
- ModelsClient getModels();
+ OperationsClient getOperations();
/**
- * Gets the LocationBasedModelCapacitiesClient object to access its operations.
+ * Gets the AccountsClient object to access its operations.
*
- * @return the LocationBasedModelCapacitiesClient object.
+ * @return the AccountsClient object.
*/
- LocationBasedModelCapacitiesClient getLocationBasedModelCapacities();
+ AccountsClient getAccounts();
/**
- * Gets the ModelCapacitiesClient object to access its operations.
+ * Gets the DeletedAccountsClient object to access its operations.
*
- * @return the ModelCapacitiesClient object.
+ * @return the DeletedAccountsClient object.
*/
- ModelCapacitiesClient getModelCapacities();
+ DeletedAccountsClient getDeletedAccounts();
/**
* Gets the PrivateEndpointConnectionsClient object to access its operations.
@@ -123,13 +81,6 @@ public interface CognitiveServicesManagementClient {
*/
PrivateEndpointConnectionsClient getPrivateEndpointConnections();
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- PrivateLinkResourcesClient getPrivateLinkResources();
-
/**
* Gets the DeploymentsClient object to access its operations.
*
@@ -159,11 +110,11 @@ public interface CognitiveServicesManagementClient {
RaiPoliciesClient getRaiPolicies();
/**
- * Gets the RaiBlocklistsClient object to access its operations.
+ * Gets the SubscriptionRaiPoliciesClient object to access its operations.
*
- * @return the RaiBlocklistsClient object.
+ * @return the SubscriptionRaiPoliciesClient object.
*/
- RaiBlocklistsClient getRaiBlocklists();
+ SubscriptionRaiPoliciesClient getSubscriptionRaiPolicies();
/**
* Gets the RaiBlocklistItemsClient object to access its operations.
@@ -172,6 +123,13 @@ public interface CognitiveServicesManagementClient {
*/
RaiBlocklistItemsClient getRaiBlocklistItems();
+ /**
+ * Gets the RaiBlocklistsClient object to access its operations.
+ *
+ * @return the RaiBlocklistsClient object.
+ */
+ RaiBlocklistsClient getRaiBlocklists();
+
/**
* Gets the RaiTopicsClient object to access its operations.
*
@@ -179,6 +137,13 @@ public interface CognitiveServicesManagementClient {
*/
RaiTopicsClient getRaiTopics();
+ /**
+ * Gets the RaiToolLabelsClient object to access its operations.
+ *
+ * @return the RaiToolLabelsClient object.
+ */
+ RaiToolLabelsClient getRaiToolLabels();
+
/**
* Gets the RaiContentFiltersClient object to access its operations.
*
@@ -208,18 +173,74 @@ public interface CognitiveServicesManagementClient {
ProjectsClient getProjects();
/**
- * Gets the AccountConnectionsClient object to access its operations.
+ * Gets the ProjectConnectionsClient object to access its operations.
*
- * @return the AccountConnectionsClient object.
+ * @return the ProjectConnectionsClient object.
*/
- AccountConnectionsClient getAccountConnections();
+ ProjectConnectionsClient getProjectConnections();
/**
- * Gets the ProjectConnectionsClient object to access its operations.
+ * Gets the ProjectCapabilityHostsClient object to access its operations.
*
- * @return the ProjectConnectionsClient object.
+ * @return the ProjectCapabilityHostsClient object.
*/
- ProjectConnectionsClient getProjectConnections();
+ ProjectCapabilityHostsClient getProjectCapabilityHosts();
+
+ /**
+ * Gets the QuotaTiersClient object to access its operations.
+ *
+ * @return the QuotaTiersClient object.
+ */
+ QuotaTiersClient getQuotaTiers();
+
+ /**
+ * Gets the AgentApplicationsClient object to access its operations.
+ *
+ * @return the AgentApplicationsClient object.
+ */
+ AgentApplicationsClient getAgentApplications();
+
+ /**
+ * Gets the ComputeOperationsClient object to access its operations.
+ *
+ * @return the ComputeOperationsClient object.
+ */
+ ComputeOperationsClient getComputeOperations();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the TestRaiExternalSafetyProvidersClient object to access its operations.
+ *
+ * @return the TestRaiExternalSafetyProvidersClient object.
+ */
+ TestRaiExternalSafetyProvidersClient getTestRaiExternalSafetyProviders();
+
+ /**
+ * Gets the RaiExternalSafetyProvidersClient object to access its operations.
+ *
+ * @return the RaiExternalSafetyProvidersClient object.
+ */
+ RaiExternalSafetyProvidersClient getRaiExternalSafetyProviders();
+
+ /**
+ * Gets the RaiExternalSafetyProvidersOperationsClient object to access its operations.
+ *
+ * @return the RaiExternalSafetyProvidersOperationsClient object.
+ */
+ RaiExternalSafetyProvidersOperationsClient getRaiExternalSafetyProvidersOperations();
+
+ /**
+ * Gets the AccountConnectionsClient object to access its operations.
+ *
+ * @return the AccountConnectionsClient object.
+ */
+ AccountConnectionsClient getAccountConnections();
/**
* Gets the AccountCapabilityHostsClient object to access its operations.
@@ -229,16 +250,79 @@ public interface CognitiveServicesManagementClient {
AccountCapabilityHostsClient getAccountCapabilityHosts();
/**
- * Gets the ProjectCapabilityHostsClient object to access its operations.
+ * Gets the OutboundRulesClient object to access its operations.
*
- * @return the ProjectCapabilityHostsClient object.
+ * @return the OutboundRulesClient object.
*/
- ProjectCapabilityHostsClient getProjectCapabilityHosts();
+ OutboundRulesClient getOutboundRules();
/**
- * Gets the QuotaTiersClient object to access its operations.
+ * Gets the ManagedNetworkSettingsOperationsClient object to access its operations.
*
- * @return the QuotaTiersClient object.
+ * @return the ManagedNetworkSettingsOperationsClient object.
*/
- QuotaTiersClient getQuotaTiers();
+ ManagedNetworkSettingsOperationsClient getManagedNetworkSettingsOperations();
+
+ /**
+ * Gets the OutboundRulesOperationsClient object to access its operations.
+ *
+ * @return the OutboundRulesOperationsClient object.
+ */
+ OutboundRulesOperationsClient getOutboundRulesOperations();
+
+ /**
+ * Gets the ManagedNetworkProvisionsClient object to access its operations.
+ *
+ * @return the ManagedNetworkProvisionsClient object.
+ */
+ ManagedNetworkProvisionsClient getManagedNetworkProvisions();
+
+ /**
+ * Gets the AgentDeploymentsClient object to access its operations.
+ *
+ * @return the AgentDeploymentsClient object.
+ */
+ AgentDeploymentsClient getAgentDeployments();
+
+ /**
+ * Gets the ResourceSkusClient object to access its operations.
+ *
+ * @return the ResourceSkusClient object.
+ */
+ ResourceSkusClient getResourceSkus();
+
+ /**
+ * Gets the UsagesClient object to access its operations.
+ *
+ * @return the UsagesClient object.
+ */
+ UsagesClient getUsages();
+
+ /**
+ * Gets the CommitmentTiersClient object to access its operations.
+ *
+ * @return the CommitmentTiersClient object.
+ */
+ CommitmentTiersClient getCommitmentTiers();
+
+ /**
+ * Gets the ModelsClient object to access its operations.
+ *
+ * @return the ModelsClient object.
+ */
+ ModelsClient getModels();
+
+ /**
+ * Gets the LocationBasedModelCapacitiesClient object to access its operations.
+ *
+ * @return the LocationBasedModelCapacitiesClient object.
+ */
+ LocationBasedModelCapacitiesClient getLocationBasedModelCapacities();
+
+ /**
+ * Gets the ModelCapacitiesClient object to access its operations.
+ *
+ * @return the ModelCapacitiesClient object.
+ */
+ ModelCapacitiesClient getModelCapacities();
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentPlansClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentPlansClient.java
index 8dd086f4a8b2..293086410077 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentPlansClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentPlansClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -19,35 +19,6 @@
* An instance of this class provides access to all the operations defined in CommitmentPlansClient.
*/
public interface CommitmentPlansClient {
- /**
- * Gets the commitmentPlans associated with the 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 commitmentPlans associated with the Cognitive Services account as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName);
-
- /**
- * Gets the commitmentPlans associated with the Cognitive 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 commitmentPlans associated with the Cognitive Services account as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, Context context);
-
/**
* Gets the specified commitmentPlans associated with the Cognitive Services account.
*
@@ -169,6 +140,63 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String commitmentPlanName, Context context);
+ /**
+ * Gets the commitmentPlans associated with the 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 commitmentPlans associated with the Cognitive Services account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
+
+ /**
+ * Gets the commitmentPlans associated with the Cognitive 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 commitmentPlans associated with the Cognitive Services account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, Context context);
+
+ /**
+ * Returns a Cognitive Services commitment plan specified by the parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param commitmentPlanName The name of the commitmentPlan 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 cognitive Services account commitment plan along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String commitmentPlanName,
+ Context context);
+
+ /**
+ * Returns a Cognitive Services commitment plan specified by the parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param commitmentPlanName The name of the commitmentPlan 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 cognitive Services account commitment plan.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CommitmentPlanInner getByResourceGroup(String resourceGroupName, String commitmentPlanName);
+
/**
* Create Cognitive Services commitment plan.
*
@@ -346,34 +374,6 @@ SyncPoller, Void> beginDeletePlan(String resourceGroupName, Str
@ServiceMethod(returns = ReturnType.SINGLE)
void deletePlan(String resourceGroupName, String commitmentPlanName, Context context);
- /**
- * Returns a Cognitive Services commitment plan specified by the parameters.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param commitmentPlanName The name of the commitmentPlan 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 cognitive Services account commitment plan along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String commitmentPlanName,
- Context context);
-
- /**
- * Returns a Cognitive Services commitment plan specified by the parameters.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param commitmentPlanName The name of the commitmentPlan 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 cognitive Services account commitment plan.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommitmentPlanInner getByResourceGroup(String resourceGroupName, String commitmentPlanName);
-
/**
* Returns all the resources of a particular type belonging to a resource group.
*
@@ -425,37 +425,6 @@ Response getByResourceGroupWithResponse(String resourceGrou
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listPlansBySubscription(Context context);
- /**
- * Gets the associations of the Cognitive Services commitment plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param commitmentPlanName The name of the commitmentPlan 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 associations of the Cognitive Services commitment plan as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAssociations(String resourceGroupName,
- String commitmentPlanName);
-
- /**
- * Gets the associations of the Cognitive Services commitment plan.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param commitmentPlanName The name of the commitmentPlan 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 associations of the Cognitive Services commitment plan as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listAssociations(String resourceGroupName,
- String commitmentPlanName, Context context);
-
/**
* Gets the association of the Cognitive Services commitment plan.
*
@@ -623,4 +592,35 @@ SyncPoller, Void> beginDeleteAssociation(String resourceGroupNa
@ServiceMethod(returns = ReturnType.SINGLE)
void deleteAssociation(String resourceGroupName, String commitmentPlanName, String commitmentPlanAssociationName,
Context context);
+
+ /**
+ * Gets the associations of the Cognitive Services commitment plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param commitmentPlanName The name of the commitmentPlan 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 associations of the Cognitive Services commitment plan as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAssociations(String resourceGroupName,
+ String commitmentPlanName);
+
+ /**
+ * Gets the associations of the Cognitive Services commitment plan.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param commitmentPlanName The name of the commitmentPlan 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 associations of the Cognitive Services commitment plan as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAssociations(String resourceGroupName,
+ String commitmentPlanName, Context context);
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentTiersClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentTiersClient.java
index 51f081c2c70b..c86ecf3d7005 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentTiersClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentTiersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,7 +17,7 @@ public interface CommitmentTiersClient {
/**
* List Commitment Tiers.
*
- * @param location Resource 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.
@@ -30,7 +30,7 @@ public interface CommitmentTiersClient {
/**
* List Commitment Tiers.
*
- * @param location Resource 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.
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
new file mode 100644
index 000000000000..863b7ee341a7
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ComputeOperationsClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.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/DefenderForAISettingsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java
index 0dc188b3173e..0cb87c84525f 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DefenderForAISettingsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -15,33 +15,6 @@
* An instance of this class provides access to all the operations defined in DefenderForAISettingsClient.
*/
public interface DefenderForAISettingsClient {
- /**
- * Lists the Defender for AI settings.
- *
- * @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 list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName);
-
- /**
- * Lists the Defender for AI settings.
- *
- * @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 list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, Context context);
-
/**
* Gets the specified Defender for AI setting by name.
*
@@ -137,4 +110,31 @@ Response updateWithResponse(String resourceGroupName,
@ServiceMethod(returns = ReturnType.SINGLE)
DefenderForAISettingInner update(String resourceGroupName, String accountName, String defenderForAISettingName,
DefenderForAISettingInner defenderForAISettings);
+
+ /**
+ * Lists the Defender for AI settings.
+ *
+ * @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 list of cognitive services Defender for AI Settings as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
+
+ /**
+ * Lists the Defender for AI settings.
+ *
+ * @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 list of cognitive services Defender for AI Settings 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/DeletedAccountsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeletedAccountsClient.java
index 2f6bf8df45c7..562148b336b0 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeletedAccountsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeletedAccountsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -20,7 +20,7 @@ public interface DeletedAccountsClient {
/**
* Returns a Cognitive Services account specified by the parameters.
*
- * @param location Resource location.
+ * @param location The location name.
* @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.
@@ -37,7 +37,7 @@ Response getWithResponse(String location, String resourceGroupName
/**
* Returns a Cognitive Services account specified by the parameters.
*
- * @param location Resource location.
+ * @param location The location name.
* @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.
@@ -52,7 +52,7 @@ Response getWithResponse(String location, String resourceGroupName
/**
* Deletes a Cognitive Services account from the resource group.
*
- * @param location Resource location.
+ * @param location The location name.
* @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.
@@ -66,7 +66,7 @@ Response getWithResponse(String location, String resourceGroupName
/**
* Deletes a Cognitive Services account from the resource group.
*
- * @param location Resource location.
+ * @param location The location name.
* @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.
@@ -82,7 +82,7 @@ SyncPoller, Void> beginPurge(String location, String resourceGr
/**
* Deletes a Cognitive Services account from the resource group.
*
- * @param location Resource location.
+ * @param location The location name.
* @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.
@@ -95,7 +95,7 @@ SyncPoller, Void> beginPurge(String location, String resourceGr
/**
* Deletes a Cognitive Services account from the resource group.
*
- * @param location Resource location.
+ * @param location The location name.
* @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.
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java
index 69bf70d703b2..e65adb9091ce 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/DeploymentsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -19,35 +19,6 @@
* An instance of this class provides access to all the operations defined in DeploymentsClient.
*/
public interface DeploymentsClient {
- /**
- * Gets the 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 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 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 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);
-
/**
* Gets the specified deployments associated with the Cognitive Services account.
*
@@ -267,6 +238,35 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String deploymentName, Context context);
+ /**
+ * Gets the 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 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 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 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);
+
/**
* Lists the specified deployments skus associated with the Cognitive Services account.
*
@@ -298,4 +298,82 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listSkus(String resourceGroupName, String accountName, String deploymentName,
Context context);
+
+ /**
+ * Pause a deployment
+ *
+ * Pauses inferencing on a deployment by setting the deploymentState to 'Paused' (see
+ * #/definitions/DeploymentProperties/properties/deploymentState). Only Standard, DataZoneStandard, and
+ * GlobalStandard SKUs support this operation. Inference requests to the paused deployment endpoint will receive
+ * HTTP 423 (Locked). This operation is idempotent.
+ *
+ * @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 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 cognitive Services account deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response pauseWithResponse(String resourceGroupName, String accountName, String deploymentName,
+ Context context);
+
+ /**
+ * Pause a deployment
+ *
+ * Pauses inferencing on a deployment by setting the deploymentState to 'Paused' (see
+ * #/definitions/DeploymentProperties/properties/deploymentState). Only Standard, DataZoneStandard, and
+ * GlobalStandard SKUs support this operation. Inference requests to the paused deployment endpoint will receive
+ * HTTP 423 (Locked). This operation is idempotent.
+ *
+ * @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 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 cognitive Services account deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentInner pause(String resourceGroupName, String accountName, String deploymentName);
+
+ /**
+ * Resume a deployment
+ *
+ * Resumes inferencing on a previously paused deployment by setting the deploymentState to 'Running' (see
+ * #/definitions/DeploymentProperties/properties/deploymentState). This operation is idempotent and can be safely
+ * called on already running deployments.
+ *
+ * @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 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 cognitive Services account deployment along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response resumeWithResponse(String resourceGroupName, String accountName, String deploymentName,
+ Context context);
+
+ /**
+ * Resume a deployment
+ *
+ * Resumes inferencing on a previously paused deployment by setting the deploymentState to 'Running' (see
+ * #/definitions/DeploymentProperties/properties/deploymentState). This operation is idempotent and can be safely
+ * called on already running deployments.
+ *
+ * @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 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 cognitive Services account deployment.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeploymentInner resume(String resourceGroupName, String accountName, String deploymentName);
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java
index 2b324d36afaf..903ee81eb979 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/EncryptionScopesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,35 +17,6 @@
* An instance of this class provides access to all the operations defined in EncryptionScopesClient.
*/
public interface EncryptionScopesClient {
- /**
- * Gets the content filters associated with the Azure OpenAI 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 content filters associated with the Azure OpenAI account as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName);
-
- /**
- * Gets the content filters associated with the Azure OpenAI 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 content filters associated with the Azure OpenAI account as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, Context context);
-
/**
* Gets the specified EncryptionScope associated with the Cognitive Services account.
*
@@ -166,4 +137,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String encryptionScopeName, Context context);
+
+ /**
+ * Gets the content filters associated with the Azure OpenAI 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 content filters associated with the Azure OpenAI account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
+
+ /**
+ * Gets the content filters associated with the Azure OpenAI 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 content filters associated with the Azure OpenAI 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/LocationBasedModelCapacitiesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java
index e90257236132..68c57b227b5c 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/LocationBasedModelCapacitiesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,7 +17,7 @@ public interface LocationBasedModelCapacitiesClient {
/**
* List Location Based ModelCapacities.
*
- * @param location Resource location.
+ * @param location The location name.
* @param modelFormat The format of the Model.
* @param modelName The name of the Model.
* @param modelVersion The version of the Model.
@@ -34,7 +34,7 @@ PagedIterable list(String location, Strin
/**
* List Location Based ModelCapacities.
*
- * @param location Resource location.
+ * @param location The location name.
* @param modelFormat The format of the Model.
* @param modelName The name of the Model.
* @param modelVersion The version of the Model.
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkProvisionsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkProvisionsClient.java
new file mode 100644
index 000000000000..2d15386b47c7
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkProvisionsClient.java
@@ -0,0 +1,87 @@
+// Copyright (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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkProvisionStatusInner;
+import com.azure.resourcemanager.cognitiveservices.models.ManagedNetworkProvisionOptions;
+
+/**
+ * An instance of this class provides access to all the operations defined in ManagedNetworkProvisionsClient.
+ */
+public interface ManagedNetworkProvisionsClient {
+ /**
+ * Provisions the managed network of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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, ManagedNetworkProvisionStatusInner>
+ beginProvisionManagedNetwork(String resourceGroupName, String accountName, String managedNetworkName);
+
+ /**
+ * Provisions the managed network of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body Managed Network Provisioning Options for a 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, ManagedNetworkProvisionStatusInner>
+ beginProvisionManagedNetwork(String resourceGroupName, String accountName, String managedNetworkName,
+ ManagedNetworkProvisionOptions body, Context context);
+
+ /**
+ * Provisions the managed network of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkProvisionStatusInner provisionManagedNetwork(String resourceGroupName, String accountName,
+ String managedNetworkName);
+
+ /**
+ * Provisions the managed network of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body Managed Network Provisioning Options for a 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkProvisionStatusInner provisionManagedNetwork(String resourceGroupName, String accountName,
+ String managedNetworkName, ManagedNetworkProvisionOptions body, Context context);
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkSettingsOperationsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkSettingsOperationsClient.java
new file mode 100644
index 000000000000..9b75c48f2d2a
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ManagedNetworkSettingsOperationsClient.java
@@ -0,0 +1,290 @@
+// Copyright (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.ManagedNetworkSettingsPropertiesBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ManagedNetworkSettingsOperationsClient.
+ */
+public interface ManagedNetworkSettingsOperationsClient {
+ /**
+ * Get API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @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 aPI for managed network settings of a cognitive services account along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName,
+ String accountName, String managedNetworkName, Context context);
+
+ /**
+ * Get API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return aPI for managed network settings of a cognitive services account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkSettingsPropertiesBasicResourceInner get(String resourceGroupName, String accountName,
+ String managedNetworkName);
+
+ /**
+ * PUT API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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 concrete proxy resource types can be created by aliasing this type
+ * using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedNetworkSettingsPropertiesBasicResourceInner>
+ beginPut(String resourceGroupName, String accountName, String managedNetworkName,
+ ManagedNetworkSettingsPropertiesBasicResourceInner body);
+
+ /**
+ * PUT API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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 concrete proxy resource types can be created by aliasing this type
+ * using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedNetworkSettingsPropertiesBasicResourceInner>
+ beginPut(String resourceGroupName, String accountName, String managedNetworkName,
+ ManagedNetworkSettingsPropertiesBasicResourceInner body, Context context);
+
+ /**
+ * PUT API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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 concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkSettingsPropertiesBasicResourceInner put(String resourceGroupName, String accountName,
+ String managedNetworkName, ManagedNetworkSettingsPropertiesBasicResourceInner body);
+
+ /**
+ * PUT API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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 concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkSettingsPropertiesBasicResourceInner put(String resourceGroupName, String accountName,
+ String managedNetworkName, ManagedNetworkSettingsPropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Patch API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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 concrete proxy resource types can be created by aliasing this type
+ * using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedNetworkSettingsPropertiesBasicResourceInner>
+ beginPatch(String resourceGroupName, String accountName, String managedNetworkName);
+
+ /**
+ * Patch API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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 concrete proxy resource types can be created by aliasing this type
+ * using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedNetworkSettingsPropertiesBasicResourceInner>
+ beginPatch(String resourceGroupName, String accountName, String managedNetworkName,
+ ManagedNetworkSettingsPropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Patch API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkSettingsPropertiesBasicResourceInner patch(String resourceGroupName, String accountName,
+ String managedNetworkName);
+
+ /**
+ * Patch API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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 concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedNetworkSettingsPropertiesBasicResourceInner patch(String resourceGroupName, String accountName,
+ String managedNetworkName, ManagedNetworkSettingsPropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Delete API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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 managedNetworkName);
+
+ /**
+ * Delete API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @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 managedNetworkName, Context context);
+
+ /**
+ * Delete API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 managedNetworkName);
+
+ /**
+ * Delete API for managed network settings of a cognitive services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @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 managedNetworkName, Context context);
+
+ /**
+ * List API for managed network settings of a 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 list of managed networks of a cognitive services account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName,
+ String accountName);
+
+ /**
+ * List API for managed network settings of a cognitive 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 list of managed networks of a 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/ModelCapacitiesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java
index a4617d1d16ec..10378e4991e7 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelCapacitiesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelsClient.java
index d6a0c2438caa..deee54503676 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ModelsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,7 +17,7 @@ public interface ModelsClient {
/**
* List Models.
*
- * @param location Resource 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.
@@ -29,7 +29,7 @@ public interface ModelsClient {
/**
* List Models.
*
- * @param location Resource 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.
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java
index 516cbee930bc..f4f0a1118722 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/NetworkSecurityPerimeterConfigurationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -19,63 +19,63 @@
*/
public interface NetworkSecurityPerimeterConfigurationsClient {
/**
- * Gets a list of NSP configurations for an account.
+ * Gets the specified NSP configurations for an account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
+ * @param nspConfigurationName The name of the NSP Configuration.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}.
+ * @return the specified NSP configurations for an account along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String nspConfigurationName, Context context);
/**
- * Gets a list of NSP configurations for an account.
+ * Gets the specified NSP configurations for an 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.
+ * @param nspConfigurationName The name of the NSP Configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 list of NSP configurations for an account as paginated response with {@link PagedIterable}.
+ * @return the specified NSP configurations for an account.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName, String accountName,
+ String nspConfigurationName);
/**
- * Gets the specified NSP configurations for an account.
+ * Gets a list of NSP configurations for an account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param nspConfigurationName The name of the NSP Configuration.
- * @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 NSP configurations for an account along with {@link Response}.
+ * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName,
- String nspConfigurationName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
/**
- * Gets the specified NSP configurations for an account.
+ * Gets a list of NSP configurations for an account.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
- * @param nspConfigurationName The name of the NSP Configuration.
+ * @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 NSP configurations for an account.
+ * @return a list of NSP configurations for an account as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName, String accountName,
- String nspConfigurationName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName,
+ Context context);
/**
* Reconcile the NSP configuration for an account.
@@ -86,7 +86,7 @@ NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSP Configuration for an Cognitive Services account.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NetworkSecurityPerimeterConfigurationInner>
@@ -102,7 +102,7 @@ NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of nSP Configuration for an Cognitive Services account.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NetworkSecurityPerimeterConfigurationInner>
@@ -117,7 +117,7 @@ NetworkSecurityPerimeterConfigurationInner get(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSP Configuration for an Cognitive Services account.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName, String accountName,
@@ -133,7 +133,7 @@ NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName, S
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return nSP Configuration for an Cognitive Services account.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetworkSecurityPerimeterConfigurationInner reconcile(String resourceGroupName, String accountName,
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OperationsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OperationsClient.java
index 13b47cb904a2..1aa03a7b9f9d 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OperationsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesClient.java
new file mode 100644
index 000000000000..836b79ab6a84
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesClient.java
@@ -0,0 +1,247 @@
+// Copyright (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.OutboundRuleBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OutboundRulesClient.
+ */
+public interface OutboundRulesClient {
+ /**
+ * The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @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 concrete proxy resource types can be created by aliasing this type using a specific property type along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String managedNetworkName, String ruleName, Context context);
+
+ /**
+ * The GET API for retrieving a single outbound rule of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundRuleBasicResourceInner get(String resourceGroupName, String accountName, String managedNetworkName,
+ String ruleName);
+
+ /**
+ * The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive
+ * services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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 concrete proxy resource types can be created by aliasing this type
+ * using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OutboundRuleBasicResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String managedNetworkName, String ruleName,
+ OutboundRuleBasicResourceInner body);
+
+ /**
+ * The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive
+ * services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @param body The body parameter.
+ * @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 concrete proxy resource types can be created by aliasing this type
+ * using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OutboundRuleBasicResourceInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String managedNetworkName, String ruleName,
+ OutboundRuleBasicResourceInner body, Context context);
+
+ /**
+ * The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive
+ * services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @param body The body parameter.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundRuleBasicResourceInner createOrUpdate(String resourceGroupName, String accountName,
+ String managedNetworkName, String ruleName, OutboundRuleBasicResourceInner body);
+
+ /**
+ * The PUT API for creating or updating a single outbound rule of the managed network associated with the cognitive
+ * services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @param body The body parameter.
+ * @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 concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundRuleBasicResourceInner createOrUpdate(String resourceGroupName, String accountName,
+ String managedNetworkName, String ruleName, OutboundRuleBasicResourceInner body, Context context);
+
+ /**
+ * The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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 managedNetworkName, String ruleName);
+
+ /**
+ * The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @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 managedNetworkName, String ruleName, Context context);
+
+ /**
+ * The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 managedNetworkName, String ruleName);
+
+ /**
+ * The DELETE API for deleting a single outbound rule of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param ruleName Name of the cognitive services account managed network outbound rule.
+ * @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 managedNetworkName, String ruleName,
+ Context context);
+
+ /**
+ * The GET API for retrieving the list of outbound rules of the managed network associated with the cognitive
+ * services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 outbound rules for the managed network of a cognitive services account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName,
+ String managedNetworkName);
+
+ /**
+ * The GET API for retrieving the list of outbound rules of the managed network associated with the cognitive
+ * services account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @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 outbound rules for the managed network of a cognitive services account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName,
+ String managedNetworkName, Context context);
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesOperationsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesOperationsClient.java
new file mode 100644
index 000000000000..165bfa86b042
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/OutboundRulesOperationsClient.java
@@ -0,0 +1,92 @@
+// Copyright (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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cognitiveservices.fluent.models.ManagedNetworkSettingsBasicResourceInner;
+import com.azure.resourcemanager.cognitiveservices.fluent.models.OutboundRuleListResultInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OutboundRulesOperationsClient.
+ */
+public interface OutboundRulesOperationsClient {
+ /**
+ * The POST API for updating the outbound rules of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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, OutboundRuleListResultInner> beginPost(String resourceGroupName,
+ String accountName, String managedNetworkName, ManagedNetworkSettingsBasicResourceInner body);
+
+ /**
+ * The POST API for updating the outbound rules of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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, OutboundRuleListResultInner> beginPost(String resourceGroupName,
+ String accountName, String managedNetworkName, ManagedNetworkSettingsBasicResourceInner body, Context context);
+
+ /**
+ * The POST API for updating the outbound rules of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundRuleListResultInner post(String resourceGroupName, String accountName, String managedNetworkName,
+ ManagedNetworkSettingsBasicResourceInner body);
+
+ /**
+ * The POST API for updating the outbound rules of the managed network associated with the cognitive services
+ * account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param managedNetworkName Name of the managedNetwork associated with the cognitive services account. Only
+ * 'default' is supported.
+ * @param body The Managed Network Settings object of the 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 response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OutboundRuleListResultInner post(String resourceGroupName, String accountName, String managedNetworkName,
+ ManagedNetworkSettingsBasicResourceInner body, Context context);
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateEndpointConnectionsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateEndpointConnectionsClient.java
index 54aa828a43f9..f85e861e910a 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateEndpointConnectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,35 +17,6 @@
* An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient.
*/
public interface PrivateEndpointConnectionsClient {
- /**
- * Gets the private endpoint connections associated with the Cognitive 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 private endpoint connections associated with the Cognitive Services account along with
- * {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String resourceGroupName, String accountName,
- Context context);
-
- /**
- * Gets the private endpoint connections associated with the 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 private endpoint connections associated with the Cognitive Services account.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName);
-
/**
* Gets the specified private endpoint connection associated with the Cognitive Services account.
*
@@ -213,4 +184,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Gets the private endpoint connections associated with the Cognitive 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 private endpoint connections associated with the Cognitive Services account along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listWithResponse(String resourceGroupName, String accountName,
+ Context context);
+
+ /**
+ * Gets the private endpoint connections associated with the 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 private endpoint connections associated with the Cognitive Services account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionListResultInner list(String resourceGroupName, String accountName);
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateLinkResourcesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateLinkResourcesClient.java
index 0e6342b1c3b0..e8547e071a4a 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/PrivateLinkResourcesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectCapabilityHostsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectCapabilityHostsClient.java
index 1023fcd84b05..b3914f0c1b13 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectCapabilityHostsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectCapabilityHostsClient.java
@@ -1,185 +1,219 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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.CapabilityHostInner;
+import com.azure.resourcemanager.cognitiveservices.fluent.models.ProjectCapabilityHostInner;
/**
* An instance of this class provides access to all the operations defined in ProjectCapabilityHostsClient.
*/
public interface ProjectCapabilityHostsClient {
/**
- * Delete project capabilityHost.
+ * Get project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @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.
+ * @return project capabilityHost along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String projectName,
- String capabilityHostname);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String projectName, String capabilityHostName, Context context);
/**
- * Delete project capabilityHost.
+ * Get project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param context The context to associate with this operation.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return project capabilityHost.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String projectName,
- String capabilityHostname, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProjectCapabilityHostInner get(String resourceGroupName, String accountName, String projectName,
+ String capabilityHostName);
/**
- * Delete project capabilityHost.
+ * Create or update project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHost CapabilityHost definition.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown 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 azure Resource Manager resource envelope for Project
+ * CapabilityHost.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String projectName, String capabilityHostname);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ProjectCapabilityHostInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String projectName, String capabilityHostName,
+ ProjectCapabilityHostInner capabilityHost);
/**
- * Delete project capabilityHost.
+ * Create or update project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHost CapabilityHost definition.
* @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 azure Resource Manager resource envelope for Project
+ * CapabilityHost.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String projectName, String capabilityHostname,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ProjectCapabilityHostInner> beginCreateOrUpdate(
+ String resourceGroupName, String accountName, String projectName, String capabilityHostName,
+ ProjectCapabilityHostInner capabilityHost, Context context);
/**
- * Get project capabilityHost.
+ * Create or update project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param context The context to associate with this operation.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHost CapabilityHost definition.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return project capabilityHost along with {@link Response}.
+ * @return azure Resource Manager resource envelope for Project CapabilityHost.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName, String projectName,
- String capabilityHostname, Context context);
+ ProjectCapabilityHostInner createOrUpdate(String resourceGroupName, String accountName, String projectName,
+ String capabilityHostName, ProjectCapabilityHostInner capabilityHost);
/**
- * Get project capabilityHost.
+ * Create or update project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
+ * @param capabilityHost CapabilityHost definition.
+ * @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 project capabilityHost.
+ * @return azure Resource Manager resource envelope for Project CapabilityHost.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityHostInner get(String resourceGroupName, String accountName, String projectName,
- String capabilityHostname);
+ ProjectCapabilityHostInner createOrUpdate(String resourceGroupName, String accountName, String projectName,
+ String capabilityHostName, ProjectCapabilityHostInner capabilityHost, Context context);
/**
- * Create or update project capabilityHost.
+ * Delete project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param capabilityHost CapabilityHost definition.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of azure Resource Manager resource envelope.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CapabilityHostInner> beginCreateOrUpdate(String resourceGroupName,
- String accountName, String projectName, String capabilityHostname, CapabilityHostInner capabilityHost);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String projectName,
+ String capabilityHostName);
/**
- * Create or update project capabilityHost.
+ * Delete project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param capabilityHost CapabilityHost definition.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @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 azure Resource Manager resource envelope.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CapabilityHostInner> beginCreateOrUpdate(String resourceGroupName,
- String accountName, String projectName, String capabilityHostname, CapabilityHostInner capabilityHost,
- Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String projectName,
+ String capabilityHostName, Context context);
/**
- * Create or update project capabilityHost.
+ * Delete project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param capabilityHost CapabilityHost definition.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityHostInner createOrUpdate(String resourceGroupName, String accountName, String projectName,
- String capabilityHostname, CapabilityHostInner capabilityHost);
+ void delete(String resourceGroupName, String accountName, String projectName, String capabilityHostName);
/**
- * Create or update project capabilityHost.
+ * Delete project capabilityHost.
*
* @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 capabilityHostname The name of the capability host associated with the Cognitive Services Resource.
- * @param capabilityHost CapabilityHost definition.
+ * @param capabilityHostName The name of the capability host associated with the Cognitive Services Resource.
* @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 azure Resource Manager resource envelope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- CapabilityHostInner createOrUpdate(String resourceGroupName, String accountName, String projectName,
- String capabilityHostname, CapabilityHostInner capabilityHost, Context context);
+ void delete(String resourceGroupName, String accountName, String projectName, String capabilityHostName,
+ Context context);
+
+ /**
+ * List capabilityHost.
+ *
+ * @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 a paginated list of Project Capability Host entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String projectName);
+
+ /**
+ * List capabilityHost.
+ *
+ * @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 a paginated list of Project Capability Host entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String projectName,
+ Context context);
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectConnectionsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectConnectionsClient.java
index 3a9ead792dbc..36755aa712a3 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectConnectionsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectConnectionsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,7 +17,7 @@
*/
public interface ProjectConnectionsClient {
/**
- * Delete Cognitive Services project connection by name.
+ * Lists Cognitive Services project connection by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
@@ -27,14 +27,14 @@ public interface ProjectConnectionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
+ * @return connection base resource schema along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String accountName, String projectName,
- String connectionName, Context context);
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String projectName, String connectionName, Context context);
/**
- * Delete Cognitive Services project connection by name.
+ * Lists Cognitive Services project connection by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
@@ -43,17 +43,20 @@ Response deleteWithResponse(String resourceGroupName, String accountName,
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return connection base resource schema.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String accountName, String projectName, String connectionName);
+ ConnectionPropertiesV2BasicResourceInner get(String resourceGroupName, String accountName, String projectName,
+ String connectionName);
/**
- * Lists Cognitive Services project connection by name.
+ * Create or update Cognitive Services project connection under the specified project.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
* @param projectName The name of Cognitive Services account's project.
* @param connectionName Friendly name of the connection.
+ * @param connection The object for creating or updating a new account connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -61,11 +64,12 @@ Response deleteWithResponse(String resourceGroupName, String accountName,
* @return connection base resource schema along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName,
- String projectName, String connectionName, Context context);
+ Response createWithResponse(String resourceGroupName, String accountName,
+ String projectName, String connectionName, ConnectionPropertiesV2BasicResourceInner connection,
+ Context context);
/**
- * Lists Cognitive Services project connection by name.
+ * Create or update Cognitive Services project connection under the specified project.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
@@ -77,7 +81,7 @@ Response getWithResponse(String resour
* @return connection base resource schema.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConnectionPropertiesV2BasicResourceInner get(String resourceGroupName, String accountName, String projectName,
+ ConnectionPropertiesV2BasicResourceInner create(String resourceGroupName, String accountName, String projectName,
String connectionName);
/**
@@ -115,26 +119,24 @@ ConnectionPropertiesV2BasicResourceInner update(String resourceGroupName, String
String connectionName);
/**
- * Create or update Cognitive Services project connection under the specified project.
+ * Delete Cognitive Services project connection by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
* @param projectName The name of Cognitive Services account's project.
* @param connectionName Friendly name of the connection.
- * @param connection The object for creating or updating a new account connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return connection base resource schema along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName, String accountName,
- String projectName, String connectionName, ConnectionPropertiesV2BasicResourceInner connection,
- Context context);
+ Response deleteWithResponse(String resourceGroupName, String accountName, String projectName,
+ String connectionName, Context context);
/**
- * Create or update Cognitive Services project connection under the specified project.
+ * Delete Cognitive Services project connection by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
@@ -143,11 +145,9 @@ Response createWithResponse(String res
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return connection base resource schema.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConnectionPropertiesV2BasicResourceInner create(String resourceGroupName, String accountName, String projectName,
- String connectionName);
+ void delete(String resourceGroupName, String accountName, String projectName, String connectionName);
/**
* Lists all the available Cognitive Services project connections under the specified project.
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectsClient.java
index 1ebfb264756e..d2b8ab429d77 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ProjectsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,6 +17,38 @@
* An instance of this class provides access to all the operations defined in ProjectsClient.
*/
public interface ProjectsClient {
+ /**
+ * Returns a Cognitive Services project specified by the parameters.
+ *
+ * @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 cognitive Services project is an Azure resource representing the provisioned account's project, it's
+ * type, location and SKU along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName, String projectName,
+ Context context);
+
+ /**
+ * Returns a Cognitive Services project specified by the parameters.
+ *
+ * @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 cognitive Services project is an Azure resource representing the provisioned account's project, it's
+ * type, location and SKU.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProjectInner get(String resourceGroupName, String accountName, String projectName);
+
/**
* Create Cognitive Services Account's Project. Project is a sub-resource of an account which give AI developer it's
* individual container to work on.
@@ -216,38 +248,6 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String projectName, Context context);
- /**
- * Returns a Cognitive Services project specified by the parameters.
- *
- * @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 cognitive Services project is an Azure resource representing the provisioned account's project, it's
- * type, location and SKU along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String accountName, String projectName,
- Context context);
-
- /**
- * Returns a Cognitive Services project specified by the parameters.
- *
- * @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 cognitive Services project is an Azure resource representing the provisioned account's project, it's
- * type, location and SKU.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ProjectInner get(String resourceGroupName, String accountName, String projectName);
-
/**
* Returns all the projects in a Cognitive Services account.
*
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/QuotaTiersClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/QuotaTiersClient.java
index f8157e57459f..63bfc211e0a1 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/QuotaTiersClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/QuotaTiersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -15,40 +15,20 @@
* An instance of this class provides access to all the operations defined in QuotaTiersClient.
*/
public interface QuotaTiersClient {
- /**
- * Returns all the resources of a particular type belonging to a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of Quota Tiers response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Returns all the resources of a particular type belonging to a subscription.
- *
- * @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 list of Quota Tiers response as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
/**
* Gets the Quota Tier for a subscription
*
* Gets the Quota Tier information for the given subscription. QuotaTiers is a subscription wide resource type. It
* holds current tier information.
*
- * @param defaultParameter Default parameter. Leave the value as "default".
+ * @param defaultParameter Default parameter. Leave the value as default.
* @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 Quota Tier information for the given subscription along with {@link Response}.
+ * @return the Quota Tier for a subscription
+ *
+ * Gets the Quota Tier information for the given subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String defaultParameter, Context context);
@@ -59,23 +39,24 @@ public interface QuotaTiersClient {
* Gets the Quota Tier information for the given subscription. QuotaTiers is a subscription wide resource type. It
* holds current tier information.
*
- * @param defaultParameter Default parameter. Leave the value as "default".
+ * @param defaultParameter Default parameter. Leave the value as default.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the Quota Tier information for the given subscription.
+ * @return the Quota Tier for a subscription
+ *
+ * Gets the Quota Tier information for the given subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
QuotaTierInner get(String defaultParameter);
/**
- * Updates the Quota Tier resource for a subscription. The only properties that can be updated are
- * "tierUpgradePolicy"
+ * Updates the Quota Tier resource for a subscription.
*
* Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide resource type. It
* holds current tier information.
*
- * @param defaultParameter Default parameter. Leave the value as "default".
+ * @param defaultParameter Default parameter. Leave the value as default.
* @param tier The parameters to provide for the quota tier resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -84,16 +65,15 @@ public interface QuotaTiersClient {
* @return the quota tier information for the subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String defaultParameter, QuotaTierInner tier, Context context);
+ Response createOrUpdateWithResponse(String defaultParameter, QuotaTierInner tier, Context context);
/**
- * Updates the Quota Tier resource for a subscription. The only properties that can be updated are
- * "tierUpgradePolicy"
+ * Updates the Quota Tier resource for a subscription.
*
* Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide resource type. It
* holds current tier information.
*
- * @param defaultParameter Default parameter. Leave the value as "default".
+ * @param defaultParameter Default parameter. Leave the value as default.
* @param tier The parameters to provide for the quota tier resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -101,15 +81,16 @@ public interface QuotaTiersClient {
* @return the quota tier information for the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- QuotaTierInner update(String defaultParameter, QuotaTierInner tier);
+ QuotaTierInner createOrUpdate(String defaultParameter, QuotaTierInner tier);
/**
- * Updates the Quota Tier resource for a subscription.
+ * Updates the Quota Tier resource for a subscription. The only properties that can be updated are
+ * "tierUpgradePolicy"
*
* Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide resource type. It
* holds current tier information.
*
- * @param defaultParameter Default parameter. Leave the value as "default".
+ * @param defaultParameter Default parameter. Leave the value as default.
* @param tier The parameters to provide for the quota tier resource.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -118,15 +99,16 @@ public interface QuotaTiersClient {
* @return the quota tier information for the subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String defaultParameter, QuotaTierInner tier, Context context);
+ Response updateWithResponse(String defaultParameter, QuotaTierInner tier, Context context);
/**
- * Updates the Quota Tier resource for a subscription.
+ * Updates the Quota Tier resource for a subscription. The only properties that can be updated are
+ * "tierUpgradePolicy"
*
* Update the Quota Tier information for the given subscription. QuotaTiers is a subscription wide resource type. It
* holds current tier information.
*
- * @param defaultParameter Default parameter. Leave the value as "default".
+ * @param defaultParameter Default parameter. Leave the value as default.
* @param tier The parameters to provide for the quota tier resource.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -134,5 +116,27 @@ public interface QuotaTiersClient {
* @return the quota tier information for the subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- QuotaTierInner createOrUpdate(String defaultParameter, QuotaTierInner tier);
+ QuotaTierInner update(String defaultParameter, QuotaTierInner tier);
+
+ /**
+ * Returns all the resources of a particular type belonging to a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the list of Quota Tiers response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Returns all the resources of a particular type belonging to a subscription.
+ *
+ * @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 list of Quota Tiers response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java
index 1840d5fdd038..4b265caf0566 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistItemsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -20,38 +20,6 @@
* An instance of this class provides access to all the operations defined in RaiBlocklistItemsClient.
*/
public interface RaiBlocklistItemsClient {
- /**
- * Gets the blocklist items associated with the custom blocklist.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of Cognitive Services account.
- * @param raiBlocklistName The name of the RaiBlocklist 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 blocklist items associated with the custom blocklist as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName);
-
- /**
- * Gets the blocklist items associated with the custom blocklist.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param accountName The name of Cognitive Services account.
- * @param raiBlocklistName The name of the RaiBlocklist 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 blocklist items associated with the custom blocklist as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName,
- Context context);
-
/**
* Gets the specified custom blocklist Item associated with the custom blocklist.
*
@@ -183,6 +151,38 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
void delete(String resourceGroupName, String accountName, String raiBlocklistName, String raiBlocklistItemName,
Context context);
+ /**
+ * Gets the blocklist items associated with the custom blocklist.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiBlocklistName The name of the RaiBlocklist 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 blocklist items associated with the custom blocklist as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName);
+
+ /**
+ * Gets the blocklist items associated with the custom blocklist.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiBlocklistName The name of the RaiBlocklist 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 blocklist items associated with the custom blocklist as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName, String raiBlocklistName,
+ Context context);
+
/**
* Batch operation to add blocklist items.
*
@@ -231,7 +231,7 @@ RaiBlocklistInner batchAdd(String resourceGroupName, String accountName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response batchDeleteWithResponse(String resourceGroupName, String accountName, String raiBlocklistName,
- Object raiBlocklistItemsNames, Context context);
+ List raiBlocklistItemsNames, Context context);
/**
* Batch operation to delete blocklist items.
@@ -246,5 +246,5 @@ Response batchDeleteWithResponse(String resourceGroupName, String accountN
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void batchDelete(String resourceGroupName, String accountName, String raiBlocklistName,
- Object raiBlocklistItemsNames);
+ List raiBlocklistItemsNames);
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java
index bc601f7c2055..ed1a4642c4e4 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiBlocklistsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,35 +17,6 @@
* An instance of this class provides access to all the operations defined in RaiBlocklistsClient.
*/
public interface RaiBlocklistsClient {
- /**
- * Gets the custom blocklists associated with the Azure OpenAI 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 custom blocklists associated with the Azure OpenAI account as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName);
-
- /**
- * Gets the custom blocklists associated with the Azure OpenAI 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 custom blocklists associated with the Azure OpenAI account as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, Context context);
-
/**
* Gets the specified custom blocklist associated with the Azure OpenAI account.
*
@@ -166,4 +137,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String raiBlocklistName, Context context);
+
+ /**
+ * Gets the custom blocklists associated with the Azure OpenAI 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 custom blocklists associated with the Azure OpenAI account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
+
+ /**
+ * Gets the custom blocklists associated with the Azure OpenAI 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 custom blocklists associated with the Azure OpenAI 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/RaiContentFiltersClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java
index 80c045ee3e06..571e90f0d8dd 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiContentFiltersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -16,54 +16,54 @@
*/
public interface RaiContentFiltersClient {
/**
- * List Content Filters types.
+ * Get Content Filters by Name.
*
- * @param location Resource location.
+ * @param location The name of the Azure region.
+ * @param filterName The name of the RAI Content Filter.
+ * @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 list of Content Filters as paginated response with {@link PagedIterable}.
+ * @return content Filters by Name along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String location);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String location, String filterName, Context context);
/**
- * List Content Filters types.
+ * Get Content Filters by Name.
*
- * @param location Resource location.
- * @param context The context to associate with this operation.
+ * @param location The name of the Azure region.
+ * @param filterName The name of the RAI Content Filter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the list of Content Filters as paginated response with {@link PagedIterable}.
+ * @return content Filters by Name.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String location, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiContentFilterInner get(String location, String filterName);
/**
- * Get Content Filters by Name.
+ * List Content Filters types.
*
- * @param location Resource location.
- * @param filterName The name of the RAI Content Filter.
- * @param context The context to associate with this operation.
+ * @param location The name of the Azure region.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return content Filters by Name along with {@link Response}.
+ * @return the list of Content Filters as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String location, String filterName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location);
/**
- * Get Content Filters by Name.
+ * List Content Filters types.
*
- * @param location Resource location.
- * @param filterName The name of the RAI Content Filter.
+ * @param location The name of the Azure 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 content Filters by Name.
+ * @return the list of Content Filters as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- RaiContentFilterInner get(String location, String filterName);
+ @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/RaiExternalSafetyProvidersClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersClient.java
new file mode 100644
index 000000000000..13a6f675b2aa
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersClient.java
@@ -0,0 +1,128 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.cognitiveservices.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.ProxyResource;
+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.RaiExternalSafetyProviderSchemaInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in RaiExternalSafetyProvidersClient.
+ */
+public interface RaiExternalSafetyProvidersClient {
+ /**
+ * Gets the specified external safety provider associated with the Subscription.
+ *
+ * @param safetyProviderName The name of the Rai External Safety Provider 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 external safety provider associated with the Subscription along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String safetyProviderName, Context context);
+
+ /**
+ * Gets the specified external safety provider associated with the Subscription.
+ *
+ * @param safetyProviderName The name of the Rai External Safety Provider 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 external safety provider associated with the Subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiExternalSafetyProviderSchemaInner get(String safetyProviderName);
+
+ /**
+ * Create the rai safety provider associated with the subscription.
+ *
+ * @param safetyProviderName The name of the Rai External Safety Provider associated with the Cognitive Services
+ * Account.
+ * @param safetyProvider Properties describing the rai external safety provider.
+ * @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 Rai External Safety provider Schema along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String safetyProviderName,
+ RaiExternalSafetyProviderSchemaInner safetyProvider, Context context);
+
+ /**
+ * Create the rai safety provider associated with the subscription.
+ *
+ * @param safetyProviderName The name of the Rai External Safety Provider associated with the Cognitive Services
+ * Account.
+ * @param safetyProvider Properties describing the rai external safety provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Rai External Safety provider Schema.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ProxyResource createOrUpdate(String safetyProviderName, RaiExternalSafetyProviderSchemaInner safetyProvider);
+
+ /**
+ * Deletes the specified custom topic associated with the subscription.
+ *
+ * @param safetyProviderName The name of the Rai External Safety Provider 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 safetyProviderName);
+
+ /**
+ * Deletes the specified custom topic associated with the subscription.
+ *
+ * @param safetyProviderName The name of the Rai External Safety Provider 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 safetyProviderName, Context context);
+
+ /**
+ * Deletes the specified custom topic associated with the subscription.
+ *
+ * @param safetyProviderName The name of the Rai External Safety Provider 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 safetyProviderName);
+
+ /**
+ * Deletes the specified custom topic associated with the subscription.
+ *
+ * @param safetyProviderName The name of the Rai External Safety Provider 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 safetyProviderName, Context context);
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersOperationsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersOperationsClient.java
new file mode 100644
index 000000000000..b115f57125fb
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiExternalSafetyProvidersOperationsClient.java
@@ -0,0 +1,39 @@
+// Copyright (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.RaiExternalSafetyProviderSchemaInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * RaiExternalSafetyProvidersOperationsClient.
+ */
+public interface RaiExternalSafetyProvidersOperationsClient {
+ /**
+ * Gets the safety providers associated with the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the safety providers associated with the subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets the safety providers associated with the subscription.
+ *
+ * @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 safety providers associated with the subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java
index 6da6c893195b..d850bea71a3a 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiPoliciesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -17,35 +17,6 @@
* An instance of this class provides access to all the operations defined in RaiPoliciesClient.
*/
public interface RaiPoliciesClient {
- /**
- * Gets the content filters associated with the Azure OpenAI 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 content filters associated with the Azure OpenAI account as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName);
-
- /**
- * Gets the content filters associated with the Azure OpenAI 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 content filters associated with the Azure OpenAI account as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName, String accountName, Context context);
-
/**
* Gets the specified Content Filters associated with the Azure OpenAI account.
*
@@ -165,4 +136,33 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String accountName, String raiPolicyName, Context context);
+
+ /**
+ * Gets the content filters associated with the Azure OpenAI 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 content filters associated with the Azure OpenAI account as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
+
+ /**
+ * Gets the content filters associated with the Azure OpenAI 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 content filters associated with the Azure OpenAI 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/RaiToolLabelsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiToolLabelsClient.java
new file mode 100644
index 000000000000..8ed03ad13aab
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiToolLabelsClient.java
@@ -0,0 +1,167 @@
+// Copyright (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.RaiToolLabelInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in RaiToolLabelsClient.
+ */
+public interface RaiToolLabelsClient {
+ /**
+ * Gets the specified RAI Tool Label associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiToolConnectionName The name of the Rai Tool Label.
+ * @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 RAI Tool Label associated with the Azure OpenAI account along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String accountName,
+ String raiToolConnectionName, Context context);
+
+ /**
+ * Gets the specified RAI Tool Label associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiToolConnectionName The name of the Rai Tool Label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 RAI Tool Label associated with the Azure OpenAI account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiToolLabelInner get(String resourceGroupName, String accountName, String raiToolConnectionName);
+
+ /**
+ * Creates the RAI Tool Label associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiToolConnectionName The name of the Rai Tool Label.
+ * @param raiToolLabel Properties describing the RAI Tool Label.
+ * @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 RAI Tool Label resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName, String accountName,
+ String raiToolConnectionName, RaiToolLabelInner raiToolLabel, Context context);
+
+ /**
+ * Creates the RAI Tool Label associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiToolConnectionName The name of the Rai Tool Label.
+ * @param raiToolLabel Properties describing the RAI Tool Label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 RAI Tool Label resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiToolLabelInner createOrUpdate(String resourceGroupName, String accountName, String raiToolConnectionName,
+ RaiToolLabelInner raiToolLabel);
+
+ /**
+ * Deletes the specified RAI Tool Label associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiToolConnectionName The name of the Rai Tool Label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown 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 raiToolConnectionName);
+
+ /**
+ * Deletes the specified RAI Tool Label associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiToolConnectionName The name of the Rai Tool Label.
+ * @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 raiToolConnectionName, Context context);
+
+ /**
+ * Deletes the specified RAI Tool Label associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiToolConnectionName The name of the Rai Tool Label.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 raiToolConnectionName);
+
+ /**
+ * Deletes the specified RAI Tool Label associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param raiToolConnectionName The name of the Rai Tool Label.
+ * @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 raiToolConnectionName, Context context);
+
+ /**
+ * Lists all RAI Tool Labels associated with the Azure OpenAI 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 list of Cognitive Services RAI Tool Labels as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String accountName);
+
+ /**
+ * Lists all RAI Tool Labels associated with the Azure OpenAI 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 list of Cognitive Services RAI Tool Labels 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/RaiTopicsClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiTopicsClient.java
index b7f92d7dc351..c00cab6b710a 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiTopicsClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/RaiTopicsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java
index 63e85577aec3..f48ca445ca38 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceProvidersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -22,8 +22,8 @@ public interface ResourceProvidersClient {
/**
* Check available SKUs.
*
- * @param location Resource location.
- * @param parameters Check SKU Availability POST body.
+ * @param location The location name.
+ * @param parameters The request body.
* @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.
@@ -37,8 +37,8 @@ Response checkSkuAvailabilityWithResponse(String
/**
* Check available SKUs.
*
- * @param location Resource location.
- * @param parameters Check SKU Availability POST body.
+ * @param location The location name.
+ * @param parameters The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -50,7 +50,7 @@ Response checkSkuAvailabilityWithResponse(String
/**
* Check whether a domain is available.
*
- * @param parameters Check Domain Availability parameter.
+ * @param parameters The request body.
* @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.
@@ -64,7 +64,7 @@ Response checkDomainAvailabilityWithResponse(CheckDomai
/**
* Check whether a domain is available.
*
- * @param parameters Check Domain Availability parameter.
+ * @param parameters The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -76,7 +76,7 @@ Response checkDomainAvailabilityWithResponse(CheckDomai
/**
* Model capacity calculator.
*
- * @param parameters Check Domain Availability parameter.
+ * @param parameters The request body.
* @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.
@@ -90,7 +90,7 @@ Response checkDomainAvailabilityWithResponse(CheckDomai
/**
* Model capacity calculator.
*
- * @param parameters Check Domain Availability parameter.
+ * @param parameters The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceSkusClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceSkusClient.java
index 3c98b0764195..c071140a4e84 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceSkusClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/ResourceSkusClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/SubscriptionRaiPoliciesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/SubscriptionRaiPoliciesClient.java
new file mode 100644
index 000000000000..89bb23f4ab15
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/SubscriptionRaiPoliciesClient.java
@@ -0,0 +1,119 @@
+// Copyright (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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.cognitiveservices.fluent.models.RaiPolicyInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in SubscriptionRaiPoliciesClient.
+ */
+public interface SubscriptionRaiPoliciesClient {
+ /**
+ * Gets the specified Content Filters associated with the Subscription.
+ *
+ * @param raiPolicyName The name of the RaiPolicy 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 Content Filters associated with the Subscription along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String raiPolicyName, Context context);
+
+ /**
+ * Gets the specified Content Filters associated with the Subscription.
+ *
+ * @param raiPolicyName The name of the RaiPolicy 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 Content Filters associated with the Subscription.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiPolicyInner get(String raiPolicyName);
+
+ /**
+ * Update the state of specified Content Filters associated with the subscription.
+ *
+ * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account.
+ * @param raiPolicy Properties describing the Content Filters.
+ * @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 RaiPolicy along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String raiPolicyName, RaiPolicyInner raiPolicy,
+ Context context);
+
+ /**
+ * Update the state of specified Content Filters associated with the subscription.
+ *
+ * @param raiPolicyName The name of the RaiPolicy associated with the Cognitive Services Account.
+ * @param raiPolicy Properties describing the Content Filters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 RaiPolicy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiPolicyInner createOrUpdate(String raiPolicyName, RaiPolicyInner raiPolicy);
+
+ /**
+ * Deletes the specified Content Filters associated with the subscription.
+ *
+ * @param raiPolicyName The name of the RaiPolicy 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 raiPolicyName);
+
+ /**
+ * Deletes the specified Content Filters associated with the subscription.
+ *
+ * @param raiPolicyName The name of the RaiPolicy 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 raiPolicyName, Context context);
+
+ /**
+ * Deletes the specified Content Filters associated with the subscription.
+ *
+ * @param raiPolicyName The name of the RaiPolicy 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 raiPolicyName);
+
+ /**
+ * Deletes the specified Content Filters associated with the subscription.
+ *
+ * @param raiPolicyName The name of the RaiPolicy 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 raiPolicyName, Context context);
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/TestRaiExternalSafetyProvidersClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/TestRaiExternalSafetyProvidersClient.java
new file mode 100644
index 000000000000..82c0a160933e
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/TestRaiExternalSafetyProvidersClient.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.cognitiveservices.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.RaiExternalSafetyProviderSchemaInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in TestRaiExternalSafetyProvidersClient.
+ */
+public interface TestRaiExternalSafetyProvidersClient {
+ /**
+ * Test the rai safety provider associated with the subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param safetyProviderName The name of the Rai External Safety Provider associated with the Cognitive Services
+ * Account.
+ * @param safetyProvider Properties describing the rai external safety provider.
+ * @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 Rai External Safety provider Schema along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName,
+ String accountName, String safetyProviderName, RaiExternalSafetyProviderSchemaInner safetyProvider,
+ Context context);
+
+ /**
+ * Test the rai safety provider associated with the subscription.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param accountName The name of Cognitive Services account.
+ * @param safetyProviderName The name of the Rai External Safety Provider associated with the Cognitive Services
+ * Account.
+ * @param safetyProvider Properties describing the rai external safety provider.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.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 Rai External Safety provider Schema.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiExternalSafetyProviderSchemaInner createOrUpdate(String resourceGroupName, String accountName,
+ String safetyProviderName, RaiExternalSafetyProviderSchemaInner safetyProvider);
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java
index f048be7c8be9..b864822815e6 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/UsagesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent;
@@ -8,7 +8,7 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.cognitiveservices.models.Usage;
+import com.azure.resourcemanager.cognitiveservices.fluent.models.UsageInner;
/**
* An instance of this class provides access to all the operations defined in UsagesClient.
@@ -17,19 +17,19 @@ public interface UsagesClient {
/**
* Get usages for the requested subscription.
*
- * @param location Resource 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 usages for the requested subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String location);
+ PagedIterable list(String location);
/**
* Get usages for the requested subscription.
*
- * @param location Resource location.
+ * @param location The location name.
* @param filter An OData filter expression that describes a subset of usages to return. The supported parameter is
* name.value (name of the metric, can have an or of multiple names).
* @param context The context to associate with this operation.
@@ -39,5 +39,5 @@ public interface UsagesClient {
* @return usages for the requested subscription as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String location, String filter, Context context);
+ PagedIterable list(String location, String filter, Context context);
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountInner.java
index 57d6dee10655..7fb7a4e2834e 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountInner.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountInner.java
@@ -1,16 +1,16 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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.AccountProperties;
-import com.azure.resourcemanager.cognitiveservices.models.AzureEntityResource;
import com.azure.resourcemanager.cognitiveservices.models.Identity;
import com.azure.resourcemanager.cognitiveservices.models.Sku;
import java.io.IOException;
@@ -20,46 +20,46 @@
* Cognitive Services account is an Azure resource representing the provisioned account, it's type, location and SKU.
*/
@Fluent
-public final class AccountInner extends AzureEntityResource {
+public final class AccountInner extends ProxyResource {
/*
- * The Kind of the resource.
+ * Properties of Cognitive Services account.
*/
- private String kind;
+ private AccountProperties properties;
/*
- * The resource model definition representing SKU
+ * Resource tags.
*/
- private Sku sku;
+ private Map tags;
/*
- * Identity for the resource.
+ * The geo-location where the resource lives
*/
- private Identity identity;
+ private String location;
/*
- * Resource tags.
+ * Resource Etag.
*/
- private Map tags;
+ private String etag;
/*
- * The geo-location where the resource lives
+ * The kind (type) of cognitive service account.
*/
- private String location;
+ private String kind;
/*
- * Properties of Cognitive Services account.
+ * The resource model definition representing SKU
*/
- private AccountProperties properties;
+ private Sku sku;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Identity for the resource.
*/
- private SystemData systemData;
+ private Identity identity;
/*
- * Resource Etag.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
- private String etag;
+ private SystemData systemData;
/*
* The type of the resource.
@@ -83,122 +83,131 @@ public AccountInner() {
}
/**
- * Get the kind property: The Kind of the resource.
+ * Get the properties property: Properties of Cognitive Services account.
*
- * @return the kind value.
+ * @return the properties value.
*/
- public String kind() {
- return this.kind;
+ public AccountProperties properties() {
+ return this.properties;
}
/**
- * Set the kind property: The Kind of the resource.
+ * Set the properties property: Properties of Cognitive Services account.
*
- * @param kind the kind value to set.
+ * @param properties the properties value to set.
* @return the AccountInner object itself.
*/
- public AccountInner withKind(String kind) {
- this.kind = kind;
+ public AccountInner withProperties(AccountProperties properties) {
+ this.properties = properties;
return this;
}
/**
- * Get the sku property: The resource model definition representing SKU.
+ * Get the tags property: Resource tags.
*
- * @return the sku value.
+ * @return the tags value.
*/
- public Sku sku() {
- return this.sku;
+ public Map tags() {
+ return this.tags;
}
/**
- * Set the sku property: The resource model definition representing SKU.
+ * Set the tags property: Resource tags.
*
- * @param sku the sku value to set.
+ * @param tags the tags value to set.
* @return the AccountInner object itself.
*/
- public AccountInner withSku(Sku sku) {
- this.sku = sku;
+ public AccountInner withTags(Map tags) {
+ this.tags = tags;
return this;
}
/**
- * Get the identity property: Identity for the resource.
+ * Get the location property: The geo-location where the resource lives.
*
- * @return the identity value.
+ * @return the location value.
*/
- public Identity identity() {
- return this.identity;
+ public String location() {
+ return this.location;
}
/**
- * Set the identity property: Identity for the resource.
+ * Set the location property: The geo-location where the resource lives.
*
- * @param identity the identity value to set.
+ * @param location the location value to set.
* @return the AccountInner object itself.
*/
- public AccountInner withIdentity(Identity identity) {
- this.identity = identity;
+ public AccountInner withLocation(String location) {
+ this.location = location;
return this;
}
/**
- * Get the tags property: Resource tags.
+ * Get the etag property: Resource Etag.
*
- * @return the tags value.
+ * @return the etag value.
*/
- public Map tags() {
- return this.tags;
+ public String etag() {
+ return this.etag;
}
/**
- * Set the tags property: Resource tags.
+ * Get the kind property: The kind (type) of cognitive service account.
*
- * @param tags the tags value to set.
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: The kind (type) of cognitive service account.
+ *
+ * @param kind the kind value to set.
* @return the AccountInner object itself.
*/
- public AccountInner withTags(Map tags) {
- this.tags = tags;
+ public AccountInner withKind(String kind) {
+ this.kind = kind;
return this;
}
/**
- * Get the location property: The geo-location where the resource lives.
+ * Get the sku property: The resource model definition representing SKU.
*
- * @return the location value.
+ * @return the sku value.
*/
- public String location() {
- return this.location;
+ public Sku sku() {
+ return this.sku;
}
/**
- * Set the location property: The geo-location where the resource lives.
+ * Set the sku property: The resource model definition representing SKU.
*
- * @param location the location value to set.
+ * @param sku the sku value to set.
* @return the AccountInner object itself.
*/
- public AccountInner withLocation(String location) {
- this.location = location;
+ public AccountInner withSku(Sku sku) {
+ this.sku = sku;
return this;
}
/**
- * Get the properties property: Properties of Cognitive Services account.
+ * Get the identity property: Identity for the resource.
*
- * @return the properties value.
+ * @return the identity value.
*/
- public AccountProperties properties() {
- return this.properties;
+ public Identity identity() {
+ return this.identity;
}
/**
- * Set the properties property: Properties of Cognitive Services account.
+ * Set the identity property: Identity for the resource.
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the AccountInner object itself.
*/
- public AccountInner withProperties(AccountProperties properties) {
- this.properties = properties;
+ public AccountInner withIdentity(Identity identity) {
+ this.identity = identity;
return this;
}
@@ -207,21 +216,10 @@ public AccountInner withProperties(AccountProperties properties) {
*
* @return the systemData value.
*/
- @Override
public SystemData systemData() {
return this.systemData;
}
- /**
- * Get the etag property: Resource Etag.
- *
- * @return the etag value.
- */
- @Override
- public String etag() {
- return this.etag;
- }
-
/**
* Get the type property: The type of the resource.
*
@@ -252,36 +250,18 @@ public String id() {
return this.id;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (sku() != null) {
- sku().validate();
- }
- if (identity() != null) {
- identity().validate();
- }
- if (properties() != null) {
- properties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("location", this.location);
jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
jsonWriter.writeJsonField("identity", this.identity);
- jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
- jsonWriter.writeStringField("location", this.location);
- jsonWriter.writeJsonField("properties", this.properties);
return jsonWriter.writeEndObject();
}
@@ -307,23 +287,23 @@ public static AccountInner fromJson(JsonReader jsonReader) throws IOException {
deserializedAccountInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedAccountInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedAccountInner.properties = AccountProperties.fromJson(reader);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAccountInner.tags = tags;
+ } else if ("location".equals(fieldName)) {
+ deserializedAccountInner.location = reader.getString();
} else if ("etag".equals(fieldName)) {
deserializedAccountInner.etag = reader.getString();
- } else if ("systemData".equals(fieldName)) {
- deserializedAccountInner.systemData = SystemData.fromJson(reader);
} else if ("kind".equals(fieldName)) {
deserializedAccountInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedAccountInner.sku = Sku.fromJson(reader);
} else if ("identity".equals(fieldName)) {
deserializedAccountInner.identity = Identity.fromJson(reader);
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAccountInner.tags = tags;
- } else if ("location".equals(fieldName)) {
- deserializedAccountInner.location = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedAccountInner.properties = AccountProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAccountInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java
index 5e1c5391e1f3..8e65a7fd2535 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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.annotation.Immutable;
import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
@@ -22,7 +22,7 @@
/**
* Cognitive Services account Model.
*/
-@Fluent
+@Immutable
public final class AccountModelInner extends DeploymentModel {
/*
* Properties of Cognitive Services account deployment model.
@@ -87,7 +87,7 @@ public final class AccountModelInner extends DeploymentModel {
/**
* Creates an instance of AccountModelInner class.
*/
- public AccountModelInner() {
+ private AccountModelInner() {
}
/**
@@ -99,17 +99,6 @@ public DeploymentModel baseModel() {
return this.baseModel;
}
- /**
- * Set the baseModel property: Properties of Cognitive Services account deployment model.
- *
- * @param baseModel the baseModel value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withBaseModel(DeploymentModel baseModel) {
- this.baseModel = baseModel;
- return this;
- }
-
/**
* Get the isDefaultVersion property: If the model is default version.
*
@@ -119,17 +108,6 @@ public Boolean isDefaultVersion() {
return this.isDefaultVersion;
}
- /**
- * Set the isDefaultVersion property: If the model is default version.
- *
- * @param isDefaultVersion the isDefaultVersion value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withIsDefaultVersion(Boolean isDefaultVersion) {
- this.isDefaultVersion = isDefaultVersion;
- return this;
- }
-
/**
* Get the skus property: The list of Model Sku.
*
@@ -139,17 +117,6 @@ public List skus() {
return this.skus;
}
- /**
- * Set the skus property: The list of Model Sku.
- *
- * @param skus the skus value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withSkus(List skus) {
- this.skus = skus;
- return this;
- }
-
/**
* Get the maxCapacity property: The max capacity.
*
@@ -159,17 +126,6 @@ public Integer maxCapacity() {
return this.maxCapacity;
}
- /**
- * Set the maxCapacity property: The max capacity.
- *
- * @param maxCapacity the maxCapacity value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withMaxCapacity(Integer maxCapacity) {
- this.maxCapacity = maxCapacity;
- return this;
- }
-
/**
* Get the capabilities property: The capabilities.
*
@@ -179,17 +135,6 @@ public Map capabilities() {
return this.capabilities;
}
- /**
- * Set the capabilities property: The capabilities.
- *
- * @param capabilities the capabilities value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withCapabilities(Map capabilities) {
- this.capabilities = capabilities;
- return this;
- }
-
/**
* Get the finetuneCapabilities property: The capabilities for finetune models.
*
@@ -199,17 +144,6 @@ public Map finetuneCapabilities() {
return this.finetuneCapabilities;
}
- /**
- * Set the finetuneCapabilities property: The capabilities for finetune models.
- *
- * @param finetuneCapabilities the finetuneCapabilities value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withFinetuneCapabilities(Map finetuneCapabilities) {
- this.finetuneCapabilities = finetuneCapabilities;
- return this;
- }
-
/**
* Get the deprecation property: Cognitive Services account ModelDeprecationInfo.
*
@@ -219,17 +153,6 @@ public ModelDeprecationInfo deprecation() {
return this.deprecation;
}
- /**
- * Set the deprecation property: Cognitive Services account ModelDeprecationInfo.
- *
- * @param deprecation the deprecation value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withDeprecation(ModelDeprecationInfo deprecation) {
- this.deprecation = deprecation;
- return this;
- }
-
/**
* Get the replacementConfig property: Configuration for model replacement.
*
@@ -239,17 +162,6 @@ public ReplacementConfig replacementConfig() {
return this.replacementConfig;
}
- /**
- * Set the replacementConfig property: Configuration for model replacement.
- *
- * @param replacementConfig the replacementConfig value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withReplacementConfig(ReplacementConfig replacementConfig) {
- this.replacementConfig = replacementConfig;
- return this;
- }
-
/**
* Get the modelCatalogAssetId property: Asset identifier for the model in the model catalog.
*
@@ -259,17 +171,6 @@ public String modelCatalogAssetId() {
return this.modelCatalogAssetId;
}
- /**
- * Set the modelCatalogAssetId property: Asset identifier for the model in the model catalog.
- *
- * @param modelCatalogAssetId the modelCatalogAssetId value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withModelCatalogAssetId(String modelCatalogAssetId) {
- this.modelCatalogAssetId = modelCatalogAssetId;
- return this;
- }
-
/**
* Get the lifecycleStatus property: Model lifecycle status.
*
@@ -279,17 +180,6 @@ public ModelLifecycleStatus lifecycleStatus() {
return this.lifecycleStatus;
}
- /**
- * Set the lifecycleStatus property: Model lifecycle status.
- *
- * @param lifecycleStatus the lifecycleStatus value to set.
- * @return the AccountModelInner object itself.
- */
- public AccountModelInner withLifecycleStatus(ModelLifecycleStatus lifecycleStatus) {
- this.lifecycleStatus = lifecycleStatus;
- return this;
- }
-
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
@@ -309,84 +199,6 @@ public CallRateLimit callRateLimit() {
return this.callRateLimit;
}
- /**
- * {@inheritDoc}
- */
- @Override
- public AccountModelInner withPublisher(String publisher) {
- super.withPublisher(publisher);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public AccountModelInner withFormat(String format) {
- super.withFormat(format);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public AccountModelInner withName(String name) {
- super.withName(name);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public AccountModelInner withVersion(String version) {
- super.withVersion(version);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public AccountModelInner withSource(String source) {
- super.withSource(source);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public AccountModelInner withSourceAccount(String sourceAccount) {
- super.withSourceAccount(sourceAccount);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- if (baseModel() != null) {
- baseModel().validate();
- }
- if (skus() != null) {
- skus().forEach(e -> e.validate());
- }
- if (deprecation() != null) {
- deprecation().validate();
- }
- if (replacementConfig() != null) {
- replacementConfig().validate();
- }
- if (callRateLimit() != null) {
- callRateLimit().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountSkuListResultInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountSkuListResultInner.java
index 21a61ea40ba4..cdaaa98777a3 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountSkuListResultInner.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountSkuListResultInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* The list of cognitive services accounts operation response.
*/
-@Fluent
+@Immutable
public final class AccountSkuListResultInner implements JsonSerializable {
/*
* Gets the list of Cognitive Services accounts and their properties.
@@ -26,7 +26,7 @@ public final class AccountSkuListResultInner implements JsonSerializable value() {
return this.value;
}
- /**
- * Set the value property: Gets the list of Cognitive Services accounts and their properties.
- *
- * @param value the value value to set.
- * @return the AccountSkuListResultInner object itself.
- */
- public AccountSkuListResultInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentApplicationInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentApplicationInner.java
new file mode 100644
index 000000000000..4fa0de73bf6f
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentApplicationInner.java
@@ -0,0 +1,155 @@
+// Copyright (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.AgenticApplicationProperties;
+import java.io.IOException;
+
+/**
+ * Agent Application resource.
+ */
+@Fluent
+public final class AgentApplicationInner extends ProxyResource {
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ private AgenticApplicationProperties 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 AgentApplicationInner class.
+ */
+ public AgentApplicationInner() {
+ }
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public AgenticApplicationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the AgentApplicationInner object itself.
+ */
+ public AgentApplicationInner withProperties(AgenticApplicationProperties properties) {
+ this.properties = properties;
+ 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);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AgentApplicationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AgentApplicationInner 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 AgentApplicationInner.
+ */
+ public static AgentApplicationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AgentApplicationInner deserializedAgentApplicationInner = new AgentApplicationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAgentApplicationInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedAgentApplicationInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedAgentApplicationInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedAgentApplicationInner.properties = AgenticApplicationProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAgentApplicationInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAgentApplicationInner;
+ });
+ }
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentDeploymentInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentDeploymentInner.java
new file mode 100644
index 000000000000..04b0639f6b43
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentDeploymentInner.java
@@ -0,0 +1,155 @@
+// Copyright (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.AgentDeploymentProperties;
+import java.io.IOException;
+
+/**
+ * Agent Deployment resource.
+ */
+@Fluent
+public final class AgentDeploymentInner extends ProxyResource {
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ private AgentDeploymentProperties 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 AgentDeploymentInner class.
+ */
+ public AgentDeploymentInner() {
+ }
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public AgentDeploymentProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the AgentDeploymentInner object itself.
+ */
+ public AgentDeploymentInner withProperties(AgentDeploymentProperties properties) {
+ this.properties = properties;
+ 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);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AgentDeploymentInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AgentDeploymentInner 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 AgentDeploymentInner.
+ */
+ public static AgentDeploymentInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AgentDeploymentInner deserializedAgentDeploymentInner = new AgentDeploymentInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedAgentDeploymentInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedAgentDeploymentInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedAgentDeploymentInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedAgentDeploymentInner.properties = AgentDeploymentProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedAgentDeploymentInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAgentDeploymentInner;
+ });
+ }
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentReferenceResourceArmPaginatedResultInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentReferenceResourceArmPaginatedResultInner.java
new file mode 100644
index 000000000000..112f4f610bcc
--- /dev/null
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AgentReferenceResourceArmPaginatedResultInner.java
@@ -0,0 +1,97 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.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.AgentReference;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * A paginated list of Agent Reference entities.
+ */
+@Immutable
+public final class AgentReferenceResourceArmPaginatedResultInner
+ implements JsonSerializable {
+ /*
+ * The link to the next page of Agent Reference objects. If null, there are no additional pages.
+ */
+ private String nextLink;
+
+ /*
+ * An array of objects of type Agent Reference.
+ */
+ private List value;
+
+ /**
+ * Creates an instance of AgentReferenceResourceArmPaginatedResultInner class.
+ */
+ private AgentReferenceResourceArmPaginatedResultInner() {
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page of Agent Reference objects. If null, there are no additional
+ * pages.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Get the value property: An array of objects of type Agent Reference.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AgentReferenceResourceArmPaginatedResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AgentReferenceResourceArmPaginatedResultInner 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 AgentReferenceResourceArmPaginatedResultInner.
+ */
+ public static AgentReferenceResourceArmPaginatedResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AgentReferenceResourceArmPaginatedResultInner deserializedAgentReferenceResourceArmPaginatedResultInner
+ = new AgentReferenceResourceArmPaginatedResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("nextLink".equals(fieldName)) {
+ deserializedAgentReferenceResourceArmPaginatedResultInner.nextLink = reader.getString();
+ } else if ("value".equals(fieldName)) {
+ List value = reader.readArray(reader1 -> AgentReference.fromJson(reader1));
+ deserializedAgentReferenceResourceArmPaginatedResultInner.value = value;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAgentReferenceResourceArmPaginatedResultInner;
+ });
+ }
+}
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ApiKeysInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ApiKeysInner.java
index 1b63b051c5d5..816274b98909 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ApiKeysInner.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/ApiKeysInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* The access keys for the cognitive services account.
*/
-@Fluent
+@Immutable
public final class ApiKeysInner implements JsonSerializable {
/*
* Gets the value of key 1.
@@ -29,7 +29,7 @@ public final class ApiKeysInner implements JsonSerializable {
/**
* Creates an instance of ApiKeysInner class.
*/
- public ApiKeysInner() {
+ private ApiKeysInner() {
}
/**
@@ -41,17 +41,6 @@ public String key1() {
return this.key1;
}
- /**
- * Set the key1 property: Gets the value of key 1.
- *
- * @param key1 the key1 value to set.
- * @return the ApiKeysInner object itself.
- */
- public ApiKeysInner withKey1(String key1) {
- this.key1 = key1;
- return this;
- }
-
/**
* Get the key2 property: Gets the value of key 2.
*
@@ -61,25 +50,6 @@ public String key2() {
return this.key2;
}
- /**
- * Set the key2 property: Gets the value of key 2.
- *
- * @param key2 the key2 value to set.
- * @return the ApiKeysInner object itself.
- */
- public ApiKeysInner withKey2(String key2) {
- this.key2 = key2;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java
index 17bf7358025c..52cac0416dfa 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CalculateModelCapacityResultInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* Calculate Model Capacity result.
*/
-@Fluent
+@Immutable
public final class CalculateModelCapacityResultInner implements JsonSerializable {
/*
* Properties of Cognitive Services account deployment model.
@@ -36,7 +36,7 @@ public final class CalculateModelCapacityResultInner implements JsonSerializable
/**
* Creates an instance of CalculateModelCapacityResultInner class.
*/
- public CalculateModelCapacityResultInner() {
+ private CalculateModelCapacityResultInner() {
}
/**
@@ -48,17 +48,6 @@ public DeploymentModel model() {
return this.model;
}
- /**
- * Set the model property: Properties of Cognitive Services account deployment model.
- *
- * @param model the model value to set.
- * @return the CalculateModelCapacityResultInner object itself.
- */
- public CalculateModelCapacityResultInner withModel(DeploymentModel model) {
- this.model = model;
- return this;
- }
-
/**
* Get the skuName property: The skuName property.
*
@@ -68,17 +57,6 @@ public String skuName() {
return this.skuName;
}
- /**
- * Set the skuName property: The skuName property.
- *
- * @param skuName the skuName value to set.
- * @return the CalculateModelCapacityResultInner object itself.
- */
- public CalculateModelCapacityResultInner withSkuName(String skuName) {
- this.skuName = skuName;
- return this;
- }
-
/**
* Get the estimatedCapacity property: Model Estimated Capacity.
*
@@ -88,32 +66,6 @@ public CalculateModelCapacityResultEstimatedCapacity estimatedCapacity() {
return this.estimatedCapacity;
}
- /**
- * Set the estimatedCapacity property: Model Estimated Capacity.
- *
- * @param estimatedCapacity the estimatedCapacity value to set.
- * @return the CalculateModelCapacityResultInner object itself.
- */
- public CalculateModelCapacityResultInner
- withEstimatedCapacity(CalculateModelCapacityResultEstimatedCapacity estimatedCapacity) {
- this.estimatedCapacity = estimatedCapacity;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (model() != null) {
- model().validate();
- }
- if (estimatedCapacity() != null) {
- estimatedCapacity().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CapabilityHostInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CapabilityHostInner.java
index b8b1d42c82bf..79f87625dd23 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CapabilityHostInner.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CapabilityHostInner.java
@@ -1,13 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// 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.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -109,22 +108,6 @@ public String id() {
return this.id;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Missing required property properties in model CapabilityHostInner"));
- } else {
- properties().validate();
- }
- }
-
- private static final ClientLogger LOGGER = new ClientLogger(CapabilityHostInner.class);
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java
index 3c465a6bfb42..4ad40dc4a856 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent.models;
@@ -18,6 +18,11 @@
*/
@Fluent
public final class CommitmentPlanAccountAssociationInner extends ProxyResource {
+ /*
+ * Properties of Cognitive Services account commitment plan association.
+ */
+ private CommitmentPlanAccountAssociationProperties innerProperties;
+
/*
* Resource Etag.
*/
@@ -28,11 +33,6 @@ public final class CommitmentPlanAccountAssociationInner extends ProxyResource {
*/
private Map tags;
- /*
- * Properties of Cognitive Services account commitment plan association.
- */
- private CommitmentPlanAccountAssociationProperties innerProperties;
-
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@@ -59,6 +59,15 @@ public final class CommitmentPlanAccountAssociationInner extends ProxyResource {
public CommitmentPlanAccountAssociationInner() {
}
+ /**
+ * Get the innerProperties property: Properties of Cognitive Services account commitment plan association.
+ *
+ * @return the innerProperties value.
+ */
+ private CommitmentPlanAccountAssociationProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the etag property: Resource Etag.
*
@@ -88,15 +97,6 @@ public CommitmentPlanAccountAssociationInner withTags(Map tags)
return this;
}
- /**
- * Get the innerProperties property: Properties of Cognitive Services account commitment plan association.
- *
- * @return the innerProperties value.
- */
- private CommitmentPlanAccountAssociationProperties innerProperties() {
- return this.innerProperties;
- }
-
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
@@ -159,25 +159,14 @@ public CommitmentPlanAccountAssociationInner withAccountId(String accountId) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -204,14 +193,14 @@ public static CommitmentPlanAccountAssociationInner fromJson(JsonReader jsonRead
deserializedCommitmentPlanAccountAssociationInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedCommitmentPlanAccountAssociationInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedCommitmentPlanAccountAssociationInner.innerProperties
+ = CommitmentPlanAccountAssociationProperties.fromJson(reader);
} else if ("etag".equals(fieldName)) {
deserializedCommitmentPlanAccountAssociationInner.etag = reader.getString();
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedCommitmentPlanAccountAssociationInner.tags = tags;
- } else if ("properties".equals(fieldName)) {
- deserializedCommitmentPlanAccountAssociationInner.innerProperties
- = CommitmentPlanAccountAssociationProperties.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
deserializedCommitmentPlanAccountAssociationInner.systemData = SystemData.fromJson(reader);
} else {
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationProperties.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationProperties.java
index 51ae6c480784..ea9bd4bdfadd 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationProperties.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanAccountAssociationProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent.models;
@@ -48,14 +48,6 @@ public CommitmentPlanAccountAssociationProperties withAccountId(String accountId
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanInner.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanInner.java
index 5924e0afef17..e69b3ab758cd 100644
--- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanInner.java
+++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/CommitmentPlanInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.cognitiveservices.fluent.models;
@@ -21,34 +21,34 @@
@Fluent
public final class CommitmentPlanInner extends ProxyResource {
/*
- * Resource Etag.
+ * Properties of Cognitive Services account commitment plan.
*/
- private String etag;
+ private CommitmentPlanProperties properties;
/*
- * The Kind of the resource.
+ * Resource tags.
*/
- private String kind;
+ private Map tags;
/*
- * The resource model definition representing SKU
+ * The geo-location where the resource lives
*/
- private Sku sku;
+ private String location;
/*
- * Resource tags.
+ * Resource Etag.
*/
- private Map tags;
+ private String etag;
/*
- * The geo-location where the resource lives
+ * The kind (type) of cognitive service account.
*/
- private String location;
+ private String kind;
/*
- * Properties of Cognitive Services account commitment plan.
+ * The resource model definition representing SKU
*/
- private CommitmentPlanProperties properties;
+ private Sku sku;
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
@@ -77,51 +77,22 @@ public CommitmentPlanInner() {
}
/**
- * Get the etag property: Resource Etag.
- *
- * @return the etag value.
- */
- public String etag() {
- return this.etag;
- }
-
- /**
- * Get the kind property: The Kind of the resource.
- *
- * @return the kind value.
- */
- public String kind() {
- return this.kind;
- }
-
- /**
- * Set the kind property: The Kind of the resource.
- *
- * @param kind the kind value to set.
- * @return the CommitmentPlanInner object itself.
- */
- public CommitmentPlanInner withKind(String kind) {
- this.kind = kind;
- return this;
- }
-
- /**
- * Get the sku property: The resource model definition representing SKU.
+ * Get the properties property: Properties of Cognitive Services account commitment plan.
*
- * @return the sku value.
+ * @return the properties value.
*/
- public Sku sku() {
- return this.sku;
+ public CommitmentPlanProperties properties() {
+ return this.properties;
}
/**
- * Set the sku property: The resource model definition representing SKU.
+ * Set the properties property: Properties of Cognitive Services account commitment plan.
*
- * @param sku the sku value to set.
+ * @param properties the properties value to set.
* @return the CommitmentPlanInner object itself.
*/
- public CommitmentPlanInner withSku(Sku sku) {
- this.sku = sku;
+ public CommitmentPlanInner withProperties(CommitmentPlanProperties properties) {
+ this.properties = properties;
return this;
}
@@ -166,22 +137,51 @@ public CommitmentPlanInner withLocation(String location) {
}
/**
- * Get the properties property: Properties of Cognitive Services account commitment plan.
+ * Get the etag property: Resource Etag.
*
- * @return the properties value.
+ * @return the etag value.
*/
- public CommitmentPlanProperties properties() {
- return this.properties;
+ public String etag() {
+ return this.etag;
}
/**
- * Set the properties property: Properties of Cognitive Services account commitment plan.
+ * Get the kind property: The kind (type) of cognitive service account.
*
- * @param properties the properties value to set.
+ * @return the kind value.
+ */
+ public String kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: The kind (type) of cognitive service account.
+ *
+ * @param kind the kind value to set.
* @return the CommitmentPlanInner object itself.
*/
- public CommitmentPlanInner withProperties(CommitmentPlanProperties properties) {
- this.properties = properties;
+ public CommitmentPlanInner withKind(String kind) {
+ this.kind = kind;
+ 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 CommitmentPlanInner object itself.
+ */
+ public CommitmentPlanInner withSku(Sku sku) {
+ this.sku = sku;
return this;
}
@@ -224,31 +224,17 @@ public String id() {
return this.id;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (sku() != null) {
- sku().validate();
- }
- if (properties() != null) {
- properties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("kind", this.kind);
- jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeJsonField("properties", this.properties);
jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("location", this.location);
- jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeStringField("kind", this.kind);
+ jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -274,19 +260,19 @@ public static CommitmentPlanInner fromJson(JsonReader jsonReader) throws IOExcep
deserializedCommitmentPlanInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedCommitmentPlanInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedCommitmentPlanInner.properties = CommitmentPlanProperties.fromJson(reader);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedCommitmentPlanInner.tags = tags;
+ } else if ("location".equals(fieldName)) {
+ deserializedCommitmentPlanInner.location = reader.getString();
} else if ("etag".equals(fieldName)) {
deserializedCommitmentPlanInner.etag = reader.getString();
} else if ("kind".equals(fieldName)) {
deserializedCommitmentPlanInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedCommitmentPlanInner.sku = Sku.fromJson(reader);
- } else if ("tags".equals(fieldName)) {
- Map