-
Notifications
You must be signed in to change notification settings - Fork 253
/
Copy pathIOpenApiLink.cs
37 lines (32 loc) · 1.51 KB
/
IOpenApiLink.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
using System.Collections.Generic;
using Microsoft.OpenApi.Interfaces;
namespace Microsoft.OpenApi.Models.Interfaces;
/// <summary>
/// Defines the base properties for the link object.
/// This interface is provided for type assertions but should not be implemented by package consumers beyond automatic mocking.
/// </summary>
public interface IOpenApiLink : IOpenApiDescribedElement, IOpenApiReadOnlyExtensible, IShallowCopyable<IOpenApiLink>, IOpenApiReferenceable
{
/// <summary>
/// A relative or absolute reference to an OAS operation.
/// This field is mutually exclusive of the operationId field, and MUST point to an Operation Object.
/// </summary>
public string? OperationRef { get; }
/// <summary>
/// The name of an existing, resolvable OAS operation, as defined with a unique operationId.
/// This field is mutually exclusive of the operationRef field.
/// </summary>
public string? OperationId { get; }
/// <summary>
/// A map representing parameters to pass to an operation as specified with operationId or identified via operationRef.
/// </summary>
public Dictionary<string, RuntimeExpressionAnyWrapper>? Parameters { get; }
/// <summary>
/// A literal value or {expression} to use as a request body when calling the target operation.
/// </summary>
public RuntimeExpressionAnyWrapper? RequestBody { get; }
/// <summary>
/// A server object to be used by the target operation.
/// </summary>
public OpenApiServer? Server { get; }
}