Class: Appwrite::Models::BillingPlan

Inherits:
Object
  • Object
show all
Defined in:
lib/appwrite/models/billing_plan.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id:, name:, desc:, order:, price:, trial:, bandwidth:, storage:, image_transformations:, screenshots_generated:, members: 0, webhooks:, waf_rules:, environments:, projects:, platforms:, users:, teams:, databases:, databases_reads:, databases_writes:, databases_batch_size:, buckets:, file_size:, functions:, sites:, executions:, executions_retention_count:, deployment_retention: 0, deployment_retention_max: 0, deployments_retention_count: 0, gb_hours:, realtime:, realtime_messages:, messages:, topics:, auth_phone:, domains:, activity_logs: 1, usage_logs:, usage_logs_intervals: ["15m", "1h", "1d"], usage_aggregate_only_metrics: [], project_inactivity_days:, alert_limit:, usage: nil, addons:, budget_cap_enabled:, custom_smtp:, email_branding:, requires_payment_method:, requires_billing_address:, eligible_countries: [], is_available:, self_service:, premium_support:, budgeting:, supports_mock_numbers:, supports_organization_roles:, supports_credits:, supports_dedicated_databases:, supports_disposable_email_validation:, supports_canonical_email_validation:, supports_free_email_validation:, supports_corporate_email_validation:, supports_project_specific_roles:, backups_enabled: true, usage_per_project:, supported_addons:, backup_policies: 0, deployment_size:, build_size:, functions_interval_minimum:, functions_allow_cron:, databases_allow_encrypt:, limits: nil, group:, program: nil, database_compute_credit:, dedicated_databases: nil) ⇒ BillingPlan

Returns a new instance of BillingPlan.



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
208
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
# File 'lib/appwrite/models/billing_plan.rb', line 86

