Module: DropletKit

Defined in:
lib/droplet_kit.rb,
lib/droplet_kit/utils.rb,
lib/droplet_kit/client.rb,
lib/droplet_kit/version.rb,
lib/droplet_kit/models/cdn.rb,
lib/droplet_kit/models/tag.rb,
lib/droplet_kit/models/vpc.rb,
lib/droplet_kit/models/size.rb,
lib/droplet_kit/models/image.rb,
lib/droplet_kit/models/links.rb,
lib/droplet_kit/models/action.rb,
lib/droplet_kit/models/domain.rb,
lib/droplet_kit/models/kernel.rb,
lib/droplet_kit/models/region.rb,
lib/droplet_kit/models/volume.rb,
lib/droplet_kit/models/account.rb,
lib/droplet_kit/models/droplet.rb,
lib/droplet_kit/models/network.rb,
lib/droplet_kit/models/project.rb,
lib/droplet_kit/models/ssh_key.rb,
lib/droplet_kit/models/database.rb,
lib/droplet_kit/models/firewall.rb,
lib/droplet_kit/models/snapshot.rb,
lib/droplet_kit/models/base_model.rb,
lib/droplet_kit/models/vpc_member.rb,
lib/droplet_kit/models/certificate.rb,
lib/droplet_kit/models/floating_ip.rb,
lib/droplet_kit/paginated_resource.rb,
lib/droplet_kit/models/health_check.rb,
lib/droplet_kit/models/network_hash.rb,
lib/droplet_kit/mappings/cdn_mapping.rb,
lib/droplet_kit/mappings/tag_mapping.rb,
lib/droplet_kit/mappings/vpc_mapping.rb,
lib/droplet_kit/models/database_user.rb,
lib/droplet_kit/models/domain_record.rb,
lib/droplet_kit/models/firewall_rule.rb,
lib/droplet_kit/models/load_balancer.rb,
lib/droplet_kit/mappings/size_mapping.rb,
lib/droplet_kit/models/sticky_session.rb,
lib/droplet_kit/mappings/error_mapping.rb,
lib/droplet_kit/mappings/image_mapping.rb,
lib/droplet_kit/mappings/links_mapping.rb,
lib/droplet_kit/models/database_backup.rb,
lib/droplet_kit/models/droplet_upgrade.rb,
lib/droplet_kit/models/forwarding_rule.rb,
lib/droplet_kit/models/kubernetes_node.rb,
lib/droplet_kit/resources/cdn_resource.rb,
lib/droplet_kit/resources/tag_resource.rb,
lib/droplet_kit/resources/vpc_resource.rb,
lib/droplet_kit/mappings/action_mapping.rb,
lib/droplet_kit/mappings/domain_mapping.rb,
lib/droplet_kit/mappings/kernel_mapping.rb,
lib/droplet_kit/mappings/region_mapping.rb,
lib/droplet_kit/mappings/volume_mapping.rb,
lib/droplet_kit/models/database_cluster.rb,
lib/droplet_kit/models/database_replica.rb,
lib/droplet_kit/models/meta_information.rb,
lib/droplet_kit/models/tagged_resources.rb,
lib/droplet_kit/resources/size_resource.rb,
lib/droplet_kit/mappings/account_mapping.rb,
lib/droplet_kit/mappings/droplet_mapping.rb,
lib/droplet_kit/mappings/network_mapping.rb,
lib/droplet_kit/mappings/project_mapping.rb,
lib/droplet_kit/mappings/ssh_key_mapping.rb,
lib/droplet_kit/models/database_sql_mode.rb,
lib/droplet_kit/resources/image_resource.rb,
lib/droplet_kit/mappings/database_mapping.rb,
lib/droplet_kit/mappings/firewall_mapping.rb,
lib/droplet_kit/mappings/snapshot_mapping.rb,
lib/droplet_kit/models/container_registry.rb,
lib/droplet_kit/models/kubernetes_cluster.rb,
lib/droplet_kit/models/kubernetes_options.rb,
lib/droplet_kit/models/project_assignment.rb,
lib/droplet_kit/resources/action_resource.rb,
lib/droplet_kit/resources/domain_resource.rb,
lib/droplet_kit/resources/region_resource.rb,
lib/droplet_kit/resources/volume_resource.rb,
lib/droplet_kit/models/database_connection.rb,
lib/droplet_kit/resources/account_resource.rb,
lib/droplet_kit/resources/droplet_resource.rb,
lib/droplet_kit/resources/project_resource.rb,
lib/droplet_kit/resources/ssh_key_resource.rb,
lib/droplet_kit/mappings/vpc_member_mapping.rb,
lib/droplet_kit/models/kubernetes_node_pool.rb,
lib/droplet_kit/resources/database_resource.rb,
lib/droplet_kit/resources/firewall_resource.rb,
lib/droplet_kit/resources/snapshot_resource.rb,
lib/droplet_kit/mappings/certificate_mapping.rb,
lib/droplet_kit/mappings/floating_ip_mapping.rb,
lib/droplet_kit/models/firewall_inbound_rule.rb,
lib/droplet_kit/mappings/health_check_mapping.rb,
lib/droplet_kit/models/database_firewall_rule.rb,
lib/droplet_kit/models/firewall_outbound_rule.rb,
lib/droplet_kit/models/pagination_information.rb,
lib/droplet_kit/mappings/database_user_mapping.rb,
lib/droplet_kit/mappings/domain_record_mapping.rb,
lib/droplet_kit/mappings/firewall_rule_mapping.rb,
lib/droplet_kit/mappings/load_balancer_mapping.rb,
lib/droplet_kit/models/firewall_pending_change.rb,
lib/droplet_kit/models/tagged_images_resources.rb,
lib/droplet_kit/resources/certificate_resource.rb,
lib/droplet_kit/resources/floating_ip_resource.rb,
lib/droplet_kit/mappings/network_detail_mapping.rb,
lib/droplet_kit/mappings/sticky_session_mapping.rb,
lib/droplet_kit/models/database_connection_pool.rb,
lib/droplet_kit/models/database_eviction_policy.rb,
lib/droplet_kit/models/database_user_reset_auth.rb,
lib/droplet_kit/resources/image_action_resource.rb,
lib/droplet_kit/mappings/database_backup_mapping.rb,
lib/droplet_kit/mappings/droplet_upgrade_mapping.rb,
lib/droplet_kit/mappings/forwarding_rule_mapping.rb,
lib/droplet_kit/mappings/kubernetes_node_mapping.rb,
lib/droplet_kit/models/tagged_droplets_resources.rb,
lib/droplet_kit/resources/domain_record_resource.rb,
lib/droplet_kit/resources/load_balancer_resource.rb,
lib/droplet_kit/resources/volume_action_resource.rb,
lib/droplet_kit/mappings/database_cluster_mapping.rb,
lib/droplet_kit/mappings/database_replica_mapping.rb,
lib/droplet_kit/mappings/tagged_resources_mapping.rb,
lib/droplet_kit/resources/droplet_action_resource.rb,
lib/droplet_kit/mappings/database_sql_mode_mapping.rb,
lib/droplet_kit/models/database_maintenance_window.rb,
lib/droplet_kit/resources/droplet_upgrade_resource.rb,
lib/droplet_kit/mappings/container_registry_mapping.rb,
lib/droplet_kit/mappings/kubernetes_cluster_mapping.rb,
lib/droplet_kit/mappings/kubernetes_options_mapping.rb,
lib/droplet_kit/mappings/project_assignment_mapping.rb,
lib/droplet_kit/models/database_user_mysql_settings.rb,
lib/droplet_kit/mappings/database_connection_mapping.rb,
lib/droplet_kit/models/container_registry_repository.rb,
lib/droplet_kit/models/kubernetes_maintenance_policy.rb,
lib/droplet_kit/mappings/kubernetes_node_pool_mapping.rb,
lib/droplet_kit/resources/container_registry_resource.rb,
lib/droplet_kit/resources/floating_ip_action_resource.rb,
lib/droplet_kit/resources/kubernetes_cluster_resource.rb,
lib/droplet_kit/resources/kubernetes_options_resource.rb,
lib/droplet_kit/mappings/firewall_inbound_rule_mapping.rb,
lib/droplet_kit/mappings/database_firewall_rule_mapping.rb,
lib/droplet_kit/mappings/firewall_outbound_rule_mapping.rb,
lib/droplet_kit/mappings/database_backup_restore_mapping.rb,
lib/droplet_kit/mappings/firewall_pending_change_mapping.rb,
lib/droplet_kit/mappings/tagged_images_resources_mapping.rb,
lib/droplet_kit/models/container_registry_repository_tag.rb,
lib/droplet_kit/mappings/database_connection_pool_mapping.rb,
lib/droplet_kit/mappings/database_eviction_policy_mapping.rb,
lib/droplet_kit/mappings/database_user_reset_auth_mapping.rb,
lib/droplet_kit/mappings/tagged_droplets_resources_mapping.rb,
lib/droplet_kit/mappings/database_maintenance_window_mapping.rb,
lib/droplet_kit/mappings/container_registry_repository_mapping.rb,
lib/droplet_kit/mappings/kubernetes_maintenance_policy_mapping.rb,
lib/droplet_kit/resources/container_registry_repository_resource.rb,
lib/droplet_kit/mappings/container_registry_repository_tag_mapping.rb

