ArmApiManagementModelFactory.ApiOperationData Method

Definition

Initializes a new instance of ApiOperationData.

public static Azure.ResourceManager.ApiManagement.ApiOperationData ApiOperationData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ApiManagement.Models.ParameterContract> templateParameters = default, string description = default, Azure.ResourceManager.ApiManagement.Models.RequestContract request = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ApiManagement.Models.ResponseContract> responses = default, string policies = default, string displayName = default, string method = default, string uriTemplate = default);
static member ApiOperationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * seq<Azure.ResourceManager.ApiManagement.Models.ParameterContract> * string * Azure.ResourceManager.ApiManagement.Models.RequestContract * seq<Azure.ResourceManager.ApiManagement.Models.ResponseContract> * string * string * string * string -> Azure.ResourceManager.ApiManagement.ApiOperationData
Public Shared Function ApiOperationData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional templateParameters As IEnumerable(Of ParameterContract) = Nothing, Optional description As String = Nothing, Optional request As RequestContract = Nothing, Optional responses As IEnumerable(Of ResponseContract) = Nothing, Optional policies As String = Nothing, Optional displayName As String = Nothing, Optional method As String = Nothing, Optional uriTemplate As String = Nothing) As ApiOperationData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

templateParameters
IEnumerable<ParameterContract>

Collection of URL template parameters.

description
String

Description of the operation. May include HTML formatting tags.

request
RequestContract

An entity containing request details.

responses
IEnumerable<ResponseContract>

Array of Operation responses.

policies
String

Operation Policies.

displayName
String

Operation Name.

method
String

A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.

uriTemplate
String

Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}.

Returns

A new ApiOperationData instance for mocking.

Applies to