-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ProductApiData.cs
152 lines (145 loc) · 9.64 KB
/
ProductApiData.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// 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.Models;
namespace Azure.ResourceManager.ApiManagement.Models
{
/// <summary> The ProductApiData. </summary>
public partial class ProductApiData : ResourceData
{
/// <summary>
/// Keeps track of any properties unknown to the library.
/// <para>
/// To assign an object to the value of this property use <see cref="BinaryData.FromObjectAsJson{T}(T, System.Text.Json.JsonSerializerOptions?)"/>.
/// </para>
/// <para>
/// To assign an already formatted json string to this property use <see cref="BinaryData.FromString(string)"/>.
/// </para>
/// <para>
/// Examples:
/// <list type="bullet">
/// <item>
/// <term>BinaryData.FromObjectAsJson("foo")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("\"foo\"")</term>
/// <description>Creates a payload of "foo".</description>
/// </item>
/// <item>
/// <term>BinaryData.FromObjectAsJson(new { key = "value" })</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// <item>
/// <term>BinaryData.FromString("{\"key\": \"value\"}")</term>
/// <description>Creates a payload of { "key": "value" }.</description>
/// </item>
/// </list>
/// </para>
/// </summary>
private IDictionary<string, BinaryData> _serializedAdditionalRawData;
/// <summary> Initializes a new instance of <see cref="ProductApiData"/>. </summary>
public ProductApiData()
{
Protocols = new ChangeTrackingList<ApiOperationInvokableProtocol>();
}
/// <summary> Initializes a new instance of <see cref="ProductApiData"/>. </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="termsOfServiceLink"> 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="serviceLink"> 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>
/// <param name="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal ProductApiData(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, string termsOfServiceLink, ApiContactInformation contact, ApiLicenseInformation license, ResourceIdentifier sourceApiId, string displayName, string serviceLink, string path, IList<ApiOperationInvokableProtocol> protocols, ApiVersionSetContractDetails apiVersionSet, IDictionary<string, BinaryData> serializedAdditionalRawData) : 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;
TermsOfServiceLink = termsOfServiceLink;
Contact = contact;
License = license;
SourceApiId = sourceApiId;
DisplayName = displayName;
ServiceLink = serviceLink;
Path = path;
Protocols = protocols;
ApiVersionSet = apiVersionSet;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// <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 string TermsOfServiceLink { 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 string ServiceLink { 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; }
}
}