mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-19 17:50:00 +00:00
5645f72996
* govendor fetch cloud.google.com/go/bigtable * Vendor the rest of the stuff. * Add support for instance_type to google_bigtable_instance. * Revendored some packages. * Removed bad packages from vendor.json
288 lines
12 KiB
Go
288 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: google/bigtable/admin/v2/instance.proto
|
|
|
|
package admin
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// Possible states of an instance.
|
|
type Instance_State int32
|
|
|
|
const (
|
|
// The state of the instance could not be determined.
|
|
Instance_STATE_NOT_KNOWN Instance_State = 0
|
|
// The instance has been successfully created and can serve requests
|
|
// to its tables.
|
|
Instance_READY Instance_State = 1
|
|
// The instance is currently being created, and may be destroyed
|
|
// if the creation process encounters an error.
|
|
Instance_CREATING Instance_State = 2
|
|
)
|
|
|
|
var Instance_State_name = map[int32]string{
|
|
0: "STATE_NOT_KNOWN",
|
|
1: "READY",
|
|
2: "CREATING",
|
|
}
|
|
var Instance_State_value = map[string]int32{
|
|
"STATE_NOT_KNOWN": 0,
|
|
"READY": 1,
|
|
"CREATING": 2,
|
|
}
|
|
|
|
func (x Instance_State) String() string {
|
|
return proto.EnumName(Instance_State_name, int32(x))
|
|
}
|
|
func (Instance_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
|
|
|
|
// The type of the instance.
|
|
type Instance_Type int32
|
|
|
|
const (
|
|
// The type of the instance is unspecified. If set when creating an
|
|
// instance, a `PRODUCTION` instance will be created. If set when updating
|
|
// an instance, the type will be left unchanged.
|
|
Instance_TYPE_UNSPECIFIED Instance_Type = 0
|
|
// An instance meant for production use. `serve_nodes` must be set
|
|
// on the cluster.
|
|
Instance_PRODUCTION Instance_Type = 1
|
|
// The instance is meant for development and testing purposes only; it has
|
|
// no performance or uptime guarantees and is not covered by SLA.
|
|
// After a development instance is created, it can be upgraded by
|
|
// updating the instance to type `PRODUCTION`. An instance created
|
|
// as a production instance cannot be changed to a development instance.
|
|
// When creating a development instance, `serve_nodes` on the cluster must
|
|
// not be set.
|
|
Instance_DEVELOPMENT Instance_Type = 2
|
|
)
|
|
|
|
var Instance_Type_name = map[int32]string{
|
|
0: "TYPE_UNSPECIFIED",
|
|
1: "PRODUCTION",
|
|
2: "DEVELOPMENT",
|
|
}
|
|
var Instance_Type_value = map[string]int32{
|
|
"TYPE_UNSPECIFIED": 0,
|
|
"PRODUCTION": 1,
|
|
"DEVELOPMENT": 2,
|
|
}
|
|
|
|
func (x Instance_Type) String() string {
|
|
return proto.EnumName(Instance_Type_name, int32(x))
|
|
}
|
|
func (Instance_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
|
|
|
|
// Possible states of a cluster.
|
|
type Cluster_State int32
|
|
|
|
const (
|
|
// The state of the cluster could not be determined.
|
|
Cluster_STATE_NOT_KNOWN Cluster_State = 0
|
|
// The cluster has been successfully created and is ready to serve requests.
|
|
Cluster_READY Cluster_State = 1
|
|
// The cluster is currently being created, and may be destroyed
|
|
// if the creation process encounters an error.
|
|
// A cluster may not be able to serve requests while being created.
|
|
Cluster_CREATING Cluster_State = 2
|
|
// The cluster is currently being resized, and may revert to its previous
|
|
// node count if the process encounters an error.
|
|
// A cluster is still capable of serving requests while being resized,
|
|
// but may exhibit performance as if its number of allocated nodes is
|
|
// between the starting and requested states.
|
|
Cluster_RESIZING Cluster_State = 3
|
|
// The cluster has no backing nodes. The data (tables) still
|
|
// exist, but no operations can be performed on the cluster.
|
|
Cluster_DISABLED Cluster_State = 4
|
|
)
|
|
|
|
var Cluster_State_name = map[int32]string{
|
|
0: "STATE_NOT_KNOWN",
|
|
1: "READY",
|
|
2: "CREATING",
|
|
3: "RESIZING",
|
|
4: "DISABLED",
|
|
}
|
|
var Cluster_State_value = map[string]int32{
|
|
"STATE_NOT_KNOWN": 0,
|
|
"READY": 1,
|
|
"CREATING": 2,
|
|
"RESIZING": 3,
|
|
"DISABLED": 4,
|
|
}
|
|
|
|
func (x Cluster_State) String() string {
|
|
return proto.EnumName(Cluster_State_name, int32(x))
|
|
}
|
|
func (Cluster_State) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{1, 0} }
|
|
|
|
// A collection of Bigtable [Tables][google.bigtable.admin.v2.Table] and
|
|
// the resources that serve them.
|
|
// All tables in an instance are served from a single
|
|
// [Cluster][google.bigtable.admin.v2.Cluster].
|
|
type Instance struct {
|
|
// (`OutputOnly`)
|
|
// The unique name of the instance. Values are of the form
|
|
// `projects/<project>/instances/[a-z][a-z0-9\\-]+[a-z0-9]`.
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
// The descriptive name for this instance as it appears in UIs.
|
|
// Can be changed at any time, but should be kept globally unique
|
|
// to avoid confusion.
|
|
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
|
|
// (`OutputOnly`)
|
|
// The current state of the instance.
|
|
State Instance_State `protobuf:"varint,3,opt,name=state,enum=google.bigtable.admin.v2.Instance_State" json:"state,omitempty"`
|
|
// The type of the instance. Defaults to `PRODUCTION`.
|
|
Type Instance_Type `protobuf:"varint,4,opt,name=type,enum=google.bigtable.admin.v2.Instance_Type" json:"type,omitempty"`
|
|
}
|
|
|
|
func (m *Instance) Reset() { *m = Instance{} }
|
|
func (m *Instance) String() string { return proto.CompactTextString(m) }
|
|
func (*Instance) ProtoMessage() {}
|
|
func (*Instance) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
|
|
|
func (m *Instance) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Instance) GetDisplayName() string {
|
|
if m != nil {
|
|
return m.DisplayName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Instance) GetState() Instance_State {
|
|
if m != nil {
|
|
return m.State
|
|
}
|
|
return Instance_STATE_NOT_KNOWN
|
|
}
|
|
|
|
func (m *Instance) GetType() Instance_Type {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return Instance_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
// A resizable group of nodes in a particular cloud location, capable
|
|
// of serving all [Tables][google.bigtable.admin.v2.Table] in the parent
|
|
// [Instance][google.bigtable.admin.v2.Instance].
|
|
type Cluster struct {
|
|
// (`OutputOnly`)
|
|
// The unique name of the cluster. Values are of the form
|
|
// `projects/<project>/instances/<instance>/clusters/[a-z][-a-z0-9]*`.
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
// (`CreationOnly`)
|
|
// The location where this cluster's nodes and storage reside. For best
|
|
// performance, clients should be located as close as possible to this cluster.
|
|
// Currently only zones are supported, so values should be of the form
|
|
// `projects/<project>/locations/<zone>`.
|
|
Location string `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"`
|
|
// (`OutputOnly`)
|
|
// The current state of the cluster.
|
|
State Cluster_State `protobuf:"varint,3,opt,name=state,enum=google.bigtable.admin.v2.Cluster_State" json:"state,omitempty"`
|
|
// The number of nodes allocated to this cluster. More nodes enable higher
|
|
// throughput and more consistent performance.
|
|
ServeNodes int32 `protobuf:"varint,4,opt,name=serve_nodes,json=serveNodes" json:"serve_nodes,omitempty"`
|
|
// (`CreationOnly`)
|
|
// The type of storage used by this cluster to serve its
|
|
// parent instance's tables, unless explicitly overridden.
|
|
DefaultStorageType StorageType `protobuf:"varint,5,opt,name=default_storage_type,json=defaultStorageType,enum=google.bigtable.admin.v2.StorageType" json:"default_storage_type,omitempty"`
|
|
}
|
|
|
|
func (m *Cluster) Reset() { *m = Cluster{} }
|
|
func (m *Cluster) String() string { return proto.CompactTextString(m) }
|
|
func (*Cluster) ProtoMessage() {}
|
|
func (*Cluster) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
|
|
|
|
func (m *Cluster) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Cluster) GetLocation() string {
|
|
if m != nil {
|
|
return m.Location
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Cluster) GetState() Cluster_State {
|
|
if m != nil {
|
|
return m.State
|
|
}
|
|
return Cluster_STATE_NOT_KNOWN
|
|
}
|
|
|
|
func (m *Cluster) GetServeNodes() int32 {
|
|
if m != nil {
|
|
return m.ServeNodes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Cluster) GetDefaultStorageType() StorageType {
|
|
if m != nil {
|
|
return m.DefaultStorageType
|
|
}
|
|
return StorageType_STORAGE_TYPE_UNSPECIFIED
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Instance)(nil), "google.bigtable.admin.v2.Instance")
|
|
proto.RegisterType((*Cluster)(nil), "google.bigtable.admin.v2.Cluster")
|
|
proto.RegisterEnum("google.bigtable.admin.v2.Instance_State", Instance_State_name, Instance_State_value)
|
|
proto.RegisterEnum("google.bigtable.admin.v2.Instance_Type", Instance_Type_name, Instance_Type_value)
|
|
proto.RegisterEnum("google.bigtable.admin.v2.Cluster_State", Cluster_State_name, Cluster_State_value)
|
|
}
|
|
|
|
func init() { proto.RegisterFile("google/bigtable/admin/v2/instance.proto", fileDescriptor3) }
|
|
|
|
var fileDescriptor3 = []byte{
|
|
// 477 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x51, 0x6b, 0xdb, 0x30,
|
|
0x10, 0xc7, 0xeb, 0xd4, 0xde, 0xd2, 0x4b, 0xd7, 0x1a, 0xad, 0x0f, 0x21, 0x14, 0xd6, 0x19, 0x4a,
|
|
0xf3, 0x64, 0x43, 0xc6, 0x9e, 0x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