-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
RepresentationContract.cs
55 lines (48 loc) · 3.44 KB
/
RepresentationContract.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
// 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;
namespace Azure.ResourceManager.ApiManagement.Models
{
/// <summary> Operation request/response representation details. </summary>
public partial class RepresentationContract
{
/// <summary> Initializes a new instance of RepresentationContract. </summary>
/// <param name="contentType"> Specifies a registered or custom content type for this representation, e.g. application/xml. </param>
/// <exception cref="ArgumentNullException"> <paramref name="contentType"/> is null. </exception>
public RepresentationContract(string contentType)
{
Argument.AssertNotNull(contentType, nameof(contentType));
ContentType = contentType;
FormParameters = new ChangeTrackingList<ParameterContract>();
Examples = new ChangeTrackingDictionary<string, ParameterExampleContract>();
}
/// <summary> Initializes a new instance of RepresentationContract. </summary>
/// <param name="contentType"> Specifies a registered or custom content type for this representation, e.g. application/xml. </param>
/// <param name="schemaId"> Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'. </param>
/// <param name="typeName"> Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'. </param>
/// <param name="formParameters"> Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'.. </param>
/// <param name="examples"> Exampled defined for the representation. </param>
internal RepresentationContract(string contentType, string schemaId, string typeName, IList<ParameterContract> formParameters, IDictionary<string, ParameterExampleContract> examples)
{
ContentType = contentType;
SchemaId = schemaId;
TypeName = typeName;
FormParameters = formParameters;
Examples = examples;
}
/// <summary> Specifies a registered or custom content type for this representation, e.g. application/xml. </summary>
public string ContentType { get; set; }
/// <summary> Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'. </summary>
public string SchemaId { get; set; }
/// <summary> Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'. </summary>
public string TypeName { get; set; }
/// <summary> Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'.. </summary>
public IList<ParameterContract> FormParameters { get; }
/// <summary> Exampled defined for the representation. </summary>
public IDictionary<string, ParameterExampleContract> Examples { get; }
}
}