-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
EndpointInfo.cs
114 lines (101 loc) · 4.22 KB
/
EndpointInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models
{
using Newtonsoft.Json;
using System.Linq;
/// <summary>
/// The base class "ProductionOrStagingEndpointInfo" inherits from.
/// </summary>
public partial class EndpointInfo
{
/// <summary>
/// Initializes a new instance of the EndpointInfo class.
/// </summary>
public EndpointInfo()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the EndpointInfo class.
/// </summary>
/// <param name="versionId">The version ID to publish.</param>
/// <param name="isStaging">Indicates if the staging slot should be
/// used, instead of the Production one.</param>
/// <param name="endpointUrl">The Runtime endpoint URL for this model
/// version.</param>
/// <param name="region">The target region that the application is
/// published to.</param>
/// <param name="assignedEndpointKey">The endpoint key.</param>
/// <param name="endpointRegion">The endpoint's region.</param>
/// <param name="failedRegions">Regions where publishing
/// failed.</param>
/// <param name="publishedDateTime">Timestamp when was last
/// published.</param>
public EndpointInfo(string versionId = default(string), bool? isStaging = default(bool?), string endpointUrl = default(string), string region = default(string), string assignedEndpointKey = default(string), string endpointRegion = default(string), string failedRegions = default(string), string publishedDateTime = default(string))
{
VersionId = versionId;
IsStaging = isStaging;
EndpointUrl = endpointUrl;
Region = region;
AssignedEndpointKey = assignedEndpointKey;
EndpointRegion = endpointRegion;
FailedRegions = failedRegions;
PublishedDateTime = publishedDateTime;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the version ID to publish.
/// </summary>
[JsonProperty(PropertyName = "versionId")]
public string VersionId { get; set; }
/// <summary>
/// Gets or sets indicates if the staging slot should be used, instead
/// of the Production one.
/// </summary>
[JsonProperty(PropertyName = "isStaging")]
public bool? IsStaging { get; set; }
/// <summary>
/// Gets or sets the Runtime endpoint URL for this model version.
/// </summary>
[JsonProperty(PropertyName = "endpointUrl")]
public string EndpointUrl { get; set; }
/// <summary>
/// Gets or sets the target region that the application is published
/// to.
/// </summary>
[JsonProperty(PropertyName = "region")]
public string Region { get; set; }
/// <summary>
/// Gets or sets the endpoint key.
/// </summary>
[JsonProperty(PropertyName = "assignedEndpointKey")]
public string AssignedEndpointKey { get; set; }
/// <summary>
/// Gets or sets the endpoint's region.
/// </summary>
[JsonProperty(PropertyName = "endpointRegion")]
public string EndpointRegion { get; set; }
/// <summary>
/// Gets or sets regions where publishing failed.
/// </summary>
[JsonProperty(PropertyName = "failedRegions")]
public string FailedRegions { get; set; }
/// <summary>
/// Gets or sets timestamp when was last published.
/// </summary>
[JsonProperty(PropertyName = "publishedDateTime")]
public string PublishedDateTime { get; set; }
}
}