/** * The Confluence Cloud REST API * This document describes the REST API and resources provided by Confluence. The REST APIs are for developers who want to integrate Confluence into their application and for administrators who want to script interactions with the Confluence server.Confluence\'s REST APIs provide access to resources (data entities) via URI paths. To use a REST API, your application will make an HTTP request and parse the response. The response format is JSON. Your methods will be the standard HTTP methods like GET, PUT, POST and DELETE. Because the REST API is based on open standards, you can use any web development language to access the API. * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { ContentProperty, ContentPropertyArray, ContentPropertyCreate, ContentPropertyCreateNoKey, ContentPropertyUpdate } from '../models'; export interface CreateContentPropertyRequest { id: string; ContentPropertyCreate: ContentPropertyCreate; } export interface CreateContentPropertyForKeyRequest { id: string; key: string; ContentPropertyCreateNoKey: ContentPropertyCreateNoKey; } export interface DeleteContentPropertyRequest { id: string; key: string; } export interface GetContentPropertiesRequest { id: string; expand?: Array; start?: number; limit?: number; } export interface GetContentPropertyRequest { id: string; key: string; expand?: Array; } export interface UpdateContentPropertyRequest { id: string; key: string; ContentPropertyUpdate: ContentPropertyUpdate; } /** * no description */ export declare class ContentIdPropertyApi extends runtime.BaseAPI { /** * Creates a property for an existing piece of content. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). This is the same as [Create content property for key](#api-content-id-property-key-post) except that the key is specified in the request body instead of as a path parameter. Content properties can also be added when creating a new piece of content by including them in the `metadata.properties` of the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Create content property */ createContentPropertyRaw(requestParameters: CreateContentPropertyRequest): Promise>; /** * Creates a property for an existing piece of content. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). This is the same as [Create content property for key](#api-content-id-property-key-post) except that the key is specified in the request body instead of as a path parameter. Content properties can also be added when creating a new piece of content by including them in the `metadata.properties` of the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Create content property */ createContentProperty(requestParameters: CreateContentPropertyRequest): Promise; /** * Creates a property for an existing piece of content. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). This is the same as [Create content property](#api-content-id-property-post) except that the key is specified as a path parameter instead of in the request body. Content properties can also be added when creating a new piece of content by including them in the `metadata.properties` of the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Create content property for key */ createContentPropertyForKeyRaw(requestParameters: CreateContentPropertyForKeyRequest): Promise>; /** * Creates a property for an existing piece of content. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). This is the same as [Create content property](#api-content-id-property-post) except that the key is specified as a path parameter instead of in the request body. Content properties can also be added when creating a new piece of content by including them in the `metadata.properties` of the request. **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Create content property for key */ createContentPropertyForKey(requestParameters: CreateContentPropertyForKeyRequest): Promise; /** * Deletes a content property. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Delete content property */ deleteContentPropertyRaw(requestParameters: DeleteContentPropertyRequest): Promise>; /** * Deletes a content property. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Delete content property */ deleteContentProperty(requestParameters: DeleteContentPropertyRequest): Promise; /** * Returns the properties for a piece of content. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space, and permission to view the content if it is a page. * Get content properties */ getContentPropertiesRaw(requestParameters: GetContentPropertiesRequest): Promise>; /** * Returns the properties for a piece of content. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space, and permission to view the content if it is a page. * Get content properties */ getContentProperties(requestParameters: GetContentPropertiesRequest): Promise; /** * Returns a content property for a piece of content. For more information, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space, and permission to view the content if it is a page. * Get content property */ getContentPropertyRaw(requestParameters: GetContentPropertyRequest): Promise>; /** * Returns a content property for a piece of content. For more information, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: \'View\' permission for the space, and permission to view the content if it is a page. * Get content property */ getContentProperty(requestParameters: GetContentPropertyRequest): Promise; /** * Updates an existing content property. This method will also create a new property for a piece of content, if the property key does not exist and the property version is 1. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Update content property */ updateContentPropertyRaw(requestParameters: UpdateContentPropertyRequest): Promise>; /** * Updates an existing content property. This method will also create a new property for a piece of content, if the property key does not exist and the property version is 1. For more information about content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/). **[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to update the content. * Update content property */ updateContentProperty(requestParameters: UpdateContentPropertyRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetContentPropertiesExpandEnum { Content = "content", Version = "version" } /** * @export * @enum {string} */ export declare enum GetContentPropertyExpandEnum { Content = "content", Version = "version" }