Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ContentTypeImpl

Package version

Class containing ContentType operations.

Hierarchy

  • ContentTypeImpl

Implements

Index

Constructors

constructor

Methods

createOrUpdate

  • Creates or updates the developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Custom content types' identifiers need to start with the c- prefix. Built-in content types can't be modified.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • serviceName: string

      The name of the API Management service.

    • contentTypeId: string

      Content type identifier.

    • Optional options: ContentTypeCreateOrUpdateOptionalParams

      The options parameters.

    Returns Promise<ContentTypeCreateOrUpdateResponse>

delete

  • Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the c- prefix) can't be removed.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • serviceName: string

      The name of the API Management service.

    • contentTypeId: string

      Content type identifier.

    • ifMatch: string

      ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

    • Optional options: ContentTypeDeleteOptionalParams

      The options parameters.

    Returns Promise<void>

get

  • Gets the details of the developer portal's content type. Content types describe content items' properties, validation rules, and constraints.

    Parameters

    • resourceGroupName: string

      The name of the resource group.

    • serviceName: string

      The name of the API Management service.

    • contentTypeId: string

      Content type identifier.

    • Optional options: ContentTypeGetOptionalParams

      The options parameters.

    Returns Promise<ContentTypeGetResponse>

listByService

Generated using TypeDoc