-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
PeeringData.cs
71 lines (64 loc) · 3.5 KB
/
PeeringData.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Peering.Models;
namespace Azure.ResourceManager.Peering
{
/// <summary>
/// A class representing the Peering data model.
/// Peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location.
/// </summary>
public partial class PeeringData : TrackedResourceData
{
/// <summary> Initializes a new instance of <see cref="PeeringData"/>. </summary>
/// <param name="location"> The location. </param>
/// <param name="sku"> The SKU that defines the tier and kind of the peering. </param>
/// <param name="kind"> The kind of the peering. </param>
/// <exception cref="ArgumentNullException"> <paramref name="sku"/> is null. </exception>
public PeeringData(AzureLocation location, PeeringSku sku, PeeringKind kind) : base(location)
{
Argument.AssertNotNull(sku, nameof(sku));
Sku = sku;
Kind = kind;
}
/// <summary> Initializes a new instance of <see cref="PeeringData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="tags"> The tags. </param>
/// <param name="location"> The location. </param>
/// <param name="sku"> The SKU that defines the tier and kind of the peering. </param>
/// <param name="kind"> The kind of the peering. </param>
/// <param name="direct"> The properties that define a direct peering. </param>
/// <param name="exchange"> The properties that define an exchange peering. </param>
/// <param name="peeringLocation"> The location of the peering. </param>
/// <param name="provisioningState"> The provisioning state of the resource. </param>
internal PeeringData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary<string, string> tags, AzureLocation location, PeeringSku sku, PeeringKind kind, DirectPeeringProperties direct, ExchangePeeringProperties exchange, string peeringLocation, PeeringProvisioningState? provisioningState) : base(id, name, resourceType, systemData, tags, location)
{
Sku = sku;
Kind = kind;
Direct = direct;
Exchange = exchange;
PeeringLocation = peeringLocation;
ProvisioningState = provisioningState;
}
/// <summary> The SKU that defines the tier and kind of the peering. </summary>
public PeeringSku Sku { get; set; }
/// <summary> The kind of the peering. </summary>
public PeeringKind Kind { get; set; }
/// <summary> The properties that define a direct peering. </summary>
public DirectPeeringProperties Direct { get; set; }
/// <summary> The properties that define an exchange peering. </summary>
public ExchangePeeringProperties Exchange { get; set; }
/// <summary> The location of the peering. </summary>
public string PeeringLocation { get; set; }
/// <summary> The provisioning state of the resource. </summary>
public PeeringProvisioningState? ProvisioningState { get; }
}
}