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/loadtesting/api/v1/agent | |
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/loadtesting/api/v1/agent')
3 files changed, 167 insertions, 0 deletions
diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/agent.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/agent.proto new file mode 100644 index 0000000000..1f01fff43e --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/agent.proto @@ -0,0 +1,47 @@ +syntax = "proto3"; + +package yandex.cloud.loadtesting.api.v1.agent ; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/api/v1/agent;agent"; +option java_package = "yandex.cloud.api.loadtesting.api.v1.agent"; + +import "yandex/cloud/loadtesting/api/v1/agent/status.proto"; + +// Load testing agent on which tests are executed. +message Agent { + // ID of the agent. Generated at creation time. + string id = 1; + + // ID of the folder that the agent belongs to. + string folder_id = 2; + + // Name of the agent. + string name = 3; + + // Description of the agent. + string description = 4; + + // ID of the compute instance managed by the agent. + // + // Empty if there is no such instance (i.e. the case of external agent). + string compute_instance_id = 5; + + reserved 6; + + // Status of the agent. + Status status = 7; + + // List of errors reported by the agent. + repeated string errors = 8; + + // ID of the test that is currently being executed by the agent. + string current_job_id = 9; + + // Version of the agent. + string agent_version_id = 10; + + reserved 11; + + // Agent labels as `key:value` pairs. + map<string, string> labels = 12; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/create_compute_instance.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/create_compute_instance.proto new file mode 100644 index 0000000000..bc87695888 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/create_compute_instance.proto @@ -0,0 +1,60 @@ +syntax = "proto3"; + +package yandex.cloud.loadtesting.api.v1.agent; + +import "yandex/cloud/compute/v1/instance_service.proto"; +import "yandex/cloud/validation.proto"; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/api/v1/agent;agent"; +option java_package = "yandex.cloud.api.loadtesting.api.v1.agent"; + +message CreateComputeInstance { + reserved 10; + reserved 12 to 13; + reserved 6; + // Resource labels as `key:value` pairs. + map<string, string> labels = 4 [ + (yandex.cloud.size) = "<=64", + (length) = "<=63", + (pattern) = "[-_./\\@0-9a-z]*", + (map_key).length = "1-63", + (map_key).pattern = "[a-z][-_./\\@0-9a-z]*" + ]; + + // ID of the availability zone where the instance resides. + // To get a list of available zones, use the [yandex.cloud.compute.v1.ZoneService.List] request + string zone_id = 5 [ + (required) = true, + (length) = "<=50" + ]; + + // Computing resources of the instance, such as the amount of memory and number of cores. + // To get a list of available values, see [Levels of core performance](/docs/compute/concepts/performance-levels). + compute.v1.ResourcesSpec resources_spec = 7 [(required) = true]; + + // The metadata `key:value` pairs that will be assigned to this instance. This includes custom metadata and predefined keys. + // The total size of all keys and values must be less than 512 KB. + // + // Values are free-form strings, and only have meaning as interpreted by the programs which configure the instance. + // The values must be 256 KB or less. + // + // For example, you may use the metadata in order to provide your public SSH key to the instance. + // For more information, see [Metadata](/docs/compute/concepts/vm-metadata). + map<string, string> metadata = 8; + + // Boot disk to attach to the instance. + compute.v1.AttachedDiskSpec boot_disk_spec = 9 [(required) = true]; + + // Network configuration for the instance. Specifies how the network interface is configured + // to interact with other services on the internal network and on the internet. + // Currently only one network interface is supported per instance. + repeated compute.v1.NetworkInterfaceSpec network_interface_specs = 11 [(size) = "1"]; + + // ID of the service account to use for [authentication inside the instance](/docs/compute/operations/vm-connect/auth-inside-vm). + // To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. + string service_account_id = 14; + + // ID of the [Compute VM platform](docs/compute/concepts/vm-platforms) on which the agent will be created. + // Default value: "standard-v2" + string platform_id = 15; +} diff --git a/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/status.proto b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/status.proto new file mode 100644 index 0000000000..1c13db6da6 --- /dev/null +++ b/contrib/libs/yandex-cloud-api-protos/yandex/cloud/loadtesting/api/v1/agent/status.proto @@ -0,0 +1,60 @@ +syntax = "proto3"; + +package yandex.cloud.loadtesting.api.v1.agent ; + +option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/loadtesting/api/v1/agent;agent"; +option java_package = "yandex.cloud.api.loadtesting.api.v1.agent"; + +// Agent status. +enum Status { + // Status is not specified. + STATUS_UNSPECIFIED = 0; + + // Agent is preparing a test to be executed. + PREPARING_TEST = 1; + + // Agent is ready to take a test. + READY_FOR_TEST = 2; + + // Agent is executing a test. + TESTING = 3; + + // Agent application encountered an error and cannot operate normally. + TANK_FAILED = 4; + + // Agent is waiting for resources to be allocated. + PROVISIONING = 5; + + // Agent is being stopped. + STOPPING = 6; + + // Agent is stopped. + STOPPED = 7; + + // Agent is being started. + STARTING = 8; + + // Agent is being restarted. + RESTARTING = 9; + + // Agent is being updated. + UPDATING = 10; + + // Agent encountered an error and cannot operate. + ERROR = 11; + + // Agent is crashed and will be restarted automatically. + CRASHED = 12; + + // Agent is being deleted. + DELETING = 13; + + // Service is waiting for connection with agent to be established. + INITIALIZING_CONNECTION = 15; + + // Service has lost connection with agent. + LOST_CONNECTION_WITH_AGENT = 16; + + // Agent is uploading test artifacts. + UPLOADING_ARTIFACTS = 17; +} |