instance.proto 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // Copyright 2016 Google Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.bigtable.admin.v2;
  16. import "google/api/annotations.proto";
  17. import "google/bigtable/admin/v2/common.proto";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "InstanceProto";
  20. option java_package = "com.google.bigtable.admin.v2";
  21. // A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and
  22. // the resources that serve them.
  23. // All tables in an instance are served from a single
  24. // [Cluster][google.bigtable.admin.v2.Cluster].
  25. message Instance {
  26. // Possible states of an instance.
  27. enum State {
  28. // The state of the instance could not be determined.
  29. STATE_NOT_KNOWN = 0;
  30. // The instance has been successfully created and can serve requests
  31. // to its tables.
  32. READY = 1;
  33. // The instance is currently being created, and may be destroyed
  34. // if the creation process encounters an error.
  35. CREATING = 2;
  36. }
  37. // @OutputOnly
  38. // The unique name of the instance. Values are of the form
  39. // projects/<project>/instances/[a-z][a-z0-9\\-]+[a-z0-9]
  40. string name = 1;
  41. // The descriptive name for this instance as it appears in UIs.
  42. // Can be changed at any time, but should be kept globally unique
  43. // to avoid confusion.
  44. string display_name = 2;
  45. //
  46. // The current state of the instance.
  47. State state = 3;
  48. }
  49. // A resizable group of nodes in a particular cloud location, capable
  50. // of serving all [Tables][google.bigtable.admin.v2.Table] in the parent
  51. // [Instance][google.bigtable.admin.v2.Instance].
  52. message Cluster {
  53. // Possible states of a cluster.
  54. enum State {
  55. // The state of the cluster could not be determined.
  56. STATE_NOT_KNOWN = 0;
  57. // The cluster has been successfully created and is ready to serve requests.
  58. READY = 1;
  59. // The cluster is currently being created, and may be destroyed
  60. // if the creation process encounters an error.
  61. // A cluster may not be able to serve requests while being created.
  62. CREATING = 2;
  63. // The cluster is currently being resized, and may revert to its previous
  64. // node count if the process encounters an error.
  65. // A cluster is still capable of serving requests while being resized,
  66. // but may exhibit performance as if its number of allocated nodes is
  67. // between the starting and requested states.
  68. RESIZING = 3;
  69. // The cluster has no backing nodes. The data (tables) still
  70. // exist, but no operations can be performed on the cluster.
  71. DISABLED = 4;
  72. }
  73. // @OutputOnly
  74. // The unique name of the cluster. Values are of the form
  75. // projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*
  76. string name = 1;
  77. // @CreationOnly
  78. // The location where this cluster's nodes and storage reside. For best
  79. // performance, clients should be located as close as possible to this cluster.
  80. // Currently only zones are supported, e.g. projects/*/locations/us-central1-b
  81. string location = 2;
  82. // @OutputOnly
  83. // The current state of the cluster.
  84. State state = 3;
  85. // The number of nodes allocated to this cluster. More nodes enable higher
  86. // throughput and more consistent performance.
  87. int32 serve_nodes = 4;
  88. // @CreationOnly
  89. // The type of storage used by this cluster to serve its
  90. // parent instance's tables, unless explicitly overridden.
  91. StorageType default_storage_type = 5;
  92. }