@@ -16,27 +16,27 @@ class Instance:
1616 """Represents a cloud instance with its configuration and state.
1717
1818 Attributes:
19- id (str) : Unique identifier for the instance.
20- instance_type (str) : Type of the instance (e.g., '8V100.48V').
21- price_per_hour (float) : Cost per hour of running the instance.
22- hostname (str) : Network hostname of the instance.
23- description (str) : Human-readable description of the instance.
24- ip (str) : IP address assigned to the instance.
25- status (str) : Current operational status of the instance.
26- created_at (str) : Timestamp of instance creation.
27- ssh_key_ids (List[str]) : List of SSH key IDs associated with the instance.
28- cpu (dict) : CPU configuration details.
29- gpu (dict) : GPU configuration details.
30- memory (dict) : Memory configuration details.
31- storage (dict) : Storage configuration details.
32- os_volume_id (str) : ID of the operating system volume.
33- gpu_memory (dict) : GPU memory configuration details.
34- location (str) : Datacenter location code (default: Locations.FIN_01).
35- image (Optional[str]) : Image ID or type used for the instance.
36- startup_script_id (Optional[str]) : ID of the startup script to run.
37- is_spot (bool) : Whether the instance is a spot instance.
38- contract (Optional[Contract]) : Contract type for the instance. (e.g. 'LONG_TERM', 'PAY_AS_YOU_GO', 'SPOT')
39- pricing (Optional[Pricing]) : Pricing model for the instance. (e.g. 'DYNAMIC_PRICE', 'FIXED_PRICE')
19+ id: Unique identifier for the instance.
20+ instance_type: Type of the instance (e.g., '8V100.48V').
21+ price_per_hour: Cost per hour of running the instance.
22+ hostname: Network hostname of the instance.
23+ description: Human-readable description of the instance.
24+ ip: IP address assigned to the instance.
25+ status: Current operational status of the instance.
26+ created_at: Timestamp of instance creation.
27+ ssh_key_ids: List of SSH key IDs associated with the instance.
28+ cpu: CPU configuration details.
29+ gpu: GPU configuration details.
30+ memory: Memory configuration details.
31+ storage: Storage configuration details.
32+ os_volume_id: ID of the operating system volume.
33+ gpu_memory: GPU memory configuration details.
34+ location: Datacenter location code (default: Locations.FIN_01).
35+ image: Image ID or type used for the instance.
36+ startup_script_id: ID of the startup script to run.
37+ is_spot: Whether the instance is a spot instance.
38+ contract: Contract type for the instance. (e.g. 'LONG_TERM', 'PAY_AS_YOU_GO', 'SPOT')
39+ pricing: Pricing model for the instance. (e.g. 'DYNAMIC_PRICE', 'FIXED_PRICE')
4040 """
4141
4242 id : str
0 commit comments