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.



5856
5857
5858
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5856

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)


5833
5834
5835
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5833

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)


5838
5839
5840
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5838

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)


5844
5845
5846
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5844

def name
  @name
end

#start_timeString

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

Returns:

  • (String)


5849
5850
5851
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5849

def start_time
  @start_time
end

#stateString

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

Returns:

  • (String)


5854
5855
5856
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5854

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5861
5862
5863
5864
5865
5866
5867
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5861

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