Class: Google::Apis::SpannerV1::CreateInstanceMetadata

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

Overview

Metadata type for the operation returned by CreateInstance.

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) ⇒ CreateInstanceMetadata

Returns a new instance of CreateInstanceMetadata



606
607
608
# File 'generated/google/apis/spanner_v1/classes.rb', line 606

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

Instance Attribute Details

#cancel_timeString

The time at which this operation was cancelled. If set, this operation is in the process of undoing itself (which is guaranteed to succeed) and cannot be cancelled again. Corresponds to the JSON property cancelTime

Returns:

  • (String)


599
600
601
# File 'generated/google/apis/spanner_v1/classes.rb', line 599

def cancel_time
  @cancel_time
end

#end_timeString

The time at which this operation failed or was completed successfully. Corresponds to the JSON property endTime

Returns:

  • (String)


604
605
606
# File 'generated/google/apis/spanner_v1/classes.rb', line 604

def end_time
  @end_time
end

#instanceGoogle::Apis::SpannerV1::Instance

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



585
586
587
# File 'generated/google/apis/spanner_v1/classes.rb', line 585

def instance
  @instance
end

#start_timeString

The time at which the CreateInstance request was received. Corresponds to the JSON property startTime

Returns:

  • (String)


592
593
594
# File 'generated/google/apis/spanner_v1/classes.rb', line 592

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



611
612
613
614
615
616
# File 'generated/google/apis/spanner_v1/classes.rb', line 611

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