Share via


SchemaContract Class

Definition

API Schema Contract details.

[Microsoft.Rest.Serialization.JsonTransformation]
public class SchemaContract : Microsoft.Azure.Management.ApiManagement.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type SchemaContract = class
    inherit Resource
Public Class SchemaContract
Inherits Resource
Inheritance
SchemaContract
Attributes

Constructors

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.

Properties

Components

Gets or sets types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.

ContentType

Gets or sets 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). &lt;/br&gt; - Swagger Schema use application/vnd.ms-azure-apim.swagger.definitions+json &lt;/br&gt; - WSDL Schema use application/vnd.ms-azure-apim.xsd+xml &lt;/br&gt; - OpenApi Schema use application/vnd.oai.openapi.components+json &lt;/br&gt; - WADL Schema use application/vnd.ms-azure-apim.wadl.grammars+xml.

Definitions

Gets or sets types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.

Id

Gets fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

(Inherited from Resource)
Name

Gets the name of the resource

(Inherited from Resource)
Type

Gets the type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

(Inherited from Resource)
Value

Gets or sets json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.

WsdlSchema

Gets the Wsdl Schema from the Document JObject

Methods

Validate()

Validate the object.

Applies to