diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 9c7f3c99f5ba..cacd0611de60 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -143,7 +143,7 @@ - + diff --git a/sdk/cloudmachine/Azure.Projects.AI/src/MaaS/AIServiceFeature.cs b/sdk/cloudmachine/Azure.Projects.AI/src/MaaS/AIServiceFeature.cs index 45d4f19c1351..52a74d5d3843 100644 --- a/sdk/cloudmachine/Azure.Projects.AI/src/MaaS/AIServiceFeature.cs +++ b/sdk/cloudmachine/Azure.Projects.AI/src/MaaS/AIServiceFeature.cs @@ -31,7 +31,7 @@ public AIModelsFeature(string model, string modelVersion) /// protected override void EmitConstructs(ProjectInfrastructure infrastructure) { - CognitiveServicesAccount cognitiveServices = new("aiservices") + CognitiveServicesAccount cognitiveServices = new("aiservices", resourceVersion: "2024-10-01") { Name = infrastructure.ProjectId, Kind = "AIServices", diff --git a/sdk/cloudmachine/Azure.Projects.AI/src/OpenAI/OpenAIAccountFeature.cs b/sdk/cloudmachine/Azure.Projects.AI/src/OpenAI/OpenAIAccountFeature.cs index 2a98a589e137..ba5710bf41a1 100644 --- a/sdk/cloudmachine/Azure.Projects.AI/src/OpenAI/OpenAIAccountFeature.cs +++ b/sdk/cloudmachine/Azure.Projects.AI/src/OpenAI/OpenAIAccountFeature.cs @@ -30,7 +30,7 @@ public OpenAIAccountFeature(CognitiveServicesSku? sku = default) /// protected override void EmitConstructs(ProjectInfrastructure infrastructure) { - CognitiveServicesAccount cognitiveServices = new("openai") + CognitiveServicesAccount cognitiveServices = new("openai", resourceVersion: "2024-10-01") { Name = infrastructure.ProjectId, Kind = "OpenAI", diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.net8.0.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.net8.0.cs index 3a01a7f9aca8..55e19e3397a4 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.net8.0.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.net8.0.cs @@ -1,5 +1,10 @@ namespace Azure.Provisioning.CognitiveServices { + public partial class AadAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public AadAuthTypeConnectionProperties() { } + protected override void DefineProvisionableProperties() { } + } public partial class AbusePenalty : Azure.Provisioning.Primitives.ProvisionableConstruct { public AbusePenalty() { } @@ -13,6 +18,39 @@ public enum AbusePenaltyAction Throttle = 0, Block = 1, } + public partial class AccessKeyAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public AccessKeyAuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionAccessKey Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class AccountKeyAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public AccountKeyAuthTypeConnectionProperties() { } + public Azure.Provisioning.BicepValue CredentialsKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class AIFoundryNetworkInjection : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public AIFoundryNetworkInjection() { } + public Azure.Provisioning.BicepValue Scenario { get { throw null; } set { } } + public Azure.Provisioning.BicepValue SubnetArmId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue UseMicrosoftManagedNetwork { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public enum AIFoundryNetworkInjectionScenarioType + { + [System.Runtime.Serialization.DataMemberAttribute(Name="none")] + None = 0, + [System.Runtime.Serialization.DataMemberAttribute(Name="agent")] + Agent = 1, + } + public partial class ApiKeyAuthConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public ApiKeyAuthConnectionProperties() { } + public Azure.Provisioning.BicepValue CredentialsKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class BillingMeterInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public BillingMeterInfo() { } @@ -21,6 +59,19 @@ public BillingMeterInfo() { } public Azure.Provisioning.BicepValue Unit { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } + public enum CapabilityHostKind + { + Agents = 0, + } + public enum CapabilityHostProvisioningState + { + Succeeded = 0, + Failed = 1, + Canceled = 2, + Creating = 3, + Updating = 4, + Deleting = 5, + } public partial class CognitiveServicesAccount : Azure.Provisioning.Primitives.ProvisionableResource { public CognitiveServicesAccount(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } @@ -51,6 +102,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CognitiveServicesAccountDeployment : Azure.Provisioning.Primitives.ProvisionableResource @@ -76,6 +129,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CognitiveServicesAccountDeploymentModel : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -104,6 +159,7 @@ public CognitiveServicesAccountDeploymentProperties() { } public Azure.Provisioning.BicepValue RaiPolicyName { get { throw null; } set { } } public Azure.Provisioning.BicepList RateLimits { get { throw null; } } public Azure.Provisioning.CognitiveServices.CognitiveServicesAccountDeploymentScaleSettings ScaleSettings { get { throw null; } set { } } + public Azure.Provisioning.BicepValue SpilloverDeploymentName { get { throw null; } set { } } public Azure.Provisioning.BicepValue VersionUpgradeOption { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } @@ -149,14 +205,18 @@ public partial class CognitiveServicesAccountProperties : Azure.Provisioning.Pri { public CognitiveServicesAccountProperties() { } public Azure.Provisioning.CognitiveServices.AbusePenalty AbusePenalty { get { throw null; } } + public Azure.Provisioning.BicepList AIFoundryNetworkInjections { get { throw null; } set { } } public Azure.Provisioning.BicepList AllowedFqdnList { get { throw null; } set { } } + public Azure.Provisioning.BicepValue AllowProjectManagement { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.UserOwnedAmlWorkspace AmlWorkspace { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.ServiceAccountApiProperties ApiProperties { get { throw null; } set { } } + public Azure.Provisioning.BicepList AssociatedProjects { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.ServiceAccountCallRateLimit CallRateLimit { get { throw null; } } public Azure.Provisioning.BicepList Capabilities { get { throw null; } } public Azure.Provisioning.BicepList CommitmentPlanAssociations { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue CustomSubDomainName { get { throw null; } set { } } + public Azure.Provisioning.BicepValue DefaultProject { get { throw null; } set { } } public Azure.Provisioning.BicepValue DeletedOn { get { throw null; } } public Azure.Provisioning.BicepValue DisableLocalAuth { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnableDynamicThrottling { get { throw null; } set { } } @@ -215,6 +275,36 @@ protected override void DefineProvisionableProperties() { } public static bool operator !=(Azure.Provisioning.CognitiveServices.CognitiveServicesBuiltInRole left, Azure.Provisioning.CognitiveServices.CognitiveServicesBuiltInRole right) { throw null; } public override string ToString() { throw null; } } + public partial class CognitiveServicesCapabilityHost : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesCapabilityHost(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccount? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesCapabilityHostProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesCapabilityHost FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesCapabilityHostProperties : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesCapabilityHostProperties() { } + public Azure.Provisioning.BicepList AiServicesConnections { get { throw null; } set { } } + public Azure.Provisioning.BicepValue CapabilityHostKind { get { throw null; } set { } } + public Azure.Provisioning.BicepValue CustomerSubnet { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + public Azure.Provisioning.BicepList StorageConnections { get { throw null; } set { } } + public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + public Azure.Provisioning.BicepList ThreadStorageConnections { get { throw null; } set { } } + public Azure.Provisioning.BicepList VectorStoreConnections { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class CognitiveServicesCapacityConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesCapacityConfig() { } @@ -244,8 +334,215 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesConnection : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccount? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } + public partial class CognitiveServicesConnectionAccessKey : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionAccessKey() { } + public Azure.Provisioning.BicepValue AccessKeyId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue SecretAccessKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public enum CognitiveServicesConnectionCategory + { + PythonFeed = 0, + ContainerRegistry = 1, + Git = 2, + S3 = 3, + Snowflake = 4, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzureSqlDb")] + AzureSqlDB = 5, + AzureSynapseAnalytics = 6, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzureMySqlDb")] + AzureMySqlDB = 7, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzurePostgresDb")] + AzurePostgresDB = 8, + [System.Runtime.Serialization.DataMemberAttribute(Name="ADLSGen2")] + AdlsGen2 = 9, + Redis = 10, + ApiKey = 11, + AzureOpenAI = 12, + AIServices = 13, + CognitiveSearch = 14, + CognitiveService = 15, + CustomKeys = 16, + AzureBlob = 17, + AzureOneLake = 18, + [System.Runtime.Serialization.DataMemberAttribute(Name="CosmosDb")] + CosmosDB = 19, + [System.Runtime.Serialization.DataMemberAttribute(Name="CosmosDbMongoDbApi")] + CosmosDBMongoDBApi = 20, + AzureDataExplorer = 21, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzureMariaDb")] + AzureMariaDB = 22, + AzureDatabricksDeltaLake = 23, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzureSqlMi")] + AzureSqlMI = 24, + AzureTableStorage = 25, + AmazonRdsForOracle = 26, + AmazonRdsForSqlServer = 27, + AmazonRedshift = 28, + Db2 = 29, + Drill = 30, + GoogleBigQuery = 31, + Greenplum = 32, + Hbase = 33, + Hive = 34, + Impala = 35, + Informix = 36, + [System.Runtime.Serialization.DataMemberAttribute(Name="MariaDb")] + MariaDB = 37, + MicrosoftAccess = 38, + MySql = 39, + Netezza = 40, + Oracle = 41, + Phoenix = 42, + PostgreSql = 43, + Presto = 44, + SapOpenHub = 45, + SapBw = 46, + SapHana = 47, + SapTable = 48, + Spark = 49, + SqlServer = 50, + Sybase = 51, + Teradata = 52, + Vertica = 53, + Pinecone = 54, + Cassandra = 55, + Couchbase = 56, + [System.Runtime.Serialization.DataMemberAttribute(Name="MongoDbV2")] + MongoDBV2 = 57, + [System.Runtime.Serialization.DataMemberAttribute(Name="MongoDbAtlas")] + MongoDBAtlas = 58, + AmazonS3Compatible = 59, + FileServer = 60, + FtpServer = 61, + GoogleCloudStorage = 62, + Hdfs = 63, + OracleCloudStorage = 64, + Sftp = 65, + GenericHttp = 66, + ODataRest = 67, + Odbc = 68, + GenericRest = 69, + AmazonMws = 70, + Concur = 71, + Dynamics = 72, + DynamicsAx = 73, + DynamicsCrm = 74, + GoogleAdWords = 75, + Hubspot = 76, + Jira = 77, + Magento = 78, + Marketo = 79, + Office365 = 80, + Eloqua = 81, + Responsys = 82, + OracleServiceCloud = 83, + PayPal = 84, + QuickBooks = 85, + Salesforce = 86, + SalesforceServiceCloud = 87, + SalesforceMarketingCloud = 88, + SapCloudForCustomer = 89, + SapEcc = 90, + ServiceNow = 91, + SharePointOnlineList = 92, + Shopify = 93, + Square = 94, + WebTable = 95, + Xero = 96, + Zoho = 97, + GenericContainerRegistry = 98, + Elasticsearch = 99, + OpenAI = 100, + Serp = 101, + BingLLMSearch = 102, + Serverless = 103, + ManagedOnlineEndpoint = 104, + } + public enum CognitiveServicesConnectionGroup + { + Azure = 0, + AzureAI = 1, + Database = 2, + NoSQL = 3, + File = 4, + GenericProtocol = 5, + ServicesAndApps = 6, + } + public partial class CognitiveServicesConnectionManagedIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionManagedIdentity() { } + public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class CognitiveServicesConnectionOAuth2 : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionOAuth2() { } + public Azure.Provisioning.BicepValue AuthUri { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ClientSecret { get { throw null; } set { } } + public Azure.Provisioning.BicepValue DeveloperToken { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } + public Azure.Provisioning.BicepValue RefreshToken { get { throw null; } set { } } + public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Username { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class CognitiveServicesConnectionProperties : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionProperties() { } + public Azure.Provisioning.BicepValue Category { get { throw null; } set { } } + public Azure.Provisioning.BicepValue CreatedByWorkspaceArmId { get { throw null; } } + public Azure.Provisioning.BicepValue Error { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ExpiryOn { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Group { get { throw null; } } + public Azure.Provisioning.BicepValue IsSharedToAll { get { throw null; } set { } } + public Azure.Provisioning.BicepDictionary Metadata { get { throw null; } set { } } + public Azure.Provisioning.BicepValue PeRequirement { get { throw null; } set { } } + public Azure.Provisioning.BicepValue PeStatus { get { throw null; } set { } } + public Azure.Provisioning.BicepList SharedUserList { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Target { get { throw null; } set { } } + public Azure.Provisioning.BicepValue UseWorkspaceManagedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class CognitiveServicesConnectionServicePrincipal : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionServicePrincipal() { } + public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ClientSecret { get { throw null; } set { } } + public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class CognitiveServicesConnectionUsernamePassword : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionUsernamePassword() { } + public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } + public Azure.Provisioning.BicepValue SecurityToken { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Username { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class CognitiveServicesEncryptionScope : Azure.Provisioning.Primitives.ProvisionableResource { public CognitiveServicesEncryptionScope(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } @@ -265,6 +562,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CognitiveServicesEncryptionScopeProperties : Azure.Provisioning.CognitiveServices.ServiceAccountEncryptionProperties @@ -356,6 +655,68 @@ public CognitiveServicesPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } + public partial class CognitiveServicesProject : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesProject(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue ETag { get { throw null; } } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccount? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesProjectProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesProject FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesProjectCapabilityHost : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesProjectCapabilityHost(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesProject? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesCapabilityHostProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesProjectCapabilityHost FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesProjectConnection : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesProjectConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesProject? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesProjectConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesProjectProperties : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesProjectProperties() { } + public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } + public Azure.Provisioning.BicepValue DisplayName { get { throw null; } set { } } + public Azure.Provisioning.BicepDictionary Endpoints { get { throw null; } } + public Azure.Provisioning.BicepValue IsDefault { get { throw null; } } + public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } + } public partial class CognitiveServicesRegionSetting : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesRegionSetting() { } @@ -446,6 +807,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CommitmentPlanAccountAssociation : Azure.Provisioning.Primitives.ProvisionableResource @@ -465,6 +828,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CommitmentPlanAssociation : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -513,6 +878,12 @@ public CustomBlocklistConfig() { } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } + public partial class CustomKeysConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public CustomKeysConnectionProperties() { } + public Azure.Provisioning.BicepDictionary CredentialsKeys { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class DefenderForAISetting : Azure.Provisioning.Primitives.ProvisionableResource { public DefenderForAISetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } @@ -535,6 +906,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public enum DefenderForAISettingState @@ -570,6 +943,24 @@ public enum EncryptionScopeState Disabled = 0, Enabled = 1, } + public partial class ManagedIdentityAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public ManagedIdentityAuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionManagedIdentity Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public enum ManagedPERequirement + { + Required = 0, + NotRequired = 1, + NotApplicable = 2, + } + public enum ManagedPEStatus + { + Inactive = 0, + Active = 1, + NotApplicable = 2, + } public enum ModelLifecycleStatus { GenerallyAvailable = 0, @@ -578,6 +969,23 @@ public enum ModelLifecycleStatus Deprecating = 3, Deprecated = 4, } + public partial class NoneAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public NoneAuthTypeConnectionProperties() { } + protected override void DefineProvisionableProperties() { } + } + public partial class OAuth2AuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public OAuth2AuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionOAuth2 Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class PatAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public PatAuthTypeConnectionProperties() { } + public Azure.Provisioning.BicepValue CredentialsPat { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class RaiBlocklist : Azure.Provisioning.Primitives.ProvisionableResource { public RaiBlocklist(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } @@ -600,6 +1008,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class RaiBlocklistItem : Azure.Provisioning.Primitives.ProvisionableResource @@ -624,6 +1034,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class RaiBlocklistItemProperties : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -662,6 +1074,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class RaiPolicyContentFilter : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -708,6 +1122,12 @@ public enum RaiPolicyType UserManaged = 0, SystemManaged = 1, } + public partial class SASAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public SASAuthTypeConnectionProperties() { } + public Azure.Provisioning.BicepValue CredentialsSas { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class ServiceAccountApiKeys : Azure.Provisioning.Primitives.ProvisionableConstruct { public ServiceAccountApiKeys() { } @@ -777,6 +1197,7 @@ public enum ServiceAccountProvisioningState Succeeded = 5, [System.Runtime.Serialization.DataMemberAttribute(Name="ResolvingDNS")] ResolvingDns = 6, + Canceled = 7, } public enum ServiceAccountPublicNetworkAccess { @@ -816,11 +1237,23 @@ public ServiceAccountUserOwnedStorage() { } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } + public partial class ServicePrincipalAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public ServicePrincipalAuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionServicePrincipal Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public enum TrustedServicesByPassSelection { None = 0, AzureServices = 1, } + public partial class UsernamePasswordAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public UsernamePasswordAuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionUsernamePassword Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class UserOwnedAmlWorkspace : Azure.Provisioning.Primitives.ProvisionableConstruct { public UserOwnedAmlWorkspace() { } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.netstandard2.0.cs index 3a01a7f9aca8..55e19e3397a4 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/api/Azure.Provisioning.CognitiveServices.netstandard2.0.cs @@ -1,5 +1,10 @@ namespace Azure.Provisioning.CognitiveServices { + public partial class AadAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public AadAuthTypeConnectionProperties() { } + protected override void DefineProvisionableProperties() { } + } public partial class AbusePenalty : Azure.Provisioning.Primitives.ProvisionableConstruct { public AbusePenalty() { } @@ -13,6 +18,39 @@ public enum AbusePenaltyAction Throttle = 0, Block = 1, } + public partial class AccessKeyAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public AccessKeyAuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionAccessKey Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class AccountKeyAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public AccountKeyAuthTypeConnectionProperties() { } + public Azure.Provisioning.BicepValue CredentialsKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class AIFoundryNetworkInjection : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public AIFoundryNetworkInjection() { } + public Azure.Provisioning.BicepValue Scenario { get { throw null; } set { } } + public Azure.Provisioning.BicepValue SubnetArmId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue UseMicrosoftManagedNetwork { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public enum AIFoundryNetworkInjectionScenarioType + { + [System.Runtime.Serialization.DataMemberAttribute(Name="none")] + None = 0, + [System.Runtime.Serialization.DataMemberAttribute(Name="agent")] + Agent = 1, + } + public partial class ApiKeyAuthConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public ApiKeyAuthConnectionProperties() { } + public Azure.Provisioning.BicepValue CredentialsKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class BillingMeterInfo : Azure.Provisioning.Primitives.ProvisionableConstruct { public BillingMeterInfo() { } @@ -21,6 +59,19 @@ public BillingMeterInfo() { } public Azure.Provisioning.BicepValue Unit { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } + public enum CapabilityHostKind + { + Agents = 0, + } + public enum CapabilityHostProvisioningState + { + Succeeded = 0, + Failed = 1, + Canceled = 2, + Creating = 3, + Updating = 4, + Deleting = 5, + } public partial class CognitiveServicesAccount : Azure.Provisioning.Primitives.ProvisionableResource { public CognitiveServicesAccount(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } @@ -51,6 +102,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CognitiveServicesAccountDeployment : Azure.Provisioning.Primitives.ProvisionableResource @@ -76,6 +129,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CognitiveServicesAccountDeploymentModel : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -104,6 +159,7 @@ public CognitiveServicesAccountDeploymentProperties() { } public Azure.Provisioning.BicepValue RaiPolicyName { get { throw null; } set { } } public Azure.Provisioning.BicepList RateLimits { get { throw null; } } public Azure.Provisioning.CognitiveServices.CognitiveServicesAccountDeploymentScaleSettings ScaleSettings { get { throw null; } set { } } + public Azure.Provisioning.BicepValue SpilloverDeploymentName { get { throw null; } set { } } public Azure.Provisioning.BicepValue VersionUpgradeOption { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } @@ -149,14 +205,18 @@ public partial class CognitiveServicesAccountProperties : Azure.Provisioning.Pri { public CognitiveServicesAccountProperties() { } public Azure.Provisioning.CognitiveServices.AbusePenalty AbusePenalty { get { throw null; } } + public Azure.Provisioning.BicepList AIFoundryNetworkInjections { get { throw null; } set { } } public Azure.Provisioning.BicepList AllowedFqdnList { get { throw null; } set { } } + public Azure.Provisioning.BicepValue AllowProjectManagement { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.UserOwnedAmlWorkspace AmlWorkspace { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.ServiceAccountApiProperties ApiProperties { get { throw null; } set { } } + public Azure.Provisioning.BicepList AssociatedProjects { get { throw null; } set { } } public Azure.Provisioning.CognitiveServices.ServiceAccountCallRateLimit CallRateLimit { get { throw null; } } public Azure.Provisioning.BicepList Capabilities { get { throw null; } } public Azure.Provisioning.BicepList CommitmentPlanAssociations { get { throw null; } } public Azure.Provisioning.BicepValue CreatedOn { get { throw null; } } public Azure.Provisioning.BicepValue CustomSubDomainName { get { throw null; } set { } } + public Azure.Provisioning.BicepValue DefaultProject { get { throw null; } set { } } public Azure.Provisioning.BicepValue DeletedOn { get { throw null; } } public Azure.Provisioning.BicepValue DisableLocalAuth { get { throw null; } set { } } public Azure.Provisioning.BicepValue EnableDynamicThrottling { get { throw null; } set { } } @@ -215,6 +275,36 @@ protected override void DefineProvisionableProperties() { } public static bool operator !=(Azure.Provisioning.CognitiveServices.CognitiveServicesBuiltInRole left, Azure.Provisioning.CognitiveServices.CognitiveServicesBuiltInRole right) { throw null; } public override string ToString() { throw null; } } + public partial class CognitiveServicesCapabilityHost : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesCapabilityHost(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccount? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesCapabilityHostProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesCapabilityHost FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesCapabilityHostProperties : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesCapabilityHostProperties() { } + public Azure.Provisioning.BicepList AiServicesConnections { get { throw null; } set { } } + public Azure.Provisioning.BicepValue CapabilityHostKind { get { throw null; } set { } } + public Azure.Provisioning.BicepValue CustomerSubnet { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + public Azure.Provisioning.BicepList StorageConnections { get { throw null; } set { } } + public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + public Azure.Provisioning.BicepList ThreadStorageConnections { get { throw null; } set { } } + public Azure.Provisioning.BicepList VectorStoreConnections { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class CognitiveServicesCapacityConfig : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesCapacityConfig() { } @@ -244,8 +334,215 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesConnection : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccount? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } + public partial class CognitiveServicesConnectionAccessKey : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionAccessKey() { } + public Azure.Provisioning.BicepValue AccessKeyId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue SecretAccessKey { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public enum CognitiveServicesConnectionCategory + { + PythonFeed = 0, + ContainerRegistry = 1, + Git = 2, + S3 = 3, + Snowflake = 4, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzureSqlDb")] + AzureSqlDB = 5, + AzureSynapseAnalytics = 6, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzureMySqlDb")] + AzureMySqlDB = 7, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzurePostgresDb")] + AzurePostgresDB = 8, + [System.Runtime.Serialization.DataMemberAttribute(Name="ADLSGen2")] + AdlsGen2 = 9, + Redis = 10, + ApiKey = 11, + AzureOpenAI = 12, + AIServices = 13, + CognitiveSearch = 14, + CognitiveService = 15, + CustomKeys = 16, + AzureBlob = 17, + AzureOneLake = 18, + [System.Runtime.Serialization.DataMemberAttribute(Name="CosmosDb")] + CosmosDB = 19, + [System.Runtime.Serialization.DataMemberAttribute(Name="CosmosDbMongoDbApi")] + CosmosDBMongoDBApi = 20, + AzureDataExplorer = 21, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzureMariaDb")] + AzureMariaDB = 22, + AzureDatabricksDeltaLake = 23, + [System.Runtime.Serialization.DataMemberAttribute(Name="AzureSqlMi")] + AzureSqlMI = 24, + AzureTableStorage = 25, + AmazonRdsForOracle = 26, + AmazonRdsForSqlServer = 27, + AmazonRedshift = 28, + Db2 = 29, + Drill = 30, + GoogleBigQuery = 31, + Greenplum = 32, + Hbase = 33, + Hive = 34, + Impala = 35, + Informix = 36, + [System.Runtime.Serialization.DataMemberAttribute(Name="MariaDb")] + MariaDB = 37, + MicrosoftAccess = 38, + MySql = 39, + Netezza = 40, + Oracle = 41, + Phoenix = 42, + PostgreSql = 43, + Presto = 44, + SapOpenHub = 45, + SapBw = 46, + SapHana = 47, + SapTable = 48, + Spark = 49, + SqlServer = 50, + Sybase = 51, + Teradata = 52, + Vertica = 53, + Pinecone = 54, + Cassandra = 55, + Couchbase = 56, + [System.Runtime.Serialization.DataMemberAttribute(Name="MongoDbV2")] + MongoDBV2 = 57, + [System.Runtime.Serialization.DataMemberAttribute(Name="MongoDbAtlas")] + MongoDBAtlas = 58, + AmazonS3Compatible = 59, + FileServer = 60, + FtpServer = 61, + GoogleCloudStorage = 62, + Hdfs = 63, + OracleCloudStorage = 64, + Sftp = 65, + GenericHttp = 66, + ODataRest = 67, + Odbc = 68, + GenericRest = 69, + AmazonMws = 70, + Concur = 71, + Dynamics = 72, + DynamicsAx = 73, + DynamicsCrm = 74, + GoogleAdWords = 75, + Hubspot = 76, + Jira = 77, + Magento = 78, + Marketo = 79, + Office365 = 80, + Eloqua = 81, + Responsys = 82, + OracleServiceCloud = 83, + PayPal = 84, + QuickBooks = 85, + Salesforce = 86, + SalesforceServiceCloud = 87, + SalesforceMarketingCloud = 88, + SapCloudForCustomer = 89, + SapEcc = 90, + ServiceNow = 91, + SharePointOnlineList = 92, + Shopify = 93, + Square = 94, + WebTable = 95, + Xero = 96, + Zoho = 97, + GenericContainerRegistry = 98, + Elasticsearch = 99, + OpenAI = 100, + Serp = 101, + BingLLMSearch = 102, + Serverless = 103, + ManagedOnlineEndpoint = 104, + } + public enum CognitiveServicesConnectionGroup + { + Azure = 0, + AzureAI = 1, + Database = 2, + NoSQL = 3, + File = 4, + GenericProtocol = 5, + ServicesAndApps = 6, + } + public partial class CognitiveServicesConnectionManagedIdentity : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionManagedIdentity() { } + public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class CognitiveServicesConnectionOAuth2 : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionOAuth2() { } + public Azure.Provisioning.BicepValue AuthUri { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ClientSecret { get { throw null; } set { } } + public Azure.Provisioning.BicepValue DeveloperToken { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } + public Azure.Provisioning.BicepValue RefreshToken { get { throw null; } set { } } + public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Username { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class CognitiveServicesConnectionProperties : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionProperties() { } + public Azure.Provisioning.BicepValue Category { get { throw null; } set { } } + public Azure.Provisioning.BicepValue CreatedByWorkspaceArmId { get { throw null; } } + public Azure.Provisioning.BicepValue Error { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ExpiryOn { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Group { get { throw null; } } + public Azure.Provisioning.BicepValue IsSharedToAll { get { throw null; } set { } } + public Azure.Provisioning.BicepDictionary Metadata { get { throw null; } set { } } + public Azure.Provisioning.BicepValue PeRequirement { get { throw null; } set { } } + public Azure.Provisioning.BicepValue PeStatus { get { throw null; } set { } } + public Azure.Provisioning.BicepList SharedUserList { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Target { get { throw null; } set { } } + public Azure.Provisioning.BicepValue UseWorkspaceManagedIdentity { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class CognitiveServicesConnectionServicePrincipal : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionServicePrincipal() { } + public Azure.Provisioning.BicepValue ClientId { get { throw null; } set { } } + public Azure.Provisioning.BicepValue ClientSecret { get { throw null; } set { } } + public Azure.Provisioning.BicepValue TenantId { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class CognitiveServicesConnectionUsernamePassword : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesConnectionUsernamePassword() { } + public Azure.Provisioning.BicepValue Password { get { throw null; } set { } } + public Azure.Provisioning.BicepValue SecurityToken { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Username { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class CognitiveServicesEncryptionScope : Azure.Provisioning.Primitives.ProvisionableResource { public CognitiveServicesEncryptionScope(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } @@ -265,6 +562,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CognitiveServicesEncryptionScopeProperties : Azure.Provisioning.CognitiveServices.ServiceAccountEncryptionProperties @@ -356,6 +655,68 @@ public CognitiveServicesPrivateLinkServiceConnectionState() { } public Azure.Provisioning.BicepValue Status { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } + public partial class CognitiveServicesProject : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesProject(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue ETag { get { throw null; } } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.Resources.ManagedServiceIdentity Identity { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Location { get { throw null; } set { } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesAccount? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesProjectProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + public Azure.Provisioning.BicepDictionary Tags { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesProject FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesProjectCapabilityHost : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesProjectCapabilityHost(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesProject? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesCapabilityHostProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesProjectCapabilityHost FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesProjectConnection : Azure.Provisioning.Primitives.ProvisionableResource + { + public CognitiveServicesProjectConnection(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } + public Azure.Provisioning.BicepValue Id { get { throw null; } } + public Azure.Provisioning.BicepValue Name { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesProject? Parent { get { throw null; } set { } } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties Properties { get { throw null; } set { } } + public Azure.Provisioning.Resources.SystemData SystemData { get { throw null; } } + protected override void DefineProvisionableProperties() { } + public static Azure.Provisioning.CognitiveServices.CognitiveServicesProjectConnection FromExisting(string bicepIdentifier, string? resourceVersion = null) { throw null; } + public static partial class ResourceVersions + { + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; + } + } + public partial class CognitiveServicesProjectProperties : Azure.Provisioning.Primitives.ProvisionableConstruct + { + public CognitiveServicesProjectProperties() { } + public Azure.Provisioning.BicepValue Description { get { throw null; } set { } } + public Azure.Provisioning.BicepValue DisplayName { get { throw null; } set { } } + public Azure.Provisioning.BicepDictionary Endpoints { get { throw null; } } + public Azure.Provisioning.BicepValue IsDefault { get { throw null; } } + public Azure.Provisioning.BicepValue ProvisioningState { get { throw null; } } + protected override void DefineProvisionableProperties() { } + } public partial class CognitiveServicesRegionSetting : Azure.Provisioning.Primitives.ProvisionableConstruct { public CognitiveServicesRegionSetting() { } @@ -446,6 +807,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CommitmentPlanAccountAssociation : Azure.Provisioning.Primitives.ProvisionableResource @@ -465,6 +828,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class CommitmentPlanAssociation : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -513,6 +878,12 @@ public CustomBlocklistConfig() { } public Azure.Provisioning.BicepValue Source { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } + public partial class CustomKeysConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public CustomKeysConnectionProperties() { } + public Azure.Provisioning.BicepDictionary CredentialsKeys { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class DefenderForAISetting : Azure.Provisioning.Primitives.ProvisionableResource { public DefenderForAISetting(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } @@ -535,6 +906,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public enum DefenderForAISettingState @@ -570,6 +943,24 @@ public enum EncryptionScopeState Disabled = 0, Enabled = 1, } + public partial class ManagedIdentityAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public ManagedIdentityAuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionManagedIdentity Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public enum ManagedPERequirement + { + Required = 0, + NotRequired = 1, + NotApplicable = 2, + } + public enum ManagedPEStatus + { + Inactive = 0, + Active = 1, + NotApplicable = 2, + } public enum ModelLifecycleStatus { GenerallyAvailable = 0, @@ -578,6 +969,23 @@ public enum ModelLifecycleStatus Deprecating = 3, Deprecated = 4, } + public partial class NoneAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public NoneAuthTypeConnectionProperties() { } + protected override void DefineProvisionableProperties() { } + } + public partial class OAuth2AuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public OAuth2AuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionOAuth2 Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } + public partial class PatAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public PatAuthTypeConnectionProperties() { } + public Azure.Provisioning.BicepValue CredentialsPat { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class RaiBlocklist : Azure.Provisioning.Primitives.ProvisionableResource { public RaiBlocklist(string bicepIdentifier, string? resourceVersion = null) : base (default(string), default(Azure.Core.ResourceType), default(string)) { } @@ -600,6 +1008,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class RaiBlocklistItem : Azure.Provisioning.Primitives.ProvisionableResource @@ -624,6 +1034,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class RaiBlocklistItemProperties : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -662,6 +1074,8 @@ public static partial class ResourceVersions public static readonly string V2022_12_01; public static readonly string V2023_05_01; public static readonly string V2024_10_01; + public static readonly string V2025_06_01; + public static readonly string V2025_09_01; } } public partial class RaiPolicyContentFilter : Azure.Provisioning.Primitives.ProvisionableConstruct @@ -708,6 +1122,12 @@ public enum RaiPolicyType UserManaged = 0, SystemManaged = 1, } + public partial class SASAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public SASAuthTypeConnectionProperties() { } + public Azure.Provisioning.BicepValue CredentialsSas { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class ServiceAccountApiKeys : Azure.Provisioning.Primitives.ProvisionableConstruct { public ServiceAccountApiKeys() { } @@ -777,6 +1197,7 @@ public enum ServiceAccountProvisioningState Succeeded = 5, [System.Runtime.Serialization.DataMemberAttribute(Name="ResolvingDNS")] ResolvingDns = 6, + Canceled = 7, } public enum ServiceAccountPublicNetworkAccess { @@ -816,11 +1237,23 @@ public ServiceAccountUserOwnedStorage() { } public Azure.Provisioning.BicepValue ResourceId { get { throw null; } set { } } protected override void DefineProvisionableProperties() { } } + public partial class ServicePrincipalAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public ServicePrincipalAuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionServicePrincipal Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public enum TrustedServicesByPassSelection { None = 0, AzureServices = 1, } + public partial class UsernamePasswordAuthTypeConnectionProperties : Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionProperties + { + public UsernamePasswordAuthTypeConnectionProperties() { } + public Azure.Provisioning.CognitiveServices.CognitiveServicesConnectionUsernamePassword Credentials { get { throw null; } set { } } + protected override void DefineProvisionableProperties() { } + } public partial class UserOwnedAmlWorkspace : Azure.Provisioning.Primitives.ProvisionableConstruct { public UserOwnedAmlWorkspace() { } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccount.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccount.cs index 662325868c7b..bb0f5d7180f5 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccount.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccount.cs @@ -131,7 +131,7 @@ public SystemData SystemData /// /// Version of the CognitiveServicesAccount. public CognitiveServicesAccount(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts", resourceVersion ?? "2025-09-01") { } @@ -140,6 +140,7 @@ public CognitiveServicesAccount(string bicepIdentifier, string? resourceVersion /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _location = DefineProperty("Location", ["location"], isRequired: true); _identity = DefineModelProperty("Identity", ["identity"]); @@ -157,6 +158,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccountDeployment.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccountDeployment.cs index 6b2006fb569e..c2b4b9a5719c 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccountDeployment.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesAccountDeployment.cs @@ -108,7 +108,7 @@ public CognitiveServicesAccount? Parent /// /// Version of the CognitiveServicesAccountDeployment. public CognitiveServicesAccountDeployment(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/deployments", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/deployments", resourceVersion ?? "2025-09-01") { } @@ -118,6 +118,7 @@ public CognitiveServicesAccountDeployment(string bicepIdentifier, string? resour /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _properties = DefineModelProperty("Properties", ["properties"]); _sku = DefineModelProperty("Sku", ["sku"]); @@ -133,6 +134,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCapabilityHost.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCapabilityHost.cs new file mode 100644 index 000000000000..0711db555d35 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCapabilityHost.cs @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Core; +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using Azure.Provisioning.Resources; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// CognitiveServicesCapabilityHost. +/// +public partial class CognitiveServicesCapabilityHost : ProvisionableResource +{ + /// + /// The name of the capability host associated with the Cognitive Services + /// Resource. + /// + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; + + /// + /// [Required] Additional attributes of the entity. + /// + public CognitiveServicesCapabilityHostProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CognitiveServicesCapabilityHostProperties? _properties; + + /// + /// Gets the Id. + /// + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; + + /// + /// Gets the SystemData. + /// + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; + + /// + /// Gets or sets a reference to the parent CognitiveServicesAccount. + /// + public CognitiveServicesAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; + + /// + /// Creates a new CognitiveServicesCapabilityHost. + /// + /// + /// The the Bicep identifier name of the CognitiveServicesCapabilityHost + /// resource. This can be used to refer to the resource in expressions, + /// but is not the Azure name of the resource. This value can contain + /// letters, numbers, and underscores. + /// + /// Version of the CognitiveServicesCapabilityHost. + public CognitiveServicesCapabilityHost(string bicepIdentifier, string? resourceVersion = default) + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/capabilityHosts", resourceVersion ?? "2025-09-01") + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesCapabilityHost. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); + } + + /// + /// Supported CognitiveServicesCapabilityHost resource versions. + /// + public static class ResourceVersions + { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + } + + /// + /// Creates a reference to an existing CognitiveServicesCapabilityHost. + /// + /// + /// The the Bicep identifier name of the CognitiveServicesCapabilityHost + /// resource. This can be used to refer to the resource in expressions, + /// but is not the Azure name of the resource. This value can contain + /// letters, numbers, and underscores. + /// + /// Version of the CognitiveServicesCapabilityHost. + /// The existing CognitiveServicesCapabilityHost resource. + public static CognitiveServicesCapabilityHost FromExisting(string bicepIdentifier, string? resourceVersion = default) => + new(bicepIdentifier, resourceVersion) { IsExistingResource = true }; +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCommitmentPlan.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCommitmentPlan.cs index 059ea58f2740..8a14b956921b 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCommitmentPlan.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesCommitmentPlan.cs @@ -118,7 +118,7 @@ public SystemData SystemData /// /// Version of the CognitiveServicesCommitmentPlan. public CognitiveServicesCommitmentPlan(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/commitmentPlans", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/commitmentPlans", resourceVersion ?? "2025-09-01") { } @@ -128,6 +128,7 @@ public CognitiveServicesCommitmentPlan(string bicepIdentifier, string? resourceV /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _kind = DefineProperty("Kind", ["kind"]); _location = DefineProperty("Location", ["location"]); @@ -144,6 +145,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesConnection.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesConnection.cs new file mode 100644 index 000000000000..f2c336a2d0b0 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesConnection.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Core; +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using Azure.Provisioning.Resources; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// CognitiveServicesConnection. +/// +public partial class CognitiveServicesConnection : ProvisionableResource +{ + /// + /// Friendly name of the connection. + /// + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; + + /// + /// Connection property base schema. Please note + /// Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionProperties + /// is the base class. According to the scenario, a derived class of the + /// base class might need to be assigned here, or this property needs to + /// be casted to one of the possible derived classes. The + /// available derived classes include + /// Azure.ResourceManager.CognitiveServices.Models.AadAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.AccessKeyAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.AccountKeyAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.ApiKeyAuthConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.CustomKeysConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.ManagedIdentityAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.NoneAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.OAuth2AuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.PatAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.SASAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.ServicePrincipalAuthTypeConnectionProperties + /// and + /// Azure.ResourceManager.CognitiveServices.Models.UsernamePasswordAuthTypeConnectionProperties. + /// + public CognitiveServicesConnectionProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CognitiveServicesConnectionProperties? _properties; + + /// + /// Gets the Id. + /// + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; + + /// + /// Gets the SystemData. + /// + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; + + /// + /// Gets or sets a reference to the parent CognitiveServicesAccount. + /// + public CognitiveServicesAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; + + /// + /// Creates a new CognitiveServicesConnection. + /// + /// + /// The the Bicep identifier name of the CognitiveServicesConnection + /// resource. This can be used to refer to the resource in expressions, + /// but is not the Azure name of the resource. This value can contain + /// letters, numbers, and underscores. + /// + /// Version of the CognitiveServicesConnection. + public CognitiveServicesConnection(string bicepIdentifier, string? resourceVersion = default) + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/connections", resourceVersion ?? "2025-09-01") + { + } + + /// + /// Define all the provisionable properties of CognitiveServicesConnection. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); + } + + /// + /// Supported CognitiveServicesConnection resource versions. + /// + public static class ResourceVersions + { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + } + + /// + /// Creates a reference to an existing CognitiveServicesConnection. + /// + /// + /// The the Bicep identifier name of the CognitiveServicesConnection + /// resource. This can be used to refer to the resource in expressions, + /// but is not the Azure name of the resource. This value can contain + /// letters, numbers, and underscores. + /// + /// Version of the CognitiveServicesConnection. + /// The existing CognitiveServicesConnection resource. + public static CognitiveServicesConnection FromExisting(string bicepIdentifier, string? resourceVersion = default) => + new(bicepIdentifier, resourceVersion) { IsExistingResource = true }; +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesEncryptionScope.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesEncryptionScope.cs index fe9fdb288100..a5e585f1bf8d 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesEncryptionScope.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesEncryptionScope.cs @@ -98,7 +98,7 @@ public CognitiveServicesAccount? Parent /// /// Version of the CognitiveServicesEncryptionScope. public CognitiveServicesEncryptionScope(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/encryptionScopes", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/encryptionScopes", resourceVersion ?? "2025-09-01") { } @@ -108,6 +108,7 @@ public CognitiveServicesEncryptionScope(string bicepIdentifier, string? resource /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _properties = DefineModelProperty("Properties", ["properties"]); _tags = DefineDictionaryProperty("Tags", ["tags"]); @@ -122,6 +123,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProject.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProject.cs new file mode 100644 index 000000000000..cd0b56bca7b1 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProject.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure; +using Azure.Core; +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using Azure.Provisioning.Resources; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// CognitiveServicesProject. +/// +public partial class CognitiveServicesProject : ProvisionableResource +{ + /// + /// The name of Cognitive Services account's project. + /// + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; + + /// + /// Gets or sets the Location. + /// + public BicepValue Location + { + get { Initialize(); return _location!; } + set { Initialize(); _location!.Assign(value); } + } + private BicepValue? _location; + + /// + /// Identity for the resource. + /// + public ManagedServiceIdentity Identity + { + get { Initialize(); return _identity!; } + set { Initialize(); AssignOrReplace(ref _identity, value); } + } + private ManagedServiceIdentity? _identity; + + /// + /// Properties of Cognitive Services project. + /// + public CognitiveServicesProjectProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CognitiveServicesProjectProperties? _properties; + + /// + /// Gets or sets the Tags. + /// + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; + + /// + /// Resource Etag. + /// + public BicepValue ETag + { + get { Initialize(); return _eTag!; } + } + private BicepValue? _eTag; + + /// + /// Gets the Id. + /// + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; + + /// + /// Gets the SystemData. + /// + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; + + /// + /// Gets or sets a reference to the parent CognitiveServicesAccount. + /// + public CognitiveServicesAccount? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; + + /// + /// Creates a new CognitiveServicesProject. + /// + /// + /// The the Bicep identifier name of the CognitiveServicesProject resource. + /// This can be used to refer to the resource in expressions, but is not + /// the Azure name of the resource. This value can contain letters, + /// numbers, and underscores. + /// + /// Version of the CognitiveServicesProject. + public CognitiveServicesProject(string bicepIdentifier, string? resourceVersion = default) + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/projects", resourceVersion ?? "2025-09-01") + { + } + + /// + /// Define all the provisionable properties of CognitiveServicesProject. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isRequired: true); + _location = DefineProperty("Location", ["location"], isRequired: true); + _identity = DefineModelProperty("Identity", ["identity"]); + _properties = DefineModelProperty("Properties", ["properties"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + _eTag = DefineProperty("ETag", ["etag"], isOutput: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); + } + + /// + /// Supported CognitiveServicesProject resource versions. + /// + public static class ResourceVersions + { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + } + + /// + /// Creates a reference to an existing CognitiveServicesProject. + /// + /// + /// The the Bicep identifier name of the CognitiveServicesProject resource. + /// This can be used to refer to the resource in expressions, but is not + /// the Azure name of the resource. This value can contain letters, + /// numbers, and underscores. + /// + /// Version of the CognitiveServicesProject. + /// The existing CognitiveServicesProject resource. + public static CognitiveServicesProject FromExisting(string bicepIdentifier, string? resourceVersion = default) => + new(bicepIdentifier, resourceVersion) { IsExistingResource = true }; +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProjectCapabilityHost.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProjectCapabilityHost.cs new file mode 100644 index 000000000000..a1c28dad0694 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProjectCapabilityHost.cs @@ -0,0 +1,129 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Core; +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using Azure.Provisioning.Resources; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// CognitiveServicesProjectCapabilityHost. +/// +public partial class CognitiveServicesProjectCapabilityHost : ProvisionableResource +{ + /// + /// The name of the capability host associated with the Cognitive Services + /// Resource. + /// + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; + + /// + /// [Required] Additional attributes of the entity. + /// + public CognitiveServicesCapabilityHostProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CognitiveServicesCapabilityHostProperties? _properties; + + /// + /// Gets the Id. + /// + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; + + /// + /// Gets the SystemData. + /// + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; + + /// + /// Gets or sets a reference to the parent CognitiveServicesProject. + /// + public CognitiveServicesProject? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; + + /// + /// Creates a new CognitiveServicesProjectCapabilityHost. + /// + /// + /// The the Bicep identifier name of the + /// CognitiveServicesProjectCapabilityHost resource. This can be used to + /// refer to the resource in expressions, but is not the Azure name of the + /// resource. This value can contain letters, numbers, and underscores. + /// + /// Version of the CognitiveServicesProjectCapabilityHost. + public CognitiveServicesProjectCapabilityHost(string bicepIdentifier, string? resourceVersion = default) + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/projects/capabilityHosts", resourceVersion ?? "2025-09-01") + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesProjectCapabilityHost. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); + } + + /// + /// Supported CognitiveServicesProjectCapabilityHost resource versions. + /// + public static class ResourceVersions + { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + } + + /// + /// Creates a reference to an existing + /// CognitiveServicesProjectCapabilityHost. + /// + /// + /// The the Bicep identifier name of the + /// CognitiveServicesProjectCapabilityHost resource. This can be used to + /// refer to the resource in expressions, but is not the Azure name of the + /// resource. This value can contain letters, numbers, and underscores. + /// + /// Version of the CognitiveServicesProjectCapabilityHost. + /// The existing CognitiveServicesProjectCapabilityHost resource. + public static CognitiveServicesProjectCapabilityHost FromExisting(string bicepIdentifier, string? resourceVersion = default) => + new(bicepIdentifier, resourceVersion) { IsExistingResource = true }; +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProjectConnection.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProjectConnection.cs new file mode 100644 index 000000000000..35d2203294e9 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CognitiveServicesProjectConnection.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Core; +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using Azure.Provisioning.Resources; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// CognitiveServicesProjectConnection. +/// +public partial class CognitiveServicesProjectConnection : ProvisionableResource +{ + /// + /// Friendly name of the connection. + /// + public BicepValue Name + { + get { Initialize(); return _name!; } + set { Initialize(); _name!.Assign(value); } + } + private BicepValue? _name; + + /// + /// Connection property base schema. Please note + /// Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionProperties + /// is the base class. According to the scenario, a derived class of the + /// base class might need to be assigned here, or this property needs to + /// be casted to one of the possible derived classes. The + /// available derived classes include + /// Azure.ResourceManager.CognitiveServices.Models.AadAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.AccessKeyAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.AccountKeyAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.ApiKeyAuthConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.CustomKeysConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.ManagedIdentityAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.NoneAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.OAuth2AuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.PatAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.SASAuthTypeConnectionProperties, + /// Azure.ResourceManager.CognitiveServices.Models.ServicePrincipalAuthTypeConnectionProperties + /// and + /// Azure.ResourceManager.CognitiveServices.Models.UsernamePasswordAuthTypeConnectionProperties. + /// + public CognitiveServicesConnectionProperties Properties + { + get { Initialize(); return _properties!; } + set { Initialize(); AssignOrReplace(ref _properties, value); } + } + private CognitiveServicesConnectionProperties? _properties; + + /// + /// Gets the Id. + /// + public BicepValue Id + { + get { Initialize(); return _id!; } + } + private BicepValue? _id; + + /// + /// Gets the SystemData. + /// + public SystemData SystemData + { + get { Initialize(); return _systemData!; } + } + private SystemData? _systemData; + + /// + /// Gets or sets a reference to the parent CognitiveServicesProject. + /// + public CognitiveServicesProject? Parent + { + get { Initialize(); return _parent!.Value; } + set { Initialize(); _parent!.Value = value; } + } + private ResourceReference? _parent; + + /// + /// Creates a new CognitiveServicesProjectConnection. + /// + /// + /// The the Bicep identifier name of the CognitiveServicesProjectConnection + /// resource. This can be used to refer to the resource in expressions, + /// but is not the Azure name of the resource. This value can contain + /// letters, numbers, and underscores. + /// + /// Version of the CognitiveServicesProjectConnection. + public CognitiveServicesProjectConnection(string bicepIdentifier, string? resourceVersion = default) + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/projects/connections", resourceVersion ?? "2025-09-01") + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesProjectConnection. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _name = DefineProperty("Name", ["name"], isRequired: true); + _properties = DefineModelProperty("Properties", ["properties"], isRequired: true); + _id = DefineProperty("Id", ["id"], isOutput: true); + _systemData = DefineModelProperty("SystemData", ["systemData"], isOutput: true); + _parent = DefineResource("Parent", ["parent"], isRequired: true); + } + + /// + /// Supported CognitiveServicesProjectConnection resource versions. + /// + public static class ResourceVersions + { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + } + + /// + /// Creates a reference to an existing CognitiveServicesProjectConnection. + /// + /// + /// The the Bicep identifier name of the CognitiveServicesProjectConnection + /// resource. This can be used to refer to the resource in expressions, + /// but is not the Azure name of the resource. This value can contain + /// letters, numbers, and underscores. + /// + /// Version of the CognitiveServicesProjectConnection. + /// The existing CognitiveServicesProjectConnection resource. + public static CognitiveServicesProjectConnection FromExisting(string bicepIdentifier, string? resourceVersion = default) => + new(bicepIdentifier, resourceVersion) { IsExistingResource = true }; +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlan.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlan.cs index 7f03caebed43..3f8ffd1d2d9d 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlan.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlan.cs @@ -128,7 +128,7 @@ public CognitiveServicesAccount? Parent /// /// Version of the CommitmentPlan. public CommitmentPlan(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/commitmentPlans", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/commitmentPlans", resourceVersion ?? "2025-09-01") { } @@ -137,6 +137,7 @@ public CommitmentPlan(string bicepIdentifier, string? resourceVersion = default) /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _kind = DefineProperty("Kind", ["kind"]); _location = DefineProperty("Location", ["location"]); @@ -154,6 +155,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlanAccountAssociation.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlanAccountAssociation.cs index cc77fdff9906..71b73a723840 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlanAccountAssociation.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/CommitmentPlanAccountAssociation.cs @@ -98,7 +98,7 @@ public CognitiveServicesCommitmentPlan? Parent /// /// Version of the CommitmentPlanAccountAssociation. public CommitmentPlanAccountAssociation(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/commitmentPlans/accountAssociations", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/commitmentPlans/accountAssociations", resourceVersion ?? "2025-09-01") { } @@ -108,6 +108,7 @@ public CommitmentPlanAccountAssociation(string bicepIdentifier, string? resource /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _accountId = DefineProperty("AccountId", ["properties", "accountId"]); _tags = DefineDictionaryProperty("Tags", ["tags"]); @@ -122,6 +123,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/DefenderForAISetting.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/DefenderForAISetting.cs index 938f0b0fbe6c..6de04926a5d9 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/DefenderForAISetting.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/DefenderForAISetting.cs @@ -97,7 +97,7 @@ public CognitiveServicesAccount? Parent /// /// Version of the DefenderForAISetting. public DefenderForAISetting(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/defenderForAISettings", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/defenderForAISettings", resourceVersion ?? "2025-09-01") { } @@ -106,6 +106,7 @@ public DefenderForAISetting(string bicepIdentifier, string? resourceVersion = de /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _state = DefineProperty("State", ["properties", "state"]); _tags = DefineDictionaryProperty("Tags", ["tags"]); @@ -120,6 +121,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AIFoundryNetworkInjection.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AIFoundryNetworkInjection.cs new file mode 100644 index 000000000000..61cb3049336e --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AIFoundryNetworkInjection.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Core; +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// Specifies in AI Foundry where virtual network injection occurs to secure +/// scenarios like Agents entirely within the user's private network, +/// eliminating public internet exposure while maintaining control over +/// network configurations and resources. +/// +public partial class AIFoundryNetworkInjection : ProvisionableConstruct +{ + /// + /// Specifies what features in AI Foundry network injection applies to. + /// Currently only supports 'agent' for agent scenarios. + /// 'none' means no network injection. + /// + public BicepValue Scenario + { + get { Initialize(); return _scenario!; } + set { Initialize(); _scenario!.Assign(value); } + } + private BicepValue? _scenario; + + /// + /// Specify the subnet for which your Agent Client is injected into. + /// + public BicepValue SubnetArmId + { + get { Initialize(); return _subnetArmId!; } + set { Initialize(); _subnetArmId!.Assign(value); } + } + private BicepValue? _subnetArmId; + + /// + /// Boolean to enable Microsoft Managed Network for subnet delegation. + /// + public BicepValue UseMicrosoftManagedNetwork + { + get { Initialize(); return _useMicrosoftManagedNetwork!; } + set { Initialize(); _useMicrosoftManagedNetwork!.Assign(value); } + } + private BicepValue? _useMicrosoftManagedNetwork; + + /// + /// Creates a new AIFoundryNetworkInjection. + /// + public AIFoundryNetworkInjection() + { + } + + /// + /// Define all the provisionable properties of AIFoundryNetworkInjection. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _scenario = DefineProperty("Scenario", ["scenario"]); + _subnetArmId = DefineProperty("SubnetArmId", ["subnetArmId"]); + _useMicrosoftManagedNetwork = DefineProperty("UseMicrosoftManagedNetwork", ["useMicrosoftManagedNetwork"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AIFoundryNetworkInjectionScenarioType.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AIFoundryNetworkInjectionScenarioType.cs new file mode 100644 index 000000000000..67f63b511d9b --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AIFoundryNetworkInjectionScenarioType.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +using System.Runtime.Serialization; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// Specifies what features in AI Foundry network injection applies to. +/// Currently only supports 'agent' for agent scenarios. +/// 'none' means no network injection. +/// +public enum AIFoundryNetworkInjectionScenarioType +{ + /// + /// none. + /// + [DataMember(Name = "none")] + None, + + /// + /// agent. + /// + [DataMember(Name = "agent")] + Agent, +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AadAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AadAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..5a23793cf9dd --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AadAuthTypeConnectionProperties.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// This connection type covers the AAD auth for any applicable Azure service. +/// +public partial class AadAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Creates a new AadAuthTypeConnectionProperties. + /// + public AadAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// AadAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "AAD"); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AccessKeyAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AccessKeyAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..3ae07a596c85 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AccessKeyAuthTypeConnectionProperties.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The AccessKeyAuthTypeConnectionProperties. +/// +public partial class AccessKeyAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Gets or sets the credentials. + /// + public CognitiveServicesConnectionAccessKey Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private CognitiveServicesConnectionAccessKey? _credentials; + + /// + /// Creates a new AccessKeyAuthTypeConnectionProperties. + /// + public AccessKeyAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// AccessKeyAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "AccessKey"); + _credentials = DefineModelProperty("Credentials", ["credentials"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AccountKeyAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AccountKeyAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..9debb01324a5 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/AccountKeyAuthTypeConnectionProperties.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// This connection type covers the account key connection for Azure storage. +/// +public partial class AccountKeyAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Gets or sets the credentials key. + /// + public BicepValue CredentialsKey + { + get { Initialize(); return _credentialsKey!; } + set { Initialize(); _credentialsKey!.Assign(value); } + } + private BicepValue? _credentialsKey; + + /// + /// Creates a new AccountKeyAuthTypeConnectionProperties. + /// + public AccountKeyAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// AccountKeyAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "AccountKey"); + _credentialsKey = DefineProperty("CredentialsKey", ["credentials", "key"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ApiKeyAuthConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ApiKeyAuthConnectionProperties.cs new file mode 100644 index 000000000000..7a26a276780d --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ApiKeyAuthConnectionProperties.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// This connection type covers the generic ApiKey auth connection categories, +/// for examples: AzureOpenAI: Category:= +/// AzureOpenAI AuthType:= ApiKey (as type discriminator) +/// Credentials:= {ApiKey} as .ApiKey +/// Target:= {ApiBase} +/// CognitiveService: Category:= +/// CognitiveService AuthType:= ApiKey (as type +/// discriminator) Credentials:= {SubscriptionKey} as ApiKey +/// Target:= ServiceRegion={serviceRegion} +/// CognitiveSearch: Category:= +/// CognitiveSearch AuthType:= ApiKey (as type discriminator) +/// Credentials:= {Key} as ApiKey Target:= +/// {Endpoint} Use Metadata property bag for +/// ApiType, ApiVersion, Kind and other metadata fields +/// +public partial class ApiKeyAuthConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Gets or sets the credentials key. + /// + public BicepValue CredentialsKey + { + get { Initialize(); return _credentialsKey!; } + set { Initialize(); _credentialsKey!.Assign(value); } + } + private BicepValue? _credentialsKey; + + /// + /// Creates a new ApiKeyAuthConnectionProperties. + /// + public ApiKeyAuthConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// ApiKeyAuthConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "ApiKey"); + _credentialsKey = DefineProperty("CredentialsKey", ["credentials", "key"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CapabilityHostKind.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CapabilityHostKind.cs new file mode 100644 index 000000000000..3a5bd794c670 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CapabilityHostKind.cs @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The CapabilityHostKind. +/// +public enum CapabilityHostKind +{ + /// + /// Agents. + /// + Agents, +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CapabilityHostProvisioningState.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CapabilityHostProvisioningState.cs new file mode 100644 index 000000000000..fa2f9ef3f13e --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CapabilityHostProvisioningState.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// Provisioning state of capability host. +/// +public enum CapabilityHostProvisioningState +{ + /// + /// Succeeded. + /// + Succeeded, + + /// + /// Failed. + /// + Failed, + + /// + /// Canceled. + /// + Canceled, + + /// + /// Creating. + /// + Creating, + + /// + /// Updating. + /// + Updating, + + /// + /// Deleting. + /// + Deleting, +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs index 711f9d3e343c..6cd11186417b 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountDeploymentProperties.cs @@ -133,6 +133,18 @@ public BicepValue ParentDeploymentName } private BicepValue? _parentDeploymentName; + /// + /// Specifies the deployment name that should serve requests when the + /// request would have otherwise been throttled due to reaching current + /// deployment throughput limit. + /// + public BicepValue SpilloverDeploymentName + { + get { Initialize(); return _spilloverDeploymentName!; } + set { Initialize(); _spilloverDeploymentName!.Assign(value); } + } + private BicepValue? _spilloverDeploymentName; + /// /// Creates a new CognitiveServicesAccountDeploymentProperties. /// @@ -159,5 +171,6 @@ protected override void DefineProvisionableProperties() _currentCapacity = DefineProperty("CurrentCapacity", ["currentCapacity"]); _capacitySettings = DefineModelProperty("CapacitySettings", ["capacitySettings"]); _parentDeploymentName = DefineProperty("ParentDeploymentName", ["parentDeploymentName"]); + _spilloverDeploymentName = DefineProperty("SpilloverDeploymentName", ["spilloverDeploymentName"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs index 0554d57b7f77..c01e0f9088aa 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesAccountProperties.cs @@ -119,7 +119,7 @@ public BicepList UserOwnedStorage private BicepList? _userOwnedStorage; /// - /// The user owned AML workspace properties. + /// The user owned AML account properties. /// public UserOwnedAmlWorkspace AmlWorkspace { @@ -300,6 +300,50 @@ public RaiMonitorConfig RaiMonitorConfig } private RaiMonitorConfig? _raiMonitorConfig; + /// + /// Gets the ai foundry network injections. + /// + public BicepList AIFoundryNetworkInjections + { + get { Initialize(); return _aIFoundryNetworkInjections!; } + set { Initialize(); _aIFoundryNetworkInjections!.Assign(value); } + } + private BicepList? _aIFoundryNetworkInjections; + + /// + /// Specifies whether this resource support project management as child + /// resources, used as containers for access management, data isolation + /// and cost in AI Foundry. + /// + public BicepValue AllowProjectManagement + { + get { Initialize(); return _allowProjectManagement!; } + set { Initialize(); _allowProjectManagement!.Assign(value); } + } + private BicepValue? _allowProjectManagement; + + /// + /// Specifies the project, by project name, that is targeted when data + /// plane endpoints are called without a project parameter. + /// + public BicepValue DefaultProject + { + get { Initialize(); return _defaultProject!; } + set { Initialize(); _defaultProject!.Assign(value); } + } + private BicepValue? _defaultProject; + + /// + /// Specifies the projects, by project name, that are associated with this + /// resource. + /// + public BicepList AssociatedProjects + { + get { Initialize(); return _associatedProjects!; } + set { Initialize(); _associatedProjects!.Assign(value); } + } + private BicepList? _associatedProjects; + /// /// Creates a new CognitiveServicesAccountProperties. /// @@ -343,5 +387,9 @@ protected override void DefineProvisionableProperties() _commitmentPlanAssociations = DefineListProperty("CommitmentPlanAssociations", ["commitmentPlanAssociations"], isOutput: true); _abusePenalty = DefineModelProperty("AbusePenalty", ["abusePenalty"], isOutput: true); _raiMonitorConfig = DefineModelProperty("RaiMonitorConfig", ["raiMonitorConfig"]); + _aIFoundryNetworkInjections = DefineListProperty("AIFoundryNetworkInjections", ["networkInjections"]); + _allowProjectManagement = DefineProperty("AllowProjectManagement", ["allowProjectManagement"]); + _defaultProject = DefineProperty("DefaultProject", ["defaultProject"]); + _associatedProjects = DefineListProperty("AssociatedProjects", ["associatedProjects"]); } } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesCapabilityHostProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesCapabilityHostProperties.cs new file mode 100644 index 000000000000..2c98c5dcd72d --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesCapabilityHostProperties.cs @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The CognitiveServicesCapabilityHostProperties. +/// +public partial class CognitiveServicesCapabilityHostProperties : ProvisionableConstruct +{ + /// + /// List of AI services connections. + /// + public BicepList AiServicesConnections + { + get { Initialize(); return _aiServicesConnections!; } + set { Initialize(); _aiServicesConnections!.Assign(value); } + } + private BicepList? _aiServicesConnections; + + /// + /// Kind of this capability host. + /// + public BicepValue CapabilityHostKind + { + get { Initialize(); return _capabilityHostKind!; } + set { Initialize(); _capabilityHostKind!.Assign(value); } + } + private BicepValue? _capabilityHostKind; + + /// + /// Customer subnet info to help set up this capability host. + /// + public BicepValue CustomerSubnet + { + get { Initialize(); return _customerSubnet!; } + set { Initialize(); _customerSubnet!.Assign(value); } + } + private BicepValue? _customerSubnet; + + /// + /// Provisioning state for the CapabilityHost. + /// + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; + + /// + /// List of connection names from those available in the account or project + /// to be used as a storage resource. + /// + public BicepList StorageConnections + { + get { Initialize(); return _storageConnections!; } + set { Initialize(); _storageConnections!.Assign(value); } + } + private BicepList? _storageConnections; + + /// + /// List of connection names from those available in the account or project + /// to be used for Thread storage. + /// + public BicepList ThreadStorageConnections + { + get { Initialize(); return _threadStorageConnections!; } + set { Initialize(); _threadStorageConnections!.Assign(value); } + } + private BicepList? _threadStorageConnections; + + /// + /// List of connection names from those available in the account or project + /// to be used for vector database (e.g. CosmosDB). + /// + public BicepList VectorStoreConnections + { + get { Initialize(); return _vectorStoreConnections!; } + set { Initialize(); _vectorStoreConnections!.Assign(value); } + } + private BicepList? _vectorStoreConnections; + + /// + /// The asset description text. + /// + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; + + /// + /// Tag dictionary. Tags can be added, removed, and updated. + /// + public BicepDictionary Tags + { + get { Initialize(); return _tags!; } + set { Initialize(); _tags!.Assign(value); } + } + private BicepDictionary? _tags; + + /// + /// Creates a new CognitiveServicesCapabilityHostProperties. + /// + public CognitiveServicesCapabilityHostProperties() + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesCapabilityHostProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _aiServicesConnections = DefineListProperty("AiServicesConnections", ["aiServicesConnections"]); + _capabilityHostKind = DefineProperty("CapabilityHostKind", ["capabilityHostKind"]); + _customerSubnet = DefineProperty("CustomerSubnet", ["customerSubnet"]); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _storageConnections = DefineListProperty("StorageConnections", ["storageConnections"]); + _threadStorageConnections = DefineListProperty("ThreadStorageConnections", ["threadStorageConnections"]); + _vectorStoreConnections = DefineListProperty("VectorStoreConnections", ["vectorStoreConnections"]); + _description = DefineProperty("Description", ["description"]); + _tags = DefineDictionaryProperty("Tags", ["tags"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionAccessKey.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionAccessKey.cs new file mode 100644 index 000000000000..40c9bc7900e9 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionAccessKey.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The CognitiveServicesConnectionAccessKey. +/// +public partial class CognitiveServicesConnectionAccessKey : ProvisionableConstruct +{ + /// + /// Gets or sets the access key id. + /// + public BicepValue AccessKeyId + { + get { Initialize(); return _accessKeyId!; } + set { Initialize(); _accessKeyId!.Assign(value); } + } + private BicepValue? _accessKeyId; + + /// + /// Gets or sets the secret access key. + /// + public BicepValue SecretAccessKey + { + get { Initialize(); return _secretAccessKey!; } + set { Initialize(); _secretAccessKey!.Assign(value); } + } + private BicepValue? _secretAccessKey; + + /// + /// Creates a new CognitiveServicesConnectionAccessKey. + /// + public CognitiveServicesConnectionAccessKey() + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesConnectionAccessKey. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _accessKeyId = DefineProperty("AccessKeyId", ["accessKeyId"]); + _secretAccessKey = DefineProperty("SecretAccessKey", ["secretAccessKey"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionCategory.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionCategory.cs new file mode 100644 index 000000000000..8836c61bd02c --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionCategory.cs @@ -0,0 +1,550 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +using System.Runtime.Serialization; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// Category of the connection. +/// +public enum CognitiveServicesConnectionCategory +{ + /// + /// PythonFeed. + /// + PythonFeed, + + /// + /// ContainerRegistry. + /// + ContainerRegistry, + + /// + /// Git. + /// + Git, + + /// + /// S3. + /// + S3, + + /// + /// Snowflake. + /// + Snowflake, + + /// + /// AzureSqlDb. + /// + [DataMember(Name = "AzureSqlDb")] + AzureSqlDB, + + /// + /// AzureSynapseAnalytics. + /// + AzureSynapseAnalytics, + + /// + /// AzureMySqlDb. + /// + [DataMember(Name = "AzureMySqlDb")] + AzureMySqlDB, + + /// + /// AzurePostgresDb. + /// + [DataMember(Name = "AzurePostgresDb")] + AzurePostgresDB, + + /// + /// ADLSGen2. + /// + [DataMember(Name = "ADLSGen2")] + AdlsGen2, + + /// + /// Redis. + /// + Redis, + + /// + /// ApiKey. + /// + ApiKey, + + /// + /// AzureOpenAI. + /// + AzureOpenAI, + + /// + /// AIServices. + /// + AIServices, + + /// + /// CognitiveSearch. + /// + CognitiveSearch, + + /// + /// CognitiveService. + /// + CognitiveService, + + /// + /// CustomKeys. + /// + CustomKeys, + + /// + /// AzureBlob. + /// + AzureBlob, + + /// + /// AzureOneLake. + /// + AzureOneLake, + + /// + /// CosmosDb. + /// + [DataMember(Name = "CosmosDb")] + CosmosDB, + + /// + /// CosmosDbMongoDbApi. + /// + [DataMember(Name = "CosmosDbMongoDbApi")] + CosmosDBMongoDBApi, + + /// + /// AzureDataExplorer. + /// + AzureDataExplorer, + + /// + /// AzureMariaDb. + /// + [DataMember(Name = "AzureMariaDb")] + AzureMariaDB, + + /// + /// AzureDatabricksDeltaLake. + /// + AzureDatabricksDeltaLake, + + /// + /// AzureSqlMi. + /// + [DataMember(Name = "AzureSqlMi")] + AzureSqlMI, + + /// + /// AzureTableStorage. + /// + AzureTableStorage, + + /// + /// AmazonRdsForOracle. + /// + AmazonRdsForOracle, + + /// + /// AmazonRdsForSqlServer. + /// + AmazonRdsForSqlServer, + + /// + /// AmazonRedshift. + /// + AmazonRedshift, + + /// + /// Db2. + /// + Db2, + + /// + /// Drill. + /// + Drill, + + /// + /// GoogleBigQuery. + /// + GoogleBigQuery, + + /// + /// Greenplum. + /// + Greenplum, + + /// + /// Hbase. + /// + Hbase, + + /// + /// Hive. + /// + Hive, + + /// + /// Impala. + /// + Impala, + + /// + /// Informix. + /// + Informix, + + /// + /// MariaDb. + /// + [DataMember(Name = "MariaDb")] + MariaDB, + + /// + /// MicrosoftAccess. + /// + MicrosoftAccess, + + /// + /// MySql. + /// + MySql, + + /// + /// Netezza. + /// + Netezza, + + /// + /// Oracle. + /// + Oracle, + + /// + /// Phoenix. + /// + Phoenix, + + /// + /// PostgreSql. + /// + PostgreSql, + + /// + /// Presto. + /// + Presto, + + /// + /// SapOpenHub. + /// + SapOpenHub, + + /// + /// SapBw. + /// + SapBw, + + /// + /// SapHana. + /// + SapHana, + + /// + /// SapTable. + /// + SapTable, + + /// + /// Spark. + /// + Spark, + + /// + /// SqlServer. + /// + SqlServer, + + /// + /// Sybase. + /// + Sybase, + + /// + /// Teradata. + /// + Teradata, + + /// + /// Vertica. + /// + Vertica, + + /// + /// Pinecone. + /// + Pinecone, + + /// + /// Cassandra. + /// + Cassandra, + + /// + /// Couchbase. + /// + Couchbase, + + /// + /// MongoDbV2. + /// + [DataMember(Name = "MongoDbV2")] + MongoDBV2, + + /// + /// MongoDbAtlas. + /// + [DataMember(Name = "MongoDbAtlas")] + MongoDBAtlas, + + /// + /// AmazonS3Compatible. + /// + AmazonS3Compatible, + + /// + /// FileServer. + /// + FileServer, + + /// + /// FtpServer. + /// + FtpServer, + + /// + /// GoogleCloudStorage. + /// + GoogleCloudStorage, + + /// + /// Hdfs. + /// + Hdfs, + + /// + /// OracleCloudStorage. + /// + OracleCloudStorage, + + /// + /// Sftp. + /// + Sftp, + + /// + /// GenericHttp. + /// + GenericHttp, + + /// + /// ODataRest. + /// + ODataRest, + + /// + /// Odbc. + /// + Odbc, + + /// + /// GenericRest. + /// + GenericRest, + + /// + /// AmazonMws. + /// + AmazonMws, + + /// + /// Concur. + /// + Concur, + + /// + /// Dynamics. + /// + Dynamics, + + /// + /// DynamicsAx. + /// + DynamicsAx, + + /// + /// DynamicsCrm. + /// + DynamicsCrm, + + /// + /// GoogleAdWords. + /// + GoogleAdWords, + + /// + /// Hubspot. + /// + Hubspot, + + /// + /// Jira. + /// + Jira, + + /// + /// Magento. + /// + Magento, + + /// + /// Marketo. + /// + Marketo, + + /// + /// Office365. + /// + Office365, + + /// + /// Eloqua. + /// + Eloqua, + + /// + /// Responsys. + /// + Responsys, + + /// + /// OracleServiceCloud. + /// + OracleServiceCloud, + + /// + /// PayPal. + /// + PayPal, + + /// + /// QuickBooks. + /// + QuickBooks, + + /// + /// Salesforce. + /// + Salesforce, + + /// + /// SalesforceServiceCloud. + /// + SalesforceServiceCloud, + + /// + /// SalesforceMarketingCloud. + /// + SalesforceMarketingCloud, + + /// + /// SapCloudForCustomer. + /// + SapCloudForCustomer, + + /// + /// SapEcc. + /// + SapEcc, + + /// + /// ServiceNow. + /// + ServiceNow, + + /// + /// SharePointOnlineList. + /// + SharePointOnlineList, + + /// + /// Shopify. + /// + Shopify, + + /// + /// Square. + /// + Square, + + /// + /// WebTable. + /// + WebTable, + + /// + /// Xero. + /// + Xero, + + /// + /// Zoho. + /// + Zoho, + + /// + /// GenericContainerRegistry. + /// + GenericContainerRegistry, + + /// + /// Elasticsearch. + /// + Elasticsearch, + + /// + /// OpenAI. + /// + OpenAI, + + /// + /// Serp. + /// + Serp, + + /// + /// BingLLMSearch. + /// + BingLLMSearch, + + /// + /// Serverless. + /// + Serverless, + + /// + /// ManagedOnlineEndpoint. + /// + ManagedOnlineEndpoint, +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionGroup.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionGroup.cs new file mode 100644 index 000000000000..5c82b8ff42c8 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionGroup.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// Group based on connection category. +/// +public enum CognitiveServicesConnectionGroup +{ + /// + /// Azure. + /// + Azure, + + /// + /// AzureAI. + /// + AzureAI, + + /// + /// Database. + /// + Database, + + /// + /// NoSQL. + /// + NoSQL, + + /// + /// File. + /// + File, + + /// + /// GenericProtocol. + /// + GenericProtocol, + + /// + /// ServicesAndApps. + /// + ServicesAndApps, +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionManagedIdentity.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionManagedIdentity.cs new file mode 100644 index 000000000000..c4d5109fa6c6 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionManagedIdentity.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The CognitiveServicesConnectionManagedIdentity. +/// +public partial class CognitiveServicesConnectionManagedIdentity : ProvisionableConstruct +{ + /// + /// Gets or sets the client id. + /// + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; + + /// + /// Gets or sets the resource id. + /// + public BicepValue ResourceId + { + get { Initialize(); return _resourceId!; } + set { Initialize(); _resourceId!.Assign(value); } + } + private BicepValue? _resourceId; + + /// + /// Creates a new CognitiveServicesConnectionManagedIdentity. + /// + public CognitiveServicesConnectionManagedIdentity() + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesConnectionManagedIdentity. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _resourceId = DefineProperty("ResourceId", ["resourceId"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionOAuth2.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionOAuth2.cs new file mode 100644 index 000000000000..0255e0da39dc --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionOAuth2.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// ClientId and ClientSecret are required. Other properties are optional +/// depending on each OAuth2 provider's implementation. +/// +public partial class CognitiveServicesConnectionOAuth2 : ProvisionableConstruct +{ + /// + /// Required by Concur connection category. + /// + public BicepValue AuthUri + { + get { Initialize(); return _authUri!; } + set { Initialize(); _authUri!.Assign(value); } + } + private BicepValue? _authUri; + + /// + /// Client id in the format of UUID. + /// + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; + + /// + /// Gets or sets the client secret. + /// + public BicepValue ClientSecret + { + get { Initialize(); return _clientSecret!; } + set { Initialize(); _clientSecret!.Assign(value); } + } + private BicepValue? _clientSecret; + + /// + /// Required by GoogleAdWords connection category. + /// + public BicepValue DeveloperToken + { + get { Initialize(); return _developerToken!; } + set { Initialize(); _developerToken!.Assign(value); } + } + private BicepValue? _developerToken; + + /// + /// Gets or sets the password. + /// + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; + + /// + /// Required by GoogleBigQuery, GoogleAdWords, Hubspot, QuickBooks, Square, + /// Xero, Zoho where user needs to get RefreshToken offline + /// + public BicepValue RefreshToken + { + get { Initialize(); return _refreshToken!; } + set { Initialize(); _refreshToken!.Assign(value); } + } + private BicepValue? _refreshToken; + + /// + /// Required by QuickBooks and Xero connection categories. + /// + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; + + /// + /// Concur, ServiceNow auth server AccessToken grant type is + /// 'Password' which requires UsernamePassword + /// + public BicepValue Username + { + get { Initialize(); return _username!; } + set { Initialize(); _username!.Assign(value); } + } + private BicepValue? _username; + + /// + /// Creates a new CognitiveServicesConnectionOAuth2. + /// + public CognitiveServicesConnectionOAuth2() + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesConnectionOAuth2. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _authUri = DefineProperty("AuthUri", ["authUrl"]); + _clientId = DefineProperty("ClientId", ["clientId"]); + _clientSecret = DefineProperty("ClientSecret", ["clientSecret"]); + _developerToken = DefineProperty("DeveloperToken", ["developerToken"]); + _password = DefineProperty("Password", ["password"]); + _refreshToken = DefineProperty("RefreshToken", ["refreshToken"]); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + _username = DefineProperty("Username", ["username"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionProperties.cs new file mode 100644 index 000000000000..693cca278275 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionProperties.cs @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Core; +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// Connection property base schema. Please note +/// Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionProperties +/// is the base class. According to the scenario, a derived class of the base +/// class might need to be assigned here, or this property needs to be casted +/// to one of the possible derived classes. The available derived +/// classes include +/// Azure.ResourceManager.CognitiveServices.Models.AadAuthTypeConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.AccessKeyAuthTypeConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.AccountKeyAuthTypeConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.ApiKeyAuthConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.CustomKeysConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.ManagedIdentityAuthTypeConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.NoneAuthTypeConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.OAuth2AuthTypeConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.PatAuthTypeConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.SASAuthTypeConnectionProperties, +/// Azure.ResourceManager.CognitiveServices.Models.ServicePrincipalAuthTypeConnectionProperties +/// and +/// Azure.ResourceManager.CognitiveServices.Models.UsernamePasswordAuthTypeConnectionProperties. +/// +public partial class CognitiveServicesConnectionProperties : ProvisionableConstruct +{ + /// + /// Category of the connection. + /// + public BicepValue Category + { + get { Initialize(); return _category!; } + set { Initialize(); _category!.Assign(value); } + } + private BicepValue? _category; + + /// + /// Gets the created by workspace arm id. + /// + public BicepValue CreatedByWorkspaceArmId + { + get { Initialize(); return _createdByWorkspaceArmId!; } + } + private BicepValue? _createdByWorkspaceArmId; + + /// + /// Provides the error message if the connection fails. + /// + public BicepValue Error + { + get { Initialize(); return _error!; } + set { Initialize(); _error!.Assign(value); } + } + private BicepValue? _error; + + /// + /// Gets or sets the expiry on. + /// + public BicepValue ExpiryOn + { + get { Initialize(); return _expiryOn!; } + set { Initialize(); _expiryOn!.Assign(value); } + } + private BicepValue? _expiryOn; + + /// + /// Group based on connection category. + /// + public BicepValue Group + { + get { Initialize(); return _group!; } + } + private BicepValue? _group; + + /// + /// Gets or sets the is shared to all. + /// + public BicepValue IsSharedToAll + { + get { Initialize(); return _isSharedToAll!; } + set { Initialize(); _isSharedToAll!.Assign(value); } + } + private BicepValue? _isSharedToAll; + + /// + /// Store user metadata for this connection. + /// + public BicepDictionary Metadata + { + get { Initialize(); return _metadata!; } + set { Initialize(); _metadata!.Assign(value); } + } + private BicepDictionary? _metadata; + + /// + /// Specifies how private endpoints are used with this connection: + /// 'Required', 'NotRequired', or + /// 'NotApplicable'. + /// + public BicepValue PeRequirement + { + get { Initialize(); return _peRequirement!; } + set { Initialize(); _peRequirement!.Assign(value); } + } + private BicepValue? _peRequirement; + + /// + /// Specifies the status of private endpoints for this connection: + /// 'Inactive', 'Active', or 'NotApplicable'. + /// + public BicepValue PeStatus + { + get { Initialize(); return _peStatus!; } + set { Initialize(); _peStatus!.Assign(value); } + } + private BicepValue? _peStatus; + + /// + /// Gets the shared user list. + /// + public BicepList SharedUserList + { + get { Initialize(); return _sharedUserList!; } + set { Initialize(); _sharedUserList!.Assign(value); } + } + private BicepList? _sharedUserList; + + /// + /// The connection URL to be used. + /// + public BicepValue Target + { + get { Initialize(); return _target!; } + set { Initialize(); _target!.Assign(value); } + } + private BicepValue? _target; + + /// + /// Gets or sets the use workspace managed identity. + /// + public BicepValue UseWorkspaceManagedIdentity + { + get { Initialize(); return _useWorkspaceManagedIdentity!; } + set { Initialize(); _useWorkspaceManagedIdentity!.Assign(value); } + } + private BicepValue? _useWorkspaceManagedIdentity; + + /// + /// Creates a new CognitiveServicesConnectionProperties. + /// + public CognitiveServicesConnectionProperties() + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _category = DefineProperty("Category", ["category"]); + _createdByWorkspaceArmId = DefineProperty("CreatedByWorkspaceArmId", ["createdByWorkspaceArmId"], isOutput: true); + _error = DefineProperty("Error", ["error"]); + _expiryOn = DefineProperty("ExpiryOn", ["expiryTime"]); + _group = DefineProperty("Group", ["group"], isOutput: true); + _isSharedToAll = DefineProperty("IsSharedToAll", ["isSharedToAll"]); + _metadata = DefineDictionaryProperty("Metadata", ["metadata"]); + _peRequirement = DefineProperty("PeRequirement", ["peRequirement"]); + _peStatus = DefineProperty("PeStatus", ["peStatus"]); + _sharedUserList = DefineListProperty("SharedUserList", ["sharedUserList"]); + _target = DefineProperty("Target", ["target"]); + _useWorkspaceManagedIdentity = DefineProperty("UseWorkspaceManagedIdentity", ["useWorkspaceManagedIdentity"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionServicePrincipal.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionServicePrincipal.cs new file mode 100644 index 000000000000..d855955401f1 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionServicePrincipal.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The CognitiveServicesConnectionServicePrincipal. +/// +public partial class CognitiveServicesConnectionServicePrincipal : ProvisionableConstruct +{ + /// + /// Gets or sets the client id. + /// + public BicepValue ClientId + { + get { Initialize(); return _clientId!; } + set { Initialize(); _clientId!.Assign(value); } + } + private BicepValue? _clientId; + + /// + /// Gets or sets the client secret. + /// + public BicepValue ClientSecret + { + get { Initialize(); return _clientSecret!; } + set { Initialize(); _clientSecret!.Assign(value); } + } + private BicepValue? _clientSecret; + + /// + /// Gets or sets the tenant id. + /// + public BicepValue TenantId + { + get { Initialize(); return _tenantId!; } + set { Initialize(); _tenantId!.Assign(value); } + } + private BicepValue? _tenantId; + + /// + /// Creates a new CognitiveServicesConnectionServicePrincipal. + /// + public CognitiveServicesConnectionServicePrincipal() + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesConnectionServicePrincipal. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _clientId = DefineProperty("ClientId", ["clientId"]); + _clientSecret = DefineProperty("ClientSecret", ["clientSecret"]); + _tenantId = DefineProperty("TenantId", ["tenantId"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionUsernamePassword.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionUsernamePassword.cs new file mode 100644 index 000000000000..11fa712b7c3a --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesConnectionUsernamePassword.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The CognitiveServicesConnectionUsernamePassword. +/// +public partial class CognitiveServicesConnectionUsernamePassword : ProvisionableConstruct +{ + /// + /// Gets or sets the password. + /// + public BicepValue Password + { + get { Initialize(); return _password!; } + set { Initialize(); _password!.Assign(value); } + } + private BicepValue? _password; + + /// + /// Optional, required by connections like SalesForce for extra security in + /// addition to UsernamePassword. + /// + public BicepValue SecurityToken + { + get { Initialize(); return _securityToken!; } + set { Initialize(); _securityToken!.Assign(value); } + } + private BicepValue? _securityToken; + + /// + /// Gets or sets the username. + /// + public BicepValue Username + { + get { Initialize(); return _username!; } + set { Initialize(); _username!.Assign(value); } + } + private BicepValue? _username; + + /// + /// Creates a new CognitiveServicesConnectionUsernamePassword. + /// + public CognitiveServicesConnectionUsernamePassword() + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesConnectionUsernamePassword. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _password = DefineProperty("Password", ["password"]); + _securityToken = DefineProperty("SecurityToken", ["securityToken"]); + _username = DefineProperty("Username", ["username"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesProjectProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesProjectProperties.cs new file mode 100644 index 000000000000..4c49383faa6a --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CognitiveServicesProjectProperties.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// Properties of Cognitive Services Project'. +/// +public partial class CognitiveServicesProjectProperties : ProvisionableConstruct +{ + /// + /// Gets the status of the cognitive services project at the time the + /// operation was called. + /// + public BicepValue ProvisioningState + { + get { Initialize(); return _provisioningState!; } + } + private BicepValue? _provisioningState; + + /// + /// The display name of the Cognitive Services Project. + /// + public BicepValue DisplayName + { + get { Initialize(); return _displayName!; } + set { Initialize(); _displayName!.Assign(value); } + } + private BicepValue? _displayName; + + /// + /// The description of the Cognitive Services Project. + /// + public BicepValue Description + { + get { Initialize(); return _description!; } + set { Initialize(); _description!.Assign(value); } + } + private BicepValue? _description; + + /// + /// The list of endpoint for this Cognitive Services Project. + /// + public BicepDictionary Endpoints + { + get { Initialize(); return _endpoints!; } + } + private BicepDictionary? _endpoints; + + /// + /// Indicates whether the project is the default project for the account. + /// + public BicepValue IsDefault + { + get { Initialize(); return _isDefault!; } + } + private BicepValue? _isDefault; + + /// + /// Creates a new CognitiveServicesProjectProperties. + /// + public CognitiveServicesProjectProperties() + { + } + + /// + /// Define all the provisionable properties of + /// CognitiveServicesProjectProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + _provisioningState = DefineProperty("ProvisioningState", ["provisioningState"], isOutput: true); + _displayName = DefineProperty("DisplayName", ["displayName"]); + _description = DefineProperty("Description", ["description"]); + _endpoints = DefineDictionaryProperty("Endpoints", ["endpoints"], isOutput: true); + _isDefault = DefineProperty("IsDefault", ["isDefault"], isOutput: true); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CustomKeysConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CustomKeysConnectionProperties.cs new file mode 100644 index 000000000000..7d27e6df6695 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/CustomKeysConnectionProperties.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning; +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// Category:= CustomKeys AuthType:= CustomKeys (as type +/// discriminator) Credentials:= {CustomKeys} as CustomKeys +/// Target:= {any value} Use Metadata property bag for +/// ApiVersion and other metadata fields +/// +public partial class CustomKeysConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Dictionary of <string>. + /// + public BicepDictionary CredentialsKeys + { + get { Initialize(); return _credentialsKeys!; } + set { Initialize(); _credentialsKeys!.Assign(value); } + } + private BicepDictionary? _credentialsKeys; + + /// + /// Creates a new CustomKeysConnectionProperties. + /// + public CustomKeysConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// CustomKeysConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "CustomKeys"); + _credentialsKeys = DefineDictionaryProperty("CredentialsKeys", ["credentials", "keys"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedIdentityAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedIdentityAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..6c1ca44ef472 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedIdentityAuthTypeConnectionProperties.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The ManagedIdentityAuthTypeConnectionProperties. +/// +public partial class ManagedIdentityAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Gets or sets the credentials. + /// + public CognitiveServicesConnectionManagedIdentity Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private CognitiveServicesConnectionManagedIdentity? _credentials; + + /// + /// Creates a new ManagedIdentityAuthTypeConnectionProperties. + /// + public ManagedIdentityAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// ManagedIdentityAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "ManagedIdentity"); + _credentials = DefineModelProperty("Credentials", ["credentials"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedPERequirement.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedPERequirement.cs new file mode 100644 index 000000000000..3aabbde8bfb0 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedPERequirement.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The ManagedPERequirement. +/// +public enum ManagedPERequirement +{ + /// + /// Required. + /// + Required, + + /// + /// NotRequired. + /// + NotRequired, + + /// + /// NotApplicable. + /// + NotApplicable, +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedPEStatus.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedPEStatus.cs new file mode 100644 index 000000000000..6d3c1794de70 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ManagedPEStatus.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The ManagedPEStatus. +/// +public enum ManagedPEStatus +{ + /// + /// Inactive. + /// + Inactive, + + /// + /// Active. + /// + Active, + + /// + /// NotApplicable. + /// + NotApplicable, +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/NoneAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/NoneAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..4d5447a84940 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/NoneAuthTypeConnectionProperties.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The NoneAuthTypeConnectionProperties. +/// +public partial class NoneAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Creates a new NoneAuthTypeConnectionProperties. + /// + public NoneAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// NoneAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "None"); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/OAuth2AuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/OAuth2AuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..cac2e97c8f46 --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/OAuth2AuthTypeConnectionProperties.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The OAuth2AuthTypeConnectionProperties. +/// +public partial class OAuth2AuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// ClientId and ClientSecret are required. Other properties are optional + /// depending on each OAuth2 provider's implementation. + /// + public CognitiveServicesConnectionOAuth2 Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private CognitiveServicesConnectionOAuth2? _credentials; + + /// + /// Creates a new OAuth2AuthTypeConnectionProperties. + /// + public OAuth2AuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// OAuth2AuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "OAuth2"); + _credentials = DefineModelProperty("Credentials", ["credentials"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/PatAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/PatAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..21ffb51b28ef --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/PatAuthTypeConnectionProperties.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The PatAuthTypeConnectionProperties. +/// +public partial class PatAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Gets or sets the credentials pat. + /// + public BicepValue CredentialsPat + { + get { Initialize(); return _credentialsPat!; } + set { Initialize(); _credentialsPat!.Assign(value); } + } + private BicepValue? _credentialsPat; + + /// + /// Creates a new PatAuthTypeConnectionProperties. + /// + public PatAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// PatAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "PAT"); + _credentialsPat = DefineProperty("CredentialsPat", ["credentials", "pat"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/RaiPolicyMode.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/RaiPolicyMode.cs index 49c325bbf66d..00e218c3b55e 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/RaiPolicyMode.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/RaiPolicyMode.cs @@ -10,7 +10,7 @@ namespace Azure.Provisioning.CognitiveServices; /// /// Rai policy mode. The enum value mapping is as below: Default = 0, /// Deferred=1, Blocking=2, Asynchronous_filter =3. Please use -/// 'Asynchronous_filter' after 2024-10-01. It is the same as +/// 'Asynchronous_filter' after 2025-06-01. It is the same as /// 'Deferred' in previous version. /// public enum RaiPolicyMode diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/RaiPolicyProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/RaiPolicyProperties.cs index c0074d255367..da67850d48a9 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/RaiPolicyProperties.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/RaiPolicyProperties.cs @@ -28,7 +28,7 @@ public BicepValue PolicyType /// /// Rai policy mode. The enum value mapping is as below: Default = 0, /// Deferred=1, Blocking=2, Asynchronous_filter =3. Please use - /// 'Asynchronous_filter' after 2024-10-01. It is the same as + /// 'Asynchronous_filter' after 2025-06-01. It is the same as /// 'Deferred' in previous version. /// public BicepValue Mode diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/SASAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/SASAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..34f8b940660c --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/SASAuthTypeConnectionProperties.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The SASAuthTypeConnectionProperties. +/// +public partial class SASAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Gets or sets the credentials sas. + /// + public BicepValue CredentialsSas + { + get { Initialize(); return _credentialsSas!; } + set { Initialize(); _credentialsSas!.Assign(value); } + } + private BicepValue? _credentialsSas; + + /// + /// Creates a new SASAuthTypeConnectionProperties. + /// + public SASAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// SASAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "SAS"); + _credentialsSas = DefineProperty("CredentialsSas", ["credentials", "sas"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountProvisioningState.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountProvisioningState.cs index 628c6fa9cfbb..f2da97c97fd8 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountProvisioningState.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServiceAccountProvisioningState.cs @@ -48,4 +48,9 @@ public enum ServiceAccountProvisioningState /// [DataMember(Name = "ResolvingDNS")] ResolvingDns, + + /// + /// Canceled. + /// + Canceled, } diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServicePrincipalAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServicePrincipalAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..7f7ff6d5f38d --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/ServicePrincipalAuthTypeConnectionProperties.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The ServicePrincipalAuthTypeConnectionProperties. +/// +public partial class ServicePrincipalAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Gets or sets the credentials. + /// + public CognitiveServicesConnectionServicePrincipal Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private CognitiveServicesConnectionServicePrincipal? _credentials; + + /// + /// Creates a new ServicePrincipalAuthTypeConnectionProperties. + /// + public ServicePrincipalAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// ServicePrincipalAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "ServicePrincipal"); + _credentials = DefineModelProperty("Credentials", ["credentials"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/UserOwnedAmlWorkspace.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/UserOwnedAmlWorkspace.cs index 2adbcd3e11c2..9073c9eaa15c 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/UserOwnedAmlWorkspace.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/UserOwnedAmlWorkspace.cs @@ -12,12 +12,12 @@ namespace Azure.Provisioning.CognitiveServices; /// -/// The user owned AML workspace for Cognitive Services account. +/// The user owned AML account for Cognitive Services account. /// public partial class UserOwnedAmlWorkspace : ProvisionableConstruct { /// - /// Full resource id of a AML workspace resource. + /// Full resource id of a AML account resource. /// public BicepValue ResourceId { @@ -27,7 +27,7 @@ public BicepValue ResourceId private BicepValue? _resourceId; /// - /// Identity Client id of a AML workspace resource. + /// Identity Client id of a AML account resource. /// public BicepValue IdentityClientId { diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/UsernamePasswordAuthTypeConnectionProperties.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/UsernamePasswordAuthTypeConnectionProperties.cs new file mode 100644 index 000000000000..ef972d47671f --- /dev/null +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/Models/UsernamePasswordAuthTypeConnectionProperties.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable enable + +using Azure.Provisioning.Primitives; +using System; + +namespace Azure.Provisioning.CognitiveServices; + +/// +/// The UsernamePasswordAuthTypeConnectionProperties. +/// +public partial class UsernamePasswordAuthTypeConnectionProperties : CognitiveServicesConnectionProperties +{ + /// + /// Gets or sets the credentials. + /// + public CognitiveServicesConnectionUsernamePassword Credentials + { + get { Initialize(); return _credentials!; } + set { Initialize(); AssignOrReplace(ref _credentials, value); } + } + private CognitiveServicesConnectionUsernamePassword? _credentials; + + /// + /// Creates a new UsernamePasswordAuthTypeConnectionProperties. + /// + public UsernamePasswordAuthTypeConnectionProperties() : base() + { + } + + /// + /// Define all the provisionable properties of + /// UsernamePasswordAuthTypeConnectionProperties. + /// + protected override void DefineProvisionableProperties() + { + base.DefineProvisionableProperties(); + DefineProperty("authType", ["authType"], defaultValue: "UsernamePassword"); + _credentials = DefineModelProperty("Credentials", ["credentials"]); + } +} diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiBlocklist.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiBlocklist.cs index 0ec6a6203aa3..7a74891a6123 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiBlocklist.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiBlocklist.cs @@ -98,7 +98,7 @@ public CognitiveServicesAccount? Parent /// /// Version of the RaiBlocklist. public RaiBlocklist(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/raiBlocklists", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/raiBlocklists", resourceVersion ?? "2025-09-01") { } @@ -107,6 +107,7 @@ public RaiBlocklist(string bicepIdentifier, string? resourceVersion = default) /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _raiBlocklistDescription = DefineProperty("RaiBlocklistDescription", ["properties", "description"]); _tags = DefineDictionaryProperty("Tags", ["tags"]); @@ -121,6 +122,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiBlocklistItem.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiBlocklistItem.cs index d518df1e1e9d..e4d5bc143e0a 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiBlocklistItem.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiBlocklistItem.cs @@ -97,7 +97,7 @@ public RaiBlocklist? Parent /// /// Version of the RaiBlocklistItem. public RaiBlocklistItem(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/raiBlocklists/raiBlocklistItems", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/raiBlocklists/raiBlocklistItems", resourceVersion ?? "2025-09-01") { } @@ -106,6 +106,7 @@ public RaiBlocklistItem(string bicepIdentifier, string? resourceVersion = defaul /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _properties = DefineModelProperty("Properties", ["properties"]); _tags = DefineDictionaryProperty("Tags", ["tags"]); @@ -120,6 +121,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiPolicy.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiPolicy.cs index 5e031da182e8..f7b259c09e8c 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiPolicy.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/src/Generated/RaiPolicy.cs @@ -98,7 +98,7 @@ public CognitiveServicesAccount? Parent /// /// Version of the RaiPolicy. public RaiPolicy(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/raiPolicies", resourceVersion ?? "2024-10-01") + : base(bicepIdentifier, "Microsoft.CognitiveServices/accounts/raiPolicies", resourceVersion ?? "2025-09-01") { } @@ -107,6 +107,7 @@ public RaiPolicy(string bicepIdentifier, string? resourceVersion = default) /// protected override void DefineProvisionableProperties() { + base.DefineProvisionableProperties(); _name = DefineProperty("Name", ["name"], isRequired: true); _properties = DefineModelProperty("Properties", ["properties"]); _tags = DefineDictionaryProperty("Tags", ["tags"]); @@ -121,6 +122,16 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-09-01. + /// + public static readonly string V2025_09_01 = "2025-09-01"; + + /// + /// 2025-06-01. + /// + public static readonly string V2025_06_01 = "2025-06-01"; + /// /// 2024-10-01. /// diff --git a/sdk/provisioning/Azure.Provisioning.CognitiveServices/tests/BasicCognitiveServicesTests.cs b/sdk/provisioning/Azure.Provisioning.CognitiveServices/tests/BasicCognitiveServicesTests.cs index a5969a231fb9..4aa5660d8792 100644 --- a/sdk/provisioning/Azure.Provisioning.CognitiveServices/tests/BasicCognitiveServicesTests.cs +++ b/sdk/provisioning/Azure.Provisioning.CognitiveServices/tests/BasicCognitiveServicesTests.cs @@ -50,7 +50,7 @@ public async Task CreateTranslation() @description('The location for the resource(s) to be deployed.') param location string = resourceGroup().location - resource account 'Microsoft.CognitiveServices/accounts@2024-10-01' = { + resource account 'Microsoft.CognitiveServices/accounts@2025-09-01' = { name: take('account-${uniqueString(resourceGroup().id)}', 64) location: location identity: { diff --git a/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.net8.0.cs b/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.net8.0.cs index c8d661fbd57a..ce1f284c5113 100644 --- a/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.net8.0.cs +++ b/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.net8.0.cs @@ -2048,6 +2048,7 @@ public static partial class ResourceVersions public static readonly string V2023_04_01; public static readonly string V2024_05_01; public static readonly string V2025_01_01; + public static readonly string V2025_03_01; } } public partial class ManagementGroupPolicySetDefinition : Azure.Provisioning.Primitives.ProvisionableResource @@ -2081,6 +2082,7 @@ public static partial class ResourceVersions public static readonly string V2023_04_01; public static readonly string V2024_05_01; public static readonly string V2025_01_01; + public static readonly string V2025_03_01; } } public partial class ManagementGroupSubscription : Azure.Provisioning.Primitives.ProvisionableResource @@ -2207,6 +2209,7 @@ public static partial class ResourceVersions public static readonly string V2024_04_01; public static readonly string V2024_05_01; public static readonly string V2025_01_01; + public static readonly string V2025_03_01; } } public partial class PolicyDefinitionGroup : Azure.Provisioning.Primitives.ProvisionableConstruct diff --git a/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.netstandard2.0.cs b/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.netstandard2.0.cs index a99714fe203b..4659ea3d1bfc 100644 --- a/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.netstandard2.0.cs +++ b/sdk/provisioning/Azure.Provisioning/api/Azure.Provisioning.netstandard2.0.cs @@ -2046,6 +2046,7 @@ public static partial class ResourceVersions public static readonly string V2023_04_01; public static readonly string V2024_05_01; public static readonly string V2025_01_01; + public static readonly string V2025_03_01; } } public partial class ManagementGroupPolicySetDefinition : Azure.Provisioning.Primitives.ProvisionableResource @@ -2079,6 +2080,7 @@ public static partial class ResourceVersions public static readonly string V2023_04_01; public static readonly string V2024_05_01; public static readonly string V2025_01_01; + public static readonly string V2025_03_01; } } public partial class ManagementGroupSubscription : Azure.Provisioning.Primitives.ProvisionableResource @@ -2205,6 +2207,7 @@ public static partial class ResourceVersions public static readonly string V2024_04_01; public static readonly string V2024_05_01; public static readonly string V2025_01_01; + public static readonly string V2025_03_01; } } public partial class PolicyDefinitionGroup : Azure.Provisioning.Primitives.ProvisionableConstruct diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicyDefinition.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicyDefinition.cs index 2755a79e69dd..89539c3bc837 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicyDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicyDefinition.cs @@ -159,7 +159,7 @@ public SystemData SystemData /// /// Version of the ManagementGroupPolicyDefinition. public ManagementGroupPolicyDefinition(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.Authorization/policyDefinitions", resourceVersion ?? "2025-01-01") + : base(bicepIdentifier, "Microsoft.Authorization/policyDefinitions", resourceVersion ?? "2025-03-01") { } @@ -187,6 +187,11 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-03-01. + /// + public static readonly string V2025_03_01 = "2025-03-01"; + /// /// 2025-01-01. /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicySetDefinition.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicySetDefinition.cs index 4fac288818b6..a737a22f6737 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicySetDefinition.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/ManagementGroupPolicySetDefinition.cs @@ -146,7 +146,7 @@ public SystemData SystemData /// /// Version of the ManagementGroupPolicySetDefinition. public ManagementGroupPolicySetDefinition(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.Authorization/policySetDefinitions", resourceVersion ?? "2025-01-01") + : base(bicepIdentifier, "Microsoft.Authorization/policySetDefinitions", resourceVersion ?? "2025-03-01") { } @@ -174,6 +174,11 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-03-01. + /// + public static readonly string V2025_03_01 = "2025-03-01"; + /// /// 2025-01-01. /// diff --git a/sdk/provisioning/Azure.Provisioning/src/Generated/PolicyAssignment.cs b/sdk/provisioning/Azure.Provisioning/src/Generated/PolicyAssignment.cs index 0c6ad363f300..ad95f0933fa8 100644 --- a/sdk/provisioning/Azure.Provisioning/src/Generated/PolicyAssignment.cs +++ b/sdk/provisioning/Azure.Provisioning/src/Generated/PolicyAssignment.cs @@ -207,7 +207,7 @@ public SystemData SystemData /// /// Version of the PolicyAssignment. public PolicyAssignment(string bicepIdentifier, string? resourceVersion = default) - : base(bicepIdentifier, "Microsoft.Authorization/policyAssignments", resourceVersion ?? "2025-01-01") + : base(bicepIdentifier, "Microsoft.Authorization/policyAssignments", resourceVersion ?? "2025-03-01") { } @@ -240,6 +240,11 @@ protected override void DefineProvisionableProperties() /// public static class ResourceVersions { + /// + /// 2025-03-01. + /// + public static readonly string V2025_03_01 = "2025-03-01"; + /// /// 2025-01-01. ///