123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231 |
- syntax = "proto3";
- package google.cloud.baremetalsolution.v2;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/field_mask.proto";
- option csharp_namespace = "Google.Cloud.BareMetalSolution.V2";
- option go_package = "google.golang.org/genproto/googleapis/cloud/baremetalsolution/v2;baremetalsolution";
- option java_multiple_files = true;
- option java_outer_classname = "VolumeProto";
- option java_package = "com.google.cloud.baremetalsolution.v2";
- option php_namespace = "Google\\Cloud\\BareMetalSolution\\V2";
- option ruby_package = "Google::Cloud::BareMetalSolution::V2";
- message Volume {
- option (google.api.resource) = {
- type: "baremetalsolution.googleapis.com/Volume"
- pattern: "projects/{project}/locations/{location}/volumes/{volume}"
- };
-
- enum StorageType {
-
- STORAGE_TYPE_UNSPECIFIED = 0;
-
- SSD = 1;
-
- HDD = 2;
- }
-
- enum State {
-
- STATE_UNSPECIFIED = 0;
-
- CREATING = 1;
-
- READY = 2;
-
- DELETING = 3;
- }
-
- message SnapshotReservationDetail {
-
- int64 reserved_space_gib = 1;
-
-
-
-
- int32 reserved_space_used_percent = 2;
-
-
- int64 reserved_space_remaining_gib = 3;
-
-
-
-
-
- int32 reserved_space_percent = 4;
- }
-
-
- enum SnapshotAutoDeleteBehavior {
-
- SNAPSHOT_AUTO_DELETE_BEHAVIOR_UNSPECIFIED = 0;
-
-
- DISABLED = 1;
-
- OLDEST_FIRST = 2;
-
- NEWEST_FIRST = 3;
- }
-
-
-
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- string id = 11;
-
- StorageType storage_type = 2;
-
- State state = 3;
-
- int64 requested_size_gib = 4;
-
-
-
- int64 current_size_gib = 5;
-
-
- int64 emergency_size_gib = 14;
-
-
- int64 auto_grown_size_gib = 6;
-
-
- int64 remaining_space_gib = 7;
-
- SnapshotReservationDetail snapshot_reservation_detail = 8;
-
- SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
-
- map<string, string> labels = 12;
-
- bool snapshot_enabled = 13;
-
- string pod = 15 [(google.api.field_behavior) = IMMUTABLE];
- }
- message GetVolumeRequest {
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "baremetalsolution.googleapis.com/Volume"
- }
- ];
- }
- message ListVolumesRequest {
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "locations.googleapis.com/Location"
- }
- ];
-
-
- int32 page_size = 2;
-
- string page_token = 3;
-
- string filter = 4;
- }
- message ListVolumesResponse {
-
- repeated Volume volumes = 1;
-
- string next_page_token = 2;
-
- repeated string unreachable = 3;
- }
- message UpdateVolumeRequest {
-
-
-
-
- Volume volume = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
-
- google.protobuf.FieldMask update_mask = 2;
- }
- message ResizeVolumeRequest {
-
- string volume = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "baremetalsolution.googleapis.com/Volume"
- }
- ];
-
- int64 size_gib = 2;
- }
|