Class: Latitude::API::Resources::IP

Inherits:
APIResource show all
Extended by:
Operations::List, Operations::Retrieve
Defined in:
lib/latitude/api/resources/ip.rb

Defined Under Namespace

Classes: Assignment, Elastic, Location, Region

Constant Summary

Constants inherited from APIResource

APIResource::READ_ONLY_ATTRIBUTES

Instance Attribute Summary collapse

Attributes inherited from APIResource

#id, #meta, #path_params, #raw_data

Method Summary

Methods included from Operations::List

all, list

Methods included from Operations::Retrieve

retrieve

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

#additionalBoolean

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#addressString

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#assignmentAssignment

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#availableBoolean

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#cidrString

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#created_atTime (readonly)

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#elasticElastic

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#familyString

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#gatewayString

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#managementBoolean

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#netmaskString

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#projectLatitude::API::Objects::Project

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#publicBoolean

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#regionRegion

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end

#typeString

Returns:



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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/latitude/api/resources/ip.rb', line 36

class IP < APIResource
    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] slug
    #   @return [String]
  class Location < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :slug, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] name
    #   @return [String]
    # @!attribute [r] location
    #   @return [Location]
  class Region < APIObject
    attribute :id, :string, read_only: true
    attribute :name, :string, read_only: true
    attribute :location, Location, read_only: true
  end

    # @!attribute [r] server_id
    #   @return [String]
    # @!attribute [r] hostname
    #   @return [String]
    # @!attribute [r] assigned_at
    #   @return [String]
  class Assignment < APIObject
    attribute :server_id, :string, read_only: true
    attribute :hostname, :string, read_only: true
    attribute :assigned_at, :string, read_only: true
  end

    # @!attribute [r] id
    #   @return [String]
    # @!attribute [r] mode
    #   @return [String]
    # @!attribute [r] status
    #   @return [String]
  class Elastic < APIObject
    attribute :id, :string, read_only: true
    attribute :mode, :string, read_only: true
    attribute :status, :string, read_only: true
  end

  attribute :address, :string
  attribute :cidr, :string
  attribute :family, :string
  attribute :gateway, :string
  attribute :netmask, :string
  attribute :type, :string
  attribute :public, :boolean
  attribute :management, :boolean
  attribute :additional, :boolean
  attribute :project, Objects::Project
  attribute :region, Region
  attribute :available, :boolean
  attribute :assignment, Assignment
  attribute :elastic, Elastic
  attribute :created_at, :time, read_only: true

  resource_type "ip_addresses"
  resource_path "/ips"
  id_prefix     "ip_"

  extend Operations::List
  extend Operations::Retrieve
end