Class: Google::Apis::BackupdrV1::Trial
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::Trial
- 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
-
#end_reason ⇒ String
Output only.
-
#end_time ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#start_time ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Trial
constructor
A new instance of Trial.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Trial
Returns a new instance of Trial.
5881 5882 5883 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5881 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_reason ⇒ String
Output only. The reason for ending the trial.
Corresponds to the JSON property endReason
5858 5859 5860 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5858 def end_reason @end_reason end |
#end_time ⇒ String
Output only. The time when the trial will expire.
Corresponds to the JSON property endTime
5863 5864 5865 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5863 def end_time @end_time end |
#name ⇒ String
Identifier. The resource name of the trial. Format: projects/project/
locations/location/trial
Corresponds to the JSON property name
5869 5870 5871 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5869 def name @name end |
#start_time ⇒ String
Output only. The time when the trial was subscribed.
Corresponds to the JSON property startTime
5874 5875 5876 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5874 def start_time @start_time end |
#state ⇒ String
Output only. The state of the trial.
Corresponds to the JSON property state
5879 5880 5881 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5879 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5886 5887 5888 5889 5890 5891 5892 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 5886 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 |