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.
-
#environment_id ⇒ Object
readonly
Returns the value of attribute environment_id.
-
#first_accessed_at ⇒ Object
readonly
Returns the value of attribute first_accessed_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#ldap_base_dn ⇒ Object
readonly
Returns the value of attribute ldap_base_dn.
-
#ldap_bind_dn ⇒ Object
readonly
Returns the value of attribute ldap_bind_dn.
-
#ldap_bind_password ⇒ Object
readonly
Returns the value of attribute ldap_bind_password.
-
#ldap_certificate ⇒ Object
readonly
Returns the value of attribute ldap_certificate.
-
#ldap_email_attribute ⇒ Object
readonly
Returns the value of attribute ldap_email_attribute.
-
#ldap_enabled ⇒ Object
readonly
Returns the value of attribute ldap_enabled.
-
#ldap_encryption ⇒ Object
readonly
Returns the value of attribute ldap_encryption.
-
#ldap_hosts ⇒ Object
readonly
Returns the value of attribute ldap_hosts.
-
#ldap_id_attribute ⇒ Object
readonly
Returns the value of attribute ldap_id_attribute.
-
#ldap_name_attribute ⇒ Object
readonly
Returns the value of attribute ldap_name_attribute.
-
#ldap_phone_attribute ⇒ Object
readonly
Returns the value of attribute ldap_phone_attribute.
-
#ldap_port ⇒ Object
readonly
Returns the value of attribute ldap_port.
-
#ldap_required_group_dn ⇒ Object
readonly
Returns the value of attribute ldap_required_group_dn.
-
#ldap_timeout ⇒ Object
readonly
Returns the value of attribute ldap_timeout.
-
#ldap_user_filter ⇒ Object
readonly
Returns the value of attribute ldap_user_filter.
-
#ldap_verification ⇒ Object
readonly
Returns the value of attribute ldap_verification.
-
#mcp_accessed_at ⇒ Object
readonly
Returns the value of attribute mcp_accessed_at.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#o_auth2_server_access_token_duration ⇒ Object
readonly
Returns the value of attribute o_auth2_server_access_token_duration.
-
#o_auth2_server_authorization_details_types ⇒ Object
readonly
Returns the value of attribute o_auth2_server_authorization_details_types.
-
#o_auth2_server_authorization_url ⇒ Object
readonly
Returns the value of attribute o_auth2_server_authorization_url.
-
#o_auth2_server_confidential_pkce ⇒ Object
readonly
Returns the value of attribute o_auth2_server_confidential_pkce.
-
#o_auth2_server_default_scopes ⇒ Object
readonly
Returns the value of attribute o_auth2_server_default_scopes.
-
#o_auth2_server_device_code_duration ⇒ Object
readonly
Returns the value of attribute o_auth2_server_device_code_duration.
-
#o_auth2_server_discovery_url ⇒ Object
readonly
Returns the value of attribute o_auth2_server_discovery_url.
-
#o_auth2_server_enabled ⇒ Object
readonly
Returns the value of attribute o_auth2_server_enabled.
-
#o_auth2_server_installation_access_token_duration ⇒ Object
readonly
Returns the value of attribute o_auth2_server_installation_access_token_duration.
-
#o_auth2_server_installation_scopes ⇒ Object
readonly
Returns the value of attribute o_auth2_server_installation_scopes.
-
#o_auth2_server_public_access_token_duration ⇒ Object
readonly
Returns the value of attribute o_auth2_server_public_access_token_duration.
-
#o_auth2_server_public_refresh_token_duration ⇒ Object
readonly
Returns the value of attribute o_auth2_server_public_refresh_token_duration.
-
#o_auth2_server_refresh_token_duration ⇒ Object
readonly
Returns the value of attribute o_auth2_server_refresh_token_duration.
-
#o_auth2_server_scopes ⇒ Object
readonly
Returns the value of attribute o_auth2_server_scopes.
-
#o_auth2_server_user_code_format ⇒ Object
readonly
Returns the value of attribute o_auth2_server_user_code_format.
-
#o_auth2_server_user_code_length ⇒ Object
readonly
Returns the value of attribute o_auth2_server_user_code_length.
-
#o_auth2_server_verification_url ⇒ Object
readonly
Returns the value of attribute o_auth2_server_verification_url.
-
#onboarding ⇒ Object
readonly
Returns the value of attribute onboarding.
-
#parent_id ⇒ Object
readonly
Returns the value of attribute parent_id.
-
#ping_count ⇒ Object
readonly
Returns the value of attribute ping_count.
-
#pinged_at ⇒ Object
readonly
Returns the value of attribute pinged_at.
-
#prefs ⇒ Object
readonly
Returns the value of attribute prefs.
-
#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.
-
#waf_enabled ⇒ Object
readonly
Returns the value of attribute waf_enabled.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, updated_at:, name:, team_id:, region:, 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:, ldap_enabled:, ldap_hosts:, ldap_port:, ldap_encryption:, ldap_verification:, ldap_certificate:, ldap_timeout:, ldap_base_dn:, ldap_bind_dn:, ldap_bind_password:, ldap_user_filter:, ldap_required_group_dn:, ldap_id_attribute:, ldap_email_attribute:, ldap_name_attribute:, ldap_phone_attribute:, ping_count:, pinged_at:, labels:, prefs: nil, status:, onboarding:, auth_methods:, services:, protocols:, blocks:, console_accessed_at:, waf_enabled: false, parent_id: nil, environment_id: nil, billing_limits: nil, first_accessed_at: nil, mcp_accessed_at: nil, o_auth2_server_enabled: false, o_auth2_server_authorization_url: nil, o_auth2_server_scopes: [], o_auth2_server_default_scopes: [], o_auth2_server_installation_scopes: [], o_auth2_server_authorization_details_types: [], o_auth2_server_access_token_duration: 0, o_auth2_server_refresh_token_duration: 0, o_auth2_server_public_access_token_duration: 0, o_auth2_server_public_refresh_token_duration: 0, o_auth2_server_installation_access_token_duration: 0, o_auth2_server_confidential_pkce: false, o_auth2_server_verification_url: nil, o_auth2_server_user_code_length: 8, o_auth2_server_user_code_format: "alphanumeric", o_auth2_server_device_code_duration: 600, o_auth2_server_discovery_url: nil) ⇒ Project
constructor
A new instance of Project.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, name:, team_id:, region:, 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:, ldap_enabled:, ldap_hosts:, ldap_port:, ldap_encryption:, ldap_verification:, ldap_certificate:, ldap_timeout:, ldap_base_dn:, ldap_bind_dn:, ldap_bind_password:, ldap_user_filter:, ldap_required_group_dn:, ldap_id_attribute:, ldap_email_attribute:, ldap_name_attribute:, ldap_phone_attribute:, ping_count:, pinged_at:, labels:, prefs: nil, status:, onboarding:, auth_methods:, services:, protocols:, blocks:, console_accessed_at:, waf_enabled: false, parent_id: nil, environment_id: nil, billing_limits: nil, first_accessed_at: nil, mcp_accessed_at: nil, o_auth2_server_enabled: false, o_auth2_server_authorization_url: nil, o_auth2_server_scopes: [], o_auth2_server_default_scopes: [], o_auth2_server_installation_scopes: [], o_auth2_server_authorization_details_types: [], o_auth2_server_access_token_duration: 0, o_auth2_server_refresh_token_duration: 0, o_auth2_server_public_access_token_duration: 0, o_auth2_server_public_refresh_token_duration: 0, o_auth2_server_installation_access_token_duration: 0, o_auth2_server_confidential_pkce: false, o_auth2_server_verification_url: nil, o_auth2_server_user_code_length: 8, o_auth2_server_user_code_format: "alphanumeric", o_auth2_server_device_code_duration: 600, o_auth2_server_discovery_url: nil) ⇒ Project
Returns a new instance of Project.
73 74 75 76 77 78 79 80 81 82 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 111 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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/appwrite/models/project.rb', line 73 def initialize( id:, created_at:, updated_at:, name:, team_id:, region:, 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:, ldap_enabled:, ldap_hosts:, ldap_port:, ldap_encryption:, ldap_verification:, ldap_certificate:, ldap_timeout:, ldap_base_dn:, ldap_bind_dn:, ldap_bind_password:, ldap_user_filter:, ldap_required_group_dn:, ldap_id_attribute:, ldap_email_attribute:, ldap_name_attribute:, ldap_phone_attribute:, ping_count:, pinged_at:, labels:, prefs: nil, status:, onboarding:, auth_methods:, services:, protocols:, blocks:, console_accessed_at:, waf_enabled: false, parent_id: nil, environment_id: nil, billing_limits: nil, first_accessed_at: nil, mcp_accessed_at: nil, o_auth2_server_enabled: false, o_auth2_server_authorization_url: nil, o_auth2_server_scopes: [], o_auth2_server_default_scopes: [], o_auth2_server_installation_scopes: [], o_auth2_server_authorization_details_types: [], o_auth2_server_access_token_duration: 0, o_auth2_server_refresh_token_duration: 0, o_auth2_server_public_access_token_duration: 0, o_auth2_server_public_refresh_token_duration: 0, o_auth2_server_installation_access_token_duration: 0, o_auth2_server_confidential_pkce: false, o_auth2_server_verification_url: nil, o_auth2_server_user_code_length: 8, o_auth2_server_user_code_format: "alphanumeric", o_auth2_server_device_code_duration: 600, o_auth2_server_discovery_url: nil ) @id = id @created_at = created_at @updated_at = updated_at @name = name @team_id = team_id @region = region @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 @ldap_enabled = ldap_enabled @ldap_hosts = ldap_hosts @ldap_port = ldap_port @ldap_encryption = ldap_encryption @ldap_verification = ldap_verification @ldap_certificate = ldap_certificate @ldap_timeout = ldap_timeout @ldap_base_dn = ldap_base_dn @ldap_bind_dn = ldap_bind_dn @ldap_bind_password = ldap_bind_password @ldap_user_filter = ldap_user_filter @ldap_required_group_dn = ldap_required_group_dn @ldap_id_attribute = ldap_id_attribute @ldap_email_attribute = ldap_email_attribute @ldap_name_attribute = ldap_name_attribute @ldap_phone_attribute = ldap_phone_attribute @ping_count = ping_count @pinged_at = pinged_at @labels = labels @prefs = prefs @status = status @onboarding = onboarding @auth_methods = auth_methods @services = services @protocols = protocols @blocks = blocks @console_accessed_at = console_accessed_at @waf_enabled = waf_enabled @parent_id = parent_id @environment_id = environment_id @billing_limits = billing_limits @first_accessed_at = first_accessed_at @mcp_accessed_at = mcp_accessed_at @o_auth2_server_enabled = o_auth2_server_enabled @o_auth2_server_authorization_url = @o_auth2_server_scopes = o_auth2_server_scopes @o_auth2_server_default_scopes = o_auth2_server_default_scopes @o_auth2_server_installation_scopes = o_auth2_server_installation_scopes @o_auth2_server_authorization_details_types = @o_auth2_server_access_token_duration = o_auth2_server_access_token_duration @o_auth2_server_refresh_token_duration = o_auth2_server_refresh_token_duration @o_auth2_server_public_access_token_duration = o_auth2_server_public_access_token_duration @o_auth2_server_public_refresh_token_duration = o_auth2_server_public_refresh_token_duration @o_auth2_server_installation_access_token_duration = o_auth2_server_installation_access_token_duration @o_auth2_server_confidential_pkce = o_auth2_server_confidential_pkce @o_auth2_server_verification_url = o_auth2_server_verification_url @o_auth2_server_user_code_length = o_auth2_server_user_code_length @o_auth2_server_user_code_format = o_auth2_server_user_code_format @o_auth2_server_device_code_duration = o_auth2_server_device_code_duration @o_auth2_server_discovery_url = o_auth2_server_discovery_url end |
Instance Attribute Details
#auth_methods ⇒ Object (readonly)
Returns the value of attribute auth_methods.
44 45 46 |
# File 'lib/appwrite/models/project.rb', line 44 def auth_methods @auth_methods end |
#billing_limits ⇒ Object (readonly)
Returns the value of attribute billing_limits.
52 53 54 |
# File 'lib/appwrite/models/project.rb', line 52 def billing_limits @billing_limits end |
#blocks ⇒ Object (readonly)
Returns the value of attribute blocks.
47 48 49 |
# File 'lib/appwrite/models/project.rb', line 47 def blocks @blocks end |
#console_accessed_at ⇒ Object (readonly)
Returns the value of attribute console_accessed_at.
48 49 50 |
# File 'lib/appwrite/models/project.rb', line 48 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 |
#environment_id ⇒ Object (readonly)
Returns the value of attribute environment_id.
51 52 53 |
# File 'lib/appwrite/models/project.rb', line 51 def environment_id @environment_id end |
#first_accessed_at ⇒ Object (readonly)
Returns the value of attribute first_accessed_at.
53 54 55 |
# File 'lib/appwrite/models/project.rb', line 53 def first_accessed_at @first_accessed_at 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.
40 41 42 |
# File 'lib/appwrite/models/project.rb', line 40 def labels @labels end |
#ldap_base_dn ⇒ Object (readonly)
Returns the value of attribute ldap_base_dn.
29 30 31 |
# File 'lib/appwrite/models/project.rb', line 29 def ldap_base_dn @ldap_base_dn end |
#ldap_bind_dn ⇒ Object (readonly)
Returns the value of attribute ldap_bind_dn.
30 31 32 |
# File 'lib/appwrite/models/project.rb', line 30 def ldap_bind_dn @ldap_bind_dn end |
#ldap_bind_password ⇒ Object (readonly)
Returns the value of attribute ldap_bind_password.
31 32 33 |
# File 'lib/appwrite/models/project.rb', line 31 def ldap_bind_password @ldap_bind_password end |
#ldap_certificate ⇒ Object (readonly)
Returns the value of attribute ldap_certificate.
27 28 29 |
# File 'lib/appwrite/models/project.rb', line 27 def ldap_certificate @ldap_certificate end |
#ldap_email_attribute ⇒ Object (readonly)
Returns the value of attribute ldap_email_attribute.
35 36 37 |
# File 'lib/appwrite/models/project.rb', line 35 def ldap_email_attribute @ldap_email_attribute end |
#ldap_enabled ⇒ Object (readonly)
Returns the value of attribute ldap_enabled.
22 23 24 |
# File 'lib/appwrite/models/project.rb', line 22 def ldap_enabled @ldap_enabled end |
#ldap_encryption ⇒ Object (readonly)
Returns the value of attribute ldap_encryption.
25 26 27 |
# File 'lib/appwrite/models/project.rb', line 25 def ldap_encryption @ldap_encryption end |
#ldap_hosts ⇒ Object (readonly)
Returns the value of attribute ldap_hosts.
23 24 25 |
# File 'lib/appwrite/models/project.rb', line 23 def ldap_hosts @ldap_hosts end |
#ldap_id_attribute ⇒ Object (readonly)
Returns the value of attribute ldap_id_attribute.
34 35 36 |
# File 'lib/appwrite/models/project.rb', line 34 def ldap_id_attribute @ldap_id_attribute end |
#ldap_name_attribute ⇒ Object (readonly)
Returns the value of attribute ldap_name_attribute.
36 37 38 |
# File 'lib/appwrite/models/project.rb', line 36 def ldap_name_attribute @ldap_name_attribute end |
#ldap_phone_attribute ⇒ Object (readonly)
Returns the value of attribute ldap_phone_attribute.
37 38 39 |
# File 'lib/appwrite/models/project.rb', line 37 def ldap_phone_attribute @ldap_phone_attribute end |
#ldap_port ⇒ Object (readonly)
Returns the value of attribute ldap_port.
24 25 26 |
# File 'lib/appwrite/models/project.rb', line 24 def ldap_port @ldap_port end |
#ldap_required_group_dn ⇒ Object (readonly)
Returns the value of attribute ldap_required_group_dn.
33 34 35 |
# File 'lib/appwrite/models/project.rb', line 33 def ldap_required_group_dn @ldap_required_group_dn end |
#ldap_timeout ⇒ Object (readonly)
Returns the value of attribute ldap_timeout.
28 29 30 |
# File 'lib/appwrite/models/project.rb', line 28 def ldap_timeout @ldap_timeout end |
#ldap_user_filter ⇒ Object (readonly)
Returns the value of attribute ldap_user_filter.
32 33 34 |
# File 'lib/appwrite/models/project.rb', line 32 def ldap_user_filter @ldap_user_filter end |
#ldap_verification ⇒ Object (readonly)
Returns the value of attribute ldap_verification.
26 27 28 |
# File 'lib/appwrite/models/project.rb', line 26 def ldap_verification @ldap_verification end |
#mcp_accessed_at ⇒ Object (readonly)
Returns the value of attribute mcp_accessed_at.
54 55 56 |
# File 'lib/appwrite/models/project.rb', line 54 def mcp_accessed_at @mcp_accessed_at 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 |
#o_auth2_server_access_token_duration ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_access_token_duration.
61 62 63 |
# File 'lib/appwrite/models/project.rb', line 61 def o_auth2_server_access_token_duration @o_auth2_server_access_token_duration end |
#o_auth2_server_authorization_details_types ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_authorization_details_types.
60 61 62 |
# File 'lib/appwrite/models/project.rb', line 60 def @o_auth2_server_authorization_details_types end |
#o_auth2_server_authorization_url ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_authorization_url.
56 57 58 |
# File 'lib/appwrite/models/project.rb', line 56 def @o_auth2_server_authorization_url end |
#o_auth2_server_confidential_pkce ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_confidential_pkce.
66 67 68 |
# File 'lib/appwrite/models/project.rb', line 66 def o_auth2_server_confidential_pkce @o_auth2_server_confidential_pkce end |
#o_auth2_server_default_scopes ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_default_scopes.
58 59 60 |
# File 'lib/appwrite/models/project.rb', line 58 def o_auth2_server_default_scopes @o_auth2_server_default_scopes end |
#o_auth2_server_device_code_duration ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_device_code_duration.
70 71 72 |
# File 'lib/appwrite/models/project.rb', line 70 def o_auth2_server_device_code_duration @o_auth2_server_device_code_duration end |
#o_auth2_server_discovery_url ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_discovery_url.
71 72 73 |
# File 'lib/appwrite/models/project.rb', line 71 def o_auth2_server_discovery_url @o_auth2_server_discovery_url end |
#o_auth2_server_enabled ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_enabled.
55 56 57 |
# File 'lib/appwrite/models/project.rb', line 55 def o_auth2_server_enabled @o_auth2_server_enabled end |
#o_auth2_server_installation_access_token_duration ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_installation_access_token_duration.
65 66 67 |
# File 'lib/appwrite/models/project.rb', line 65 def o_auth2_server_installation_access_token_duration @o_auth2_server_installation_access_token_duration end |
#o_auth2_server_installation_scopes ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_installation_scopes.
59 60 61 |
# File 'lib/appwrite/models/project.rb', line 59 def o_auth2_server_installation_scopes @o_auth2_server_installation_scopes end |
#o_auth2_server_public_access_token_duration ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_public_access_token_duration.
63 64 65 |
# File 'lib/appwrite/models/project.rb', line 63 def o_auth2_server_public_access_token_duration @o_auth2_server_public_access_token_duration end |
#o_auth2_server_public_refresh_token_duration ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_public_refresh_token_duration.
64 65 66 |
# File 'lib/appwrite/models/project.rb', line 64 def o_auth2_server_public_refresh_token_duration @o_auth2_server_public_refresh_token_duration end |
#o_auth2_server_refresh_token_duration ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_refresh_token_duration.
62 63 64 |
# File 'lib/appwrite/models/project.rb', line 62 def o_auth2_server_refresh_token_duration @o_auth2_server_refresh_token_duration end |
#o_auth2_server_scopes ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_scopes.
57 58 59 |
# File 'lib/appwrite/models/project.rb', line 57 def o_auth2_server_scopes @o_auth2_server_scopes end |
#o_auth2_server_user_code_format ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_user_code_format.
69 70 71 |
# File 'lib/appwrite/models/project.rb', line 69 def o_auth2_server_user_code_format @o_auth2_server_user_code_format end |
#o_auth2_server_user_code_length ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_user_code_length.
68 69 70 |
# File 'lib/appwrite/models/project.rb', line 68 def o_auth2_server_user_code_length @o_auth2_server_user_code_length end |
#o_auth2_server_verification_url ⇒ Object (readonly)
Returns the value of attribute o_auth2_server_verification_url.
67 68 69 |
# File 'lib/appwrite/models/project.rb', line 67 def o_auth2_server_verification_url @o_auth2_server_verification_url end |
#onboarding ⇒ Object (readonly)
Returns the value of attribute onboarding.
43 44 45 |
# File 'lib/appwrite/models/project.rb', line 43 def onboarding @onboarding end |
#parent_id ⇒ Object (readonly)
Returns the value of attribute parent_id.
50 51 52 |
# File 'lib/appwrite/models/project.rb', line 50 def parent_id @parent_id end |
#ping_count ⇒ Object (readonly)
Returns the value of attribute ping_count.
38 39 40 |
# File 'lib/appwrite/models/project.rb', line 38 def ping_count @ping_count end |
#pinged_at ⇒ Object (readonly)
Returns the value of attribute pinged_at.
39 40 41 |
# File 'lib/appwrite/models/project.rb', line 39 def pinged_at @pinged_at end |
#prefs ⇒ Object (readonly)
Returns the value of attribute prefs.
41 42 43 |
# File 'lib/appwrite/models/project.rb', line 41 def prefs @prefs end |
#protocols ⇒ Object (readonly)
Returns the value of attribute protocols.
46 47 48 |
# File 'lib/appwrite/models/project.rb', line 46 def protocols @protocols end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
11 12 13 |
# File 'lib/appwrite/models/project.rb', line 11 def region @region end |
#services ⇒ Object (readonly)
Returns the value of attribute services.
45 46 47 |
# File 'lib/appwrite/models/project.rb', line 45 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.
42 43 44 |
# File 'lib/appwrite/models/project.rb', line 42 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 |
#waf_enabled ⇒ Object (readonly)
Returns the value of attribute waf_enabled.
49 50 51 |
# File 'lib/appwrite/models/project.rb', line 49 def waf_enabled @waf_enabled end |
Class Method Details
.from(map:) ⇒ Object
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
# File 'lib/appwrite/models/project.rb', line 209 def self.from(map:) map = { "$id" => "", "$createdAt" => "", "$updatedAt" => "", "name" => "", "teamId" => "", "region" => "fra", "smtpEnabled" => false, "smtpSenderName" => "", "smtpSenderEmail" => "", "smtpReplyToName" => "", "smtpReplyToEmail" => "", "smtpHost" => "", "smtpPort" => 0, "smtpUsername" => "", "smtpPassword" => "", "smtpSecure" => "", "ldapEnabled" => false, "ldapHosts" => [], "ldapPort" => 636, "ldapEncryption" => "ldaps", "ldapVerification" => true, "ldapCertificate" => "", "ldapTimeout" => 10, "ldapBaseDn" => "", "ldapBindDn" => "", "ldapBindPassword" => "", "ldapUserFilter" => "(uid={username})", "ldapRequiredGroupDn" => "", "ldapIdAttribute" => "entryUUID", "ldapEmailAttribute" => "mail", "ldapNameAttribute" => "cn", "ldapPhoneAttribute" => "", "pingCount" => 0, "pingedAt" => "", "labels" => [], "status" => "active", "onboarding" => {}, "authMethods" => [], "services" => [], "protocols" => [], "blocks" => [], "consoleAccessedAt" => "" }.merge(map) Project.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], name: map["name"], team_id: map["teamId"], region: map["region"], 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"], ldap_enabled: map["ldapEnabled"], ldap_hosts: map["ldapHosts"], ldap_port: map["ldapPort"], ldap_encryption: map["ldapEncryption"], ldap_verification: map["ldapVerification"], ldap_certificate: map["ldapCertificate"], ldap_timeout: map["ldapTimeout"], ldap_base_dn: map["ldapBaseDn"], ldap_bind_dn: map["ldapBindDn"], ldap_bind_password: map["ldapBindPassword"], ldap_user_filter: map["ldapUserFilter"], ldap_required_group_dn: map["ldapRequiredGroupDn"], ldap_id_attribute: map["ldapIdAttribute"], ldap_email_attribute: map["ldapEmailAttribute"], ldap_name_attribute: map["ldapNameAttribute"], ldap_phone_attribute: map["ldapPhoneAttribute"], ping_count: map["pingCount"], pinged_at: map["pingedAt"], labels: map["labels"], prefs: map["prefs"].nil? ? nil : Preferences.from(map: map["prefs"]), status: map["status"], onboarding: map["onboarding"], 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) }, blocks: map["blocks"].map { |it| Block.from(map: it) }, console_accessed_at: map["consoleAccessedAt"], waf_enabled: map["wafEnabled"], parent_id: map["parentId"], environment_id: map["environmentId"], billing_limits: map["billingLimits"].nil? ? nil : BillingLimits.from(map: map["billingLimits"]), first_accessed_at: map["firstAccessedAt"], mcp_accessed_at: map["mcpAccessedAt"], o_auth2_server_enabled: map["oAuth2ServerEnabled"], o_auth2_server_authorization_url: map["oAuth2ServerAuthorizationUrl"], o_auth2_server_scopes: map["oAuth2ServerScopes"], o_auth2_server_default_scopes: map["oAuth2ServerDefaultScopes"], o_auth2_server_installation_scopes: map["oAuth2ServerInstallationScopes"], o_auth2_server_authorization_details_types: map["oAuth2ServerAuthorizationDetailsTypes"], o_auth2_server_access_token_duration: map["oAuth2ServerAccessTokenDuration"], o_auth2_server_refresh_token_duration: map["oAuth2ServerRefreshTokenDuration"], o_auth2_server_public_access_token_duration: map["oAuth2ServerPublicAccessTokenDuration"], o_auth2_server_public_refresh_token_duration: map["oAuth2ServerPublicRefreshTokenDuration"], o_auth2_server_installation_access_token_duration: map["oAuth2ServerInstallationAccessTokenDuration"], o_auth2_server_confidential_pkce: map["oAuth2ServerConfidentialPkce"], o_auth2_server_verification_url: map["oAuth2ServerVerificationUrl"], o_auth2_server_user_code_length: map["oAuth2ServerUserCodeLength"], o_auth2_server_user_code_format: map["oAuth2ServerUserCodeFormat"], o_auth2_server_device_code_duration: map["oAuth2ServerDeviceCodeDuration"], o_auth2_server_discovery_url: map["oAuth2ServerDiscoveryUrl"] ) end |
Instance Method Details
#to_map ⇒ Object
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/appwrite/models/project.rb', line 281 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "name": @name, "teamId": @team_id, "region": @region, "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, "ldapEnabled": @ldap_enabled, "ldapHosts": @ldap_hosts, "ldapPort": @ldap_port, "ldapEncryption": @ldap_encryption, "ldapVerification": @ldap_verification, "ldapCertificate": @ldap_certificate, "ldapTimeout": @ldap_timeout, "ldapBaseDn": @ldap_base_dn, "ldapBindDn": @ldap_bind_dn, "ldapBindPassword": @ldap_bind_password, "ldapUserFilter": @ldap_user_filter, "ldapRequiredGroupDn": @ldap_required_group_dn, "ldapIdAttribute": @ldap_id_attribute, "ldapEmailAttribute": @ldap_email_attribute, "ldapNameAttribute": @ldap_name_attribute, "ldapPhoneAttribute": @ldap_phone_attribute, "pingCount": @ping_count, "pingedAt": @pinged_at, "labels": @labels, "prefs": @prefs&.to_map, "status": @status, "onboarding": @onboarding, "authMethods": @auth_methods.map { |it| it.to_map }, "services": @services.map { |it| it.to_map }, "protocols": @protocols.map { |it| it.to_map }, "blocks": @blocks.map { |it| it.to_map }, "consoleAccessedAt": @console_accessed_at, "wafEnabled": @waf_enabled, "parentId": @parent_id, "environmentId": @environment_id, "billingLimits": @billing_limits&.to_map, "firstAccessedAt": @first_accessed_at, "mcpAccessedAt": @mcp_accessed_at, "oAuth2ServerEnabled": @o_auth2_server_enabled, "oAuth2ServerAuthorizationUrl": @o_auth2_server_authorization_url, "oAuth2ServerScopes": @o_auth2_server_scopes, "oAuth2ServerDefaultScopes": @o_auth2_server_default_scopes, "oAuth2ServerInstallationScopes": @o_auth2_server_installation_scopes, "oAuth2ServerAuthorizationDetailsTypes": @o_auth2_server_authorization_details_types, "oAuth2ServerAccessTokenDuration": @o_auth2_server_access_token_duration, "oAuth2ServerRefreshTokenDuration": @o_auth2_server_refresh_token_duration, "oAuth2ServerPublicAccessTokenDuration": @o_auth2_server_public_access_token_duration, "oAuth2ServerPublicRefreshTokenDuration": @o_auth2_server_public_refresh_token_duration, "oAuth2ServerInstallationAccessTokenDuration": @o_auth2_server_installation_access_token_duration, "oAuth2ServerConfidentialPkce": @o_auth2_server_confidential_pkce, "oAuth2ServerVerificationUrl": @o_auth2_server_verification_url, "oAuth2ServerUserCodeLength": @o_auth2_server_user_code_length, "oAuth2ServerUserCodeFormat": @o_auth2_server_user_code_format, "oAuth2ServerDeviceCodeDuration": @o_auth2_server_device_code_duration, "oAuth2ServerDiscoveryUrl": @o_auth2_server_discovery_url } end |