Class: Google::Apis::BigtableadminV1::Instance

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/bigtableadmin_v1/classes.rb,
generated/google/apis/bigtableadmin_v1/representations.rb,
generated/google/apis/bigtableadmin_v1/representations.rb

Overview

A collection of Bigtable Tables and the resources that serve them. All tables in an instance are served from all Clusters in the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Instance

Returns a new instance of Instance.



284
285
286
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 284

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

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. Corresponds to the JSON property displayName

Returns:

  • (String)


250
251
252
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 250

def display_name
  @display_name
end

#labelsHash<String,String>

Labels are a flexible and lightweight mechanism for organizing cloud resources into groups that reflect a customer's organizational needs and deployment strategies. They can be used to filter resources and aggregate metrics.

  • Label keys must be between 1 and 63 characters long and must conform to the regular expression: \pLl\pLo0,62.
  • Label values must be between 0 and 63 characters long and must conform to the regular expression: [\pLl\pLo\pN_-]0,63``.
  • No more than 64 labels can be associated with a given resource.
  • Keys and values must both be under 128 bytes. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


264
265
266
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 264

def labels
  @labels
end

#nameString

(OutputOnly) The unique name of the instance. Values are of the form projects/<project>/instances/a-z+[a-z0-9]. Corresponds to the JSON property name

Returns:

  • (String)


271
272
273
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 271

def name
  @name
end

#stateString

(OutputOnly) The current state of the instance. Corresponds to the JSON property state

Returns:

  • (String)


277
278
279
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 277

def state
  @state
end

#typeString

The type of the instance. Defaults to PRODUCTION. Corresponds to the JSON property type

Returns:

  • (String)


282
283
284
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 282

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



289
290
291
292
293
294
295
# File 'generated/google/apis/bigtableadmin_v1/classes.rb', line 289

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
end