-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
AdditionalLocation.cs
118 lines (109 loc) · 7.4 KB
/
AdditionalLocation.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
115
116
117
118
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using System.Net;
using Azure.Core;
namespace Azure.ResourceManager.ApiManagement.Models
{
/// <summary> Description of an additional API Management resource location. </summary>
public partial class AdditionalLocation
{
/// <summary>
/// Keeps track of any properties unknown to the library.
/// <para>
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
private IDictionary<string, BinaryData> _serializedAdditionalRawData;
/// <summary> Initializes a new instance of <see cref="AdditionalLocation"/>. </summary>
/// <param name="location"> The location name of the additional region among Azure Data center regions. </param>
/// <param name="sku"> SKU properties of the API Management service. </param>
/// <exception cref="ArgumentNullException"> <paramref name="sku"/> is null. </exception>
public AdditionalLocation(AzureLocation location, ApiManagementServiceSkuProperties sku)
{
Argument.AssertNotNull(sku, nameof(sku));
Location = location;
Sku = sku;
Zones = new ChangeTrackingList<string>();
PublicIPAddresses = new ChangeTrackingList<IPAddress>();
PrivateIPAddresses = new ChangeTrackingList<IPAddress>();
}
/// <summary> Initializes a new instance of <see cref="AdditionalLocation"/>. </summary>
/// <param name="location"> The location name of the additional region among Azure Data center regions. </param>
/// <param name="sku"> SKU properties of the API Management service. </param>
/// <param name="zones"> A list of availability zones denoting where the resource needs to come from. </param>
/// <param name="publicIPAddresses"> Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard, Premium and Isolated SKU. </param>
/// <param name="privateIPAddresses"> Private Static Load Balanced IP addresses of the API Management service which is deployed in an Internal Virtual Network in a particular additional location. Available only for Basic, Standard, Premium and Isolated SKU. </param>
/// <param name="publicIPAddressId"> Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the location. Supported only for Premium SKU being deployed in Virtual Network. </param>
/// <param name="virtualNetworkConfiguration"> Virtual network configuration for the location. </param>
/// <param name="gatewayRegionalUri"> Gateway URL of the API Management service in the Region. </param>
/// <param name="disableGateway"> Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location. </param>
/// <param name="platformVersion"> Compute Platform Version running the service. </param>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal AdditionalLocation(AzureLocation location, ApiManagementServiceSkuProperties sku, IList<string> zones, IReadOnlyList<IPAddress> publicIPAddresses, IReadOnlyList<IPAddress> privateIPAddresses, ResourceIdentifier publicIPAddressId, VirtualNetworkConfiguration virtualNetworkConfiguration, Uri gatewayRegionalUri, bool? disableGateway, PlatformVersion? platformVersion, IDictionary<string, BinaryData> serializedAdditionalRawData)
{
Location = location;
Sku = sku;
Zones = zones;
PublicIPAddresses = publicIPAddresses;
PrivateIPAddresses = privateIPAddresses;
PublicIPAddressId = publicIPAddressId;
VirtualNetworkConfiguration = virtualNetworkConfiguration;
GatewayRegionalUri = gatewayRegionalUri;
DisableGateway = disableGateway;
PlatformVersion = platformVersion;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// <summary> Initializes a new instance of <see cref="AdditionalLocation"/> for deserialization. </summary>
internal AdditionalLocation()
{
}
/// <summary> The location name of the additional region among Azure Data center regions. </summary>
public AzureLocation Location { get; set; }
/// <summary> SKU properties of the API Management service. </summary>
public ApiManagementServiceSkuProperties Sku { get; set; }
/// <summary> A list of availability zones denoting where the resource needs to come from. </summary>
public IList<string> Zones { get; }
/// <summary> Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard, Premium and Isolated SKU. </summary>
public IReadOnlyList<IPAddress> PublicIPAddresses { get; }
/// <summary> Private Static Load Balanced IP addresses of the API Management service which is deployed in an Internal Virtual Network in a particular additional location. Available only for Basic, Standard, Premium and Isolated SKU. </summary>
public IReadOnlyList<IPAddress> PrivateIPAddresses { get; }
/// <summary> Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the location. Supported only for Premium SKU being deployed in Virtual Network. </summary>
public ResourceIdentifier PublicIPAddressId { get; set; }
/// <summary> Virtual network configuration for the location. </summary>
public VirtualNetworkConfiguration VirtualNetworkConfiguration { get; set; }
/// <summary> Gateway URL of the API Management service in the Region. </summary>
public Uri GatewayRegionalUri { get; }
/// <summary> Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location. </summary>
public bool? DisableGateway { get; set; }
/// <summary> Compute Platform Version running the service. </summary>
public PlatformVersion? PlatformVersion { get; }
}
}