Class: Appwrite::Models::BillingPlanDedicatedDatabaseLimits
- Inherits:
-
Object
- Object
- Appwrite::Models::BillingPlanDedicatedDatabaseLimits
- Defined in:
- lib/appwrite/models/billing_plan_dedicated_database_limits.rb
Instance Attribute Summary collapse
-
#allowed_sql_statements ⇒ Object
readonly
Returns the value of attribute allowed_sql_statements.
-
#allowed_storage_classes ⇒ Object
readonly
Returns the value of attribute allowed_storage_classes.
-
#allowed_sync_modes ⇒ Object
readonly
Returns the value of attribute allowed_sync_modes.
-
#max_backup_retention_days ⇒ Object
readonly
Returns the value of attribute max_backup_retention_days.
-
#max_connections ⇒ Object
readonly
Returns the value of attribute max_connections.
-
#max_cpu ⇒ Object
readonly
Returns the value of attribute max_cpu.
-
#max_extensions ⇒ Object
readonly
Returns the value of attribute max_extensions.
-
#max_ip_allowlist_size ⇒ Object
readonly
Returns the value of attribute max_ip_allowlist_size.
-
#max_memory_mb ⇒ Object
readonly
Returns the value of attribute max_memory_mb.
-
#max_pitr_retention_days ⇒ Object
readonly
Returns the value of attribute max_pitr_retention_days.
-
#max_replicas ⇒ Object
readonly
Returns the value of attribute max_replicas.
-
#max_sql_api_allowed_statements ⇒ Object
readonly
Returns the value of attribute max_sql_api_allowed_statements.
-
#max_sql_api_max_bytes ⇒ Object
readonly
Returns the value of attribute max_sql_api_max_bytes.
-
#max_sql_api_max_rows ⇒ Object
readonly
Returns the value of attribute max_sql_api_max_rows.
-
#max_sql_api_timeout_seconds ⇒ Object
readonly
Returns the value of attribute max_sql_api_timeout_seconds.
-
#max_storage_gb ⇒ Object
readonly
Returns the value of attribute max_storage_gb.
-
#min_cpu ⇒ Object
readonly
Returns the value of attribute min_cpu.
-
#min_memory_mb ⇒ Object
readonly
Returns the value of attribute min_memory_mb.
-
#min_storage_gb ⇒ Object
readonly
Returns the value of attribute min_storage_gb.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(min_cpu:, max_cpu:, min_memory_mb:, max_memory_mb:, min_storage_gb:, max_storage_gb:, max_replicas:, max_connections:, max_ip_allowlist_size:, max_extensions:, max_backup_retention_days:, max_pitr_retention_days:, max_sql_api_max_rows:, max_sql_api_max_bytes:, max_sql_api_timeout_seconds:, max_sql_api_allowed_statements:, allowed_sql_statements:, allowed_storage_classes:, allowed_sync_modes:) ⇒ BillingPlanDedicatedDatabaseLimits
constructor
A new instance of BillingPlanDedicatedDatabaseLimits.
- #to_map ⇒ Object
Constructor Details
#initialize(min_cpu:, max_cpu:, min_memory_mb:, max_memory_mb:, min_storage_gb:, max_storage_gb:, max_replicas:, max_connections:, max_ip_allowlist_size:, max_extensions:, max_backup_retention_days:, max_pitr_retention_days:, max_sql_api_max_rows:, max_sql_api_max_bytes:, max_sql_api_timeout_seconds:, max_sql_api_allowed_statements:, allowed_sql_statements:, allowed_storage_classes:, allowed_sync_modes:) ⇒ BillingPlanDedicatedDatabaseLimits
Returns a new instance of BillingPlanDedicatedDatabaseLimits.
26 27 28 29 30 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 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 26 def initialize( min_cpu: , max_cpu: , min_memory_mb: , max_memory_mb: , min_storage_gb: , max_storage_gb: , max_replicas: , max_connections: , max_ip_allowlist_size: , max_extensions: , max_backup_retention_days: , max_pitr_retention_days: , max_sql_api_max_rows: , max_sql_api_max_bytes: , max_sql_api_timeout_seconds: , max_sql_api_allowed_statements: , allowed_sql_statements: , allowed_storage_classes: , allowed_sync_modes: ) @min_cpu = min_cpu @max_cpu = max_cpu @min_memory_mb = min_memory_mb @max_memory_mb = max_memory_mb @min_storage_gb = min_storage_gb @max_storage_gb = max_storage_gb @max_replicas = max_replicas @max_connections = max_connections @max_ip_allowlist_size = max_ip_allowlist_size @max_extensions = max_extensions @max_backup_retention_days = max_backup_retention_days @max_pitr_retention_days = max_pitr_retention_days @max_sql_api_max_rows = max_sql_api_max_rows @max_sql_api_max_bytes = max_sql_api_max_bytes @max_sql_api_timeout_seconds = max_sql_api_timeout_seconds @max_sql_api_allowed_statements = max_sql_api_allowed_statements @allowed_sql_statements = allowed_sql_statements @allowed_storage_classes = allowed_storage_classes @allowed_sync_modes = allowed_sync_modes end |
Instance Attribute Details
#allowed_sql_statements ⇒ Object (readonly)
Returns the value of attribute allowed_sql_statements.
22 23 24 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 22 def allowed_sql_statements @allowed_sql_statements end |
#allowed_storage_classes ⇒ Object (readonly)
Returns the value of attribute allowed_storage_classes.
23 24 25 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 23 def allowed_storage_classes @allowed_storage_classes end |
#allowed_sync_modes ⇒ Object (readonly)
Returns the value of attribute allowed_sync_modes.
24 25 26 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 24 def allowed_sync_modes @allowed_sync_modes end |
#max_backup_retention_days ⇒ Object (readonly)
Returns the value of attribute max_backup_retention_days.
16 17 18 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 16 def max_backup_retention_days @max_backup_retention_days end |
#max_connections ⇒ Object (readonly)
Returns the value of attribute max_connections.
13 14 15 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 13 def max_connections @max_connections end |
#max_cpu ⇒ Object (readonly)
Returns the value of attribute max_cpu.
7 8 9 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 7 def max_cpu @max_cpu end |
#max_extensions ⇒ Object (readonly)
Returns the value of attribute max_extensions.
15 16 17 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 15 def max_extensions @max_extensions end |
#max_ip_allowlist_size ⇒ Object (readonly)
Returns the value of attribute max_ip_allowlist_size.
14 15 16 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 14 def max_ip_allowlist_size @max_ip_allowlist_size end |
#max_memory_mb ⇒ Object (readonly)
Returns the value of attribute max_memory_mb.
9 10 11 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 9 def max_memory_mb @max_memory_mb end |
#max_pitr_retention_days ⇒ Object (readonly)
Returns the value of attribute max_pitr_retention_days.
17 18 19 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 17 def max_pitr_retention_days @max_pitr_retention_days end |
#max_replicas ⇒ Object (readonly)
Returns the value of attribute max_replicas.
12 13 14 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 12 def max_replicas @max_replicas end |
#max_sql_api_allowed_statements ⇒ Object (readonly)
Returns the value of attribute max_sql_api_allowed_statements.
21 22 23 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 21 def max_sql_api_allowed_statements @max_sql_api_allowed_statements end |
#max_sql_api_max_bytes ⇒ Object (readonly)
Returns the value of attribute max_sql_api_max_bytes.
19 20 21 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 19 def max_sql_api_max_bytes @max_sql_api_max_bytes end |
#max_sql_api_max_rows ⇒ Object (readonly)
Returns the value of attribute max_sql_api_max_rows.
18 19 20 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 18 def max_sql_api_max_rows @max_sql_api_max_rows end |
#max_sql_api_timeout_seconds ⇒ Object (readonly)
Returns the value of attribute max_sql_api_timeout_seconds.
20 21 22 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 20 def max_sql_api_timeout_seconds @max_sql_api_timeout_seconds end |
#max_storage_gb ⇒ Object (readonly)
Returns the value of attribute max_storage_gb.
11 12 13 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 11 def max_storage_gb @max_storage_gb end |
#min_cpu ⇒ Object (readonly)
Returns the value of attribute min_cpu.
6 7 8 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 6 def min_cpu @min_cpu end |
#min_memory_mb ⇒ Object (readonly)
Returns the value of attribute min_memory_mb.
8 9 10 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 8 def min_memory_mb @min_memory_mb end |
#min_storage_gb ⇒ Object (readonly)
Returns the value of attribute min_storage_gb.
10 11 12 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 10 def min_storage_gb @min_storage_gb end |
Class Method Details
.from(map:) ⇒ Object
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/billing_plan_dedicated_database_limits.rb', line 68 def self.from(map:) BillingPlanDedicatedDatabaseLimits.new( min_cpu: map["minCpu"], max_cpu: map["maxCpu"], min_memory_mb: map["minMemoryMb"], max_memory_mb: map["maxMemoryMb"], min_storage_gb: map["minStorageGb"], max_storage_gb: map["maxStorageGb"], max_replicas: map["maxReplicas"], max_connections: map["maxConnections"], max_ip_allowlist_size: map["maxIpAllowlistSize"], max_extensions: map["maxExtensions"], max_backup_retention_days: map["maxBackupRetentionDays"], max_pitr_retention_days: map["maxPitrRetentionDays"], max_sql_api_max_rows: map["maxSqlApiMaxRows"], max_sql_api_max_bytes: map["maxSqlApiMaxBytes"], max_sql_api_timeout_seconds: map["maxSqlApiTimeoutSeconds"], max_sql_api_allowed_statements: map["maxSqlApiAllowedStatements"], allowed_sql_statements: map["allowedSqlStatements"], allowed_storage_classes: map["allowedStorageClasses"], allowed_sync_modes: map["allowedSyncModes"] ) end |
Instance Method Details
#to_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 |
# File 'lib/appwrite/models/billing_plan_dedicated_database_limits.rb', line 92 def to_map { "minCpu": @min_cpu, "maxCpu": @max_cpu, "minMemoryMb": @min_memory_mb, "maxMemoryMb": @max_memory_mb, "minStorageGb": @min_storage_gb, "maxStorageGb": @max_storage_gb, "maxReplicas": @max_replicas, "maxConnections": @max_connections, "maxIpAllowlistSize": @max_ip_allowlist_size, "maxExtensions": @max_extensions, "maxBackupRetentionDays": @max_backup_retention_days, "maxPitrRetentionDays": @max_pitr_retention_days, "maxSqlApiMaxRows": @max_sql_api_max_rows, "maxSqlApiMaxBytes": @max_sql_api_max_bytes, "maxSqlApiTimeoutSeconds": @max_sql_api_timeout_seconds, "maxSqlApiAllowedStatements": @max_sql_api_allowed_statements, "allowedSqlStatements": @allowed_sql_statements, "allowedStorageClasses": @allowed_storage_classes, "allowedSyncModes": @allowed_sync_modes } end |