/** * ReportArtifacts service. * @version 4.1.1-beta-1 * @class ReportArtifactsApi */ export class ReportArtifactsApi { /** * Make the default {@link ApiClient} class available for developers to be able to extend it and bring * their own fetch methods into the SDK */ static get ApiClient(): typeof ApiClient; /** * Constructs a new ReportArtifactsApi. * @alias module:api/ReportArtifactsApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Create a report artifact * This operation creates a report artifact using the provided artifact type and file type. * @param { Required> & Partial } body specification * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateReportArtifactApiResponse } and HTTP response */ createReportArtifact(body: Required> & Partial, ...args: any): Promise; /** * Download an artifact file * This operation downloads the artifact with the given UUID. * @param { String } reportArtifactExtId Report artifact ID. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DownloadArtifactileApiResponse } and HTTP response */ downloadArtifactFile(reportArtifactExtId: string, ...args: any): Promise; /** * Get a list of report artifacts * Endpoint for listing all report artifacts accessible to the user matching the filter criteria. * @param {Object} opts Optional parameters defined for the operation * @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results. If both $page and $apply query parameters are present, $page will be applied on entities within the groups. * @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set. If both $limit and $apply query parameters are present, $limit will be applied on entities within the groups. Default value of limit with $apply will be 5. * @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'. If both $filter and $apply query parameters are present, $filter will be applied on entities within the groups. * @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned. If both $select and $apply query parameters are present, $select will be applied on entities within the groups. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListReportArtifactsApiResponse } and HTTP response */ listReportArtifacts(opts: { $page: number; $limit: number; $filter: string; $select: string; }, ...args: any): Promise; /** * Upload an artifact file * This operation uploads an artifact file to the provided UUID. * @param { Partial } body Accepts file path as a string or a file stream * @param { String } reportArtifactExtId Report artifact ID. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UploadArtifactApiResponse } and HTTP response */ uploadArtifactFile(reportArtifactExtId: string, body: Partial>, ...args: any): Promise; #private; } import ReportArtifact from "../models/opsmgmt/v4/content/ReportArtifact"; import CreateReportArtifactApiResponse from "../models/opsmgmt/v4/content/CreateReportArtifactApiResponse"; import DownloadArtifactileApiResponse from "../models/opsmgmt/v4/content/DownloadArtifactileApiResponse"; import ListReportArtifactsApiResponse from "../models/opsmgmt/v4/content/ListReportArtifactsApiResponse"; import UploadArtifactApiResponse from "../models/opsmgmt/v4/content/UploadArtifactApiResponse"; import { ApiClient } from "../ApiClient";