-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ApiEntityBaseContract.cs
122 lines (115 loc) · 6.95 KB
/
ApiEntityBaseContract.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;
namespace Azure.ResourceManager.ApiManagement.Models
{
/// <summary> API base contract details. </summary>
public partial class ApiEntityBaseContract
{
/// <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 protected IDictionary<string, BinaryData> _serializedAdditionalRawData;
/// <summary> Initializes a new instance of <see cref="ApiEntityBaseContract"/>. </summary>
internal ApiEntityBaseContract()
{
}
/// <summary> Initializes a new instance of <see cref="ApiEntityBaseContract"/>. </summary>
/// <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="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal ApiEntityBaseContract(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, IDictionary<string, BinaryData> serializedAdditionalRawData)
{
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;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
/// <summary> Description of the API. May include HTML formatting tags. </summary>
public string Description { get; }
/// <summary> Collection of authentication settings included into this API. </summary>
public AuthenticationSettingsContract AuthenticationSettings { get; }
/// <summary> Protocols over which API is made available. </summary>
public SubscriptionKeyParameterNamesContract SubscriptionKeyParameterNames { get; }
/// <summary> Type of API. </summary>
public ApiType? ApiType { get; }
/// <summary> Describes the revision of the API. If no value is provided, default revision 1 is created. </summary>
public string ApiRevision { get; }
/// <summary> Indicates the version identifier of the API if the API is versioned. </summary>
public string ApiVersion { get; }
/// <summary> Indicates if API revision is current api revision. </summary>
public bool? IsCurrent { get; }
/// <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; }
/// <summary> Description of the API Version. </summary>
public string ApiVersionDescription { get; }
/// <summary> A resource identifier for the related ApiVersionSet. </summary>
public ResourceIdentifier ApiVersionSetId { get; }
/// <summary> Specifies whether an API or Product subscription is required for accessing the API. </summary>
public bool? IsSubscriptionRequired { get; }
/// <summary> A URL to the Terms of Service for the API. MUST be in the format of a URL. </summary>
public string TermsOfServiceLink { get; }
/// <summary> Contact information for the API. </summary>
public ApiContactInformation Contact { get; }
/// <summary> License information for the API. </summary>
public ApiLicenseInformation License { get; }
}
}