ArmApiManagementModelFactory.ApiSchemaData Method
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.
Initializes a new instance of ApiSchemaData.
public static Azure.ResourceManager.ApiManagement.ApiSchemaData ApiSchemaData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string contentType = default, string value = default, BinaryData definitions = default, BinaryData components = default);
static member ApiSchemaData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * BinaryData * BinaryData -> Azure.ResourceManager.ApiManagement.ApiSchemaData
Public Shared Function ApiSchemaData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional contentType As String = Nothing, Optional value As String = Nothing, Optional definitions As BinaryData = Nothing, Optional components As BinaryData = Nothing) As ApiSchemaData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- 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
</br> - OData Schema
use application/vnd.ms-azure-apim.odata.schema
.
- value
- String
Json escaped string defining the document representing the Schema. Used for schemas other than Swagger/OpenAPI.
- definitions
- BinaryData
Types definitions. Used for Swagger/OpenAPI v1 schemas only, null otherwise.
- components
- BinaryData
Types definitions. Used for Swagger/OpenAPI v2/v3 schemas only, null otherwise.
Returns
A new ApiSchemaData instance for mocking.
Applies to
Azure SDK for .NET