/**
* The BatchSpecMetadata model module.
* @module Ntnx/BatchSpecMetadata
* @version 4.4.2
* @class BatchSpecMetadata
*
* @param { ActionType } action
*
* @param { string } name An user friendly name of the batch.
*
* @param { string } uri The absolute URI of the API operation on which batching will be performed.
*/
export default class BatchSpecMetadata {
/**
* Constructs a BatchSpecMetadata from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from data to obj if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:Ntnx/BatchSpecMetadata} obj Optional instance to populate.
* @param callFromChild {Boolean} Flag to recognise calling instance
* @return {module:Ntnx/BatchSpecMetadata} The populated BatchSpecMetadata instance.
*/
static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any;
/**
* Converts a given snake_case string to camelCase.
* @param {string} snakeStr - The input string in snake_case format.
* @returns {string} - The converted string in camelCase format.
*/
static snakeToCamel(snakeStr: string): string;
/**
* Constructs a new BatchSpecMetadata.
* The metadata section on the input specification for performing the batch operation.
* @alias module:Ntnx/BatchSpecMetadata
*
* @param { ActionType } action
*
* @param { string } name An user friendly name of the batch.
*
* @param { string } uri The absolute URI of the API operation on which batching will be performed.
*/
constructor(action: ActionType, name: string, uri: string);
action: string;
name: string;
uri: string;
$objectType: string;
/** @type {object} */
$reserved: object;
/** @type {object} */
$unknownFields: object;
/**
* @return {ActionType}
*/
getAction(): ActionType;
/**
* @param {ActionType} action
*/
setAction(action: ActionType): void;
/**
* Returns An user friendly name of the batch.
* @return {string}
*/
getName(): string;
/**
* Sets An user friendly name of the batch.
* @param {string} name An user friendly name of the batch.
*/
setName(name: string): void;
/**
* Returns The absolute URI of the API operation on which batching will be performed.
* @return {string}
*/
getUri(): string;
/**
* Sets The absolute URI of the API operation on which batching will be performed.
* @param {string} uri The absolute URI of the API operation on which batching will be performed.
*/
setUri(uri: string): void;
/**
* Returns A flag indicating whether the batch procession should halt or continue when an error response is received from the server during the execution of a batch chunk
* @return {boolean}
*/
getShouldStopOnError(): boolean;
/**
* Sets A flag indicating whether the batch procession should halt or continue when an error response is received from the server during the execution of a batch chunk
* @param {boolean} shouldStopOnError A flag indicating whether the batch procession should halt or continue when an error response is received from the server during the execution of a batch chunk
*/
setShouldStopOnError(shouldStopOnError: boolean): void;
shouldStopOnError: boolean;
/**
* Returns The chunk size to use during the batching operation. If not specified a minimum value of 1 would be chosen.
* minimum: 1
* @return {Number}
*/
getChunkSize(): number;
/**
* Sets The chunk size to use during the batching operation. If not specified a minimum value of 1 would be chosen.
* @param {Number} chunkSize The chunk size to use during the batching operation. If not specified a minimum value of 1 would be chosen.
*/
setChunkSize(chunkSize: number): void;
chunkSize: number;
get$Reserved(): any;
get$ObjectType(): string;
get$UnknownFields(): any;
toJson(forMutation: any): any;
validate(scope: any, properties: any, ...args: any[]): Promise;
validateProperty(scope: any, property: any): ValidationError;
#private;
}
import ActionType from "./ActionType";
import ValidationError from "../../../validation/ValidationError";