def initialize(
    id:,
    name:,
    desc:,
    order:,
    price:,
    trial:,
    bandwidth:,
    storage:,
    image_transformations:,
    screenshots_generated:,
    members: 0,
    webhooks:,
    waf_rules:,
    environments:,
    projects:,
    platforms:,
    users:,
    teams:,
    databases:,
    databases_reads:,
    databases_writes:,
    databases_batch_size:,
    buckets:,
    file_size:,
    functions:,
    sites:,
    executions:,
    executions_retention_count:,
    deployment_retention: 0,
    deployment_retention_max: 0,
    deployments_retention_count: 0,
    gb_hours:,
    realtime:,
    realtime_messages:,
    messages:,
    topics:,
    auth_phone:,
    domains:,
    activity_logs: 1,
    usage_logs:,
    usage_logs_intervals: ["15m", "1h", "1d"],
    usage_aggregate_only_metrics: [],
    project_inactivity_days:,
    alert_limit:,
    usage: nil,
    addons:,
    budget_cap_enabled:,
    custom_smtp:,
    email_branding:,
    requires_payment_method:,
    requires_billing_address:,
    eligible_countries: [],
    is_available:,
    self_service:,
    premium_support:,
    budgeting:,
    supports_mock_numbers:,
    supports_organization_roles:,
    supports_credits:,
    supports_dedicated_databases:,
    supports_disposable_email_validation:,
    supports_canonical_email_validation:,
    supports_free_email_validation:,
    supports_corporate_email_validation:,
    supports_project_specific_roles:,
    backups_enabled: true,
    usage_per_project:,
    supported_addons:,
    backup_policies: 0,
    deployment_size:,
    build_size:,
    functions_interval_minimum:,
    functions_allow_cron:,
    databases_allow_encrypt:,
    limits: nil,
    group:,
    program: nil,
    database_compute_credit:,
    dedicated_databases: nil
)
    @id = id
    @name = name
    @desc = desc
    @order = order
    @price = price
    @trial = trial
    @bandwidth = bandwidth
    @storage = storage
    @image_transformations = image_transformations
    @screenshots_generated = screenshots_generated
    @members = members
    @webhooks = webhooks
    @waf_rules = waf_rules
    @environments = environments
    @projects = projects
    @platforms = platforms
    @users = users
    @teams = teams
    @databases = databases
    @databases_reads = databases_reads
    @databases_writes = databases_writes
    @databases_batch_size = databases_batch_size
    @buckets = buckets
    @file_size = file_size
    @functions = functions
    @sites = sites
    @executions = executions
    @executions_retention_count = executions_retention_count
    @deployment_retention = deployment_retention
    @deployment_retention_max = deployment_retention_max
    @deployments_retention_count = deployments_retention_count
    @gb_hours = gb_hours
    @realtime = realtime
    @realtime_messages = realtime_messages
    @messages = messages
    @topics = topics
    @auth_phone = auth_phone
    @domains = domains
    @activity_logs = activity_logs
    @usage_logs = usage_logs
    @usage_logs_intervals = usage_logs_intervals
    @usage_aggregate_only_metrics = usage_aggregate_only_metrics
    @project_inactivity_days = project_inactivity_days
    @alert_limit = alert_limit
    @usage = usage
    @addons = addons
    @budget_cap_enabled = budget_cap_enabled
    @custom_smtp = custom_smtp
    @email_branding = email_branding
    @requires_payment_method = requires_payment_method
    @requires_billing_address = requires_billing_address
    @eligible_countries = eligible_countries
    @is_available = is_available
    @self_service = self_service
    @premium_support = premium_support
    @budgeting = budgeting
    @supports_mock_numbers = supports_mock_numbers
    @supports_organization_roles = supports_organization_roles
    @supports_credits = supports_credits
    @supports_dedicated_databases = supports_dedicated_databases
    @supports_disposable_email_validation = supports_disposable_email_validation
    @supports_canonical_email_validation = supports_canonical_email_validation
    @supports_free_email_validation = supports_free_email_validation
    @supports_corporate_email_validation = supports_corporate_email_validation
    @supports_project_specific_roles = supports_project_specific_roles
    @backups_enabled = backups_enabled
    @usage_per_project = usage_per_project
    @supported_addons = supported_addons
    @backup_policies = backup_policies
    @deployment_size = deployment_size
    @build_size = build_size
    @functions_interval_minimum = functions_interval_minimum
    @functions_allow_cron = functions_allow_cron
    @databases_allow_encrypt = databases_allow_encrypt
    @limits = limits
    @group = validate_group(group)
    @program = program
    @database_compute_credit = database_compute_credit
    @dedicated_databases = dedicated_databases
end

Instance Attribute Details

#activity_logs ⇒ Object (readonly)

Returns the value of attribute activity_logs.



44
45
46
# File 'lib/appwrite/models/billing_plan.rb', line 44

def activity_logs
  @activity_logs
end

#addons ⇒ Object (readonly)

Returns the value of attribute addons.



51
52
53
# File 'lib/appwrite/models/billing_plan.rb', line 51

def addons
  @addons
end

#alert_limit ⇒ Object (readonly)

Returns the value of attribute alert_limit.



49
50
51
# File 'lib/appwrite/models/billing_plan.rb', line 49

def alert_limit
  @alert_limit
end

#auth_phone ⇒ Object (readonly)

Returns the value of attribute auth_phone.



42
43
44
# File 'lib/appwrite/models/billing_plan.rb', line 42

def auth_phone
  @auth_phone
end

#backup_policies ⇒ Object (readonly)

Returns the value of attribute backup_policies.



74
75
76
# File 'lib/appwrite/models/billing_plan.rb', line 74

def backup_policies
  @backup_policies
end

#backups_enabled ⇒ Object (readonly)

Returns the value of attribute backups_enabled.



71
72
73
# File 'lib/appwrite/models/billing_plan.rb', line 71

def backups_enabled
  @backups_enabled
end

#bandwidth ⇒ Object (readonly)

Returns the value of attribute bandwidth.



12
13
14
# File 'lib/appwrite/models/billing_plan.rb', line 12

def bandwidth
  @bandwidth
end

#buckets ⇒ Object (readonly)

Returns the value of attribute buckets.



28
29
30
# File 'lib/appwrite/models/billing_plan.rb', line 28

def buckets
  @buckets
end

