/** * The Geometry model module. * @module Ntnx/Geometry * @version 4.1.1-beta-1 * @class Geometry * * @param { GeometryType } type * * @param { double[] } coordinates Array of coordinates [longitude, latitude]. */ export default class Geometry { /** * Constructs a Geometry 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/Geometry} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/Geometry} The populated Geometry 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 Geometry. * Geometric data defining location coordinates. * @alias module:Ntnx/Geometry * * @param { GeometryType } type * * @param { double[] } coordinates Array of coordinates [longitude, latitude]. */ constructor(type: GeometryType, coordinates: double[]); type: string; coordinates: double[]; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * @return {GeometryType} */ getType(): GeometryType; /** * @param {GeometryType} type */ setType(type: GeometryType): void; /** * Returns Array of coordinates [longitude, latitude]. * @return {double[]} */ getCoordinates(): double[]; /** * Sets Array of coordinates [longitude, latitude]. * @param {double[]} coordinates Array of coordinates [longitude, latitude]. */ setCoordinates(coordinates: double[]): void; 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 GeometryType from "./GeometryType"; import ValidationError from "../../../validation/ValidationError";