Class: Latitude::API::Resources::Storage::Filesystem

Inherits:
APIResource
  • Object
show all
Extended by:
Operations::Create, Operations::Delete, Operations::List, Operations::Update
Defined in:
lib/latitude/api/resources/storage_filesystem.rb

Constant Summary

Constants inherited from APIResource

APIResource::READ_ONLY_ATTRIBUTES

Instance Attribute Summary collapse

Attributes inherited from APIResource

#id, #meta, #path_params, #raw_data, #type

Method Summary

Methods included from Operations::List

all, list

Methods included from Operations::Create

create

Methods included from Operations::Update

update

Methods included from Operations::Delete

delete

Methods inherited from APIResource

#==, #[], #[]=, #as_json, #attributes, #changed?, class_url, config_source, construct_from, #delete, execute_request, extract_path_params, #hash, id_prefix, #initialize, #inspect, instance_url, #method_missing, path_param_keys, #refresh, resource_path, resource_type, #resource_url, #respond_to_missing?, #save, #to_h, #unsaved_attributes, with_config, #write_attribute

Methods included from Attributes::ClassMethods

#attribute, #attribute_specs

Methods included from Attributes::InstanceMethods

#attribute_spec, #read_attribute, #wrap_attribute

Constructor Details

This class inherits a constructor from Latitude::API::APIResource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Latitude::API::APIResource

Instance Attribute Details

#created_atTime (readonly)

Returns:

  • (Time)


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/latitude/api/resources/storage_filesystem.rb', line 17

class Filesystem < APIResource
  attribute :name, :string
  attribute :size_in_gb, :integer
  attribute :created_at, :time, read_only: true
  attribute :project, Objects::Project
  attribute :team, Objects::Team

  resource_type "filesystems"
  resource_path "/storage/filesystems"
  id_prefix     "fs_"

  extend Operations::List
  extend Operations::Create
  extend Operations::Update
  extend Operations::Delete
end

#nameString

Returns:

  • (String)


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/latitude/api/resources/storage_filesystem.rb', line 17

class Filesystem < APIResource
  attribute :name, :string
  attribute :size_in_gb, :integer
  attribute :created_at, :time, read_only: true
  attribute :project, Objects::Project
  attribute :team, Objects::Team

  resource_type "filesystems"
  resource_path "/storage/filesystems"
  id_prefix     "fs_"

  extend Operations::List
  extend Operations::Create
  extend Operations::Update
  extend Operations::Delete
end

#projectLatitude::API::Objects::Project



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/latitude/api/resources/storage_filesystem.rb', line 17

class Filesystem < APIResource
  attribute :name, :string
  attribute :size_in_gb, :integer
  attribute :created_at, :time, read_only: true
  attribute :project, Objects::Project
  attribute :team, Objects::Team

  resource_type "filesystems"
  resource_path "/storage/filesystems"
  id_prefix     "fs_"

  extend Operations::List
  extend Operations::Create
  extend Operations::Update
  extend Operations::Delete
end

#size_in_gbInteger

Returns:

  • (Integer)


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/latitude/api/resources/storage_filesystem.rb', line 17

class Filesystem < APIResource
  attribute :name, :string
  attribute :size_in_gb, :integer
  attribute :created_at, :time, read_only: true
  attribute :project, Objects::Project
  attribute :team, Objects::Team

  resource_type "filesystems"
  resource_path "/storage/filesystems"
  id_prefix     "fs_"

  extend Operations::List
  extend Operations::Create
  extend Operations::Update
  extend Operations::Delete
end

#teamLatitude::API::Objects::Team



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/latitude/api/resources/storage_filesystem.rb', line 17

class Filesystem < APIResource
  attribute :name, :string
  attribute :size_in_gb, :integer
  attribute :created_at, :time, read_only: true
  attribute :project, Objects::Project
  attribute :team, Objects::Team

  resource_type "filesystems"
  resource_path "/storage/filesystems"
  id_prefix     "fs_"

  extend Operations::List
  extend Operations::Create
  extend Operations::Update
  extend Operations::Delete
end