#budget_cap_enabled ⇒ Object (readonly)

Returns the value of attribute budget_cap_enabled.



52
53
54
# File 'lib/appwrite/models/billing_plan.rb', line 52

def budget_cap_enabled
  @budget_cap_enabled
end

#budgeting ⇒ Object (readonly)

Returns the value of attribute budgeting.



61
62
63
# File 'lib/appwrite/models/billing_plan.rb', line 61

def budgeting
  @budgeting
end

#build_size ⇒ Object (readonly)

Returns the value of attribute build_size.



76
77
78
# File 'lib/appwrite/models/billing_plan.rb', line 76

def build_size
  @build_size
end

#custom_smtp ⇒ Object (readonly)

Returns the value of attribute custom_smtp.



53
54
55
# File 'lib/appwrite/models/billing_plan.rb', line 53

def custom_smtp
  @custom_smtp
end

#database_compute_credit ⇒ Object (readonly)

Returns the value of attribute database_compute_credit.



83
84
85
# File 'lib/appwrite/models/billing_plan.rb', line 83

def database_compute_credit
  @database_compute_credit
end

#databases ⇒ Object (readonly)

Returns the value of attribute databases.



24
25
26
# File 'lib/appwrite/models/billing_plan.rb', line 24

def databases
  @databases
end

#databases_allow_encrypt ⇒ Object (readonly)

Returns the value of attribute databases_allow_encrypt.



79
80
81
# File 'lib/appwrite/models/billing_plan.rb', line 79

def databases_allow_encrypt
  @databases_allow_encrypt
end

#databases_batch_size ⇒ Object (readonly)

Returns the value of attribute databases_batch_size.



27
28
29
# File 'lib/appwrite/models/billing_plan.rb', line 27

def databases_batch_size
  @databases_batch_size
end

#databases_reads ⇒ Object (readonly)

Returns the value of attribute databases_reads.



25
26
27
# File 'lib/appwrite/models/billing_plan.rb', line 25

def databases_reads
  @databases_reads
end

#databases_writes ⇒ Object (readonly)

Returns the value of attribute databases_writes.



26
27
28
# File 'lib/appwrite/models/billing_plan.rb', line 26

def databases_writes
  @databases_writes
end

#dedicated_databases ⇒ Object (readonly)

Returns the value of attribute dedicated_databases.



84
85
86
# File 'lib/appwrite/models/billing_plan.rb', line 84

def dedicated_databases
  @dedicated_databases
end

#deployment_retention ⇒ Object (readonly)

Returns the value of attribute deployment_retention.



34
35
36
# File 'lib/appwrite/models/billing_plan.rb', line 34

def deployment_retention
  @deployment_retention
end

#deployment_retention_max ⇒ Object (readonly)

Returns the value of attribute deployment_retention_max.



35
36
37
# File 'lib/appwrite/models/billing_plan.rb', line 35

def deployment_retention_max
  @deployment_retention_max
end

#deployment_size ⇒ Object (readonly)

Returns the value of attribute deployment_size.



75
76
77
# File 'lib/appwrite/models/billing_plan.rb', line 75

def deployment_size
  @deployment_size
end

#deployments_retention_count ⇒ Object (readonly)

Returns the value of attribute deployments_retention_count.



36
37
38
# File 'lib/appwrite/models/billing_plan.rb', line 36

def deployments_retention_count
  @deployments_retention_count
end

#desc ⇒ Object (readonly)

Returns the value of attribute desc.



8
9
10
# File 'lib/appwrite/models/billing_plan.rb', line 8

def desc
  @desc
end

#domains ⇒ Object (readonly)

Returns the value of attribute domains.



43
44
45
# File 'lib/appwrite/models/billing_plan.rb', line 43

def domains
  @domains
end

#eligible_countries ⇒ Object (readonly)

Returns the value of attribute eligible_countries.



57
58
59
# File 'lib/appwrite/models/billing_plan.rb', line 57

def eligible_countries
  @eligible_countries
end

#email_branding ⇒ Object (readonly)

Returns the value of attribute email_branding.



