OperationContract Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OperationContract() |
Initializes a new instance of the OperationContract class. |
OperationContract(String, String, String, String, String, String, IList<ParameterContract>, String, RequestContract, IList<ResponseContract>, String) |
Initializes a new instance of the OperationContract class. |
OperationContract()
Initializes a new instance of the OperationContract class.
public OperationContract ();
Public Sub New ()
Applies to
OperationContract(String, String, String, String, String, String, IList<ParameterContract>, String, RequestContract, IList<ResponseContract>, String)
Initializes a new instance of the OperationContract class.
public OperationContract (string displayName, string method, string urlTemplate, string id = default, string name = default, string type = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.ParameterContract> templateParameters = default, string description = default, Microsoft.Azure.Management.ApiManagement.Models.RequestContract request = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.ResponseContract> responses = default, string policies = default);
new Microsoft.Azure.Management.ApiManagement.Models.OperationContract : string * string * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.ParameterContract> * string * Microsoft.Azure.Management.ApiManagement.Models.RequestContract * System.Collections.Generic.IList<Microsoft.Azure.Management.ApiManagement.Models.ResponseContract> * string -> Microsoft.Azure.Management.ApiManagement.Models.OperationContract
Public Sub New (displayName As String, method As String, urlTemplate As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional templateParameters As IList(Of ParameterContract) = Nothing, Optional description As String = Nothing, Optional request As RequestContract = Nothing, Optional responses As IList(Of ResponseContract) = Nothing, Optional policies As String = Nothing)
Parameters
- displayName
- String
Operation Name.
- method
- String
A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
- urlTemplate
- String
Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
- id
- String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
The name of the resource
- type
- String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- templateParameters
- IList<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
- IList<ResponseContract>
Array of Operation responses.
- policies
- String
Operation Policies
Applies to
Azure SDK for .NET