SchemaContract Constructors

Definition

Overloads

SchemaContract()

Initializes a new instance of the SchemaContract class.

SchemaContract(String, String, String, String, String, Object, Object)

Initializes a new instance of the SchemaContract class.

SchemaContract()

Initializes a new instance of the SchemaContract class.

public SchemaContract ();
Public Sub New ()

Applies to

SchemaContract(String, String, String, String, String, Object, Object)

Initializes a new instance of the SchemaContract class.

public SchemaContract (string contentType, string id = default, string name = default, string type = default, string value = default, object definitions = default, object components = default);
new Microsoft.Azure.Management.ApiManagement.Models.SchemaContract : string * string * string * string * string * obj * obj -> Microsoft.Azure.Management.ApiManagement.Models.SchemaContract
Public Sub New (contentType As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional value As String = Nothing, Optional definitions As Object = Nothing, Optional components As Object = Nothing)

Parameters

contentType
String

Must be a valid a media type used in a Content-Type header as defined in the RFC 2616. Media type of the schema document (e.g. application/json, application/xml). </br> - Swagger Schema use application/vnd.ms-azure-apim.swagger.definitions+json </br> - WSDL Schema use application/vnd.ms-azure-apim.xsd+xml </br> - OpenApi Schema use application/vnd.oai.openapi.components+json </br> - WADL Schema use application/vnd.ms-azure-apim.wadl.grammars+xml.

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"

value
String

Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.

definitions
Object

Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.

components
Object

Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.

Applies to