-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
HealthcareApisServiceCorsConfiguration.cs
50 lines (44 loc) · 2.16 KB
/
HealthcareApisServiceCorsConfiguration.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.HealthcareApis.Models
{
/// <summary> The settings for the CORS configuration of the service instance. </summary>
public partial class HealthcareApisServiceCorsConfiguration
{
/// <summary> Initializes a new instance of HealthcareApisServiceCorsConfiguration. </summary>
public HealthcareApisServiceCorsConfiguration()
{
Origins = new ChangeTrackingList<string>();
Headers = new ChangeTrackingList<string>();
Methods = new ChangeTrackingList<string>();
}
/// <summary> Initializes a new instance of HealthcareApisServiceCorsConfiguration. </summary>
/// <param name="origins"> The origins to be allowed via CORS. </param>
/// <param name="headers"> The headers to be allowed via CORS. </param>
/// <param name="methods"> The methods to be allowed via CORS. </param>
/// <param name="maxAge"> The max age to be allowed via CORS. </param>
/// <param name="allowCredentials"> If credentials are allowed via CORS. </param>
internal HealthcareApisServiceCorsConfiguration(IList<string> origins, IList<string> headers, IList<string> methods, int? maxAge, bool? allowCredentials)
{
Origins = origins;
Headers = headers;
Methods = methods;
MaxAge = maxAge;
AllowCredentials = allowCredentials;
}
/// <summary> The origins to be allowed via CORS. </summary>
public IList<string> Origins { get; }
/// <summary> The headers to be allowed via CORS. </summary>
public IList<string> Headers { get; }
/// <summary> The methods to be allowed via CORS. </summary>
public IList<string> Methods { get; }
/// <summary> The max age to be allowed via CORS. </summary>
public int? MaxAge { get; set; }
/// <summary> If credentials are allowed via CORS. </summary>
public bool? AllowCredentials { get; set; }
}
}