aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/placement_group.proto
blob: fe1823d0f0ec3c8f944b8dfaf4af946b535a37bd (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
syntax = "proto3";

package yandex.cloud.compute.v1;

import "google/protobuf/timestamp.proto";
import "yandex/cloud/validation.proto";

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

message PlacementGroup {
  // ID of the placement group. Generated at creation time.
  string id = 1;

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

  // Creation timestamp.
  google.protobuf.Timestamp created_at = 3;

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

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

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

  // Placement strategy. To specify a placement strategy, send the corresponding
  // field containing approriate structure.
  oneof placement_strategy {
    option (exactly_one) = true;

    // Anti-affinity placement strategy (`spread`). Instances are distributed
    // over distinct failure domains.
    SpreadPlacementStrategy spread_placement_strategy = 7;
    PartitionPlacementStrategy partition_placement_strategy = 8;
  }
}

// This is an empty structure that must be passed to explicitly
// specify the required placement strategy.
message SpreadPlacementStrategy {
}

message PartitionPlacementStrategy {
  int64 partitions = 1 [(value) = "2-5"];
}