Defined Under Namespace

Modules: Utils Classes: Account, AccountMapping, AccountResource, Action, ActionMapping, ActionResource, BaseModel, CDN, CDNMapping, CDNResource, Certificate, CertificateMapping, CertificateResource, Client, ContainerRegistry, ContainerRegistryMapping, ContainerRegistryRepository, ContainerRegistryRepositoryMapping, ContainerRegistryRepositoryResource, ContainerRegistryRepositoryTag, ContainerRegistryRepositoryTagMapping, ContainerRegistryResource, Database, DatabaseBackup, DatabaseBackupMapping, DatabaseBackupRestoreMapping, DatabaseCluster, DatabaseClusterMapping, DatabaseConnection, DatabaseConnectionMapping, DatabaseConnectionPool, DatabaseConnectionPoolMapping, DatabaseEvictionPolicy, DatabaseEvictionPolicyMapping, DatabaseFirewallRule, DatabaseFirewallRuleMapping, DatabaseMaintenanceWindow, DatabaseMaintenanceWindowMapping, DatabaseMapping, DatabaseReplica, DatabaseReplicaMapping, DatabaseResource, DatabaseSQLMode, DatabaseSQLModeMapping, DatabaseUser, DatabaseUserMapping, DatabaseUserMySQLSettings, DatabaseUserResetAuth, DatabaseUserResetAuthMapping, Domain, DomainMapping, DomainRecord, DomainRecordMapping, DomainRecordResource, DomainResource, Droplet, DropletActionResource, DropletMapping, DropletResource, DropletUpgrade, DropletUpgradeMapping, DropletUpgradeResource, ErrorMapping, Firewall, FirewallInboundRule, FirewallInboundRuleMapping, FirewallMapping, FirewallOutboundRule, FirewallOutboundRuleMapping, FirewallPendingChange, FirewallPendingChangeMapping, FirewallResource, FirewallRule, FirewallRuleMapping, FloatingIp, FloatingIpActionResource, FloatingIpMapping, FloatingIpResource, ForwardingRule, ForwardingRuleMapping, HealthCheck, HealthCheckMapping, Image, ImageActionResource, ImageMapping, ImageResource, Kernel, KernelMapping, KubernetesCluster, KubernetesClusterMapping, KubernetesClusterResource, KubernetesMaintenancePolicy, KubernetesMaintenancePolicyMapping, KubernetesNode, KubernetesNodeMapping, KubernetesNodePool, KubernetesNodePoolMapping, KubernetesOptions, KubernetesOptionsMapping, KubernetesOptionsResource, Links, LinksMapping, LoadBalancer, LoadBalancerMapping, LoadBalancerResource, MetaInformation, Network, NetworkDetailMapping, NetworkHash, NetworkMapping, PaginatedResource, PaginationInformation, Project, ProjectAssignment, ProjectAssignmentMapping, ProjectMapping, ProjectResource, RateLimitReached, Region, RegionMapping, RegionResource, SSHKey, SSHKeyMapping, SSHKeyResource, Size, SizeMapping, SizeResource, Snapshot, SnapshotMapping, SnapshotResource, StickySession, StickySessionMapping, Tag, TagMapping, TagResource, TaggedDropletsResources, TaggedDropletsResourcesMapping, TaggedImagesResources, TaggedImagesResourcesMapping, TaggedResources, TaggedResourcesMapping, VPC, VPCMapping, VPCMember, VPCMemberMapping, VPCResource, Volume, VolumeActionResource, VolumeMapping, VolumeResource

Constant Summary collapse

Error =
Class.new(StandardError)
FailedCreate =
Class.new(DropletKit::Error)
FailedUpdate =
Class.new(DropletKit::Error)
FailedDelete =
Class.new(DropletKit::Error)
VERSION =
"3.8.0"

Class Method Summary collapse

Class Method Details

.from_identifier(identifier) ⇒ Object


14
15
16
# File 'lib/droplet_kit/models/size.rb', line 14

def self.from_identifier(identifier)
  new(slug: identifier)
end