Class: Google::Apis::BackupdrV1::Trial

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

Overview

Represents a Trial for a project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Trial

Returns a new instance of Trial.



6047
6048
6049
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6047

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

Instance Attribute Details

#end_reasonString

Output only. The reason for ending the trial. Corresponds to the JSON property endReason

Returns:

  • (String)


6024
6025
6026
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6024

def end_reason
  @end_reason
end

#end_timeString

Output only. The time when the trial will expire. Corresponds to the JSON property endTime

Returns:

  • (String)


6029
6030
6031
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6029

def end_time
  @end_time
end

#nameString

Identifier. The resource name of the trial. Format: projects/project/ locations/location/trial Corresponds to the JSON property name

Returns:

  • (String)


6035
6036
6037
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6035

def name
  @name
end

#start_timeString

Output only. The time when the trial was subscribed. Corresponds to the JSON property startTime

Returns:

  • (String)


6040
6041
6042
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6040

def start_time
  @start_time
end

#stateString

Output only. The state of the trial. Corresponds to the JSON property state

Returns:

  • (String)


6045
6046
6047
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6045

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6052
6053
6054
6055
6056
6057
6058
# File 'lib/google/apis/backupdr_v1/classes.rb', line 6052

def update!(**args)
  @end_reason = args[:end_reason] if args.key?(:end_reason)
  @end_time = args[:end_time] if args.key?(:end_time)
  @name = args[:name] if args.key?(:name)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
end