Class: Google::Apis::SqladminV1beta3::BackupRun

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

Overview

A database instance backup run resource.

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

Returns a new instance of BackupRun



126
127
128
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 126

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

Instance Attribute Details

#backup_configurationString

Backup Configuration identifier. Corresponds to the JSON property backupConfiguration

Returns:

  • (String)


80
81
82
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 80

def backup_configuration
  @backup_configuration
end

#due_timeDateTime

The due time of this run in UTC timezone in RFC 3339 format, for example 2012- 11-15T16:19:00.094Z. Corresponds to the JSON property dueTime

Returns:

  • (DateTime)


86
87
88
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 86

def due_time
  @due_time
end

#end_timeDateTime

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

Returns:

  • (DateTime)


92
93
94
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 92

def end_time
  @end_time
end

#enqueued_timeDateTime

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

Returns:

  • (DateTime)


98
99
100
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 98

def enqueued_time
  @enqueued_time
end

#errorGoogle::Apis::SqladminV1beta3::OperationError

Database instance operation error. Corresponds to the JSON property error



103
104
105
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 103

def error
  @error
end

#instanceString

Name of the database instance. Corresponds to the JSON property instance

Returns:

  • (String)


108
109
110
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 108

def instance
  @instance
end

#kindString

This is always sql#backupRun. Corresponds to the JSON property kind

Returns:

  • (String)


113
114
115
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 113

def kind
  @kind
end

#start_timeDateTime

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

Returns:

  • (DateTime)


119
120
121
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 119

def start_time
  @start_time
end

#statusString

The status of this run. Corresponds to the JSON property status

Returns:

  • (String)


124
125
126
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 124

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



131
132
133
134
135
136
137
138
139
140
141
# File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 131

def update!(**args)
  @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration)
  @due_time = args[:due_time] if args.key?(:due_time)
  @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)
  @instance = args[:instance] if args.key?(:instance)
  @kind = args[:kind] if args.key?(:kind)
  @start_time = args[:start_time] if args.key?(:start_time)
  @status = args[:status] if args.key?(:status)
end