Class: Appwrite::Models::Project
- Inherits:
-
Object
- Object
- Appwrite::Models::Project
- Defined in:
- lib/appwrite/models/project.rb
Instance Attribute Summary collapse
-
#auth_methods ⇒ Object
readonly
Returns the value of attribute auth_methods.
-
#billing_limits ⇒ Object
readonly
Returns the value of attribute billing_limits.
-
#blocks ⇒ Object
readonly
Returns the value of attribute blocks.
-
#console_accessed_at ⇒ Object
readonly
Returns the value of attribute console_accessed_at.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#dev_keys ⇒ Object
readonly
Returns the value of attribute dev_keys.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#ping_count ⇒ Object
readonly
Returns the value of attribute ping_count.
-
#pinged_at ⇒ Object
readonly
Returns the value of attribute pinged_at.
-
#protocols ⇒ Object
readonly
Returns the value of attribute protocols.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#services ⇒ Object
readonly
Returns the value of attribute services.
-
#smtp_enabled ⇒ Object
readonly
Returns the value of attribute smtp_enabled.
-
#smtp_host ⇒ Object
readonly
Returns the value of attribute smtp_host.
-
#smtp_password ⇒ Object
readonly
Returns the value of attribute smtp_password.
-
#smtp_port ⇒ Object
readonly
Returns the value of attribute smtp_port.
-
#smtp_reply_to_email ⇒ Object
readonly
Returns the value of attribute smtp_reply_to_email.
-
#smtp_reply_to_name ⇒ Object
readonly
Returns the value of attribute smtp_reply_to_name.
-
#smtp_secure ⇒ Object
readonly
Returns the value of attribute smtp_secure.
-
#smtp_sender_email ⇒ Object
readonly
Returns the value of attribute smtp_sender_email.
-
#smtp_sender_name ⇒ Object
readonly
Returns the value of attribute smtp_sender_name.
-
#smtp_username ⇒ Object
readonly
Returns the value of attribute smtp_username.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#team_id ⇒ Object
readonly
Returns the value of attribute team_id.
-
#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:, name:, team_id:, dev_keys:, smtp_enabled:, smtp_sender_name:, smtp_sender_email:, smtp_reply_to_name:, smtp_reply_to_email:, smtp_host:, smtp_port:, smtp_username:, smtp_password:, smtp_secure:, ping_count:, pinged_at:, labels:, status:, auth_methods:, services:, protocols:, region:, billing_limits:, blocks:, console_accessed_at:) ⇒ Project
constructor
A new instance of Project.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, name:, team_id:, dev_keys:, smtp_enabled:, smtp_sender_name:, smtp_sender_email:, smtp_reply_to_name:, smtp_reply_to_email:, smtp_host:, smtp_port:, smtp_username:, smtp_password:, smtp_secure:, ping_count:, pinged_at:, labels:, status:, auth_methods:, services:, protocols:, region:, billing_limits:, blocks:, console_accessed_at:) ⇒ Project
Returns a new instance of Project.
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/project.rb', line 34 def initialize( id:, created_at:, updated_at:, name:, team_id:, dev_keys:, smtp_enabled:, smtp_sender_name:, smtp_sender_email:, smtp_reply_to_name:, smtp_reply_to_email:, smtp_host:, smtp_port:, smtp_username:, smtp_password:, smtp_secure:, ping_count:, pinged_at:, labels:, status:, auth_methods:, services:, protocols:, region:, billing_limits: , blocks:, console_accessed_at: ) @id = id @created_at = created_at @updated_at = updated_at @name = name @team_id = team_id @dev_keys = dev_keys @smtp_enabled = smtp_enabled @smtp_sender_name = smtp_sender_name @smtp_sender_email = smtp_sender_email @smtp_reply_to_name = smtp_reply_to_name @smtp_reply_to_email = smtp_reply_to_email @smtp_host = smtp_host @smtp_port = smtp_port @smtp_username = smtp_username @smtp_password = smtp_password @smtp_secure = smtp_secure @ping_count = ping_count @pinged_at = pinged_at @labels = labels @status = status @auth_methods = auth_methods @services = services @protocols = protocols @region = region @billing_limits = billing_limits @blocks = blocks @console_accessed_at = console_accessed_at end |
Instance Attribute Details
#auth_methods ⇒ Object (readonly)
Returns the value of attribute auth_methods.
26 27 28 |
# File 'lib/appwrite/models/project.rb', line 26 def auth_methods @auth_methods end |
#billing_limits ⇒ Object (readonly)
Returns the value of attribute billing_limits.
30 31 32 |
# File 'lib/appwrite/models/project.rb', line 30 def billing_limits @billing_limits end |
#blocks ⇒ Object (readonly)
Returns the value of attribute blocks.
31 32 33 |
# File 'lib/appwrite/models/project.rb', line 31 def blocks @blocks end |
#console_accessed_at ⇒ Object (readonly)
Returns the value of attribute console_accessed_at.
32 33 34 |
# File 'lib/appwrite/models/project.rb', line 32 def console_accessed_at @console_accessed_at end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/project.rb', line 7 def created_at @created_at end |
#dev_keys ⇒ Object (readonly)
Returns the value of attribute dev_keys.
11 12 13 |
# File 'lib/appwrite/models/project.rb', line 11 def dev_keys @dev_keys end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/project.rb', line 6 def id @id end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
24 25 26 |
# File 'lib/appwrite/models/project.rb', line 24 def labels @labels end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/appwrite/models/project.rb', line 9 def name @name end |
#ping_count ⇒ Object (readonly)
Returns the value of attribute ping_count.
22 23 24 |
# File 'lib/appwrite/models/project.rb', line 22 def ping_count @ping_count end |
#pinged_at ⇒ Object (readonly)
Returns the value of attribute pinged_at.
23 24 25 |
# File 'lib/appwrite/models/project.rb', line 23 def pinged_at @pinged_at end |
#protocols ⇒ Object (readonly)
Returns the value of attribute protocols.
28 29 30 |
# File 'lib/appwrite/models/project.rb', line 28 def protocols @protocols end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
29 30 31 |
# File 'lib/appwrite/models/project.rb', line 29 def region @region end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
27 28 29 |
# File 'lib/appwrite/models/project.rb', line 27 def services @services end |
#smtp_enabled ⇒ Object (readonly)
Returns the value of attribute smtp_enabled.
12 13 14 |
# File 'lib/appwrite/models/project.rb', line 12 def smtp_enabled @smtp_enabled end |
#smtp_host ⇒ Object (readonly)
Returns the value of attribute smtp_host.
17 18 19 |
# File 'lib/appwrite/models/project.rb', line 17 def smtp_host @smtp_host end |
#smtp_password ⇒ Object (readonly)
Returns the value of attribute smtp_password.
20 21 22 |
# File 'lib/appwrite/models/project.rb', line 20 def smtp_password @smtp_password end |
#smtp_port ⇒ Object (readonly)
Returns the value of attribute smtp_port.
18 19 20 |
# File 'lib/appwrite/models/project.rb', line 18 def smtp_port @smtp_port end |
#smtp_reply_to_email ⇒ Object (readonly)
Returns the value of attribute smtp_reply_to_email.
16 17 18 |
# File 'lib/appwrite/models/project.rb', line 16 def smtp_reply_to_email @smtp_reply_to_email end |
#smtp_reply_to_name ⇒ Object (readonly)
Returns the value of attribute smtp_reply_to_name.
15 16 17 |
# File 'lib/appwrite/models/project.rb', line 15 def smtp_reply_to_name @smtp_reply_to_name end |
#smtp_secure ⇒ Object (readonly)
Returns the value of attribute smtp_secure.
21 22 23 |
# File 'lib/appwrite/models/project.rb', line 21 def smtp_secure @smtp_secure end |
#smtp_sender_email ⇒ Object (readonly)
Returns the value of attribute smtp_sender_email.
14 15 16 |
# File 'lib/appwrite/models/project.rb', line 14 def smtp_sender_email @smtp_sender_email end |
#smtp_sender_name ⇒ Object (readonly)
Returns the value of attribute smtp_sender_name.
13 14 15 |
# File 'lib/appwrite/models/project.rb', line 13 def smtp_sender_name @smtp_sender_name end |
#smtp_username ⇒ Object (readonly)
Returns the value of attribute smtp_username.
19 20 21 |
# File 'lib/appwrite/models/project.rb', line 19 def smtp_username @smtp_username end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
25 26 27 |
# File 'lib/appwrite/models/project.rb', line 25 def status @status end |
#team_id ⇒ Object (readonly)
Returns the value of attribute team_id.
10 11 12 |
# File 'lib/appwrite/models/project.rb', line 10 def team_id @team_id end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/appwrite/models/project.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/project.rb', line 92 def self.from(map:) Project.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], name: map["name"], team_id: map["teamId"], dev_keys: map["devKeys"].map { |it| DevKey.from(map: it) }, smtp_enabled: map["smtpEnabled"], smtp_sender_name: map["smtpSenderName"], smtp_sender_email: map["smtpSenderEmail"], smtp_reply_to_name: map["smtpReplyToName"], smtp_reply_to_email: map["smtpReplyToEmail"], smtp_host: map["smtpHost"], smtp_port: map["smtpPort"], smtp_username: map["smtpUsername"], smtp_password: map["smtpPassword"], smtp_secure: map["smtpSecure"], ping_count: map["pingCount"], pinged_at: map["pingedAt"], labels: map["labels"], status: map["status"], auth_methods: map["authMethods"].map { |it| ProjectAuthMethod.from(map: it) }, services: map["services"].map { |it| ProjectService.from(map: it) }, protocols: map["protocols"].map { |it| ProjectProtocol.from(map: it) }, region: map["region"], billing_limits: BillingLimits.from(map: map["billingLimits"]), blocks: map["blocks"].map { |it| Block.from(map: it) }, console_accessed_at: map["consoleAccessedAt"] ) 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/project.rb', line 124 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "name": @name, "teamId": @team_id, "devKeys": @dev_keys.map { |it| it.to_map }, "smtpEnabled": @smtp_enabled, "smtpSenderName": @smtp_sender_name, "smtpSenderEmail": @smtp_sender_email, "smtpReplyToName": @smtp_reply_to_name, "smtpReplyToEmail": @smtp_reply_to_email, "smtpHost": @smtp_host, "smtpPort": @smtp_port, "smtpUsername": @smtp_username, "smtpPassword": @smtp_password, "smtpSecure": @smtp_secure, "pingCount": @ping_count, "pingedAt": @pinged_at, "labels": @labels, "status": @status, "authMethods": @auth_methods.map { |it| it.to_map }, "services": @services.map { |it| it.to_map }, "protocols": @protocols.map { |it| it.to_map }, "region": @region, "billingLimits": @billing_limits.to_map, "blocks": @blocks.map { |it| it.to_map }, "consoleAccessedAt": @console_accessed_at } end |