Class: Appwrite::Models::App
- Inherits:
-
Object
- Object
- Appwrite::Models::App
- Defined in:
- lib/appwrite/models/app.rb
Instance Attribute Summary collapse
-
#client_uri ⇒ Object
readonly
Returns the value of attribute client_uri.
-
#contacts ⇒ Object
readonly
Returns the value of attribute contacts.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#data_deletion_url ⇒ Object
readonly
Returns the value of attribute data_deletion_url.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#device_flow ⇒ Object
readonly
Returns the value of attribute device_flow.
-
#enabled ⇒ Object
readonly
Returns the value of attribute enabled.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#installation_redirect_url ⇒ Object
readonly
Returns the value of attribute installation_redirect_url.
-
#installation_scopes ⇒ Object
readonly
Returns the value of attribute installation_scopes.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#logo_uri ⇒ Object
readonly
Returns the value of attribute logo_uri.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#post_logout_redirect_uris ⇒ Object
readonly
Returns the value of attribute post_logout_redirect_uris.
-
#privacy_policy_url ⇒ Object
readonly
Returns the value of attribute privacy_policy_url.
-
#redirect_uris ⇒ Object
readonly
Returns the value of attribute redirect_uris.
-
#secrets ⇒ Object
readonly
Returns the value of attribute secrets.
-
#support_url ⇒ Object
readonly
Returns the value of attribute support_url.
-
#tagline ⇒ Object
readonly
Returns the value of attribute tagline.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#team_id ⇒ Object
readonly
Returns the value of attribute team_id.
-
#terms_url ⇒ Object
readonly
Returns the value of attribute terms_url.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, created_at:, updated_at:, name:, description:, client_uri:, logo_uri:, privacy_policy_url:, terms_url:, contacts:, tagline:, tags:, labels:, images:, support_url:, data_deletion_url:, redirect_uris:, post_logout_redirect_uris:, enabled:, type:, device_flow:, team_id:, user_id:, installation_scopes:, installation_redirect_url:, secrets:) ⇒ App
constructor
A new instance of App.
- #to_map ⇒ Object
Constructor Details
#initialize(id:, created_at:, updated_at:, name:, description:, client_uri:, logo_uri:, privacy_policy_url:, terms_url:, contacts:, tagline:, tags:, labels:, images:, support_url:, data_deletion_url:, redirect_uris:, post_logout_redirect_uris:, enabled:, type:, device_flow:, team_id:, user_id:, installation_scopes:, installation_redirect_url:, secrets:) ⇒ App
Returns a new instance of App.
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 82 83 84 85 86 87 |
# File 'lib/appwrite/models/app.rb', line 33 def initialize( id:, created_at:, updated_at:, name:, description:, client_uri:, logo_uri:, privacy_policy_url:, terms_url:, contacts:, tagline:, tags:, labels:, images:, support_url:, data_deletion_url:, redirect_uris:, post_logout_redirect_uris:, enabled:, type:, device_flow:, team_id:, user_id:, installation_scopes:, installation_redirect_url:, secrets: ) @id = id @created_at = created_at @updated_at = updated_at @name = name @description = description @client_uri = client_uri @logo_uri = logo_uri @privacy_policy_url = privacy_policy_url @terms_url = terms_url @contacts = contacts @tagline = tagline @tags = @labels = labels @images = images @support_url = support_url @data_deletion_url = data_deletion_url @redirect_uris = redirect_uris @post_logout_redirect_uris = post_logout_redirect_uris @enabled = enabled @type = type @device_flow = device_flow @team_id = team_id @user_id = user_id @installation_scopes = installation_scopes @installation_redirect_url = installation_redirect_url @secrets = secrets end |
Instance Attribute Details
#client_uri ⇒ Object (readonly)
Returns the value of attribute client_uri.
11 12 13 |
# File 'lib/appwrite/models/app.rb', line 11 def client_uri @client_uri end |
#contacts ⇒ Object (readonly)
Returns the value of attribute contacts.
15 16 17 |
# File 'lib/appwrite/models/app.rb', line 15 def contacts @contacts end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
7 8 9 |
# File 'lib/appwrite/models/app.rb', line 7 def created_at @created_at end |
#data_deletion_url ⇒ Object (readonly)
Returns the value of attribute data_deletion_url.
21 22 23 |
# File 'lib/appwrite/models/app.rb', line 21 def data_deletion_url @data_deletion_url end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
10 11 12 |
# File 'lib/appwrite/models/app.rb', line 10 def description @description end |
#device_flow ⇒ Object (readonly)
Returns the value of attribute device_flow.
26 27 28 |
# File 'lib/appwrite/models/app.rb', line 26 def device_flow @device_flow end |
#enabled ⇒ Object (readonly)
Returns the value of attribute enabled.
24 25 26 |
# File 'lib/appwrite/models/app.rb', line 24 def enabled @enabled end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/appwrite/models/app.rb', line 6 def id @id end |
#images ⇒ Object (readonly)
Returns the value of attribute images.
19 20 21 |
# File 'lib/appwrite/models/app.rb', line 19 def images @images end |
#installation_redirect_url ⇒ Object (readonly)
Returns the value of attribute installation_redirect_url.
30 31 32 |
# File 'lib/appwrite/models/app.rb', line 30 def installation_redirect_url @installation_redirect_url end |
#installation_scopes ⇒ Object (readonly)
Returns the value of attribute installation_scopes.
29 30 31 |
# File 'lib/appwrite/models/app.rb', line 29 def installation_scopes @installation_scopes end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
18 19 20 |
# File 'lib/appwrite/models/app.rb', line 18 def labels @labels end |
#logo_uri ⇒ Object (readonly)
Returns the value of attribute logo_uri.
12 13 14 |
# File 'lib/appwrite/models/app.rb', line 12 def logo_uri @logo_uri end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/appwrite/models/app.rb', line 9 def name @name end |
#post_logout_redirect_uris ⇒ Object (readonly)
Returns the value of attribute post_logout_redirect_uris.
23 24 25 |
# File 'lib/appwrite/models/app.rb', line 23 def post_logout_redirect_uris @post_logout_redirect_uris end |
#privacy_policy_url ⇒ Object (readonly)
Returns the value of attribute privacy_policy_url.
13 14 15 |
# File 'lib/appwrite/models/app.rb', line 13 def privacy_policy_url @privacy_policy_url end |
#redirect_uris ⇒ Object (readonly)
Returns the value of attribute redirect_uris.
22 23 24 |
# File 'lib/appwrite/models/app.rb', line 22 def redirect_uris @redirect_uris end |
#secrets ⇒ Object (readonly)
Returns the value of attribute secrets.
31 32 33 |
# File 'lib/appwrite/models/app.rb', line 31 def secrets @secrets end |
#support_url ⇒ Object (readonly)
Returns the value of attribute support_url.
20 21 22 |
# File 'lib/appwrite/models/app.rb', line 20 def support_url @support_url end |
#tagline ⇒ Object (readonly)
Returns the value of attribute tagline.
16 17 18 |
# File 'lib/appwrite/models/app.rb', line 16 def tagline @tagline end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
17 18 19 |
# File 'lib/appwrite/models/app.rb', line 17 def @tags end |
#team_id ⇒ Object (readonly)
Returns the value of attribute team_id.
27 28 29 |
# File 'lib/appwrite/models/app.rb', line 27 def team_id @team_id end |
#terms_url ⇒ Object (readonly)
Returns the value of attribute terms_url.
14 15 16 |
# File 'lib/appwrite/models/app.rb', line 14 def terms_url @terms_url end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
25 26 27 |
# File 'lib/appwrite/models/app.rb', line 25 def type @type end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/appwrite/models/app.rb', line 8 def updated_at @updated_at end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
28 29 30 |
# File 'lib/appwrite/models/app.rb', line 28 def user_id @user_id end |
Class Method Details
.from(map:) ⇒ Object
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 |
# File 'lib/appwrite/models/app.rb', line 89 def self.from(map:) App.new( id: map["$id"], created_at: map["$createdAt"], updated_at: map["$updatedAt"], name: map["name"], description: map["description"], client_uri: map["clientUri"], logo_uri: map["logoUri"], privacy_policy_url: map["privacyPolicyUrl"], terms_url: map["termsUrl"], contacts: map["contacts"], tagline: map["tagline"], tags: map["tags"], labels: map["labels"], images: map["images"], support_url: map["supportUrl"], data_deletion_url: map["dataDeletionUrl"], redirect_uris: map["redirectUris"], post_logout_redirect_uris: map["postLogoutRedirectUris"], enabled: map["enabled"], type: map["type"], device_flow: map["deviceFlow"], team_id: map["teamId"], user_id: map["userId"], installation_scopes: map["installationScopes"], installation_redirect_url: map["installationRedirectUrl"], secrets: map["secrets"].map { |it| AppSecret.from(map: it) } ) end |
Instance Method Details
#to_map ⇒ Object
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 |
# File 'lib/appwrite/models/app.rb', line 120 def to_map { "$id": @id, "$createdAt": @created_at, "$updatedAt": @updated_at, "name": @name, "description": @description, "clientUri": @client_uri, "logoUri": @logo_uri, "privacyPolicyUrl": @privacy_policy_url, "termsUrl": @terms_url, "contacts": @contacts, "tagline": @tagline, "tags": @tags, "labels": @labels, "images": @images, "supportUrl": @support_url, "dataDeletionUrl": @data_deletion_url, "redirectUris": @redirect_uris, "postLogoutRedirectUris": @post_logout_redirect_uris, "enabled": @enabled, "type": @type, "deviceFlow": @device_flow, "teamId": @team_id, "userId": @user_id, "installationScopes": @installation_scopes, "installationRedirectUrl": @installation_redirect_url, "secrets": @secrets.map { |it| it.to_map } } end |