diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/DataGenerationConnectionInfo.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/DataGenerationConnectionInfo.cs index 982dca9f073b..ca43d1cc4e77 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/DataGenerationConnectionInfo.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/DataGenerationConnectionInfo.cs @@ -80,8 +80,8 @@ internal DataGenerationConnectionInfo() public DataGenerationConnectionInfoKind Kind { get; } = DataGenerationConnectionInfoKind.AzureOpenAI; /// Resource ID for the data generation resource. Looks something like "/subscriptions/<SUBSCRIPTION-ID-GUID>/resourceGroups/<RG-NAME>/providers/Microsoft.CognitiveServices/accounts/<AOAI-ACCOUNT-NAME>". - public string ResourceId { get; } + public string ResourceId { get; set; } /// Deployment name of model to be used for synthetic data generation. - public string DeploymentName { get; } + public string DeploymentName { get; set; } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/DataGenerationConnectionInfoKind.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/DataGenerationConnectionInfoKind.cs index e8d9d818b174..32e96ee08721 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/DataGenerationConnectionInfoKind.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/DataGenerationConnectionInfoKind.cs @@ -22,9 +22,9 @@ public DataGenerationConnectionInfoKind(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } - private const string AzureOpenAIValue = "azureOpenAI"; + private const string AzureOpenAIValue = "AzureOpenAI"; - /// azureOpenAI. + /// AzureOpenAI. public static DataGenerationConnectionInfoKind AzureOpenAI { get; } = new DataGenerationConnectionInfoKind(AzureOpenAIValue); /// Determines if two values are the same. public static bool operator ==(DataGenerationConnectionInfoKind left, DataGenerationConnectionInfoKind right) => left.Equals(right); diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAnalysisAuthoringClientOptions.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAnalysisAuthoringClientOptions.cs index fb799cc225cc..b2f085142599 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAnalysisAuthoringClientOptions.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAnalysisAuthoringClientOptions.cs @@ -13,17 +13,15 @@ namespace Azure.AI.Language.Text.Authoring /// Client options for TextAnalysisAuthoringClient. public partial class TextAnalysisAuthoringClientOptions : ClientOptions { - private const ServiceVersion LatestVersion = ServiceVersion.V2024_11_15_Preview; + private const ServiceVersion LatestVersion = ServiceVersion.V2025_05_15_Preview; /// The version of the service to use. public enum ServiceVersion { /// Service version "2023-04-01". V2023_04_01 = 1, - /// Service version "2023-04-15-preview". - V2023_04_15_Preview = 2, - /// Service version "2024-11-15-preview". - V2024_11_15_Preview = 3, + /// Service version "2025-05-15-preview". + V2025_05_15_Preview = 2, } internal string Version { get; } @@ -34,8 +32,7 @@ public TextAnalysisAuthoringClientOptions(ServiceVersion version = LatestVersion Version = version switch { ServiceVersion.V2023_04_01 => "2023-04-01", - ServiceVersion.V2023_04_15_Preview => "2023-04-15-preview", - ServiceVersion.V2024_11_15_Preview => "2024-11-15-preview", + ServiceVersion.V2025_05_15_Preview => "2025-05-15-preview", _ => throw new NotSupportedException() }; } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAnalysisAuthoringModelFactory.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAnalysisAuthoringModelFactory.cs index 1d2dbe9c35dd..0c4075186c31 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAnalysisAuthoringModelFactory.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAnalysisAuthoringModelFactory.cs @@ -21,6 +21,7 @@ public static partial class TextAnalysisAuthoringModelFactory /// Represents the project last training datetime. /// Represents the project last deployment datetime. /// The project kind. + /// The project storage account resource ID. /// The storage container name. /// The project settings. /// The new project name. @@ -28,7 +29,7 @@ public static partial class TextAnalysisAuthoringModelFactory /// The project description. /// The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. /// A new instance for mocking. - public static TextAuthoringProjectMetadata TextAuthoringProjectMetadata(DateTimeOffset createdOn = default, DateTimeOffset lastModifiedOn = default, DateTimeOffset? lastTrainedOn = null, DateTimeOffset? lastDeployedOn = null, TextAuthoringProjectKind projectKind = default, string storageInputContainerName = null, TextAuthoringProjectSettings settings = null, string projectName = null, bool? multilingual = null, string description = null, string language = null) + public static TextAuthoringProjectMetadata TextAuthoringProjectMetadata(DateTimeOffset createdOn = default, DateTimeOffset lastModifiedOn = default, DateTimeOffset? lastTrainedOn = null, DateTimeOffset? lastDeployedOn = null, TextAuthoringProjectKind projectKind = default, string storageAccountResourceId = null, string storageInputContainerName = null, TextAuthoringProjectSettings settings = null, string projectName = null, bool? multilingual = null, string description = null, string language = null) { return new TextAuthoringProjectMetadata( createdOn, @@ -36,6 +37,7 @@ public static TextAuthoringProjectMetadata TextAuthoringProjectMetadata(DateTime lastTrainedOn, lastDeployedOn, projectKind, + storageAccountResourceId, storageInputContainerName, settings, projectName, @@ -69,13 +71,14 @@ public static TextAuthoringProjectDeployment TextAuthoringProjectDeployment(stri serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Represents the Azure resource Id. - /// Represents the resource region. - /// A new instance for mocking. - public static TextAuthoringDeploymentResource TextAuthoringDeploymentResource(string resourceId = null, string region = null) + /// Initializes a new instance of . + /// Connection type for data generation settings. Currently only supports Azure Open AI. + /// Resource ID for the data generation resource. Looks something like "/subscriptions/<SUBSCRIPTION-ID-GUID>/resourceGroups/<RG-NAME>/providers/Microsoft.CognitiveServices/accounts/<AOAI-ACCOUNT-NAME>". + /// Deployment name of model to be used for synthetic data generation. + /// A new instance for mocking. + public static DataGenerationConnectionInfo DataGenerationConnectionInfo(DataGenerationConnectionInfoKind kind = default, string resourceId = null, string deploymentName = null) { - return new TextAuthoringDeploymentResource(resourceId, region, serializedAdditionalRawData: null); + return new DataGenerationConnectionInfo(kind, resourceId, deploymentName, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -395,17 +398,7 @@ public static TextAuthoringTrainingJobDetails TextAuthoringTrainingJobDetails(st return new TextAuthoringTrainingJobDetails(modelLabel, trainingConfigVersion, evaluationOptions, dataGenerationSettings, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// Connection type for data generation settings. Currently only supports Azure Open AI. - /// Resource ID for the data generation resource. Looks something like "/subscriptions/<SUBSCRIPTION-ID-GUID>/resourceGroups/<RG-NAME>/providers/Microsoft.CognitiveServices/accounts/<AOAI-ACCOUNT-NAME>". - /// Deployment name of model to be used for synthetic data generation. - /// A new instance for mocking. - public static DataGenerationConnectionInfo DataGenerationConnectionInfo(DataGenerationConnectionInfoKind kind = default, string resourceId = null, string deploymentName = null) - { - return new DataGenerationConnectionInfo(kind, resourceId, deploymentName, serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . + /// Initializes a new instance of . /// The job ID. /// The creation date time of the job. /// The last date time the job was updated. @@ -413,38 +406,13 @@ public static DataGenerationConnectionInfo DataGenerationConnectionInfo(DataGene /// The job status. /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. - /// A new instance for mocking. - public static TextAuthoringUnassignDeploymentResourcesState TextAuthoringUnassignDeploymentResourcesState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, TextAuthoringOperationStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) + /// A new instance for mocking. + public static TextAuthoringDeploymentResourcesState TextAuthoringDeploymentResourcesState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, TextAuthoringOperationStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) { warnings ??= new List(); errors ??= new List(); - return new TextAuthoringUnassignDeploymentResourcesState( - jobId, - createdOn, - lastUpdatedOn, - expiresOn, - status, - warnings?.ToList(), - errors?.ToList(), - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. - /// The job status. - /// The warnings that were encountered while executing the job. - /// The errors encountered while executing the job. - /// A new instance for mocking. - public static TextAuthoringAssignDeploymentResourcesState TextAuthoringAssignDeploymentResourcesState(string jobId = null, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, DateTimeOffset? expiresOn = null, TextAuthoringOperationStatus status = default, IEnumerable warnings = null, IEnumerable errors = null) - { - warnings ??= new List(); - errors ??= new List(); - - return new TextAuthoringAssignDeploymentResourcesState( + return new TextAuthoringDeploymentResourcesState( jobId, createdOn, lastUpdatedOn, @@ -532,13 +500,13 @@ public static TextAuthoringDeploymentDeleteFromResourcesState TextAuthoringDeplo /// Initializes a new instance of . /// Represents the trained model label. - /// Represents the resource IDs to be assigned to the deployment. If provided, the deployment will be rolled out to the resources provided here as well as the original resource in which the project is created. + /// Represents the resources to be assigned to the deployment. If provided, the deployment will be rolled out to the resources provided here as well as the original resource in which the project is created. /// A new instance for mocking. - public static TextAuthoringCreateDeploymentDetails TextAuthoringCreateDeploymentDetails(string trainedModelLabel = null, IEnumerable assignedResourceIds = null) + public static TextAuthoringCreateDeploymentDetails TextAuthoringCreateDeploymentDetails(string trainedModelLabel = null, IEnumerable assignedResources = null) { - assignedResourceIds ??= new List(); + assignedResources ??= new List(); - return new TextAuthoringCreateDeploymentDetails(trainedModelLabel, assignedResourceIds?.ToList(), serializedAdditionalRawData: null); + return new TextAuthoringCreateDeploymentDetails(trainedModelLabel, assignedResources?.ToList(), serializedAdditionalRawData: null); } /// Initializes a new instance of . diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringCreateDeploymentDetails.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringCreateDeploymentDetails.Serialization.cs index a1b1d8e23798..a578d535ea85 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringCreateDeploymentDetails.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringCreateDeploymentDetails.Serialization.cs @@ -36,13 +36,13 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("trainedModelLabel"u8); writer.WriteStringValue(TrainedModelLabel); - if (Optional.IsCollectionDefined(AssignedResourceIds)) + if (Optional.IsCollectionDefined(AssignedResources)) { - writer.WritePropertyName("assignedResourceIds"u8); + writer.WritePropertyName("assignedResources"u8); writer.WriteStartArray(); - foreach (var item in AssignedResourceIds) + foreach (var item in AssignedResources) { - writer.WriteStringValue(item); + writer.WriteObjectValue(item, options); } writer.WriteEndArray(); } @@ -84,7 +84,7 @@ internal static TextAuthoringCreateDeploymentDetails DeserializeTextAuthoringCre return null; } string trainedModelLabel = default; - IList assignedResourceIds = default; + IList assignedResources = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -94,18 +94,18 @@ internal static TextAuthoringCreateDeploymentDetails DeserializeTextAuthoringCre trainedModelLabel = property.Value.GetString(); continue; } - if (property.NameEquals("assignedResourceIds"u8)) + if (property.NameEquals("assignedResources"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(item.GetString()); + array.Add(TextAuthoringDeploymentResource.DeserializeTextAuthoringDeploymentResource(item, options)); } - assignedResourceIds = array; + assignedResources = array; continue; } if (options.Format != "W") @@ -114,7 +114,7 @@ internal static TextAuthoringCreateDeploymentDetails DeserializeTextAuthoringCre } } serializedAdditionalRawData = rawDataDictionary; - return new TextAuthoringCreateDeploymentDetails(trainedModelLabel, assignedResourceIds ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new TextAuthoringCreateDeploymentDetails(trainedModelLabel, assignedResources ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringCreateDeploymentDetails.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringCreateDeploymentDetails.cs index f41ba590c089..bfef247637e1 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringCreateDeploymentDetails.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringCreateDeploymentDetails.cs @@ -53,17 +53,17 @@ public TextAuthoringCreateDeploymentDetails(string trainedModelLabel) Argument.AssertNotNull(trainedModelLabel, nameof(trainedModelLabel)); TrainedModelLabel = trainedModelLabel; - AssignedResourceIds = new ChangeTrackingList(); + AssignedResources = new ChangeTrackingList(); } /// Initializes a new instance of . /// Represents the trained model label. - /// Represents the resource IDs to be assigned to the deployment. If provided, the deployment will be rolled out to the resources provided here as well as the original resource in which the project is created. + /// Represents the resources to be assigned to the deployment. If provided, the deployment will be rolled out to the resources provided here as well as the original resource in which the project is created. /// Keeps track of any properties unknown to the library. - internal TextAuthoringCreateDeploymentDetails(string trainedModelLabel, IList assignedResourceIds, IDictionary serializedAdditionalRawData) + internal TextAuthoringCreateDeploymentDetails(string trainedModelLabel, IList assignedResources, IDictionary serializedAdditionalRawData) { TrainedModelLabel = trainedModelLabel; - AssignedResourceIds = assignedResourceIds; + AssignedResources = assignedResources; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -74,7 +74,7 @@ internal TextAuthoringCreateDeploymentDetails() /// Represents the trained model label. public string TrainedModelLabel { get; } - /// Represents the resource IDs to be assigned to the deployment. If provided, the deployment will be rolled out to the resources provided here as well as the original resource in which the project is created. - public IList AssignedResourceIds { get; } + /// Represents the resources to be assigned to the deployment. If provided, the deployment will be rolled out to the resources provided here as well as the original resource in which the project is created. + public IList AssignedResources { get; } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResource.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResource.Serialization.cs index 5978d5d64427..321ba0d84e39 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResource.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResource.Serialization.cs @@ -38,6 +38,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteStringValue(ResourceId); writer.WritePropertyName("region"u8); writer.WriteStringValue(Region); + if (Optional.IsDefined(AssignedAoaiResource)) + { + writer.WritePropertyName("assignedAoaiResource"u8); + writer.WriteObjectValue(AssignedAoaiResource, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -77,6 +82,7 @@ internal static TextAuthoringDeploymentResource DeserializeTextAuthoringDeployme } string resourceId = default; string region = default; + DataGenerationConnectionInfo assignedAoaiResource = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -91,13 +97,22 @@ internal static TextAuthoringDeploymentResource DeserializeTextAuthoringDeployme region = property.Value.GetString(); continue; } + if (property.NameEquals("assignedAoaiResource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + assignedAoaiResource = DataGenerationConnectionInfo.DeserializeDataGenerationConnectionInfo(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new TextAuthoringDeploymentResource(resourceId, region, serializedAdditionalRawData); + return new TextAuthoringDeploymentResource(resourceId, region, assignedAoaiResource, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResource.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResource.cs index 79a30f7eeb5d..5b20610cfe03 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResource.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResource.cs @@ -49,7 +49,7 @@ public partial class TextAuthoringDeploymentResource /// Represents the Azure resource Id. /// Represents the resource region. /// or is null. - internal TextAuthoringDeploymentResource(string resourceId, string region) + public TextAuthoringDeploymentResource(string resourceId, string region) { Argument.AssertNotNull(resourceId, nameof(resourceId)); Argument.AssertNotNull(region, nameof(region)); @@ -61,11 +61,13 @@ internal TextAuthoringDeploymentResource(string resourceId, string region) /// Initializes a new instance of . /// Represents the Azure resource Id. /// Represents the resource region. + /// Represents the AOAI resource assigned for data generation. /// Keeps track of any properties unknown to the library. - internal TextAuthoringDeploymentResource(string resourceId, string region, IDictionary serializedAdditionalRawData) + internal TextAuthoringDeploymentResource(string resourceId, string region, DataGenerationConnectionInfo assignedAoaiResource, IDictionary serializedAdditionalRawData) { ResourceId = resourceId; Region = region; + AssignedAoaiResource = assignedAoaiResource; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -75,8 +77,10 @@ internal TextAuthoringDeploymentResource() } /// Represents the Azure resource Id. - public string ResourceId { get; } + public string ResourceId { get; set; } /// Represents the resource region. - public string Region { get; } + public string Region { get; set; } + /// Represents the AOAI resource assigned for data generation. + public DataGenerationConnectionInfo AssignedAoaiResource { get; set; } } } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringAssignDeploymentResourcesState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResourcesState.Serialization.cs similarity index 77% rename from sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringAssignDeploymentResourcesState.Serialization.cs rename to sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResourcesState.Serialization.cs index 2ae022573b3a..2afd45a942fa 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringAssignDeploymentResourcesState.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResourcesState.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.AI.Language.Text.Authoring { - public partial class TextAuthoringAssignDeploymentResourcesState : IUtf8JsonSerializable, IJsonModel + public partial class TextAuthoringDeploymentResourcesState : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWrite /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(TextAuthoringAssignDeploymentResourcesState)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(TextAuthoringDeploymentResourcesState)} does not support writing '{format}' format."); } if (options.Format != "W") @@ -87,19 +87,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - TextAuthoringAssignDeploymentResourcesState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + TextAuthoringDeploymentResourcesState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(TextAuthoringAssignDeploymentResourcesState)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(TextAuthoringDeploymentResourcesState)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeTextAuthoringAssignDeploymentResourcesState(document.RootElement, options); + return DeserializeTextAuthoringDeploymentResourcesState(document.RootElement, options); } - internal static TextAuthoringAssignDeploymentResourcesState DeserializeTextAuthoringAssignDeploymentResourcesState(JsonElement element, ModelReaderWriterOptions options = null) + internal static TextAuthoringDeploymentResourcesState DeserializeTextAuthoringDeploymentResourcesState(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -181,7 +181,7 @@ internal static TextAuthoringAssignDeploymentResourcesState DeserializeTextAutho } } serializedAdditionalRawData = rawDataDictionary; - return new TextAuthoringAssignDeploymentResourcesState( + return new TextAuthoringDeploymentResourcesState( jobId, createdDateTime, lastUpdatedDateTime, @@ -192,43 +192,43 @@ internal static TextAuthoringAssignDeploymentResourcesState DeserializeTextAutho serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options); default: - throw new FormatException($"The model {nameof(TextAuthoringAssignDeploymentResourcesState)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(TextAuthoringDeploymentResourcesState)} does not support writing '{options.Format}' format."); } } - TextAuthoringAssignDeploymentResourcesState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + TextAuthoringDeploymentResourcesState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTextAuthoringAssignDeploymentResourcesState(document.RootElement, options); + return DeserializeTextAuthoringDeploymentResourcesState(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(TextAuthoringAssignDeploymentResourcesState)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(TextAuthoringDeploymentResourcesState)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static TextAuthoringAssignDeploymentResourcesState FromResponse(Response response) + internal static TextAuthoringDeploymentResourcesState FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTextAuthoringAssignDeploymentResourcesState(document.RootElement); + return DeserializeTextAuthoringDeploymentResourcesState(document.RootElement); } /// Convert into a . diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringAssignDeploymentResourcesState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResourcesState.cs similarity index 82% rename from sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringAssignDeploymentResourcesState.cs rename to sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResourcesState.cs index 5f49d057c066..3dc3fc09df43 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringAssignDeploymentResourcesState.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringDeploymentResourcesState.cs @@ -10,8 +10,8 @@ namespace Azure.AI.Language.Text.Authoring { - /// Represents the state of a assign deployment resources job. - public partial class TextAuthoringAssignDeploymentResourcesState + /// Represents the state of a deployment resources job. + public partial class TextAuthoringDeploymentResourcesState { /// /// Keeps track of any properties unknown to the library. @@ -45,11 +45,11 @@ public partial class TextAuthoringAssignDeploymentResourcesState /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The creation date time of the job. /// The last date time the job was updated. /// The job status. - internal TextAuthoringAssignDeploymentResourcesState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, TextAuthoringOperationStatus status) + internal TextAuthoringDeploymentResourcesState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, TextAuthoringOperationStatus status) { CreatedOn = createdOn; LastUpdatedOn = lastUpdatedOn; @@ -58,7 +58,7 @@ internal TextAuthoringAssignDeploymentResourcesState(DateTimeOffset createdOn, D Errors = new ChangeTrackingList(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The job ID. /// The creation date time of the job. /// The last date time the job was updated. @@ -67,7 +67,7 @@ internal TextAuthoringAssignDeploymentResourcesState(DateTimeOffset createdOn, D /// The warnings that were encountered while executing the job. /// The errors encountered while executing the job. /// Keeps track of any properties unknown to the library. - internal TextAuthoringAssignDeploymentResourcesState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, TextAuthoringOperationStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) + internal TextAuthoringDeploymentResourcesState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, TextAuthoringOperationStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) { JobId = jobId; CreatedOn = createdOn; @@ -79,8 +79,8 @@ internal TextAuthoringAssignDeploymentResourcesState(string jobId, DateTimeOffse _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal TextAuthoringAssignDeploymentResourcesState() + /// Initializes a new instance of for deserialization. + internal TextAuthoringDeploymentResourcesState() { } diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringProjectMetadata.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringProjectMetadata.Serialization.cs index d6ba196980b5..b993d32e4461 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringProjectMetadata.Serialization.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringProjectMetadata.Serialization.cs @@ -50,6 +50,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("projectKind"u8); writer.WriteStringValue(ProjectKind.ToString()); + if (Optional.IsDefined(StorageAccountResourceId)) + { + writer.WritePropertyName("storageAccountResourceId"u8); + writer.WriteStringValue(StorageAccountResourceId); + } writer.WritePropertyName("storageInputContainerName"u8); writer.WriteStringValue(StorageInputContainerName); if (Optional.IsDefined(Settings)) @@ -116,6 +121,7 @@ internal static TextAuthoringProjectMetadata DeserializeTextAuthoringProjectMeta DateTimeOffset? lastTrainedDateTime = default; DateTimeOffset? lastDeployedDateTime = default; TextAuthoringProjectKind projectKind = default; + string storageAccountResourceId = default; string storageInputContainerName = default; TextAuthoringProjectSettings settings = default; string projectName = default; @@ -159,6 +165,11 @@ internal static TextAuthoringProjectMetadata DeserializeTextAuthoringProjectMeta projectKind = new TextAuthoringProjectKind(property.Value.GetString()); continue; } + if (property.NameEquals("storageAccountResourceId"u8)) + { + storageAccountResourceId = property.Value.GetString(); + continue; + } if (property.NameEquals("storageInputContainerName"u8)) { storageInputContainerName = property.Value.GetString(); @@ -209,6 +220,7 @@ internal static TextAuthoringProjectMetadata DeserializeTextAuthoringProjectMeta lastTrainedDateTime, lastDeployedDateTime, projectKind, + storageAccountResourceId, storageInputContainerName, settings, projectName, diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringProjectMetadata.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringProjectMetadata.cs index d0a834ac796d..7db7ab9464ba 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringProjectMetadata.cs +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringProjectMetadata.cs @@ -70,6 +70,7 @@ internal TextAuthoringProjectMetadata(DateTimeOffset createdOn, DateTimeOffset l /// Represents the project last training datetime. /// Represents the project last deployment datetime. /// The project kind. + /// The project storage account resource ID. /// The storage container name. /// The project settings. /// The new project name. @@ -77,13 +78,14 @@ internal TextAuthoringProjectMetadata(DateTimeOffset createdOn, DateTimeOffset l /// The project description. /// The project language. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc. /// Keeps track of any properties unknown to the library. - internal TextAuthoringProjectMetadata(DateTimeOffset createdOn, DateTimeOffset lastModifiedOn, DateTimeOffset? lastTrainedOn, DateTimeOffset? lastDeployedOn, TextAuthoringProjectKind projectKind, string storageInputContainerName, TextAuthoringProjectSettings settings, string projectName, bool? multilingual, string description, string language, IDictionary serializedAdditionalRawData) + internal TextAuthoringProjectMetadata(DateTimeOffset createdOn, DateTimeOffset lastModifiedOn, DateTimeOffset? lastTrainedOn, DateTimeOffset? lastDeployedOn, TextAuthoringProjectKind projectKind, string storageAccountResourceId, string storageInputContainerName, TextAuthoringProjectSettings settings, string projectName, bool? multilingual, string description, string language, IDictionary serializedAdditionalRawData) { CreatedOn = createdOn; LastModifiedOn = lastModifiedOn; LastTrainedOn = lastTrainedOn; LastDeployedOn = lastDeployedOn; ProjectKind = projectKind; + StorageAccountResourceId = storageAccountResourceId; StorageInputContainerName = storageInputContainerName; Settings = settings; ProjectName = projectName; @@ -108,6 +110,8 @@ internal TextAuthoringProjectMetadata() public DateTimeOffset? LastDeployedOn { get; } /// The project kind. public TextAuthoringProjectKind ProjectKind { get; } + /// The project storage account resource ID. + public string StorageAccountResourceId { get; } /// The storage container name. public string StorageInputContainerName { get; } /// The project settings. diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringUnassignDeploymentResourcesState.Serialization.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringUnassignDeploymentResourcesState.Serialization.cs deleted file mode 100644 index c8b0639a7c4d..000000000000 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringUnassignDeploymentResourcesState.Serialization.cs +++ /dev/null @@ -1,242 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.AI.Language.Text.Authoring -{ - public partial class TextAuthoringUnassignDeploymentResourcesState : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(TextAuthoringUnassignDeploymentResourcesState)} does not support writing '{format}' format."); - } - - if (options.Format != "W") - { - writer.WritePropertyName("jobId"u8); - writer.WriteStringValue(JobId); - } - writer.WritePropertyName("createdDateTime"u8); - writer.WriteStringValue(CreatedOn, "O"); - writer.WritePropertyName("lastUpdatedDateTime"u8); - writer.WriteStringValue(LastUpdatedOn, "O"); - if (Optional.IsDefined(ExpiresOn)) - { - writer.WritePropertyName("expirationDateTime"u8); - writer.WriteStringValue(ExpiresOn.Value, "O"); - } - writer.WritePropertyName("status"u8); - writer.WriteStringValue(Status.ToString()); - if (Optional.IsCollectionDefined(Warnings)) - { - writer.WritePropertyName("warnings"u8); - writer.WriteStartArray(); - foreach (var item in Warnings) - { - JsonSerializer.Serialize(writer, item); - } - writer.WriteEndArray(); - } - if (Optional.IsCollectionDefined(Errors)) - { - writer.WritePropertyName("errors"u8); - writer.WriteStartArray(); - foreach (var item in Errors) - { - JsonSerializer.Serialize(writer, item); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - TextAuthoringUnassignDeploymentResourcesState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(TextAuthoringUnassignDeploymentResourcesState)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeTextAuthoringUnassignDeploymentResourcesState(document.RootElement, options); - } - - internal static TextAuthoringUnassignDeploymentResourcesState DeserializeTextAuthoringUnassignDeploymentResourcesState(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - string jobId = default; - DateTimeOffset createdDateTime = default; - DateTimeOffset lastUpdatedDateTime = default; - DateTimeOffset? expirationDateTime = default; - TextAuthoringOperationStatus status = default; - IReadOnlyList warnings = default; - IReadOnlyList errors = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("jobId"u8)) - { - jobId = property.Value.GetString(); - continue; - } - if (property.NameEquals("createdDateTime"u8)) - { - createdDateTime = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("lastUpdatedDateTime"u8)) - { - lastUpdatedDateTime = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("expirationDateTime"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - expirationDateTime = property.Value.GetDateTimeOffset("O"); - continue; - } - if (property.NameEquals("status"u8)) - { - status = new TextAuthoringOperationStatus(property.Value.GetString()); - continue; - } - if (property.NameEquals("warnings"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(JsonSerializer.Deserialize(item.GetRawText())); - } - warnings = array; - continue; - } - if (property.NameEquals("errors"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(JsonSerializer.Deserialize(item.GetRawText())); - } - errors = array; - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new TextAuthoringUnassignDeploymentResourcesState( - jobId, - createdDateTime, - lastUpdatedDateTime, - expirationDateTime, - status, - warnings ?? new ChangeTrackingList(), - errors ?? new ChangeTrackingList(), - serializedAdditionalRawData); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - default: - throw new FormatException($"The model {nameof(TextAuthoringUnassignDeploymentResourcesState)} does not support writing '{options.Format}' format."); - } - } - - TextAuthoringUnassignDeploymentResourcesState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTextAuthoringUnassignDeploymentResourcesState(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(TextAuthoringUnassignDeploymentResourcesState)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - - /// Deserializes the model from a raw response. - /// The response to deserialize the model from. - internal static TextAuthoringUnassignDeploymentResourcesState FromResponse(Response response) - { - using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeTextAuthoringUnassignDeploymentResourcesState(document.RootElement); - } - - /// Convert into a . - internal virtual RequestContent ToRequestContent() - { - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); - return content; - } - } -} diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringUnassignDeploymentResourcesState.cs b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringUnassignDeploymentResourcesState.cs deleted file mode 100644 index f3c111265a37..000000000000 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/src/Generated/TextAuthoringUnassignDeploymentResourcesState.cs +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.AI.Language.Text.Authoring -{ - /// Represents the state of a unassign deployment resources job. - public partial class TextAuthoringUnassignDeploymentResourcesState - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// The creation date time of the job. - /// The last date time the job was updated. - /// The job status. - internal TextAuthoringUnassignDeploymentResourcesState(DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, TextAuthoringOperationStatus status) - { - CreatedOn = createdOn; - LastUpdatedOn = lastUpdatedOn; - Status = status; - Warnings = new ChangeTrackingList(); - Errors = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// The job ID. - /// The creation date time of the job. - /// The last date time the job was updated. - /// The expiration date time of the job. - /// The job status. - /// The warnings that were encountered while executing the job. - /// The errors encountered while executing the job. - /// Keeps track of any properties unknown to the library. - internal TextAuthoringUnassignDeploymentResourcesState(string jobId, DateTimeOffset createdOn, DateTimeOffset lastUpdatedOn, DateTimeOffset? expiresOn, TextAuthoringOperationStatus status, IReadOnlyList warnings, IReadOnlyList errors, IDictionary serializedAdditionalRawData) - { - JobId = jobId; - CreatedOn = createdOn; - LastUpdatedOn = lastUpdatedOn; - ExpiresOn = expiresOn; - Status = status; - Warnings = warnings; - Errors = errors; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal TextAuthoringUnassignDeploymentResourcesState() - { - } - - /// The job ID. - public string JobId { get; } - /// The creation date time of the job. - public DateTimeOffset CreatedOn { get; } - /// The last date time the job was updated. - public DateTimeOffset LastUpdatedOn { get; } - /// The expiration date time of the job. - public DateTimeOffset? ExpiresOn { get; } - /// The job status. - public TextAuthoringOperationStatus Status { get; } - /// The warnings that were encountered while executing the job. - public IReadOnlyList Warnings { get; } - /// The errors encountered while executing the job. - public IReadOnlyList Errors { get; } - } -} diff --git a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tsp-location.yaml b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tsp-location.yaml index fe470560ef5b..745a3be5f759 100644 --- a/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tsp-location.yaml +++ b/sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring/tsp-location.yaml @@ -1,3 +1,4 @@ directory: specification/cognitiveservices/Language.AnalyzeText-authoring -commit: 462574dbd02088c209bb1da3eef0d93f699e8de2 +commit: b5bde18cd60fc166a67a5a94d977b09fc7db5df3 repo: Azure/azure-rest-api-specs +additionalDirectories: