Class: Google::Apis::BigtableadminV1::Instance
- Inherits:
-
Object
- Object
- Google::Apis::BigtableadminV1::Instance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigtableadmin_v1/classes.rb,
lib/google/apis/bigtableadmin_v1/representations.rb,
lib/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
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
Required.
-
#labels ⇒ Hash<String,String>
Required.
-
#name ⇒ String
The unique name of the instance.
-
#state ⇒ String
Output only.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Instance
constructor
A new instance of Instance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Instance
Returns a new instance of Instance.
544 545 546 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 544 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. A server-assigned timestamp representing when this Instance was
created.
Corresponds to the JSON property createTime
508 509 510 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 508 def create_time @create_time end |
#display_name ⇒ String
Required. 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
514 515 516 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 514 def display_name @display_name end |
#labels ⇒ Hash<String,String>
Required. 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 propertylabels`
526 527 528 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 526 def labels @labels end |
#name ⇒ String
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
532 533 534 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 532 def name @name end |
#state ⇒ String
Output only. The current state of the instance.
Corresponds to the JSON property state
537 538 539 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 537 def state @state end |
#type ⇒ String
Required. The type of the instance. Defaults to PRODUCTION.
Corresponds to the JSON property type
542 543 544 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 542 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
549 550 551 552 553 554 555 556 |
# File 'lib/google/apis/bigtableadmin_v1/classes.rb', line 549 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @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 |