aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/host_group.proto
blob: 43c4148052545c0a70847a4c4b21b0c039595819 (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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
syntax = "proto3";

package yandex.cloud.compute.v1;

import "google/protobuf/timestamp.proto";
import "yandex/cloud/compute/v1/maintenance.proto";

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

// Represents group of dedicated hosts
message HostGroup {

  enum Status {
    STATUS_UNSPECIFIED = 0;
    CREATING = 1;
    READY = 2;
    UPDATING = 3;
    DELETING = 4;
  }

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

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

  // Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
  google.protobuf.Timestamp created_at = 3;

  // Name of the group. The name is unique within the folder.
  string name = 4;

  // Description of the group.
  string description = 5;

  // Resource labels as `key:value` pairs.
  map<string, string> labels = 6;

  // Availability zone where all dedicated hosts are allocated.
  string zone_id = 7;

  // Status of the group.
  Status status = 8;

  // ID of host type. Resources provided by each host of the group.
  string type_id = 9;

  // Behaviour on maintenance events.
  MaintenancePolicy maintenance_policy = 10;

  // Scale policy. Only fixed number of hosts are supported at this moment.
  ScalePolicy scale_policy = 11;
}

// Represents a dedicated host
message Host {
  enum Status {
    STATUS_UNSPECIFIED = 0;
    UP = 1;
    DOWN = 2;
  }

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

  // Current status of the host. New instances are unable to start on host in DOWN status.
  Status status = 2;

  // ID of the physical server that the host belongs to.
  string server_id = 3;

  // Set temporarily if maintenance is planned for this host, and a new host was provided as a replacement.
  Replacement replacement = 4;
}

message ScalePolicy {
  message FixedScale {
    int64 size = 1;
  }

  oneof scale_type {
    FixedScale fixed_scale = 1;
  }
}

message Replacement {
  // ID of the host which replaces this one.
  string host_id = 1;

  // The date and time when this host will be automatically freed of instances.
  google.protobuf.Timestamp deadline_at = 2;
}