54
55
56
# File 'lib/appwrite/models/billing_plan.rb', line 54

def email_branding
  @email_branding
end

#environments ⇒ Object (readonly)

Returns the value of attribute environments.



19
20
21
# File 'lib/appwrite/models/billing_plan.rb', line 19

def environments
  @environments
end

#executions ⇒ Object (readonly)

Returns the value of attribute executions.



32
33
34
# File 'lib/appwrite/models/billing_plan.rb', line 32

def executions
  @executions
end

#executions_retention_count ⇒ Object (readonly)

Returns the value of attribute executions_retention_count.



33
34
35
# File 'lib/appwrite/models/billing_plan.rb', line 33

def executions_retention_count
  @executions_retention_count
end

#file_size ⇒ Object (readonly)

Returns the value of attribute file_size.



29
30
31
# File 'lib/appwrite/models/billing_plan.rb', line 29

def file_size
  @file_size
end

#functions ⇒ Object (readonly)

Returns the value of attribute functions.



30
31
32
# File 'lib/appwrite/models/billing_plan.rb', line 30

def functions
  @functions
end

#functions_allow_cron ⇒ Object (readonly)

Returns the value of attribute functions_allow_cron.



78
79
80
# File 'lib/appwrite/models/billing_plan.rb', line 78

def functions_allow_cron
  @functions_allow_cron
end

#functions_interval_minimum ⇒ Object (readonly)

Returns the value of attribute functions_interval_minimum.



77
78
79
# File 'lib/appwrite/models/billing_plan.rb', line 77

def functions_interval_minimum
  @functions_interval_minimum
end

#gb_hours ⇒ Object (readonly)

Returns the value of attribute gb_hours.



37
38
39
# File 'lib/appwrite/models/billing_plan.rb', line 37

def gb_hours
  @gb_hours
end

#group ⇒ Object (readonly)

Returns the value of attribute group.



81
82
83
# File 'lib/appwrite/models/billing_plan.rb', line 81

def group
  @group
end

#id ⇒ Object (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/appwrite/models/billing_plan.rb', line 6

def id
  @id
end

#image_transformations ⇒ Object (readonly)

Returns the value of attribute image_transformations.



14
15
16
# File 'lib/appwrite/models/billing_plan.rb', line 14

def image_transformations
  @image_transformations
end

#is_available ⇒ Object (readonly)

Returns the value of attribute is_available.



58
59
60
# File 'lib/appwrite/models/billing_plan.rb', line 58

def is_available
  @is_available
end

#limits ⇒ Object (readonly)

Returns the value of attribute limits.



80
81
82
# File 'lib/appwrite/models/billing_plan.rb', line 80

def limits
  @limits
end

#members ⇒ Object (readonly)

Returns the value of attribute members.



16
17
18
# File 'lib/appwrite/models/billing_plan.rb', line 16

def members
  @members
end

#messages ⇒ Object (readonly)

Returns the value of attribute messages.



40
41
42
# File 'lib/appwrite/models/billing_plan.rb', line 40

def messages
  @messages
end

#name ⇒ Object (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/appwrite/models/billing_plan.rb', line 7

def name
  @name
end

#order ⇒ Object (readonly)

Returns the value of attribute order.



9
10
11
# File 'lib/appwrite/models/billing_plan.rb', line 9

def order
  @order
end

#platforms ⇒ Object (readonly)

Returns the value of attribute platforms.



21
22
23
# File 'lib/appwrite/models/billing_plan.rb', line 21

def platforms
  @platforms
end

#premium_support ⇒ Object (readonly)

Returns the value of attribute premium_support.



60
61
62
# File 'lib/appwrite/models/billing_plan.rb', line 60

def premium_support
  @premium_support
end

#price ⇒ Object (readonly)

Returns the value of attribute price.



10
11
12
# File 'lib/appwrite/models/billing_plan.rb', line 10

def price
  @price
end

#program ⇒ Object (readonly)

Returns the value of attribute program.



82
83
84
# File 'lib/appwrite/models/billing_plan.rb', line 82

def program
  @program
end

#project_inactivity_days ⇒ Object (readonly)

Returns the value of attribute project_inactivity_days.



48
49
50
# File 'lib/appwrite/models/billing_plan.rb', line 48

def project_inactivity_days
  @project_inactivity_days
end

#projects ⇒ Object (readonly)

Returns the value of attribute projects.



20
21
22
# File 'lib/appwrite/models/billing_plan.rb', line 20

def projects
  @projects
end

#realtime ⇒ Object (readonly)

Returns the value of attribute realtime.



38
39
40
# File 'lib/appwrite/models/billing_plan.rb', line 38

def realtime
  @realtime
end

#realtime_messages ⇒ Object (readonly)

Returns the value of attribute realtime_messages.



39
40
41
# File 'lib/appwrite/models/billing_plan.rb', line 39

def realtime_messages
  @realtime_messages
end

#requires_billing_address ⇒ Object (readonly)

Returns the value of attribute requires_billing_address.



56
57
58
# File 'lib/appwrite/models/billing_plan.rb', line 56

def requires_billing_address
  @requires_billing_address
end

#requires_payment_method ⇒ Object (readonly)

Returns the value of attribute requires_payment_method.



55
56
57
# File 'lib/appwrite/models/billing_plan.rb', line 55

def requires_payment_method
  @requires_payment_method
end

#screenshots_generated ⇒ Object (readonly)

Returns the value of attribute screenshots_generated.



15
16
17
# File 'lib/appwrite/models/billing_plan.rb', line 15

def screenshots_generated
  @screenshots_generated
end

#self_service ⇒ Object (readonly)

Returns the value of attribute self_service.



59
60
61
# File 'lib/appwrite/models/billing_plan.rb', line 59

def self_service
  @self_service
end

#sites ⇒ Object (readonly)

Returns the value of attribute sites.



31
32
33
# File 'lib/appwrite/models/billing_plan.rb', line 31

def sites
  @sites
end

#storage ⇒ Object (readonly)

Returns the value of attribute storage.



13
14
15
# File 'lib/appwrite/models/billing_plan.rb', line 13

def storage
  @storage
end

#supported_addons ⇒ Object (readonly)

Returns the value of attribute supported_addons.



73
74
75
# File 'lib/appwrite/models/billing_plan.rb', line 73

def supported_addons
  @supported_addons
end

#supports_canonical_email_validation ⇒ Object (readonly)

Returns the value of attribute supports_canonical_email_validation.



67
68
69
# File 'lib/appwrite/models/billing_plan.rb', line 67

def supports_canonical_email_validation
  @supports_canonical_email_validation
end

#supports_corporate_email_validation ⇒ Object (readonly)

Returns the value of attribute supports_corporate_email_validation.



69
70
71
# File 'lib/appwrite/models/billing_plan.rb', line 69

def supports_corporate_email_validation
  @supports_corporate_email_validation
end

#supports_credits ⇒ Object (readonly)

Returns the value of attribute supports_credits.



64
65
66
# File 'lib/appwrite/models/billing_plan.rb', line 64

def supports_credits
  @supports_credits
end

#supports_dedicated_databases ⇒ Object (readonly)

Returns the value of attribute supports_dedicated_databases.



65
66
67
# File 'lib/appwrite/models/billing_plan.rb', line 65

def supports_dedicated_databases
  @supports_dedicated_databases
end

#supports_disposable_email_validation ⇒ Object (readonly)

Returns the value of attribute supports_disposable_email_validation.



66
67
68
# File 'lib/appwrite/models/billing_plan.rb', line 66

def supports_disposable_email_validation
  @supports_disposable_email_validation
end

#supports_free_email_validation ⇒ Object (readonly)

Returns the value of attribute supports_free_email_validation.



68
69
70
# File 'lib/appwrite/models/billing_plan.rb', line 68

def supports_free_email_validation
  @supports_free_email_validation
end

#supports_mock_numbers ⇒ Object (readonly)

Returns the value of attribute supports_mock_numbers.



62
63
64
# File 'lib/appwrite/models/billing_plan.rb', line 62

def supports_mock_numbers
  @supports_mock_numbers
end

