/
ApiData.cs
122 lines (116 loc) · 8.07 KB
/
ApiData.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
119
120
121
122
// 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;
using Azure.ResourceManager.ApiManagement.Models;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.ApiManagement
{
/// <summary>
/// A class representing the Api data model.
/// API details.
/// </summary>
public partial class ApiData : ResourceData
{
/// <summary> Initializes a new instance of ApiData. </summary>
public ApiData()
{
Protocols = new ChangeTrackingList<ApiOperationInvokableProtocol>();
}
/// <summary> Initializes a new instance of ApiData. </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="description"> Description of the API. May include HTML formatting tags. </param>
/// <param name="authenticationSettings"> Collection of authentication settings included into this API. </param>
/// <param name="subscriptionKeyParameterNames"> Protocols over which API is made available. </param>
/// <param name="apiType"> Type of API. </param>
/// <param name="apiRevision"> Describes the revision of the API. If no value is provided, default revision 1 is created. </param>
/// <param name="apiVersion"> Indicates the version identifier of the API if the API is versioned. </param>
/// <param name="isCurrent"> Indicates if API revision is current api revision. </param>
/// <param name="isOnline"> Indicates if API revision is accessible via the gateway. </param>
/// <param name="apiRevisionDescription"> Description of the API Revision. </param>
/// <param name="apiVersionDescription"> Description of the API Version. </param>
/// <param name="apiVersionSetId"> A resource identifier for the related ApiVersionSet. </param>
/// <param name="isSubscriptionRequired"> Specifies whether an API or Product subscription is required for accessing the API. </param>
/// <param name="termsOfServiceUri"> A URL to the Terms of Service for the API. MUST be in the format of a URL. </param>
/// <param name="contact"> Contact information for the API. </param>
/// <param name="license"> License information for the API. </param>
/// <param name="sourceApiId"> API identifier of the source API. </param>
/// <param name="displayName"> API name. Must be 1 to 300 characters long. </param>
/// <param name="serviceUri"> Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. </param>
/// <param name="path"> Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. </param>
/// <param name="protocols"> Describes on which protocols the operations in this API can be invoked. </param>
/// <param name="apiVersionSet"> Version set details. </param>
internal ApiData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, AuthenticationSettingsContract authenticationSettings, SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames, ApiType? apiType, string apiRevision, string apiVersion, bool? isCurrent, bool? isOnline, string apiRevisionDescription, string apiVersionDescription, ResourceIdentifier apiVersionSetId, bool? isSubscriptionRequired, Uri termsOfServiceUri, ApiContactInformation contact, ApiLicenseInformation license, ResourceIdentifier sourceApiId, string displayName, Uri serviceUri, string path, IList<ApiOperationInvokableProtocol> protocols, ApiVersionSetContractDetails apiVersionSet) : base(id, name, resourceType, systemData)
{
Description = description;
AuthenticationSettings = authenticationSettings;
SubscriptionKeyParameterNames = subscriptionKeyParameterNames;
ApiType = apiType;
ApiRevision = apiRevision;
ApiVersion = apiVersion;
IsCurrent = isCurrent;
IsOnline = isOnline;
ApiRevisionDescription = apiRevisionDescription;
ApiVersionDescription = apiVersionDescription;
ApiVersionSetId = apiVersionSetId;
IsSubscriptionRequired = isSubscriptionRequired;
TermsOfServiceUri = termsOfServiceUri;
Contact = contact;
License = license;
SourceApiId = sourceApiId;
DisplayName = displayName;
ServiceUri = serviceUri;
Path = path;
Protocols = protocols;
ApiVersionSet = apiVersionSet;
}
/// <summary> Description of the API. May include HTML formatting tags. </summary>
public string Description { get; set; }
/// <summary> Collection of authentication settings included into this API. </summary>
public AuthenticationSettingsContract AuthenticationSettings { get; set; }
/// <summary> Protocols over which API is made available. </summary>
public SubscriptionKeyParameterNamesContract SubscriptionKeyParameterNames { get; set; }
/// <summary> Type of API. </summary>
public ApiType? ApiType { get; set; }
/// <summary> Describes the revision of the API. If no value is provided, default revision 1 is created. </summary>
public string ApiRevision { get; set; }
/// <summary> Indicates the version identifier of the API if the API is versioned. </summary>
public string ApiVersion { get; set; }
/// <summary> Indicates if API revision is current api revision. </summary>
public bool? IsCurrent { get; set; }
/// <summary> Indicates if API revision is accessible via the gateway. </summary>
public bool? IsOnline { get; }
/// <summary> Description of the API Revision. </summary>
public string ApiRevisionDescription { get; set; }
/// <summary> Description of the API Version. </summary>
public string ApiVersionDescription { get; set; }
/// <summary> A resource identifier for the related ApiVersionSet. </summary>
public ResourceIdentifier ApiVersionSetId { get; set; }
/// <summary> Specifies whether an API or Product subscription is required for accessing the API. </summary>
public bool? IsSubscriptionRequired { get; set; }
/// <summary> A URL to the Terms of Service for the API. MUST be in the format of a URL. </summary>
public Uri TermsOfServiceUri { get; set; }
/// <summary> Contact information for the API. </summary>
public ApiContactInformation Contact { get; set; }
/// <summary> License information for the API. </summary>
public ApiLicenseInformation License { get; set; }
/// <summary> API identifier of the source API. </summary>
public ResourceIdentifier SourceApiId { get; set; }
/// <summary> API name. Must be 1 to 300 characters long. </summary>
public string DisplayName { get; set; }
/// <summary> Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long. </summary>
public Uri ServiceUri { get; set; }
/// <summary> Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. </summary>
public string Path { get; set; }
/// <summary> Describes on which protocols the operations in this API can be invoked. </summary>
public IList<ApiOperationInvokableProtocol> Protocols { get; }
/// <summary> Version set details. </summary>
public ApiVersionSetContractDetails ApiVersionSet { get; set; }
}
}