ListManagementImage class
Class representing a ListManagementImage.
Constructors
List |
Create a ListManagementImage. |
Methods
Constructor Details
ListManagementImage(ContentModeratorClientContext)
Create a ListManagementImage.
new ListManagementImage(client: ContentModeratorClientContext)
Parameters
Reference to the service client.
Method Details
addImage(string, ListManagementImageAddImageOptionalParams)
Add an image to the list with list Id equal to list Id passed.
function addImage(listId: string, options?: ListManagementImageAddImageOptionalParams): Promise<ListManagementImageAddImageResponse>
Parameters
- listId
-
string
List Id of the image list.
The optional parameters
Returns
Promise<ListManagementImageAddImageResponse>
Promise<Models.ListManagementImageAddImageResponse>
addImage(string, ListManagementImageAddImageOptionalParams, ServiceCallback<Image>)
function addImage(listId: string, options: ListManagementImageAddImageOptionalParams, callback: ServiceCallback<Image>)
Parameters
- listId
-
string
List Id of the image list.
The optional parameters
- callback
The callback
addImage(string, ServiceCallback<Image>)
function addImage(listId: string, callback: ServiceCallback<Image>)
Parameters
- listId
-
string
List Id of the image list.
- callback
The callback
addImageFileInput(string, HttpRequestBody, ListManagementImageAddImageFileInputOptionalParams)
Add an image to the list with list Id equal to list Id passed.
function addImageFileInput(listId: string, imageStream: HttpRequestBody, options?: ListManagementImageAddImageFileInputOptionalParams): Promise<ListManagementImageAddImageFileInputResponse>
Parameters
- listId
-
string
List Id of the image list.
- imageStream
- HttpRequestBody
The image file.
The optional parameters
Returns
Promise<Models.ListManagementImageAddImageFileInputResponse>
addImageFileInput(string, HttpRequestBody, ListManagementImageAddImageFileInputOptionalParams, ServiceCallback<Image>)
function addImageFileInput(listId: string, imageStream: HttpRequestBody, options: ListManagementImageAddImageFileInputOptionalParams, callback: ServiceCallback<Image>)
Parameters
- listId
-
string
List Id of the image list.
- imageStream
- HttpRequestBody
The image file.
The optional parameters
- callback
The callback
addImageFileInput(string, HttpRequestBody, ServiceCallback<Image>)
function addImageFileInput(listId: string, imageStream: HttpRequestBody, callback: ServiceCallback<Image>)
Parameters
- listId
-
string
List Id of the image list.
- imageStream
- HttpRequestBody
The image file.
- callback
The callback
addImageUrlInput(string, string, ImageUrl, ListManagementImageAddImageUrlInputOptionalParams)
Add an image to the list with list Id equal to list Id passed.
function addImageUrlInput(listId: string, contentType: string, imageUrl: ImageUrl, options?: ListManagementImageAddImageUrlInputOptionalParams): Promise<ListManagementImageAddImageUrlInputResponse>
Parameters
- listId
-
string
List Id of the image list.
- contentType
-
string
The content type.
- imageUrl
- ImageUrl
The image url.
The optional parameters
Returns
Promise<Models.ListManagementImageAddImageUrlInputResponse>
addImageUrlInput(string, string, ImageUrl, ListManagementImageAddImageUrlInputOptionalParams, ServiceCallback<Image>)
function addImageUrlInput(listId: string, contentType: string, imageUrl: ImageUrl, options: ListManagementImageAddImageUrlInputOptionalParams, callback: ServiceCallback<Image>)
Parameters
- listId
-
string
List Id of the image list.
- contentType
-
string
The content type.
- imageUrl
- ImageUrl
The image url.
The optional parameters
- callback
The callback
addImageUrlInput(string, string, ImageUrl, ServiceCallback<Image>)
function addImageUrlInput(listId: string, contentType: string, imageUrl: ImageUrl, callback: ServiceCallback<Image>)
Parameters
- listId
-
string
List Id of the image list.
- contentType
-
string
The content type.
- imageUrl
- ImageUrl
The image url.
- callback
The callback
deleteAllImages(string, RequestOptionsBase)
Deletes all images from the list with list Id equal to list Id passed.
function deleteAllImages(listId: string, options?: RequestOptionsBase): Promise<ListManagementImageDeleteAllImagesResponse>
Parameters
- listId
-
string
List Id of the image list.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<Models.ListManagementImageDeleteAllImagesResponse>
deleteAllImages(string, RequestOptionsBase, ServiceCallback<string>)
function deleteAllImages(listId: string, options: RequestOptionsBase, callback: ServiceCallback<string>)
Parameters
- listId
-
string
List Id of the image list.
- options
- RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<string>
The callback
deleteAllImages(string, ServiceCallback<string>)
function deleteAllImages(listId: string, callback: ServiceCallback<string>)
Parameters
- listId
-
string
List Id of the image list.
- callback
-
ServiceCallback<string>
The callback
deleteImage(string, string, RequestOptionsBase)
Deletes an image from the list with list Id and image Id passed.
function deleteImage(listId: string, imageId: string, options?: RequestOptionsBase): Promise<ListManagementImageDeleteImageResponse>
Parameters
- listId
-
string
List Id of the image list.
- imageId
-
string
Id of the image.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<Models.ListManagementImageDeleteImageResponse>
deleteImage(string, string, RequestOptionsBase, ServiceCallback<string>)
function deleteImage(listId: string, imageId: string, options: RequestOptionsBase, callback: ServiceCallback<string>)
Parameters
- listId
-
string
List Id of the image list.
- imageId
-
string
Id of the image.
- options
- RequestOptionsBase
The optional parameters
- callback
-
ServiceCallback<string>
The callback
deleteImage(string, string, ServiceCallback<string>)
function deleteImage(listId: string, imageId: string, callback: ServiceCallback<string>)
Parameters
- listId
-
string
List Id of the image list.
- imageId
-
string
Id of the image.
- callback
-
ServiceCallback<string>
The callback
getAllImageIds(string, RequestOptionsBase)
Gets all image Ids from the list with list Id equal to list Id passed.
function getAllImageIds(listId: string, options?: RequestOptionsBase): Promise<ListManagementImageGetAllImageIdsResponse>
Parameters
- listId
-
string
List Id of the image list.
- options
- RequestOptionsBase
The optional parameters
Returns
Promise<Models.ListManagementImageGetAllImageIdsResponse>
getAllImageIds(string, RequestOptionsBase, ServiceCallback<ImageIds>)
function getAllImageIds(listId: string, options: RequestOptionsBase, callback: ServiceCallback<ImageIds>)
Parameters
- listId
-
string
List Id of the image list.
- options
- RequestOptionsBase
The optional parameters
- callback
The callback
getAllImageIds(string, ServiceCallback<ImageIds>)
function getAllImageIds(listId: string, callback: ServiceCallback<ImageIds>)
Parameters
- listId
-
string
List Id of the image list.
- callback
The callback