#supports_organization_roles ⇒ Object (readonly)

Returns the value of attribute supports_organization_roles.



63
64
65
# File 'lib/appwrite/models/billing_plan.rb', line 63

def supports_organization_roles
  @supports_organization_roles
end

#supports_project_specific_roles ⇒ Object (readonly)

Returns the value of attribute supports_project_specific_roles.



70
71
72
# File 'lib/appwrite/models/billing_plan.rb', line 70

def supports_project_specific_roles
  @supports_project_specific_roles
end

#teams ⇒ Object (readonly)

Returns the value of attribute teams.



23
24
25
# File 'lib/appwrite/models/billing_plan.rb', line 23

def teams
  @teams
end

#topics ⇒ Object (readonly)

Returns the value of attribute topics.



41
42
43
# File 'lib/appwrite/models/billing_plan.rb', line 41

def topics
  @topics
end

#trial ⇒ Object (readonly)

Returns the value of attribute trial.



11
12
13
# File 'lib/appwrite/models/billing_plan.rb', line 11

def trial
  @trial
end

#usage ⇒ Object (readonly)

Returns the value of attribute usage.



50
51
52
# File 'lib/appwrite/models/billing_plan.rb', line 50

def usage
  @usage
end

#usage_aggregate_only_metrics ⇒ Object (readonly)

Returns the value of attribute usage_aggregate_only_metrics.



47
48
49
# File 'lib/appwrite/models/billing_plan.rb', line 47

def usage_aggregate_only_metrics
  @usage_aggregate_only_metrics
end

#usage_logs ⇒ Object (readonly)

Returns the value of attribute usage_logs.



45
46
47
# File 'lib/appwrite/models/billing_plan.rb', line 45

def usage_logs
  @usage_logs
end

#usage_logs_intervals ⇒ Object (readonly)

Returns the value of attribute usage_logs_intervals.



46
47
48
# File 'lib/appwrite/models/billing_plan.rb', line 46

def usage_logs_intervals
  @usage_logs_intervals
end

#usage_per_project ⇒ Object (readonly)

Returns the value of attribute usage_per_project.



72
73
74
# File 'lib/appwrite/models/billing_plan.rb', line 72

def usage_per_project
  @usage_per_project
end

#users ⇒ Object (readonly)

Returns the value of attribute users.



22
23
24
# File 'lib/appwrite/models/billing_plan.rb', line 22

def users
  @users
end

#waf_rules ⇒ Object (readonly)

Returns the value of attribute waf_rules.



18
19
20
# File 'lib/appwrite/models/billing_plan.rb', line 18

def waf_rules
  @waf_rules
end

#webhooks ⇒ Object (readonly)

Returns the value of attribute webhooks.



17
18
19
# File 'lib/appwrite/models/billing_plan.rb', line 17

def webhooks
  @webhooks
end

Class Method Details

.from(map:) ⇒ Object



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
280
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
# File 'lib/appwrite/models/billing_plan.rb', line 248

