ContentTypes Interface

public interface ContentTypes

Resource collection API of ContentTypes.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new ContentTypeContract resource.

abstract void delete(String resourceGroupName, String serviceName, String contentTypeId, String ifMatch)

Removes the specified developer portal's content type.

abstract void deleteById(String id)

Removes the specified developer portal's content type.

abstract Response<Void> deleteByIdWithResponse(String id, String ifMatch, Context context)

Removes the specified developer portal's content type.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String serviceName, String contentTypeId, String ifMatch, Context context)

Removes the specified developer portal's content type.

abstract ContentTypeContract get(String resourceGroupName, String serviceName, String contentTypeId)

Gets the details of the developer portal's content type.

abstract ContentTypeContract getById(String id)

Gets the details of the developer portal's content type.

abstract Response<ContentTypeContract> getByIdWithResponse(String id, Context context)

Gets the details of the developer portal's content type.

abstract Response<ContentTypeContract> getWithResponse(String resourceGroupName, String serviceName, String contentTypeId, Context context)

Gets the details of the developer portal's content type.

abstract PagedIterable<ContentTypeContract> listByService(String resourceGroupName, String serviceName)

Lists the developer portal's content types.

abstract PagedIterable<ContentTypeContract> listByService(String resourceGroupName, String serviceName, Context context)

Lists the developer portal's content types.

Method Details

define

public abstract ContentTypeContract.DefinitionStages.Blank define(String name)

Begins definition for a new ContentTypeContract resource.

Parameters:

name - resource name.

Returns:

the first stage of the new ContentTypeContract definition.

delete

public abstract void delete(String resourceGroupName, String serviceName, String contentTypeId, String ifMatch)

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 - The name of the resource group. The name is case insensitive.
serviceName - The name of the API Management service.
contentTypeId - Content type identifier.
ifMatch - 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.

deleteById

public abstract void deleteById(String id)

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:

id - the resource ID.

deleteByIdWithResponse

public abstract Response deleteByIdWithResponse(String id, String ifMatch, Context context)

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:

id - the resource ID.
ifMatch - 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.
context - The context to associate with this operation.

Returns:

deleteWithResponse

public abstract Response deleteWithResponse(String resourceGroupName, String serviceName, String contentTypeId, String ifMatch, Context context)

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 - The name of the resource group. The name is case insensitive.
serviceName - The name of the API Management service.
contentTypeId - Content type identifier.
ifMatch - 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.
context - The context to associate with this operation.

Returns:

get

public abstract ContentTypeContract get(String resourceGroupName, String serviceName, String contentTypeId)

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

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serviceName - The name of the API Management service.
contentTypeId - Content type identifier.

Returns:

the details of the developer portal's content type.

getById

public abstract ContentTypeContract getById(String id)

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

Parameters:

id - the resource ID.

Returns:

the details of the developer portal's content type.

getByIdWithResponse

public abstract Response getByIdWithResponse(String id, Context context)

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

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

the details of the developer portal's content type.

getWithResponse

public abstract Response getWithResponse(String resourceGroupName, String serviceName, String contentTypeId, Context context)

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

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serviceName - The name of the API Management service.
contentTypeId - Content type identifier.
context - The context to associate with this operation.

Returns:

the details of the developer portal's content type.

listByService

public abstract PagedIterable listByService(String resourceGroupName, String serviceName)

Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serviceName - The name of the API Management service.

Returns:

paged list of content types as paginated response with PagedIterable<T>.

listByService

public abstract PagedIterable listByService(String resourceGroupName, String serviceName, Context context)

Lists the developer portal's content types. Content types describe content items' properties, validation rules, and constraints.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
serviceName - The name of the API Management service.
context - The context to associate with this operation.

Returns:

paged list of content types as paginated response with PagedIterable<T>.

Applies to