Class: Appwrite::Models::Deployment
- Inherits:
-
Object
- Object
- Appwrite::Models::Deployment
- Defined in:
- lib/appwrite/models/deployment.rb
Instance Attribute Summary collapse
-
#activate ⇒ Object
readonly
Returns the value of attribute activate.
-
#build_duration ⇒ Object
readonly
Returns the value of attribute build_duration.
-
#build_id ⇒ Object
readonly
Returns the value of attribute build_id.
-
#build_logs ⇒ Object
readonly
Returns the value of attribute build_logs.
-
#build_size ⇒ Object
readonly
Returns the value of attribute build_size.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#entrypoint ⇒ Object
readonly
Returns the value of attribute entrypoint.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#provider_branch ⇒ Object
readonly
Returns the value of attribute provider_branch.
-
#provider_branch_url ⇒ Object
readonly
Returns the value of attribute provider_branch_url.
-
#provider_commit_author ⇒ Object
readonly
Returns the value of attribute provider_commit_author.
-
#provider_commit_author_url ⇒ Object
readonly
Returns the value of attribute provider_commit_author_url.
-
#provider_commit_hash ⇒ Object
readonly
Returns the value of attribute provider_commit_hash.
-
#provider_commit_message ⇒ Object
readonly
Returns the value of attribute provider_commit_message.
-
#provider_commit_url ⇒ Object
readonly
Returns the value of attribute provider_commit_url.
-
#provider_repository_name ⇒ Object
readonly
Returns the value of attribute provider_repository_name.
-
#provider_repository_owner ⇒ Object
readonly
Returns the value of attribute provider_repository_owner.
-
#provider_repository_url ⇒ Object
readonly
Returns the value of attribute provider_repository_url.
-
#resource_id ⇒ Object
readonly
Returns the value of attribute resource_id.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
-
#screenshot_dark ⇒ Object
readonly
Returns the value of attribute screenshot_dark.
-
#screenshot_light ⇒ Object
readonly
Returns the value of attribute screenshot_light.
-
#source_size ⇒ Object
readonly
Returns the value of attribute source_size.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#total_size ⇒ Object
readonly
Returns the value of attribute total_size.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, updated_at:, type:, resource_id:, resource_type:, entrypoint:, source_size:, build_size:, total_size:, build_id:, activate:, screenshot_light:, screenshot_dark:, status:, build_logs:, build_duration:, provider_repository_name:, provider_repository_owner:, provider_repository_url:, provider_commit_hash:, provider_commit_author_url:, provider_commit_author:, provider_commit_message:, provider_commit_url:, provider_branch:, provider_branch_url:) ⇒ Deployment
constructor
A new instance of Deployment.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, type:, resource_id:, resource_type:, entrypoint:, source_size:, build_size:, total_size:, build_id:, activate:, screenshot_light:, screenshot_dark:, status:, build_logs:, build_duration:, provider_repository_name:, provider_repository_owner:, provider_repository_url:, provider_commit_hash:, provider_commit_author_url:, provider_commit_author:, provider_commit_message:, provider_commit_url:, provider_branch:, provider_branch_url:) ⇒ Deployment
Returns a new instance of Deployment.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/appwrite/models/deployment.rb', line 34 def initialize( id:, created_at:, updated_at:, type:, resource_id:, resource_type:, entrypoint:, source_size:, build_size:, total_size:, build_id:, activate:, screenshot_light:, screenshot_dark:, status:, build_logs:, build_duration:, provider_repository_name:, provider_repository_owner:, provider_repository_url:, provider_commit_hash:, provider_commit_author_url:, provider_commit_author:, provider_commit_message:, provider_commit_url:, provider_branch:, provider_branch_url: ) @id = id @created_at = created_at @updated_at = updated_at @type = type @resource_id = resource_id @resource_type = resource_type @entrypoint = entrypoint @source_size = source_size @build_size = build_size @total_size = total_size @build_id = build_id @activate = activate @screenshot_light = screenshot_light @screenshot_dark = screenshot_dark @status = validate_status(status) @build_logs = build_logs @build_duration = build_duration @provider_repository_name = provider_repository_name @provider_repository_owner = provider_repository_owner @provider_repository_url = provider_repository_url @provider_commit_hash = provider_commit_hash @provider_commit_author_url = @provider_commit_author = @provider_commit_message = @provider_commit_url = provider_commit_url @provider_branch = provider_branch @provider_branch_url = provider_branch_url end |
Instance Attribute Details
#activate ⇒ Object (readonly)
Returns the value of attribute activate.
17 18 19 |
# File 'lib/appwrite/models/deployment.rb', line 17 def activate @activate end |
#build_duration ⇒ Object (readonly)
Returns the value of attribute build_duration.
22 23 24 |
# File 'lib/appwrite/models/deployment.rb', line 22 def build_duration @build_duration end |
#build_id ⇒ Object (readonly)
Returns the value of attribute build_id.
16 17 18 |
# File 'lib/appwrite/models/deployment.rb', line 16 def build_id @build_id end |
#build_logs ⇒ Object (readonly)
Returns the value of attribute build_logs.
21 22 23 |
# File 'lib/appwrite/models/deployment.rb', line 21 def build_logs @build_logs end |
#build_size ⇒ Object (readonly)
Returns the value of attribute build_size.
14 15 16 |
# File 'lib/appwrite/models/deployment.rb', line 14 def build_size @build_size end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/deployment.rb', line 7 def created_at @created_at end |
#entrypoint ⇒ Object (readonly)
Returns the value of attribute entrypoint.
12 13 14 |
# File 'lib/appwrite/models/deployment.rb', line 12 def entrypoint @entrypoint end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/deployment.rb', line 6 def id @id end |
#provider_branch ⇒ Object (readonly)
Returns the value of attribute provider_branch.
31 32 33 |
# File 'lib/appwrite/models/deployment.rb', line 31 def provider_branch @provider_branch end |
#provider_branch_url ⇒ Object (readonly)
Returns the value of attribute provider_branch_url.
32 33 34 |
# File 'lib/appwrite/models/deployment.rb', line 32 def provider_branch_url @provider_branch_url end |
#provider_commit_author ⇒ Object (readonly)
Returns the value of attribute provider_commit_author.
28 29 30 |
# File 'lib/appwrite/models/deployment.rb', line 28 def @provider_commit_author end |
#provider_commit_author_url ⇒ Object (readonly)
Returns the value of attribute provider_commit_author_url.
27 28 29 |
# File 'lib/appwrite/models/deployment.rb', line 27 def @provider_commit_author_url end |
#provider_commit_hash ⇒ Object (readonly)
Returns the value of attribute provider_commit_hash.
26 27 28 |
# File 'lib/appwrite/models/deployment.rb', line 26 def provider_commit_hash @provider_commit_hash end |
#provider_commit_message ⇒ Object (readonly)
Returns the value of attribute provider_commit_message.
29 30 31 |
# File 'lib/appwrite/models/deployment.rb', line 29 def @provider_commit_message end |
#provider_commit_url ⇒ Object (readonly)
Returns the value of attribute provider_commit_url.
30 31 32 |
# File 'lib/appwrite/models/deployment.rb', line 30 def provider_commit_url @provider_commit_url end |
#provider_repository_name ⇒ Object (readonly)
Returns the value of attribute provider_repository_name.
23 24 25 |
# File 'lib/appwrite/models/deployment.rb', line 23 def provider_repository_name @provider_repository_name end |
#provider_repository_owner ⇒ Object (readonly)
Returns the value of attribute provider_repository_owner.
24 25 26 |
# File 'lib/appwrite/models/deployment.rb', line 24 def provider_repository_owner @provider_repository_owner end |
#provider_repository_url ⇒ Object (readonly)
Returns the value of attribute provider_repository_url.
25 26 27 |
# File 'lib/appwrite/models/deployment.rb', line 25 def provider_repository_url @provider_repository_url end |
#resource_id ⇒ Object (readonly)
Returns the value of attribute resource_id.
10 11 12 |
# File 'lib/appwrite/models/deployment.rb', line 10 def resource_id @resource_id end |
#resource_type ⇒ Object (readonly)
Returns the value of attribute resource_type.
11 12 13 |
# File 'lib/appwrite/models/deployment.rb', line 11 def resource_type @resource_type end |
#screenshot_dark ⇒ Object (readonly)
Returns the value of attribute screenshot_dark.
19 20 21 |
# File 'lib/appwrite/models/deployment.rb', line 19 def screenshot_dark @screenshot_dark end |
#screenshot_light ⇒ Object (readonly)
Returns the value of attribute screenshot_light.
18 19 20 |
# File 'lib/appwrite/models/deployment.rb', line 18 def screenshot_light @screenshot_light end |
#source_size ⇒ Object (readonly)
Returns the value of attribute source_size.
13 14 15 |
# File 'lib/appwrite/models/deployment.rb', line 13 def source_size @source_size end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
20 21 22 |
# File 'lib/appwrite/models/deployment.rb', line 20 def status @status end |
#total_size ⇒ Object (readonly)
Returns the value of attribute total_size.
15 16 17 |
# File 'lib/appwrite/models/deployment.rb', line 15 def total_size @total_size end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9 10 11 |
# File 'lib/appwrite/models/deployment.rb', line 9 def type @type end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/appwrite/models/deployment.rb', line 8 def updated_at @updated_at end |
Class Method Details
.from(map:) ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/appwrite/models/deployment.rb', line 92 def self.from(map:) Deployment.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], type: map["type"], resource_id: map["resourceId"], resource_type: map["resourceType"], entrypoint: map["entrypoint"], source_size: map["sourceSize"], build_size: map["buildSize"], total_size: map["totalSize"], build_id: map["buildId"], activate: map["activate"], screenshot_light: map["screenshotLight"], screenshot_dark: map["screenshotDark"], status: map["status"], build_logs: map["buildLogs"], build_duration: map["buildDuration"], provider_repository_name: map["providerRepositoryName"], provider_repository_owner: map["providerRepositoryOwner"], provider_repository_url: map["providerRepositoryUrl"], provider_commit_hash: map["providerCommitHash"], provider_commit_author_url: map["providerCommitAuthorUrl"], provider_commit_author: map["providerCommitAuthor"], provider_commit_message: map["providerCommitMessage"], provider_commit_url: map["providerCommitUrl"], provider_branch: map["providerBranch"], provider_branch_url: map["providerBranchUrl"] ) end |
Instance Method Details
#to_map ⇒ Object
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/appwrite/models/deployment.rb', line 124 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "type": @type, "resourceId": @resource_id, "resourceType": @resource_type, "entrypoint": @entrypoint, "sourceSize": @source_size, "buildSize": @build_size, "totalSize": @total_size, "buildId": @build_id, "activate": @activate, "screenshotLight": @screenshot_light, "screenshotDark": @screenshot_dark, "status": @status, "buildLogs": @build_logs, "buildDuration": @build_duration, "providerRepositoryName": @provider_repository_name, "providerRepositoryOwner": @provider_repository_owner, "providerRepositoryUrl": @provider_repository_url, "providerCommitHash": @provider_commit_hash, "providerCommitAuthorUrl": @provider_commit_author_url, "providerCommitAuthor": @provider_commit_author, "providerCommitMessage": @provider_commit_message, "providerCommitUrl": @provider_commit_url, "providerBranch": @provider_branch, "providerBranchUrl": @provider_branch_url } end |