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_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.
-
#build_time ⇒ Object
readonly
Returns the value of attribute build_time.
-
#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.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#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:, size:, build_size:, build_id:, activate:, status:, build_logs:, build_time:, provider_repository_name:, provider_repository_owner:, provider_repository_url:, provider_branch:, provider_commit_hash:, provider_commit_author_url:, provider_commit_author:, provider_commit_message:, provider_commit_url:, 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:, size:, build_size:, build_id:, activate:, status:, build_logs:, build_time:, provider_repository_name:, provider_repository_owner:, provider_repository_url:, provider_branch:, provider_commit_hash:, provider_commit_author_url:, provider_commit_author:, provider_commit_message:, provider_commit_url:, provider_branch_url:) ⇒ Deployment
Returns a new instance of Deployment.
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/appwrite/models/deployment.rb', line 31 def initialize( id:, created_at:, updated_at:, type:, resource_id:, resource_type:, entrypoint:, size:, build_size:, build_id:, activate:, status:, build_logs:, build_time:, provider_repository_name:, provider_repository_owner:, provider_repository_url:, provider_branch:, provider_commit_hash:, provider_commit_author_url:, provider_commit_author:, provider_commit_message:, provider_commit_url:, 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 @size = size @build_size = build_size @build_id = build_id @activate = activate @status = status @build_logs = build_logs @build_time = build_time @provider_repository_name = provider_repository_name @provider_repository_owner = provider_repository_owner @provider_repository_url = provider_repository_url @provider_branch = provider_branch @provider_commit_hash = provider_commit_hash @provider_commit_author_url = @provider_commit_author = @provider_commit_message = @provider_commit_url = provider_commit_url @provider_branch_url = provider_branch_url end |
Instance Attribute Details
#activate ⇒ Object (readonly)
Returns the value of attribute activate.
16 17 18 |
# File 'lib/appwrite/models/deployment.rb', line 16 def activate @activate end |
#build_id ⇒ Object (readonly)
Returns the value of attribute build_id.
15 16 17 |
# File 'lib/appwrite/models/deployment.rb', line 15 def build_id @build_id end |
#build_logs ⇒ Object (readonly)
Returns the value of attribute build_logs.
18 19 20 |
# File 'lib/appwrite/models/deployment.rb', line 18 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 |
#build_time ⇒ Object (readonly)
Returns the value of attribute build_time.
19 20 21 |
# File 'lib/appwrite/models/deployment.rb', line 19 def build_time @build_time 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.
23 24 25 |
# File 'lib/appwrite/models/deployment.rb', line 23 def provider_branch @provider_branch end |
#provider_branch_url ⇒ Object (readonly)
Returns the value of attribute provider_branch_url.
29 30 31 |
# File 'lib/appwrite/models/deployment.rb', line 29 def provider_branch_url @provider_branch_url end |
#provider_commit_author ⇒ Object (readonly)
Returns the value of attribute provider_commit_author.
26 27 28 |
# File 'lib/appwrite/models/deployment.rb', line 26 def @provider_commit_author end |
#provider_commit_author_url ⇒ Object (readonly)
Returns the value of attribute provider_commit_author_url.
25 26 27 |
# File 'lib/appwrite/models/deployment.rb', line 25 def @provider_commit_author_url end |
#provider_commit_hash ⇒ Object (readonly)
Returns the value of attribute provider_commit_hash.
24 25 26 |
# File 'lib/appwrite/models/deployment.rb', line 24 def provider_commit_hash @provider_commit_hash end |
#provider_commit_message ⇒ Object (readonly)
Returns the value of attribute provider_commit_message.
27 28 29 |
# File 'lib/appwrite/models/deployment.rb', line 27 def @provider_commit_message end |
#provider_commit_url ⇒ Object (readonly)
Returns the value of attribute provider_commit_url.
28 29 30 |
# File 'lib/appwrite/models/deployment.rb', line 28 def provider_commit_url @provider_commit_url end |
#provider_repository_name ⇒ Object (readonly)
Returns the value of attribute provider_repository_name.
20 21 22 |
# File 'lib/appwrite/models/deployment.rb', line 20 def provider_repository_name @provider_repository_name end |
#provider_repository_owner ⇒ Object (readonly)
Returns the value of attribute provider_repository_owner.
21 22 23 |
# File 'lib/appwrite/models/deployment.rb', line 21 def provider_repository_owner @provider_repository_owner end |
#provider_repository_url ⇒ Object (readonly)
Returns the value of attribute provider_repository_url.
22 23 24 |
# File 'lib/appwrite/models/deployment.rb', line 22 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 |
#size ⇒ Object (readonly)
Returns the value of attribute size.
13 14 15 |
# File 'lib/appwrite/models/deployment.rb', line 13 def size @size end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
17 18 19 |
# File 'lib/appwrite/models/deployment.rb', line 17 def status @status 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
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/appwrite/models/deployment.rb', line 83 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"], size: map["size"], build_size: map["buildSize"], build_id: map["buildId"], activate: map["activate"], status: map["status"], build_logs: map["buildLogs"], build_time: map["buildTime"], provider_repository_name: map["providerRepositoryName"], provider_repository_owner: map["providerRepositoryOwner"], provider_repository_url: map["providerRepositoryUrl"], provider_branch: map["providerBranch"], 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_url: map["providerBranchUrl"] ) end |
Instance Method Details
#to_map ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/appwrite/models/deployment.rb', line 112 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "type": @type, "resourceId": @resource_id, "resourceType": @resource_type, "entrypoint": @entrypoint, "size": @size, "buildSize": @build_size, "buildId": @build_id, "activate": @activate, "status": @status, "buildLogs": @build_logs, "buildTime": @build_time, "providerRepositoryName": @provider_repository_name, "providerRepositoryOwner": @provider_repository_owner, "providerRepositoryUrl": @provider_repository_url, "providerBranch": @provider_branch, "providerCommitHash": @provider_commit_hash, "providerCommitAuthorUrl": @provider_commit_author_url, "providerCommitAuthor": @provider_commit_author, "providerCommitMessage": @provider_commit_message, "providerCommitUrl": @provider_commit_url, "providerBranchUrl": @provider_branch_url } end |