SDK reference / Models

Models.Storage namespace

Types

TypeKindDescription
AttachDiskRequestclassRequest to attach a disk to a VM instance in the same location (ADR-0502).
BackupclassOne disk as of one slot of a plan (or of a manual run): an encrypted archive kept apart from the disk (ADR-0504, ADR-0511).
BackupDeletionReceiptclassA signed deletion receipt for a backup that was deleted or expired (ADR-0510).
BackupDeletionReceiptListclassA page of backup deletion receipts.
BackupListclassA page of backups.
BackupPlanclassA backup plan: which disks, when, how long, and whether a copy goes to a peer location (ADR-0504, ADR-0511).
BackupPlanListclassA page of backup plans.
BackupPlanMergePatchUpdateclassA backup plan: which disks, when, how long, and whether a copy goes to a peer location (ADR-0504, ADR-0511).
BackupPlanMergePatchUpdate_copyToMember1class
BackupPlanMergePatchUpdate_displayNameMember1class
BackupPlanMergePatchUpdate_enabledMember1class
BackupPlan_annotationsclassAt most 256 KiB in all; never policy input.
BackupPlan_labelsclassAt most 64.
BackupPlan_stateenum
BackupRetentionclassHow long a plan keeps its backups (ADR-0510: a customer backup is gone within 35 days). At least one field is required.
BackupRetentionMergePatchUpdateclassHow long a plan keeps its backups (ADR-0510: a customer backup is gone within 35 days). At least one field is required.
BackupRetentionMergePatchUpdate_keepDaysMember1class
BackupRetentionMergePatchUpdate_keepLastMember1class
BackupScheduleclassWhen a plan runs (ADR-0504). The slot is wall-clock time in the plan's time zone, so a daylight-saving change moves no backup by an hour of the day.
BackupScheduleMergePatchUpdateclassWhen a plan runs (ADR-0504). The slot is wall-clock time in the plan's time zone, so a daylight-saving change moves no backup by an hour of the day.
BackupScheduleMergePatchUpdate_atTimeMember1class
BackupScheduleMergePatchUpdate_dayOfWeekMember1class
BackupScheduleMergePatchUpdate_frequencyenumHOURLY (every hour at atTime's minute), DAILY (every day at atTime) or WEEKLY (on dayOfWeek at atTime).
BackupScheduleMergePatchUpdate_timeZoneMember1class
BackupSchedule_frequencyenumHOURLY (every hour at atTime's minute), DAILY (every day at atTime) or WEEKLY (on dayOfWeek at atTime).
Backup_annotationsclassAt most 256 KiB in all; never policy input.
Backup_copyStateenumWhere the copy in the peer location stands.
Backup_kindenumSCHEDULED or MANUAL.
Backup_labelsclassAt most 64.
Backup_stateenum
BucketclassAn S3-compatible object storage bucket encrypted under a per-bucket envelope KEK (ADR-0501, ADR-0508).
BucketCorsRuleclassOne CORS rule of a bucket (ADR-0508; S3's PutBucketCors): which web origins may call the bucket's S3 endpoint from a browser, and how.
BucketCorsRuleMergePatchUpdateReplaceOnlyclass
BucketLifecycleRuleclassObject lifecycle rule (ADR-0508: expiration by age/date/prefix/tag, noncurrent versions, delete-marker cleanup, abort incomplete multipart).
BucketLifecycleRuleMergePatchUpdateReplaceOnlyclass
BucketLifecycleRule_tagsclassOptional object tag filter; every entry must match.
BucketMergePatchUpdateclassAn S3-compatible object storage bucket encrypted under a per-bucket envelope KEK (ADR-0501, ADR-0508).
BucketMergePatchUpdate_blockPublicAccessMember1class
BucketMergePatchUpdate_displayNameMember1class
BucketMergePatchUpdate_publicReadMember1class
BucketMergePatchUpdate_storageClassMember1class
BucketMergePatchUpdate_versioningMember1class
BucketObjectLockclassObject Lock with a default retention for each new object version (ADR-0508: paid projects only, retention at most 1 year, est.).
BucketObjectLockMergePatchUpdateOrCreateclassObject Lock with a default retention for each new object version (ADR-0508: paid projects only, retention at most 1 year, est.).
BucketStateenumBucket lifecycle states.
Bucket_annotationsclassAt most 256 KiB in all; never policy input.
Bucket_labelsclassAt most 64.
CreateDiskSnapshotActionRequestclassRequest to create a point-in-time ZFS snapshot from a disk via the :snapshot action (ADR-0502).
CreateDiskSnapshotActionRequest_labelsclassOptional resource labels.
DetachDiskRequestclassRequest to detach a disk from its currently attached VM instance (ADR-0502).
DiskclassA block storage volume backed by a local ZFS zvol over LUKS2 (ADR-0502, ADR-0510).
DiskListclassA page of block disks.
DiskMergePatchUpdateclassA block storage volume backed by a local ZFS zvol over LUKS2 (ADR-0502, ADR-0510).
DiskMergePatchUpdate_attachedInstanceIdMember1class
DiskMergePatchUpdate_diskTypeMember1class
DiskMergePatchUpdate_displayNameMember1class
DiskMergePatchUpdate_maxIopsMember1class
DiskMergePatchUpdate_maxThroughputMibpsMember1class
DiskMergePatchUpdate_sourceSnapshotMember1class
DiskSnapshotclassA crash-consistent local ZFS snapshot of a block disk (ADR-0502: at most 32 per disk; never called a backup).
DiskSnapshotListclassA page of disk snapshots.
DiskSnapshotMergePatchUpdateclassA crash-consistent local ZFS snapshot of a block disk (ADR-0502: at most 32 per disk; never called a backup).
DiskSnapshotMergePatchUpdate_descriptionMember1class
DiskSnapshotMergePatchUpdate_displayNameMember1class
DiskSnapshot_annotationsclassAt most 256 KiB in all; never policy input.
DiskSnapshot_diskRoleenumBOOT for a snapshot of a VM's boot disk (taken through the VM; `sourceDisk` then names the VM's boot disk), DATA for a data disk.
DiskSnapshot_labelsclassAt most 64.
DiskSnapshot_stateenumCurrent lifecycle state of the snapshot.
DiskSnapshot_triggerenumMANUAL for a snapshot someone asked for, SCHEDULE for one a snapshot schedule took (and may delete beyond `keep`).
Disk_annotationsclassAt most 256 KiB in all; never policy input.
Disk_diskTypeenumVolume type: f1-disk (free VM root, 10 GiB, 500 IOPS), local-ssd (default, 10–2048 GiB, 3000–16000 IOPS), or replicated-ssd.
Disk_labelsclassAt most 64.
Disk_stateenumCurrent lifecycle state of the disk.
FileEntryclassOne entry of a directory of a file share, read through the share's gateway (ADR-0513).
FileEntryListclassA page of the entries of one directory of a file share, directories first, then by name.
FileEntry_typeenumWhether it is a file, a directory, a symbolic link (never followed) or something else.
FileShareclassA file share on a ZFS dataset exported over NFSv4 by a gateway VM inside the tenant network (ADR-0513).
FileShareListclassA page of file shares.
FileShareMergePatchUpdateclassA file share on a ZFS dataset exported over NFSv4 by a gateway VM inside the tenant network (ADR-0513).
FileShareMergePatchUpdate_displayNameMember1class
FileShareMergePatchUpdate_networkMember1class
FileShareMergePatchUpdate_protocolMember1class
FileShareMountTargetclassWhere a file share is mounted from: an address and export path inside one network (ADR-0513). A mount from outside the network is refused.
FileShare_annotationsclassAt most 256 KiB in all; never policy input.
FileShare_labelsclassAt most 64.
FileShare_protocolenumShare protocol; NFS_V4 is the only value.
FileShare_stateenumCurrent lifecycle state of the share.
ImportDiskRequestclassRequest to import an external disk image over HTTPS into a new block disk (W58a; ADR-0808, ADR-0824, plan rule V12).
ImportDiskRequest_diskTypeenumPaid block volume type: local-ssd (default) or replicated-ssd.
ImportDiskRequest_labelsclassOptional resource labels.
ImportDiskRequest_sourceFormatenumDeclared image format (never probed; ADR-0808).
ObjectLockModeenumObject Lock retention modes (ADR-0508).
RestoreBackupRequestclassRestores a backup as a new disk; an existing disk is never overwritten (ADR-0504).
RestorePointclassA restore point: snapshots of every disk of a VM taken at one moment (crash-consistent; ADR-0502). It is a read of grouped snapshots,not a resource of its own: `:snapshot` makes one, the schedule makes them, and deleting its snapshots removes it.
RestorePointDiskclassOne disk of a restore point.
RestorePointDisk_roleenumBOOT or DATA.
RestorePointDisk_stateenumState of the snapshot.
RestorePointListclassA page of restore points.
RestorePoint_stateenumState of the restore point.
RestorePoint_triggerenumMANUAL or SCHEDULE.
RollbackInstanceRequestclassRequest to roll a stopped VM back to a restore point: every disk returns to the state of the restore point; later changes are lost.
RunBackupPlanRequestclassTakes a backup of every source of the plan now, outside its schedule.
SetDiskPerformanceRequestclassRequest to update a disk's IOPS and throughput limits online without downtime (ADR-0502).
SnapshotInstanceRequestclassRequest to snapshot every disk of a VM at one moment.