-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify properties type to Azure Regions and Azure Resource Id
- Loading branch information
Showing
4 changed files
with
48 additions
and
31 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...itivelanguage/Azure.AI.Language.Conversations.Authoring/src/AssignedDeploymentResource.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using Azure.Core; | ||
|
||
namespace Azure.AI.Language.Conversations.Authoring.Models | ||
{ | ||
[CodeGenSuppress("AssignedDeploymentResource", typeof(AzureLocation))] | ||
[CodeGenSuppress("AssignedDeploymentResource", typeof(ResourceIdentifier), typeof(AzureLocation), typeof(IDictionary<string, BinaryData>))] | ||
public partial class AssignedDeploymentResource | ||
{ | ||
/// <summary> The resource ID. </summary> | ||
public ResourceIdentifier ResourceId { get; } | ||
|
||
/// <summary> The resource region. </summary> | ||
public AzureLocation Region { get; } | ||
|
||
/// <summary> Initializes a new instance of <see cref="AssignedDeploymentResource"/>. </summary> | ||
/// <param name="region"> The resource region. </param> | ||
/// <exception cref="ArgumentNullException"> <paramref name="region"/> is null. </exception> | ||
internal AssignedDeploymentResource(string region) | ||
{ | ||
Argument.AssertNotNull(region, nameof(region)); | ||
|
||
Region = new AzureLocation(region); | ||
} | ||
|
||
/// <summary> Initializes a new instance of <see cref="AssignedDeploymentResource"/>. </summary> | ||
/// <param name="resourceId"> The resource ID. </param> | ||
/// <param name="region"> The resource region. </param> | ||
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param> | ||
internal AssignedDeploymentResource(string resourceId, string region, IDictionary<string, BinaryData> serializedAdditionalRawData) | ||
{ | ||
ResourceId = new ResourceIdentifier(resourceId); | ||
Region = new AzureLocation(region); | ||
_serializedAdditionalRawData = serializedAdditionalRawData; | ||
} | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
...language/Azure.AI.Language.Conversations.Authoring/src/Generated/AuthoringModelFactory.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 4 additions & 4 deletions
8
....Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.Serialization.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
27 changes: 1 addition & 26 deletions
27
...re.AI.Language.Conversations.Authoring/src/Generated/Models/AssignedDeploymentResource.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.