-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ConnectivityStatusContract.cs
89 lines (82 loc) · 5.52 KB
/
ConnectivityStatusContract.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.ResourceManager.ApiManagement.Models
{
/// <summary> Details about connectivity to a resource. </summary>
public partial class ConnectivityStatusContract
{
/// <summary> Initializes a new instance of ConnectivityStatusContract. </summary>
/// <param name="name"> The hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon. </param>
/// <param name="status"> Resource Connectivity Status Type identifier. </param>
/// <param name="lastUpdatedOn">
/// The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
///
/// </param>
/// <param name="lastStatusChangedOn">
/// The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
///
/// </param>
/// <param name="resourceType"> Resource Type. </param>
/// <param name="isOptional"> Whether this is optional. </param>
/// <exception cref="ArgumentNullException"> <paramref name="name"/> or <paramref name="resourceType"/> is null. </exception>
internal ConnectivityStatusContract(string name, ConnectivityStatusType status, DateTimeOffset lastUpdatedOn, DateTimeOffset lastStatusChangedOn, string resourceType, bool isOptional)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(resourceType, nameof(resourceType));
Name = name;
Status = status;
LastUpdatedOn = lastUpdatedOn;
LastStatusChangedOn = lastStatusChangedOn;
ResourceType = resourceType;
IsOptional = isOptional;
}
/// <summary> Initializes a new instance of ConnectivityStatusContract. </summary>
/// <param name="name"> The hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon. </param>
/// <param name="status"> Resource Connectivity Status Type identifier. </param>
/// <param name="error"> Error details of the connectivity to the resource. </param>
/// <param name="lastUpdatedOn">
/// The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
///
/// </param>
/// <param name="lastStatusChangedOn">
/// The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
///
/// </param>
/// <param name="resourceType"> Resource Type. </param>
/// <param name="isOptional"> Whether this is optional. </param>
internal ConnectivityStatusContract(string name, ConnectivityStatusType status, string error, DateTimeOffset lastUpdatedOn, DateTimeOffset lastStatusChangedOn, string resourceType, bool isOptional)
{
Name = name;
Status = status;
Error = error;
LastUpdatedOn = lastUpdatedOn;
LastStatusChangedOn = lastStatusChangedOn;
ResourceType = resourceType;
IsOptional = isOptional;
}
/// <summary> The hostname of the resource which the service depends on. This can be the database, storage or any other azure resource on which the service depends upon. </summary>
public string Name { get; }
/// <summary> Resource Connectivity Status Type identifier. </summary>
public ConnectivityStatusType Status { get; }
/// <summary> Error details of the connectivity to the resource. </summary>
public string Error { get; }
/// <summary>
/// The date when the resource connectivity status was last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
///
/// </summary>
public DateTimeOffset LastUpdatedOn { get; }
/// <summary>
/// The date when the resource connectivity status last Changed from success to failure or vice-versa. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.
///
/// </summary>
public DateTimeOffset LastStatusChangedOn { get; }
/// <summary> Resource Type. </summary>
public string ResourceType { get; }
/// <summary> Whether this is optional. </summary>
public bool IsOptional { get; }
}
}