-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ApiOperationData.cs
70 lines (64 loc) · 3.68 KB
/
ApiOperationData.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.ApiManagement.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.ApiManagement
{
/// <summary>
/// A class representing the ApiOperation data model.
/// API Operation details.
/// </summary>
public partial class ApiOperationData : ResourceData
{
/// <summary> Initializes a new instance of ApiOperationData. </summary>
public ApiOperationData()
{
TemplateParameters = new ChangeTrackingList<ParameterContract>();
Responses = new ChangeTrackingList<ResponseContract>();
}
/// <summary> Initializes a new instance of ApiOperationData. </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="templateParameters"> Collection of URL template parameters. </param>
/// <param name="description"> Description of the operation. May include HTML formatting tags. </param>
/// <param name="request"> An entity containing request details. </param>
/// <param name="responses"> Array of Operation responses. </param>
/// <param name="policies"> Operation Policies. </param>
/// <param name="displayName"> Operation Name. </param>
/// <param name="method"> A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. </param>
/// <param name="uriTemplate"> Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}. </param>
internal ApiOperationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IList<ParameterContract> templateParameters, string description, RequestContract request, IList<ResponseContract> responses, string policies, string displayName, string method, string uriTemplate) : base(id, name, resourceType, systemData)
{
TemplateParameters = templateParameters;
Description = description;
Request = request;
Responses = responses;
Policies = policies;
DisplayName = displayName;
Method = method;
UriTemplate = uriTemplate;
}
/// <summary> Collection of URL template parameters. </summary>
public IList<ParameterContract> TemplateParameters { get; }
/// <summary> Description of the operation. May include HTML formatting tags. </summary>
public string Description { get; set; }
/// <summary> An entity containing request details. </summary>
public RequestContract Request { get; set; }
/// <summary> Array of Operation responses. </summary>
public IList<ResponseContract> Responses { get; }
/// <summary> Operation Policies. </summary>
public string Policies { get; set; }
/// <summary> Operation Name. </summary>
public string DisplayName { get; set; }
/// <summary> A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them. </summary>
public string Method { get; set; }
/// <summary> Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}. </summary>
public string UriTemplate { get; set; }
}
}