-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ApiPatch.cs
139 lines (132 loc) · 8.52 KB
/
ApiPatch.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
// 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 update contract details. </summary>
public partial class ApiPatch
{
/// <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="ApiPatch"/>. </summary>
public ApiPatch()
{
Protocols = new ChangeTrackingList<ApiOperationInvokableProtocol>();
}
/// <summary> Initializes a new instance of <see cref="ApiPatch"/>. </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="displayName"> API name. </param>
/// <param name="serviceLink"> Absolute URL of the backend service implementing this API. </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="serializedAdditionalRawData"> Keeps track of any properties unknown to the library. </param>
internal ApiPatch(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, string displayName, string serviceLink, string path, IList<ApiOperationInvokableProtocol> protocols, 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;
DisplayName = displayName;
ServiceLink = serviceLink;
Path = path;
Protocols = protocols;
_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 name. </summary>
public string DisplayName { get; set; }
/// <summary> Absolute URL of the backend service implementing this API. </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; }
}
}