다음을 통해 공유


ApiContract Constructors

Definition

Overloads

ApiContract()

Initializes a new instance of the ApiContract class.

ApiContract(String, String, String, String, String, AuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, String, String, String, Nullable<Boolean>, Nullable<Boolean>, String, String, String, Nullable<Boolean>, String, ApiContactInformation, ApiLicenseInformation, String, String, String, IList<String>, ApiVersionSetContractDetails)

Initializes a new instance of the ApiContract class.

ApiContract()

Initializes a new instance of the ApiContract class.

public ApiContract ();
Public Sub New ()

Applies to

ApiContract(String, String, String, String, String, AuthenticationSettingsContract, SubscriptionKeyParameterNamesContract, String, String, String, Nullable<Boolean>, Nullable<Boolean>, String, String, String, Nullable<Boolean>, String, ApiContactInformation, ApiLicenseInformation, String, String, String, IList<String>, ApiVersionSetContractDetails)

Initializes a new instance of the ApiContract class.

public ApiContract (string path, string id = default, string name = default, string type = default, string description = default, Microsoft.Azure.Management.ApiManagement.Models.AuthenticationSettingsContract authenticationSettings = default, Microsoft.Azure.Management.ApiManagement.Models.SubscriptionKeyParameterNamesContract subscriptionKeyParameterNames = default, string apiType = default, string apiRevision = default, string apiVersion = default, bool? isCurrent = default, bool? isOnline = default, string apiRevisionDescription = default, string apiVersionDescription = default, string apiVersionSetId = default, bool? subscriptionRequired = default, string termsOfServiceUrl = default, Microsoft.Azure.Management.ApiManagement.Models.ApiContactInformation contact = default, Microsoft.Azure.Management.ApiManagement.Models.ApiLicenseInformation license = default, string sourceApiId = default, string displayName = default, string serviceUrl = default, System.Collections.Generic.IList<string> protocols = default, Microsoft.Azure.Management.ApiManagement.Models.ApiVersionSetContractDetails apiVersionSet = default);
new Microsoft.Azure.Management.ApiManagement.Models.ApiContract : string * string * string * string * string * Microsoft.Azure.Management.ApiManagement.Models.AuthenticationSettingsContract * Microsoft.Azure.Management.ApiManagement.Models.SubscriptionKeyParameterNamesContract * string * string * string * Nullable<bool> * Nullable<bool> * string * string * string * Nullable<bool> * string * Microsoft.Azure.Management.ApiManagement.Models.ApiContactInformation * Microsoft.Azure.Management.ApiManagement.Models.ApiLicenseInformation * string * string * string * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.ApiManagement.Models.ApiVersionSetContractDetails -> Microsoft.Azure.Management.ApiManagement.Models.ApiContract
Public Sub New (path As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional description As String = Nothing, Optional authenticationSettings As AuthenticationSettingsContract = Nothing, Optional subscriptionKeyParameterNames As SubscriptionKeyParameterNamesContract = Nothing, Optional apiType As String = Nothing, Optional apiRevision As String = Nothing, Optional apiVersion As String = Nothing, Optional isCurrent As Nullable(Of Boolean) = Nothing, Optional isOnline As Nullable(Of Boolean) = Nothing, Optional apiRevisionDescription As String = Nothing, Optional apiVersionDescription As String = Nothing, Optional apiVersionSetId As String = Nothing, Optional subscriptionRequired As Nullable(Of Boolean) = Nothing, Optional termsOfServiceUrl As String = Nothing, Optional contact As ApiContactInformation = Nothing, Optional license As ApiLicenseInformation = Nothing, Optional sourceApiId As String = Nothing, Optional displayName As String = Nothing, Optional serviceUrl As String = Nothing, Optional protocols As IList(Of String) = Nothing, Optional apiVersionSet As ApiVersionSetContractDetails = Nothing)

Parameters

path
String

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.

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"

description
String

Description of the API. May include HTML formatting tags.

authenticationSettings
AuthenticationSettingsContract

Collection of authentication settings included into this API.

subscriptionKeyParameterNames
SubscriptionKeyParameterNamesContract

Protocols over which API is made available.

apiType
String

Type of API. Possible values include: 'http', 'soap', 'websocket', 'graphql'

apiRevision
String

Describes the revision of the API. If no value is provided, default revision 1 is created

apiVersion
String

Indicates the version identifier of the API if the API is versioned

isCurrent
Nullable<Boolean>

Indicates if API revision is current api revision.

isOnline
Nullable<Boolean>

Indicates if API revision is accessible via the gateway.

apiRevisionDescription
String

Description of the API Revision.

apiVersionDescription
String

Description of the API Version.

apiVersionSetId
String

A resource identifier for the related ApiVersionSet.

subscriptionRequired
Nullable<Boolean>

Specifies whether an API or Product subscription is required for accessing the API.

termsOfServiceUrl
String

A URL to the Terms of Service for the API. MUST be in the format of a URL.

contact
ApiContactInformation

Contact information for the API.

license
ApiLicenseInformation

License information for the API.

sourceApiId
String

API identifier of the source API.

displayName
String

API name. Must be 1 to 300 characters long.

serviceUrl
String

Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.

protocols
IList<String>

Describes on which protocols the operations in this API can be invoked.

apiVersionSet
ApiVersionSetContractDetails

Version set details

Applies to