aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/snapshot.proto
blob: e01eb9baa27585554e7f9ffab8caacc7661b549a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
syntax = "proto3";

package yandex.cloud.compute.v1;

import "google/protobuf/timestamp.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/compute/v1;compute";
option java_package = "yandex.cloud.api.compute.v1";

// A Snapshot resource. For more information, see [Snapshots](/docs/compute/concepts/snapshot).
message Snapshot {

  enum Status {
    STATUS_UNSPECIFIED = 0;

    // Snapshot is being created.
    CREATING = 1;

    // Snapshot is ready to use.
    READY = 2;

    // Snapshot encountered a problem and cannot operate.
    ERROR = 3;

    // Snapshot is being deleted.
    DELETING = 4;
  }

  // ID of the snapshot.
  string id = 1;

  // ID of the folder that the snapshot belongs to.
  string folder_id = 2;

  google.protobuf.Timestamp created_at = 3;

  // Name of the snapshot. 1-63 characters long.
  string name = 4;

  // Description of the snapshot. 0-256 characters long.
  string description = 5;

  // Resource labels as `key:value` pairs. Maximum of 64 per resource.
  map<string, string> labels = 6;

  // Size of the snapshot, specified in bytes.
  int64 storage_size = 7; // delta from prev snapshot from same disk

  // Size of the disk when the snapshot was created, specified in bytes.
  int64 disk_size = 8;  // at snapshot moment

  // License IDs that indicate which licenses are attached to this resource.
  // License IDs are used to calculate additional charges for the use of the virtual machine.
  //
  // The correct license ID is generated by the platform. IDs are inherited by new resources created from this resource.
  //
  // If you know the license IDs, specify them when you create the image.
  // For example, if you create a disk image using a third-party utility and load it into Object Storage, the license IDs will be lost.
  // You can specify them in the [yandex.cloud.compute.v1.ImageService.Create] request.
  repeated string product_ids = 9;

  // Current status of the snapshot.
  Status status = 10;

  // ID of the source disk used to create this snapshot.
  string source_disk_id = 11;
}