diff options
author | iddqd <iddqd@yandex-team.com> | 2024-06-11 10:12:13 +0300 |
---|---|---|
committer | iddqd <iddqd@yandex-team.com> | 2024-06-11 10:22:43 +0300 |
commit | 07f57e35443ab7f09471caf2dbf1afbcced4d9f7 (patch) | |
tree | a4a7b66ead62e83fa988a2ec2ce6576311c1f4b1 /contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/placement_group.proto | |
parent | 6db3b8ca95e44179e48306a58656fb1f9317d9c3 (diff) | |
download | ydb-07f57e35443ab7f09471caf2dbf1afbcced4d9f7.tar.gz |
add contrib/python/yandexcloud to import
03b7d3cad2237366b55b393e18d4dc5eb222798c
Diffstat (limited to 'contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/placement_group.proto')
-rw-r--r-- | contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/placement_group.proto | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/placement_group.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/placement_group.proto new file mode 100644 index 0000000000..fe1823d0f0 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/compute/v1/placement_group.proto @@ -0,0 +1,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"]; +} |