|
| 1 | +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
| 2 | + |
| 3 | +from typing import List, Optional |
| 4 | +from datetime import datetime |
| 5 | +from typing_extensions import Literal |
| 6 | + |
| 7 | +from ..tag import Tag |
| 8 | +from ...._models import BaseModel |
| 9 | + |
| 10 | +__all__ = ["ImageListResponse", "Result"] |
| 11 | + |
| 12 | + |
| 13 | +class Result(BaseModel): |
| 14 | + id: str |
| 15 | + """Image ID""" |
| 16 | + |
| 17 | + architecture: Literal["aarch64", "x86_64"] |
| 18 | + """An image architecture type: aarch64, `x86_64`.""" |
| 19 | + |
| 20 | + created_at: datetime |
| 21 | + """Datetime when the image was created""" |
| 22 | + |
| 23 | + creator_task_id: Optional[str] = None |
| 24 | + """Task that created this entity""" |
| 25 | + |
| 26 | + currency_code: Optional[str] = None |
| 27 | + """Currency code. Shown if the `include_prices` query parameter if set to true""" |
| 28 | + |
| 29 | + description: Optional[str] = None |
| 30 | + """Image description""" |
| 31 | + |
| 32 | + disk_format: str |
| 33 | + """Disk format""" |
| 34 | + |
| 35 | + display_order: Optional[int] = None |
| 36 | + |
| 37 | + gpu_driver: Optional[str] = None |
| 38 | + """Name of the GPU driver vendor""" |
| 39 | + |
| 40 | + gpu_driver_type: Optional[str] = None |
| 41 | + """Type of the GPU driver""" |
| 42 | + |
| 43 | + gpu_driver_version: Optional[str] = None |
| 44 | + """Version of the installed GPU driver""" |
| 45 | + |
| 46 | + hw_firmware_type: Optional[Literal["bios", "uefi"]] = None |
| 47 | + """Specifies the type of firmware with which to boot the guest.""" |
| 48 | + |
| 49 | + hw_machine_type: Optional[Literal["pc", "q35"]] = None |
| 50 | + """A virtual chipset type.""" |
| 51 | + |
| 52 | + is_baremetal: Optional[bool] = None |
| 53 | + """For bare metal servers this value is always set to true""" |
| 54 | + |
| 55 | + min_disk: int |
| 56 | + """Minimal boot volume required""" |
| 57 | + |
| 58 | + min_ram: int |
| 59 | + """Minimal VM RAM required""" |
| 60 | + |
| 61 | + name: str |
| 62 | + """Image display name""" |
| 63 | + |
| 64 | + os_distro: str |
| 65 | + """OS Distribution, i.e. Debian, CentOS, Ubuntu, CoreOS etc.""" |
| 66 | + |
| 67 | + os_type: Literal["linux", "windows"] |
| 68 | + """The operating system installed on the image.""" |
| 69 | + |
| 70 | + os_version: str |
| 71 | + """OS version, i.e. 19.04 (for Ubuntu) or 9.4 for Debian""" |
| 72 | + |
| 73 | + price_per_hour: Optional[float] = None |
| 74 | + """Price per hour. Shown if the `include_prices` query parameter if set to true""" |
| 75 | + |
| 76 | + price_per_month: Optional[float] = None |
| 77 | + """Price per month. Shown if the `include_prices` query parameter if set to true""" |
| 78 | + |
| 79 | + price_status: Optional[Literal["error", "hide", "show"]] = None |
| 80 | + """Price status for the UI""" |
| 81 | + |
| 82 | + project_id: int |
| 83 | + """Project ID""" |
| 84 | + |
| 85 | + region: str |
| 86 | + """Region name""" |
| 87 | + |
| 88 | + region_id: int |
| 89 | + """Region ID""" |
| 90 | + |
| 91 | + size: Optional[int] = None |
| 92 | + """Image size in bytes""" |
| 93 | + |
| 94 | + ssh_key: Optional[Literal["allow", "deny", "required"]] = None |
| 95 | + """Whether the image supports SSH key or not""" |
| 96 | + |
| 97 | + status: str |
| 98 | + """Image status, i.e. active""" |
| 99 | + |
| 100 | + tags: List[Tag] |
| 101 | + """List of key-value tags associated with the resource. |
| 102 | +
|
| 103 | + A tag is a key-value pair that can be associated with a resource, enabling |
| 104 | + efficient filtering and grouping for better organization and management. Some |
| 105 | + tags are read-only and cannot be modified by the user. Tags are also integrated |
| 106 | + with cost reports, allowing cost data to be filtered based on tag keys or |
| 107 | + values. |
| 108 | + """ |
| 109 | + |
| 110 | + task_id: Optional[str] = None |
| 111 | + """The UUID of the active task that currently holds a lock on the resource. |
| 112 | +
|
| 113 | + This lock prevents concurrent modifications to ensure consistency. If `null`, |
| 114 | + the resource is not locked. |
| 115 | + """ |
| 116 | + |
| 117 | + updated_at: datetime |
| 118 | + """Datetime when the image was updated""" |
| 119 | + |
| 120 | + visibility: str |
| 121 | + """Image visibility. Globally visible images are public""" |
| 122 | + |
| 123 | + |
| 124 | +class ImageListResponse(BaseModel): |
| 125 | + count: int |
| 126 | + """Number of objects""" |
| 127 | + |
| 128 | + results: List[Result] |
| 129 | + """Objects""" |
0 commit comments