Class: Appwrite::Models::DatabaseMigration
- Inherits:
-
Object
- Object
- Appwrite::Models::DatabaseMigration
- Defined in:
- lib/appwrite/models/database_migration.rb
Instance Attribute Summary collapse
-
#attempt ⇒ Object
readonly
Returns the value of attribute attempt.
-
#auto_cutover ⇒ Object
readonly
Returns the value of attribute auto_cutover.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#cutover_at ⇒ Object
readonly
Returns the value of attribute cutover_at.
-
#cutover_requested ⇒ Object
readonly
Returns the value of attribute cutover_requested.
-
#database_id ⇒ Object
readonly
Returns the value of attribute database_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#lag_documents ⇒ Object
readonly
Returns the value of attribute lag_documents.
-
#last_error ⇒ Object
readonly
Returns the value of attribute last_error.
-
#paused ⇒ Object
readonly
Returns the value of attribute paused.
-
#phase ⇒ Object
readonly
Returns the value of attribute phase.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
-
#soak_until ⇒ Object
readonly
Returns the value of attribute soak_until.
-
#specification ⇒ Object
readonly
Returns the value of attribute specification.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#verified_at ⇒ Object
readonly
Returns the value of attribute verified_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, updated_at:, project_id:, database_id:, specification:, phase:, attempt:, last_error:, lag_documents:, verified_at:, cutover_at:, soak_until:, auto_cutover:, cutover_requested:, paused:) ⇒ DatabaseMigration
constructor
A new instance of DatabaseMigration.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, project_id:, database_id:, specification:, phase:, attempt:, last_error:, lag_documents:, verified_at:, cutover_at:, soak_until:, auto_cutover:, cutover_requested:, paused:) ⇒ DatabaseMigration
Returns a new instance of DatabaseMigration.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/appwrite/models/database_migration.rb', line 23 def initialize( id:, created_at:, updated_at:, project_id:, database_id:, specification:, phase:, attempt:, last_error:, lag_documents:, verified_at:, cutover_at:, soak_until:, auto_cutover:, cutover_requested:, paused: ) @id = id @created_at = created_at @updated_at = updated_at @project_id = project_id @database_id = database_id @specification = specification @phase = phase @attempt = attempt @last_error = last_error @lag_documents = lag_documents @verified_at = verified_at @cutover_at = cutover_at @soak_until = soak_until @auto_cutover = auto_cutover @cutover_requested = cutover_requested @paused = paused end |
Instance Attribute Details
#attempt ⇒ Object (readonly)
Returns the value of attribute attempt.
13 14 15 |
# File 'lib/appwrite/models/database_migration.rb', line 13 def attempt @attempt end |
#auto_cutover ⇒ Object (readonly)
Returns the value of attribute auto_cutover.
19 20 21 |
# File 'lib/appwrite/models/database_migration.rb', line 19 def auto_cutover @auto_cutover end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/database_migration.rb', line 7 def created_at @created_at end |
#cutover_at ⇒ Object (readonly)
Returns the value of attribute cutover_at.
17 18 19 |
# File 'lib/appwrite/models/database_migration.rb', line 17 def cutover_at @cutover_at end |
#cutover_requested ⇒ Object (readonly)
Returns the value of attribute cutover_requested.
20 21 22 |
# File 'lib/appwrite/models/database_migration.rb', line 20 def cutover_requested @cutover_requested end |
#database_id ⇒ Object (readonly)
Returns the value of attribute database_id.
10 11 12 |
# File 'lib/appwrite/models/database_migration.rb', line 10 def database_id @database_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/database_migration.rb', line 6 def id @id end |
#lag_documents ⇒ Object (readonly)
Returns the value of attribute lag_documents.
15 16 17 |
# File 'lib/appwrite/models/database_migration.rb', line 15 def lag_documents @lag_documents end |
#last_error ⇒ Object (readonly)
Returns the value of attribute last_error.
14 15 16 |
# File 'lib/appwrite/models/database_migration.rb', line 14 def last_error @last_error end |
#paused ⇒ Object (readonly)
Returns the value of attribute paused.
21 22 23 |
# File 'lib/appwrite/models/database_migration.rb', line 21 def paused @paused end |
#phase ⇒ Object (readonly)
Returns the value of attribute phase.
12 13 14 |
# File 'lib/appwrite/models/database_migration.rb', line 12 def phase @phase end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
9 10 11 |
# File 'lib/appwrite/models/database_migration.rb', line 9 def project_id @project_id end |
#soak_until ⇒ Object (readonly)
Returns the value of attribute soak_until.
18 19 20 |
# File 'lib/appwrite/models/database_migration.rb', line 18 def soak_until @soak_until end |
#specification ⇒ Object (readonly)
Returns the value of attribute specification.
11 12 13 |
# File 'lib/appwrite/models/database_migration.rb', line 11 def specification @specification end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/appwrite/models/database_migration.rb', line 8 def updated_at @updated_at end |
#verified_at ⇒ Object (readonly)
Returns the value of attribute verified_at.
16 17 18 |
# File 'lib/appwrite/models/database_migration.rb', line 16 def verified_at @verified_at end |
Class Method Details
.from(map:) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/appwrite/models/database_migration.rb', line 59 def self.from(map:) DatabaseMigration.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], project_id: map["projectId"], database_id: map["databaseId"], specification: map["specification"], phase: map["phase"], attempt: map["attempt"], last_error: map["lastError"], lag_documents: map["lagDocuments"], verified_at: map["verifiedAt"], cutover_at: map["cutoverAt"], soak_until: map["soakUntil"], auto_cutover: map["autoCutover"], cutover_requested: map["cutoverRequested"], paused: map["paused"] ) end |
Instance Method Details
#to_map ⇒ Object
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/appwrite/models/database_migration.rb', line 80 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "projectId": @project_id, "databaseId": @database_id, "specification": @specification, "phase": @phase, "attempt": @attempt, "lastError": @last_error, "lagDocuments": @lag_documents, "verifiedAt": @verified_at, "cutoverAt": @cutover_at, "soakUntil": @soak_until, "autoCutover": @auto_cutover, "cutoverRequested": @cutover_requested, "paused": @paused } end |