def self.from(map:)
    map = { "$id" => "", "name" => "", "desc" => "", "order" => 0, "price" => 0, "trial" => 0, "bandwidth" => 0, "storage" => 0, "imageTransformations" => 0, "screenshotsGenerated" => 0, "webhooks" => 0, "wafRules" => 0, "environments" => 0, "projects" => 0, "platforms" => 0, "users" => 0, "teams" => 0, "databases" => 0, "databasesReads" => 0, "databasesWrites" => 0, "databasesBatchSize" => 0, "buckets" => 0, "fileSize" => 0, "functions" => 0, "sites" => 0, "executions" => 0, "executionsRetentionCount" => 1000, "GBHours" => 0, "realtime" => 0, "realtimeMessages" => 0, "messages" => 0, "topics" => 0, "authPhone" => 0, "domains" => 0, "usageLogs" => 0, "projectInactivityDays" => 0, "alertLimit" => 80, "budgetCapEnabled" => false, "customSmtp" => false, "emailBranding" => false, "requiresPaymentMethod" => true, "requiresBillingAddress" => false, "isAvailable" => true, "selfService" => true, "premiumSupport" => true, "budgeting" => true, "supportsMockNumbers" => true, "supportsOrganizationRoles" => true, "supportsCredits" => false, "supportsDedicatedDatabases" => false, "supportsDisposableEmailValidation" => false, "supportsCanonicalEmailValidation" => false, "supportsFreeEmailValidation" => false, "supportsCorporateEmailValidation" => false, "supportsProjectSpecificRoles" => false, "usagePerProject" => true, "deploymentSize" => 0, "buildSize" => 0, "functionsIntervalMinimum" => 0, "functionsAllowCron" => true, "databasesAllowEncrypt" => false, "databaseComputeCredit" => 0 }.merge(map)
    BillingPlan.new(
        id: map["$id"],
        name: map["name"],
        desc: map["desc"],
        order: map["order"],
        price: map["price"],
        trial: map["trial"],
        bandwidth: map["bandwidth"],
        storage: map["storage"],
        image_transformations: map["imageTransformations"],
        screenshots_generated: map["screenshotsGenerated"],
        members: map["members"],
        webhooks: map["webhooks"],
        waf_rules: map["wafRules"],
        environments: map["environments"],
        projects: map["projects"],
        platforms: map["platforms"],
        users: map["users"],
        teams: map["teams"],
        databases: map["databases"],
        databases_reads: map["databasesReads"],
        databases_writes: map["databasesWrites"],
        databases_batch_size: map["databasesBatchSize"],
        buckets: map["buckets"],
        file_size: map["fileSize"],
        functions: map["functions"],
        sites: map["sites"],
        executions: map["executions"],
        executions_retention_count: map["executionsRetentionCount"],
        deployment_retention: map["deploymentRetention"],
        deployment_retention_max: map["deploymentRetentionMax"],
        deployments_retention_count: map["deploymentsRetentionCount"],
        gb_hours: map["GBHours"],
        realtime: map["realtime"],
        realtime_messages: map["realtimeMessages"],
        messages: map["messages"],
        topics: map["topics"],
        auth_phone: map["authPhone"],
        domains: map["domains"],
        activity_logs: map["activityLogs"],
        usage_logs: map["usageLogs"],
        usage_logs_intervals: map["usageLogsIntervals"],
        usage_aggregate_only_metrics: map["usageAggregateOnlyMetrics"],
        project_inactivity_days: map["projectInactivityDays"],
        alert_limit: map["alertLimit"],
        usage: map["usage"].nil? ? nil : UsageBillingPlan.from(map: map["usage"]),
        addons: BillingPlanAddon.from(map: map["addons"]),
        budget_cap_enabled: map["budgetCapEnabled"],
        custom_smtp: map["customSmtp"],
        email_branding: map["emailBranding"],
        requires_payment_method: map["requiresPaymentMethod"],
        requires_billing_address: map["requiresBillingAddress"],
        eligible_countries: map["eligibleCountries"],
        is_available: map["isAvailable"],
        self_service: map["selfService"],
        premium_support: map["premiumSupport"],
        budgeting: map["budgeting"],
        supports_mock_numbers: map["supportsMockNumbers"],
        supports_organization_roles: map["supportsOrganizationRoles"],
        supports_credits: map["supportsCredits"],
        supports_dedicated_databases: map["supportsDedicatedDatabases"],
        supports_disposable_email_validation: map["supportsDisposableEmailValidation"],
        supports_canonical_email_validation: map["supportsCanonicalEmailValidation"],
        supports_free_email_validation: map["supportsFreeEmailValidation"],
        supports_corporate_email_validation: map["supportsCorporateEmailValidation"],
        supports_project_specific_roles: map["supportsProjectSpecificRoles"],
        backups_enabled: map["backupsEnabled"],
        usage_per_project: map["usagePerProject"],
        supported_addons: BillingPlanSupportedAddons.from(map: map["supportedAddons"]),
        backup_policies: map["backupPolicies"],
        deployment_size: map["deploymentSize"],
        build_size: map["buildSize"],
        functions_interval_minimum: map["functionsIntervalMinimum"],
        functions_allow_cron: map["functionsAllowCron"],
        databases_allow_encrypt: map["databasesAllowEncrypt"],
        limits: map["limits"].nil? ? nil : BillingPlanLimits.from(map: map["limits"]),
        group: map["group"],
        program: map["program"].nil? ? nil : Program.from(map: map["program"]),
        database_compute_credit: map["databaseComputeCredit"],
        dedicated_databases: map["dedicatedDatabases"].nil? ? nil : BillingPlanDedicatedDatabaseLimits.from(map: map["dedicatedDatabases"])
    )
