Class: Latitude::API::Resources::VirtualNetwork::Assignment

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

Overview

@return [String]

Defined Under Namespace

Classes: Server

Constant Summary

Constants inherited from APIResource

APIResource::READ_ONLY_ATTRIBUTES

Instance Attribute Summary collapse

Attributes inherited from APIResource

#meta, #path_params, #raw_data, #type

Class Method Summary collapse

Methods included from Operations::List

all, list

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

#hostnameObject (readonly)



# File 'lib/latitude/api/resources/virtual_network.rb', line 102


#idObject (readonly)



# File 'lib/latitude/api/resources/virtual_network.rb', line 98


#labelObject (readonly)



# File 'lib/latitude/api/resources/virtual_network.rb', line 106


#lockedObject (readonly)



# File 'lib/latitude/api/resources/virtual_network.rb', line 110


#statusObject (readonly)



# File 'lib/latitude/api/resources/virtual_network.rb', line 114


Class Method Details

.create(params = {}, opts = {}) ⇒ Object



152
153
154
155
156
# File 'lib/latitude/api/resources/virtual_network.rb', line 152

def create(params = {}, opts = {})
  body = JSONAPI.encode(type: resource_type, attributes: params)
  parsed = execute_request(method: :post, path: resource_path, body: body, opts: opts)
  construct_from(parsed, opts: opts)
end