-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RegionConfigurationResult.cs
59 lines (51 loc) · 3.2 KB
/
RegionConfigurationResult.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.ResourceManager.DataBox.Models
{
/// <summary> Configuration response specific to a region. </summary>
public partial class RegionConfigurationResult
{
/// <summary> Initializes a new instance of RegionConfigurationResult. </summary>
internal RegionConfigurationResult()
{
}
/// <summary> Initializes a new instance of RegionConfigurationResult. </summary>
/// <param name="scheduleAvailabilityResponse"> Schedule availability for given sku in a region. </param>
/// <param name="transportAvailabilityResponse"> Transport options available for given sku in a region. </param>
/// <param name="dataCenterAddressResponse">
/// Datacenter address for given sku in a region.
/// Please note <see cref="DataCenterAddressResult"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="DataCenterAddressInstructionResult"/> and <see cref="DataCenterAddressLocationResult"/>.
/// </param>
internal RegionConfigurationResult(ScheduleAvailabilityResponse scheduleAvailabilityResponse, TransportAvailabilityResponse transportAvailabilityResponse, DataCenterAddressResult dataCenterAddressResponse)
{
ScheduleAvailabilityResponse = scheduleAvailabilityResponse;
TransportAvailabilityResponse = transportAvailabilityResponse;
DataCenterAddressResponse = dataCenterAddressResponse;
}
/// <summary> Schedule availability for given sku in a region. </summary>
internal ScheduleAvailabilityResponse ScheduleAvailabilityResponse { get; }
/// <summary> List of dates available to schedule. </summary>
public IReadOnlyList<DateTimeOffset> ScheduleAvailabilityResponseAvailableDates
{
get => ScheduleAvailabilityResponse?.AvailableDates;
}
/// <summary> Transport options available for given sku in a region. </summary>
internal TransportAvailabilityResponse TransportAvailabilityResponse { get; }
/// <summary> List of transport availability details for given region. </summary>
public IReadOnlyList<TransportAvailabilityDetails> TransportAvailabilityDetails
{
get => TransportAvailabilityResponse?.TransportAvailabilityDetails;
}
/// <summary>
/// Datacenter address for given sku in a region.
/// Please note <see cref="DataCenterAddressResult"/> is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include <see cref="DataCenterAddressInstructionResult"/> and <see cref="DataCenterAddressLocationResult"/>.
/// </summary>
public DataCenterAddressResult DataCenterAddressResponse { get; }
}
}