end

Instance Method Details

#to_map ⇒ Object



333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
# File 'lib/appwrite/models/billing_plan.rb', line 333

def to_map
    {
        "$id": @id,
        "name": @name,
        "desc": @desc,
        "order": @order,
        "price": @price,
        "trial": @trial,
        "bandwidth": @bandwidth,
        "storage": @storage,
        "imageTransformations": @image_transformations,
        "screenshotsGenerated": @screenshots_generated,
        "members": @members,
        "webhooks": @webhooks,
        "wafRules": @waf_rules,
        "environments": @environments,
        "projects": @projects,
        "platforms": @platforms,
        "users": @users,
        "teams": @teams,
        "databases": @databases,
        "databasesReads": @databases_reads,
        "databasesWrites": @databases_writes,
        "databasesBatchSize": @databases_batch_size,
        "buckets": @buckets,
        "fileSize": @file_size,
        "functions": @functions,
        "sites": @sites,
        "executions": @executions,
        "executionsRetentionCount": @executions_retention_count,
        "deploymentRetention": @deployment_retention,
        "deploymentRetentionMax": @deployment_retention_max,
        "deploymentsRetentionCount": @deployments_retention_count,
        "GBHours": @gb_hours,
        "realtime": @realtime,
        "realtimeMessages": @realtime_messages,
        "messages": @messages,
        "topics": @topics,
        "authPhone": @auth_phone,
        "domains": @domains,
        "activityLogs": @activity_logs,
        "usageLogs": @usage_logs,
        "usageLogsIntervals": @usage_logs_intervals,
        "usageAggregateOnlyMetrics": @usage_aggregate_only_metrics,
        "projectInactivityDays": @project_inactivity_days,
        "alertLimit": @alert_limit,
        "usage": @usage&.to_map,
        "addons": @addons.to_map,
        "budgetCapEnabled": @budget_cap_enabled,
        "customSmtp": @custom_smtp,
        "emailBranding": @email_branding,
        "requiresPaymentMethod": @requires_payment_method,
        "requiresBillingAddress": @requires_billing_address,
        "eligibleCountries": @eligible_countries,
        "isAvailable": @is_available,
        "selfService": @self_service,
        "premiumSupport": @premium_support,
        "budgeting": @budgeting,
        "supportsMockNumbers": @supports_mock_numbers,
        "supportsOrganizationRoles": @supports_organization_roles,
        "supportsCredits": @supports_credits,
        "supportsDedicatedDatabases": @supports_dedicated_databases,
        "supportsDisposableEmailValidation": @supports_disposable_email_validation,
        "supportsCanonicalEmailValidation": @supports_canonical_email_validation,
        "supportsFreeEmailValidation": @supports_free_email_validation,
        "supportsCorporateEmailValidation": @supports_corporate_email_validation,
        "supportsProjectSpecificRoles": @supports_project_specific_roles,
        "backupsEnabled": @backups_enabled,
        "usagePerProject": @usage_per_project,
        "supportedAddons": @supported_addons.to_map,
        "backupPolicies": @backup_policies,
        "deploymentSize": @deployment_size,
        "buildSize": @build_size,
        "functionsIntervalMinimum": @functions_interval_minimum,
        "functionsAllowCron": @functions_allow_cron,
        "databasesAllowEncrypt": @databases_allow_encrypt,
        "limits": @limits&.to_map,
        "group": @group,
        "program": @program&.to_map,
        "databaseComputeCredit": @database_compute_credit,
        "dedicatedDatabases": @dedicated_databases&.to_map
    }
end