Class: Google::Apis::SqladminV1beta4::BackupRun
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1beta4::BackupRun
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta4/classes.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb,
generated/google/apis/sqladmin_v1beta4/representations.rb
Overview
A database instance backup run resource.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of this run, only applicable to on-demand backups.
-
#end_time ⇒ DateTime
The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
-
#enqueued_time ⇒ DateTime
The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
-
#error ⇒ Google::Apis::SqladminV1beta4::OperationError
Database instance operation error.
-
#id ⇒ Fixnum
A unique identifier for this backup run.
-
#instance ⇒ String
Name of the database instance.
-
#kind ⇒ String
This is always sql#backupRun.
-
#self_link ⇒ String
The URI of this resource.
-
#start_time ⇒ DateTime
The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
-
#status ⇒ String
The status of this run.
-
#type ⇒ String
The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
-
#window_start_time ⇒ DateTime
The start time of the backup window during which this the backup was attempted in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BackupRun
constructor
A new instance of BackupRun.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BackupRun
Returns a new instance of BackupRun
182 183 184 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 182 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of this run, only applicable to on-demand backups.
Corresponds to the JSON property description
120 121 122 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 120 def description @description end |
#end_time ⇒ DateTime
The time the backup operation completed in UTC timezone in RFC 3339 format,
for example 2012-11-15T16:19:00.094Z.
Corresponds to the JSON property endTime
126 127 128 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 126 def end_time @end_time end |
#enqueued_time ⇒ DateTime
The time the run was enqueued in UTC timezone in RFC 3339 format, for example
2012-11-15T16:19:00.094Z.
Corresponds to the JSON property enqueuedTime
132 133 134 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 132 def enqueued_time @enqueued_time end |
#error ⇒ Google::Apis::SqladminV1beta4::OperationError
Database instance operation error.
Corresponds to the JSON property error
137 138 139 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 137 def error @error end |
#id ⇒ Fixnum
A unique identifier for this backup run. Note that this is unique only within
the scope of a particular Cloud SQL instance.
Corresponds to the JSON property id
143 144 145 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 143 def id @id end |
#instance ⇒ String
Name of the database instance.
Corresponds to the JSON property instance
148 149 150 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 148 def instance @instance end |
#kind ⇒ String
This is always sql#backupRun.
Corresponds to the JSON property kind
153 154 155 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 153 def kind @kind end |
#self_link ⇒ String
The URI of this resource.
Corresponds to the JSON property selfLink
158 159 160 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 158 def self_link @self_link end |
#start_time ⇒ DateTime
The time the backup operation actually started in UTC timezone in RFC 3339
format, for example 2012-11-15T16:19:00.094Z.
Corresponds to the JSON property startTime
164 165 166 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 164 def start_time @start_time end |
#status ⇒ String
The status of this run.
Corresponds to the JSON property status
169 170 171 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 169 def status @status end |
#type ⇒ String
The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
Corresponds to the JSON property type
174 175 176 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 174 def type @type end |
#window_start_time ⇒ DateTime
The start time of the backup window during which this the backup was attempted
in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
Corresponds to the JSON property windowStartTime
180 181 182 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 180 def window_start_time @window_start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'generated/google/apis/sqladmin_v1beta4/classes.rb', line 187 def update!(**args) @description = args[:description] if args.key?(:description) @end_time = args[:end_time] if args.key?(:end_time) @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time) @error = args[:error] if args.key?(:error) @id = args[:id] if args.key?(:id) @instance = args[:instance] if args.key?(:instance) @kind = args[:kind] if args.key?(:kind) @self_link = args[:self_link] if args.key?(:self_link) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @type = args[:type] if args.key?(:type) @window_start_time = args[:window_start_time] if args.key?(:window_start_time) end |