Documentation interface
Interface representing a Documentation.
Methods
create |
Creates a new Documentation or updates an existing one. |
delete(string, string, string, string, Documentation |
Deletes the specified Documentation from an API. |
get(string, string, string, Documentation |
Gets the details of the Documentation specified by its identifier. |
get |
Gets the entity state (Etag) version of the Documentation by its identifier. |
list |
Lists all Documentations of the API Management service instance. |
update(string, string, string, string, Documentation |
Updates the details of the Documentation for an API specified by its identifier. |
Method Details
createOrUpdate(string, string, string, DocumentationContract, DocumentationCreateOrUpdateOptionalParams)
Creates a new Documentation or updates an existing one.
function createOrUpdate(resourceGroupName: string, serviceName: string, documentationId: string, parameters: DocumentationContract, options?: DocumentationCreateOrUpdateOptionalParams): Promise<DocumentationCreateOrUpdateResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- documentationId
-
string
Documentation identifier. Must be unique in the current API Management service instance.
- parameters
- DocumentationContract
Create parameters.
The options parameters.
Returns
Promise<DocumentationCreateOrUpdateResponse>
delete(string, string, string, string, DocumentationDeleteOptionalParams)
Deletes the specified Documentation from an API.
function delete(resourceGroupName: string, serviceName: string, documentationId: string, ifMatch: string, options?: DocumentationDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- documentationId
-
string
Documentation identifier. Must be unique in the current API Management service instance.
- 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.
The options parameters.
Returns
Promise<void>
get(string, string, string, DocumentationGetOptionalParams)
Gets the details of the Documentation specified by its identifier.
function get(resourceGroupName: string, serviceName: string, documentationId: string, options?: DocumentationGetOptionalParams): Promise<DocumentationGetResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- documentationId
-
string
Documentation identifier. Must be unique in the current API Management service instance.
- options
- DocumentationGetOptionalParams
The options parameters.
Returns
Promise<DocumentationGetResponse>
getEntityTag(string, string, string, DocumentationGetEntityTagOptionalParams)
Gets the entity state (Etag) version of the Documentation by its identifier.
function getEntityTag(resourceGroupName: string, serviceName: string, documentationId: string, options?: DocumentationGetEntityTagOptionalParams): Promise<DocumentationGetEntityTagHeaders>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- documentationId
-
string
Documentation identifier. Must be unique in the current API Management service instance.
The options parameters.
Returns
Promise<DocumentationGetEntityTagHeaders>
listByService(string, string, DocumentationListByServiceOptionalParams)
Lists all Documentations of the API Management service instance.
function listByService(resourceGroupName: string, serviceName: string, options?: DocumentationListByServiceOptionalParams): PagedAsyncIterableIterator<DocumentationContract, DocumentationContract[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
The options parameters.
Returns
update(string, string, string, string, DocumentationUpdateContract, DocumentationUpdateOptionalParams)
Updates the details of the Documentation for an API specified by its identifier.
function update(resourceGroupName: string, serviceName: string, documentationId: string, ifMatch: string, parameters: DocumentationUpdateContract, options?: DocumentationUpdateOptionalParams): Promise<DocumentationUpdateResponse>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- serviceName
-
string
The name of the API Management service.
- documentationId
-
string
Documentation identifier. Must be unique in the current API Management service instance.
- 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.
- parameters
- DocumentationUpdateContract
Documentation Update parameters.
The options parameters.
Returns
Promise<DocumentationUpdateResponse>