Class: Google::Apis::SpannerV1::CreateInstanceRequest

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

Overview

The request for CreateInstance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CreateInstanceRequest

Returns a new instance of CreateInstanceRequest.



1905
1906
1907
# File 'lib/google/apis/spanner_v1/classes.rb', line 1905

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

Instance Attribute Details

#instanceGoogle::Apis::SpannerV1::Instance

An isolated set of Cloud Spanner resources on which databases can be hosted. Corresponds to the JSON property instance



1897
1898
1899
# File 'lib/google/apis/spanner_v1/classes.rb', line 1897

def instance
  @instance
end

#instance_idString

Required. The ID of the instance to create. Valid identifiers are of the form a-z*[a-z0-9] and must be between 2 and 64 characters in length. Corresponds to the JSON property instanceId

Returns:

  • (String)


1903
1904
1905
# File 'lib/google/apis/spanner_v1/classes.rb', line 1903

def instance_id
  @instance_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1910
1911
1912
1913
# File 'lib/google/apis/spanner_v1/classes.rb', line 1910

def update!(**args)
  @instance = args[:instance] if args.key?(:instance)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
end