source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/set_record_failover.rb
Ruby
mit
4,298
master
663
module Fog module DNS class Rage4 class Real # Set a failover to on or off # ==== Parameters # * id<~Integer> - numeric ID # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'status'<~Boolean> # * 'id'<~In...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/create_reverse_domain_4.rb
Ruby
mit
4,298
master
854
module Fog module DNS class Rage4 class Real # Create a reverse domain for an ipv4 address . # ==== Parameters # * name<~String> - expects an ipv5 address # * subnet<~Integer> - subnet ie: 9 for /9, range is /8 to /30 # # ==== Returns # * response<~Exc...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/delete_record.rb
Ruby
mit
4,298
master
588
module Fog module DNS class Rage4 class Real # Delete a specific record # ==== Parameters # * id<~Integer> - numeric record ID # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'status'<~Boolean> # * 'id'...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/delete_domain.rb
Ruby
mit
4,298
master
581
module Fog module DNS class Rage4 class Real # Delete a specific domain # ==== Parameters # * id<~Integer> - numeric ID # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'status'<~Boolean> # * 'id'<~Integ...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/get_domain_by_name.rb
Ruby
mit
4,298
master
711
module Fog module DNS class Rage4 class Real # Get the details for a specific domain in your account. # ==== Parameters # * name<~String> - name of domain # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'id'<~Intege...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/list_geo_regions.rb
Ruby
mit
4,298
master
617
module Fog module DNS class Rage4 class Real # List all the geo regions available # ==== Parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Array>: # * 'record types'<~Hash> # *'name' <~String> geo record name ...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/update_domain.rb
Ruby
mit
4,298
master
1,321
module Fog module DNS class Rage4 class Real # Update an existing domain # ==== Parameters # * id<~Integer> - domain integer value # * email <~String> - email of domain owner # * nsprefix<~String> - vanity ns prefix (nullable) # * nsname<~String> - vanity ns d...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/update_record.rb
Ruby
mit
4,298
master
2,297
module Fog module DNS class Rage4 class Real # Updates an existing record # ==== Parameters # * record_id <~Integer> The id of the record you wish to update # * name <~String> Name of record, include domain name # * content <~String> IP address or Domain name ...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/bulk_update_records.rb
Ruby
mit
4,298
master
1,245
module Fog module DNS class Rage4 class Real # Updates existing records in bulk # ==== Parameters # * zone_id <~Integer> Need to specify the zone id # * options <~Hash> Options should contain the body for the post # in the following format. #...
github
fog/fog
https://github.com/fog/fog
lib/fog/rage4/requests/dns/show_global_usage.rb
Ruby
mit
4,298
master
457
module Fog module DNS class Rage4 class Real # Shows global usage for all domains # ==== Parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Array> def show_global_usage request( :expects => 200, ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/storage.rb
Ruby
mit
4,298
master
1,690
require 'fog/ibm/core' module Fog module Storage class IBM < Fog::Service requires :ibm_username, :ibm_password recognizes :location model_path 'fog/ibm/models/storage' model :offering collection :offerings model :volume collection :volumes request_path 'fog/ibm...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/core.rb
Ruby
mit
4,298
master
5,373
require 'fog/core' require 'fog/json' module Fog module IBM extend Fog::Provider service(:compute, 'Compute') service(:storage, 'Storage') # Provisioning is very slow. We'll pass this arg explicitly until there's a way # to set the default timeout on a per-provider basis. def self.timeout ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/compute.rb
Ruby
mit
4,298
master
9,200
require 'fog/ibm/core' module Fog module Compute class IBM < Fog::Service requires :ibm_username, :ibm_password recognizes :location model_path 'fog/ibm/models/compute' model :image collection :images model :server collection :servers model :address collect...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/location.rb
Ruby
mit
4,298
master
266
require 'fog/core/model' module Fog module Compute class IBM class Location < Fog::Model identity :id attribute :name attribute :location attribute :capabilities attribute :description end end end end
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/vlans.rb
Ruby
mit
4,298
master
533
require 'fog/core/collection' require 'fog/ibm/models/compute/vlan' module Fog module Compute class IBM class Vlans < Fog::Collection model Fog::Compute::IBM::Vlan def all load(service.list_vlans.body['vlan']) end def get(vlan_id) begin vlan...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/addresses.rb
Ruby
mit
4,298
master
579
require 'fog/core/collection' require 'fog/ibm/models/compute/address' module Fog module Compute class IBM class Addresses < Fog::Collection model Fog::Compute::IBM::Address def all load(service.list_addresses.body['addresses']) end def get(address_id) ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/server.rb
Ruby
mit
4,298
master
5,696
require 'fog/compute/models/server' module Fog module Compute class IBM class Server < Fog::Compute::Server STATES = { 0 => 'New', 1 => 'Provisioning', 2 => 'Failed', 3 => 'Removed', 4 => 'Rejected', 5 => 'Active', 6 => 'U...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/instance-type.rb
Ruby
mit
4,298
master
231
require 'fog/core/model' module Fog module Compute class IBM class InstanceType < Fog::Model identity :id attribute :detail attribute :label attribute :price end end end end
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/address.rb
Ruby
mit
4,298
master
1,462
require 'fog/core/model' module Fog module Compute class IBM class Address < Fog::Model STATES = { 0 => 'New', 1 => 'Allocating', 2 => 'Free', 3 => 'Attached', 4 => 'Releasing', 5 => 'Released', 6 => 'Failed', 7 => 'Rel...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/keys.rb
Ruby
mit
4,298
master
632
require 'fog/core/collection' require 'fog/ibm/models/compute/key' module Fog module Compute class IBM class Keys < Fog::Collection model Fog::Compute::IBM::Key def all load(service.list_keys.body['keys']) end def get(key_id) begin new(servi...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/image.rb
Ruby
mit
4,298
master
1,759
require 'fog/core/model' require 'fog/ibm/models/compute/instance-types' module Fog module Compute class IBM class Image < Fog::Model STATES = { 0 => 'New', 1 => 'Available', 2 => 'Unavailable', 3 => 'Deleted', 4 => 'Capturing', 5 => 'Impo...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/images.rb
Ruby
mit
4,298
master
476
require 'fog/core/collection' require 'fog/ibm/models/compute/image' module Fog module Compute class IBM class Images < Fog::Collection model Fog::Compute::IBM::Image def all load(service.list_images.body['images']) end def get(image_id) begin ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/servers.rb
Ruby
mit
4,298
master
490
require 'fog/core/collection' require 'fog/ibm/models/compute/server' module Fog module Compute class IBM class Servers < Fog::Collection model Fog::Compute::IBM::Server def all load(service.list_instances.body['instances']) end def get(server_id) begin...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/locations.rb
Ruby
mit
4,298
master
500
require 'fog/core/collection' require 'fog/ibm/models/compute/location' module Fog module Compute class IBM class Locations < Fog::Collection model Fog::Compute::IBM::Location def all load(service.list_locations.body['locations']) end def get(location_id) ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/instance-types.rb
Ruby
mit
4,298
master
238
require 'fog/core/collection' require 'fog/ibm/models/compute/instance-type' module Fog module Compute class IBM class InstanceTypes < Fog::Collection model Fog::Compute::IBM::InstanceType end end end end
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/models/compute/key.rb
Ruby
mit
4,298
master
835
require 'fog/core/model' module Fog module Compute class IBM class Key < Fog::Model identity :name, :aliases => 'keyName' attribute :default attribute :public_key, :aliases => 'keyMaterial' attribute :instance_ids, :aliases => 'instanceIds' attribute :modified_at, :a...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/get_instance_logs.rb
Ruby
mit
4,298
master
571
module Fog module Compute class IBM class Real # Get an instance's logs # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * logs<~Array>: # TODO: docs def get_instance_logs(instance_id, start_index=nil) request...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/get_image_manifest.rb
Ruby
mit
4,298
master
1,252
module Fog module Compute class IBM class Real # Returns manifest of image specified by id # # ==== Parameters # 'image_id'<~String>: id of desired image # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'manif...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/delete_key.rb
Ruby
mit
4,298
master
931
module Fog module Compute class IBM class Real # Deletes the key specified with key_name # # ==== Parameters # * key_name<~String> - name of key to be deleted # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # *'s...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/delete_address.rb
Ruby
mit
4,298
master
1,105
module Fog module Compute class IBM class Real # Deletes the Address that the authenticated user manages with the specified :address_id # # ==== Parameters # * address_id<~String> - Id of address # # ==== Returns # * response<~Excon::Response>: ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/list_images.rb
Ruby
mit
4,298
master
2,086
module Fog module Compute class IBM class Real # Returns the list of Images available to be provisioned on the IBM DeveloperCloud. # # ==== Parameters # No parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: #...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/list_keys.rb
Ruby
mit
4,298
master
2,068
module Fog module Compute class IBM class Real # Returns list of instances that the authenticated user manages. # # ==== Parameters # No parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'instances'<...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/get_location.rb
Ruby
mit
4,298
master
1,623
module Fog module Compute class IBM class Real # Get a location # # ==== Parameters # * location_id<~String> - Id of location # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'name'<~String>: location name ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/list_address_offerings.rb
Ruby
mit
4,298
master
1,815
module Fog module Compute class IBM class Real # Returns the offerings of static address types/pricing for the authenticated user # # ==== Parameters # No parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/get_image_agreement.rb
Ruby
mit
4,298
master
3,414
module Fog module Compute class IBM class Real # Returns license agreement of image specified by id # # ==== Parameters # 'image_id'<~String>: id of desired image # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/clone_image.rb
Ruby
mit
4,298
master
1,322
module Fog module Compute class IBM class Real # Clones image specified by image_id # # ==== Parameters # * image_id<~String> - id of image to be cloned # * name<~String> - name of new image # * description<~String> - description of new image # ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/get_request.rb
Ruby
mit
4,298
master
2,992
module Fog module Compute class IBM class Real # Returns list of instances created with request specified by request_id # # ==== Parameters # * request_id<~String> - Id of request # # ==== Returns # * response<~Excon::Response>: # * body<~Has...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/list_vlans.rb
Ruby
mit
4,298
master
1,230
module Fog module Compute class IBM class Real # Returns the vlan offerings for user # # ==== Parameters # No parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'addresses'<~Array>: list of addresses ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/list_locations.rb
Ruby
mit
4,298
master
797
module Fog module Compute class IBM class Real # Returns the list of Images available to be provisioned on the IBM DeveloperCloud. # # ==== Parameters # No parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: #...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/create_instance.rb
Ruby
mit
4,298
master
3,860
module Fog module Compute class IBM class Real # Requests a new Instance to be created. # # ==== Parameters # * name<~String> - The alias to use to reference this instance # * image_id<~String> - The id of the image to create this instance from # * instance_ty...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/list_instances.rb
Ruby
mit
4,298
master
2,095
module Fog module Compute class IBM class Real # Returns list of instances that the authenticated user manages. # # ==== Parameters # No parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'instances'<...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/create_address.rb
Ruby
mit
4,298
master
1,530
module Fog module Compute class IBM class Real # Requests a new static IP address to be created # # ==== Parameters # * location_id<~String> - id of location # * offering_id<~String> - id for offering # * vlan_id<~String> - id of vlan # # ==== ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/delete_instance.rb
Ruby
mit
4,298
master
1,515
module Fog module Compute class IBM class Real # Deletes the Instance that the authenticated user manages with the specified :instance_id # # ==== Parameters # * instance_id<~String> - Id of instance # # ==== Returns # * response<~Excon::Response>: ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/modify_key.rb
Ruby
mit
4,298
master
1,402
module Fog module Compute class IBM class Real # Modify a key # # ==== Parameters # * key_name<~String> - name of key to be modified # * params<~Hash> - depends on type of request # # ==== Returns # * response<~Excon::Response>: # * b...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/get_image.rb
Ruby
mit
4,298
master
2,210
module Fog module Compute class IBM class Real # Returns details of image specified by id # # ==== Parameters # 'image_id'<~String>: id of desired image # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'name'<...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/get_instance.rb
Ruby
mit
4,298
master
2,798
module Fog module Compute class IBM class Real # Returns the Instance that the authenticated user manages with the specified :instance_id # # ==== Parameters # * instance_id<~String> - Id of instance # # ==== Returns # * response<~Excon::Response>: ...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/list_addresses.rb
Ruby
mit
4,298
master
1,711
module Fog module Compute class IBM class Real # Returns the list of static IP addresses for current user # # ==== Parameters # No parameters # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'addresses'<~Array...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/create_image.rb
Ruby
mit
4,298
master
1,670
module Fog module Compute class IBM class Real # Requests an image to be created from an Instance # # ==== Parameters # * instance_id<~String> - id of instance to save # * name<~String> - name of image to be created # * description<~String> - description of im...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/delete_image.rb
Ruby
mit
4,298
master
1,109
module Fog module Compute class IBM class Real # Deletes the image that the authenticated user manages with the specified :image_id # # ==== Parameters # * image_id<~String> - Id of image # # ==== Returns # * response<~Excon::Response>: # * b...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/get_key.rb
Ruby
mit
4,298
master
1,224
module Fog module Compute class IBM class Real # Returns details of key by name specified # # ==== Parameters # 'key_name'<~String>: name of key to request # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'key...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/create_key.rb
Ruby
mit
4,298
master
1,967
module Fog module Compute class IBM class Real # Requests a new keypair to be created # # ==== Parameters # * name<~String> - name to give new key # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'keyName'<~St...
github
fog/fog
https://github.com/fog/fog
lib/fog/ibm/requests/compute/modify_instance.rb
Ruby
mit
4,298
master
2,487
module Fog module Compute class IBM class Real # Modify an instance # # ==== Parameters # * instance_id<~String> - id of instance to rename # * params<~Hash> - depends on type of request # # ==== Returns # * response<~Excon::Response>: ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/compute.rb
Ruby
mit
4,298
master
11,092
require 'fog/vcloud/core' module Fog module Vcloud class Collection < Fog::Collection def load(objects) objects = [ objects ] if objects.is_a?(Hash) super end def check_href!(opts = {}) self.href = service.default_vdc_href unless href unless href if op...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/vapps.rb
Ruby
mit
4,298
master
544
require 'fog/vcloud/models/compute/vapp' module Fog module Vcloud class Compute class Vapps < Collection model Fog::Vcloud::Compute::Vapp undef_method :create attribute :href def all load([service.get_vdc(service.default_vdc_href).resource_entities].flatten.sele...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/ip.rb
Ruby
mit
4,298
master
949
module Fog module Vcloud class Compute class Ip < Fog::Vcloud::Model identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd attribute :name, :aliases => :Name attribute :status...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/task.rb
Ruby
mit
4,298
master
605
module Fog module Vcloud class Compute class Task < Fog::Vcloud::Model identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd attribute :status attribute :type attribut...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/catalog.rb
Ruby
mit
4,298
master
508
module Fog module Vcloud class Compute class Catalog < Fog::Vcloud::Model identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd attribute :type attribute :name def ca...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/vdcs.rb
Ruby
mit
4,298
master
726
require 'fog/vcloud/models/compute/vdc' module Fog module Vcloud class Compute class Vdcs < Collection model Fog::Vcloud::Compute::Vdc undef_method :create attribute :href def all data = service.get_organization(org_uri).links.select { |link| link[:type] == "app...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/vapp.rb
Ruby
mit
4,298
master
1,424
require 'fog/vcloud/models/compute/helpers/status' module Fog module Vcloud class Compute class Vapp < Fog::Vcloud::Model include Fog::Vcloud::Compute::Helpers::Status identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :x...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/tag.rb
Ruby
mit
4,298
master
440
module Fog module Vcloud class Compute class Tag < Fog::Vcloud::Model identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd attribute :key, :aliases => :Key attribute :value, ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/vdc.rb
Ruby
mit
4,298
master
1,353
module Fog module Vcloud class Compute class Vdc < Fog::Vcloud::Model identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd attribute :name attribute :type attribute :...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/catalog_items.rb
Ruby
mit
4,298
master
802
module Fog module Vcloud class Compute class CatalogItems < Fog::Vcloud::Collection undef_method :create model Fog::Vcloud::Compute::CatalogItem attribute :href, :aliases => :Href def all catalog_item_info = service.get_catalog_item(self.href) items = s...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/servers.rb
Ruby
mit
4,298
master
1,067
require 'fog/vcloud/models/compute/server' module Fog module Vcloud class Compute class Servers < Fog::Vcloud::Collection undef_method :create model Fog::Vcloud::Compute::Server attribute :href, :aliases => :Href def all check_href!("Vapp") vapp.load_u...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/networks.rb
Ruby
mit
4,298
master
1,392
require 'fog/vcloud/models/compute/network' module Fog module Vcloud class Compute class Networks < Fog::Vcloud::Collection undef_method :create model Fog::Vcloud::Compute::Network attribute :href def all self.href = service.default_vdc_href unless self.href ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/catalog_item.rb
Ruby
mit
4,298
master
1,278
module Fog module Vcloud class Compute class CatalogItem < Fog::Vcloud::Model identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd attribute :type attribute :name att...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/ips.rb
Ruby
mit
4,298
master
704
require 'fog/vcloud/models/compute/ip' module Fog module Vcloud class Compute class Ips < Fog::Vcloud::Collection model Fog::Vcloud::Compute::Ip undef_method :create attribute :href def all self.href = service.default_vdc_href unless self.href check_hr...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/tasks.rb
Ruby
mit
4,298
master
573
require 'fog/vcloud/models/compute/task' module Fog module Vcloud class Compute class Tasks < Fog::Vcloud::Collection model Fog::Vcloud::Compute::Task attribute :href, :aliases => :Href def all self.href = service.default_vdc_href unless self.href check_href! ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/organizations.rb
Ruby
mit
4,298
master
648
require 'fog/vcloud/models/compute/organization' module Fog module Vcloud class Compute class Organizations < Collection model Fog::Vcloud::Compute::Organization undef_method :create def all raw_orgs = if service.version == '1.0' service.login else ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/network.rb
Ruby
mit
4,298
master
694
module Fog module Vcloud class Compute class Network < Fog::Vcloud::Model identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd attribute :name, :aliases => :Name attribute :...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/server.rb
Ruby
mit
4,298
master
10,365
require 'fog/vcloud/models/compute/helpers/status' module Fog module Vcloud class Compute class Server < Fog::Vcloud::Model include Fog::Vcloud::Compute::Helpers::Status identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/organization.rb
Ruby
mit
4,298
master
1,182
module Fog module Vcloud class Compute class Organization < Fog::Vcloud::Model identity :href, :aliases => :Href attribute :links, :aliases => :Link, :type => :array ignore_attributes :xmlns, :xmlns_i, :xmlns_xsi, :xmlns_xsd attribute :name attribute :description, :a...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/catalogs.rb
Ruby
mit
4,298
master
894
require 'fog/vcloud/models/compute/catalog' module Fog module Vcloud class Compute class Catalogs < Fog::Vcloud::Collection model Fog::Vcloud::Compute::Catalog attribute :organization_uri def all org_uri = self.organization_uri || service.default_organization_uri ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/tags.rb
Ruby
mit
4,298
master
652
require 'fog/vcloud/models/compute/tag' module Fog module Vcloud class Compute class Tags < Fog::Vcloud::Collection undef_method :create model Fog::Vcloud::Compute::Tag attribute :href, :aliases => :Href def all metadata = service.get_metadata(self.href) ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/models/compute/helpers/status.rb
Ruby
mit
4,298
master
686
module Fog module Vcloud class Compute module Helpers module Status def friendly_status load_unless_loaded! case status when '0' 'creating' when '8' 'off' when '4' 'on' else ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vapp.rb
Ruby
mit
4,298
master
5,774
module Fog module Vcloud class Compute module Shared private def validate_vapp_data(vapp_data) valid_opts = [:name, :cpus, :memory, :disks] unless valid_opts.all? { |opt| vapp_data.key?(opt) } raise ArgumentError.new("Required Vapp data missing: #{(valid_opts...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/get_vm_disks.rb
Ruby
mit
4,298
master
292
module Fog module Vcloud class Compute class Real def get_vm_disks(href) request( :expects => 200, :uri => href, :parse => true#false#true ) end end end end end
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vm_cpus.rb
Ruby
mit
4,298
master
1,947
# -*- encoding: utf-8 -*- module Fog module Vcloud class Compute class Real def configure_vm_cpus(vm_data) edit_uri = vm_data.select {|k,v| k == :Link && v[:rel] == 'edit'} edit_uri = edit_uri.kind_of?(Array) ? edit_uri.flatten[1][:href] : edit_uri[:Link][:href] body =...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/clone_vapp.rb
Ruby
mit
4,298
master
1,344
module Fog module Vcloud class Compute class Real def validate_clone_vapp_options(options) valid_opts = [:name, :poweron] unless valid_opts.all? { |opt| options.key?(opt) } raise ArgumentError.new("Required data missing: #{(valid_opts - options.keys).map(&:inspect).jo...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vm_customization_script.rb
Ruby
mit
4,298
master
1,455
# -*- encoding: utf-8 -*- module Fog module Vcloud class Compute class Real def configure_vm_customization_script(vmdata) edit_uri = vmdata[:href] body = <<EOF <GuestCustomizationSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/en...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/login.rb
Ruby
mit
4,298
master
527
module Fog module Vcloud class Compute class Real def login headers = { 'Authorization' => authorization_header } uri = if version == '1.0' "#{base_url}/login" else "#{base_path_url}/sessions" end unauthenticated_request({ ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/undeploy.rb
Ruby
mit
4,298
master
1,164
module Fog module Vcloud class Compute class Real def undeploy(vapp_uri, save_state = false) # builder = Builder::XmlMarkup.new # builder.UndeployVAppParams(:xmlns => 'http://www.vmware.com/vcloud/v1', # :saveState => save_state) {} ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_metadata.rb
Ruby
mit
4,298
master
1,025
module Fog module Vcloud class Compute class Real def configure_metadata(opts= {}) valid_opts = [:key, :value, :href] unless valid_opts.all? { |opt| opts.key?(opt) } raise ArgumentError.new("Required data missing: #{(valid_opts - opts.keys).map(&:inspect).join(", ")}"...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/get_network_ip.rb
Ruby
mit
4,298
master
201
# # AFAICT this is basically undocumented ATM - 6/18/2010 - freeformz # module Fog module Vcloud class Compute class Real basic_request :get_network_ip end end end end
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vm.rb
Ruby
mit
4,298
master
6,148
module Fog module Vcloud class Compute module Shared private def validate_vm_data(vm_data) valid_opts = [:name, :cpus, :memory, :disks] unless valid_opts.all? { |opt| vm_data.key?(opt) } raise ArgumentError.new("Required vm data missing: #{(valid_opts - vm_da...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vm_memory.rb
Ruby
mit
4,298
master
1,929
# -*- coding: utf-8 -*- module Fog module Vcloud class Compute class Real def configure_vm_memory(vm_data) edit_uri = vm_data.select {|k,v| k == :Link && v[:rel] == 'edit'} edit_uri = edit_uri.kind_of?(Array) ? edit_uri.flatten[1][:href] : edit_uri[:Link][:href] body =...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/get_vm_memory.rb
Ruby
mit
4,298
master
297
module Fog module Vcloud class Compute class Real def get_vm_memory(href, parse = true) request( :expects => 200, :uri => href, :parse => parse ) end end end end end
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_network_ip.rb
Ruby
mit
4,298
master
1,399
module Fog module Vcloud class Compute module Shared private def validate_network_ip_data(network_ip_data) valid_opts = [:id, :href, :name, :status, :server] unless valid_opts.all? { |opt| network_ip_data.key?(opt) } raise ArgumentError.new("Required data mis...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_org_network.rb
Ruby
mit
4,298
master
5,949
# -*- coding: utf-8 -*- module Fog module Vcloud class Compute class Real def generate_outbound_rule() outbound_rule = <<EOF <ns0:FirewallRule> <ns0:IsEnabled>true</ns0:IsEnabled> <ns0:Description>OUTGOING</ns0:Description> <ns0:Policy>allow<...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_node.rb
Ruby
mit
4,298
master
1,034
module Fog module Vcloud class Compute module Shared private def generate_configure_node_request(node_data) builder = Builder::XmlMarkup.new builder.NodeService(:"xmlns:i" => "http://www.w3.org/2001/XMLSchema-instance", :xmlns => "urn:tm...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/get_network_ips.rb
Ruby
mit
4,298
master
200
# # AFAICT - This is basically undocumented - 6/18/2010 - freeformz # module Fog module Vcloud class Compute class Real basic_request :get_network_ips end end end end
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_network.rb
Ruby
mit
4,298
master
1,385
module Fog module Vcloud class Compute class Real def validate_network_data(network_data, configure=false) valid_opts = [:id, :href, :name, :address, :broadcast, :gateway] unless valid_opts.all? { |opt| network_data.key?(opt) } raise ArgumentError.new("Required data m...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb
Ruby
mit
4,298
master
3,812
module Fog module Vcloud class Compute module Shared private def validate_instantiate_vapp_template_options options # :network_uri removed, if not specified will use template network config. valid_opts = [:catalog_item_uri, :name, :vdc_uri] unless valid_opts.al...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vm_disks.rb
Ruby
mit
4,298
master
4,690
# -*- coding: utf-8 -*- # <RasdItemsList xmlns="http://www.vmware.com/vcloud/v1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcd01.esx.dev.int.realestate.com.au/api/v1.0/vApp/vm-329805878/virtualHa...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vm_network.rb
Ruby
mit
4,298
master
1,460
# -*- encoding: utf-8 -*- module Fog module Vcloud class Compute class Real def configure_vm_network(network_info) edit_uri = network_info.select {|k,v| k == :Link && v[:rel] == 'edit'} edit_uri = edit_uri.kind_of?(Array) ? edit_uri.flatten[1][:href] : edit_uri[:Link][:href] ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vm_name_description.rb
Ruby
mit
4,298
master
704
# -*- coding: utf-8 -*- module Fog module Vcloud class Compute class Real def configure_vm_name_description(edit_href, name, description) body = <<EOF <?xml version="1.0" encoding="UTF-8"?> <VApp xmlns="http://www.vmware.com/vcloud/v1" name="#{name}" type="application/vnd.vmware.vcloud.vAp...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud/requests/compute/configure_vm_password.rb
Ruby
mit
4,298
master
1,735
# -*- encoding: utf-8 -*- module Fog module Vcloud class Compute class Real def configure_vm_password(vmdata) edit_uri = vmdata[:href] body = <<EOF <GuestCustomizationSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" ty...
github
fog/fog
https://github.com/fog/fog
tests/watchr.rb
Ruby
mit
4,298
master
455
ENV['FOG_MOCK'] ||= 'true' ENV['AUTOTEST'] = 'true' ENV['WATCHR'] = '1' def file2shindo(file) result = file.sub('lib/fog/', 'tests/').gsub(/\.rb$/, '_tests.rb') end def run_shindo_test(file) if File.exist? file system("shindont #{file}") else puts "FIXME: No test #{file} [#{Time.now}]" end end watc...
github
fog/fog
https://github.com/fog/fog
tests/helper.rb
Ruby
mit
4,298
master
2,004
ENV['FOG_RC'] = ENV['FOG_RC'] || File.expand_path('../.fog', __FILE__) ENV['FOG_CREDENTIAL'] = ENV['FOG_CREDENTIAL'] || 'default' require 'fog' require 'fog/bin' # for available_providers and registered_providers require 'ostruct' Excon.defaults.merge!(:debug_request => true, :debug_response => true) require...
github
fog/fog
https://github.com/fog/fog
tests/ibm/models/compute/keys_tests.rb
Ruby
mit
4,298
master
956
Shindo.tests('Fog::Compute[:ibm] | keys', ['ibm']) do tests('success') do @key_name = 'fog-test-key' + Time.now.to_i.to_s(32) @key = nil tests("Fog::Compute[:ibm].keys.create(:name => '#{@key_name}')") do @key = Fog::Compute[:ibm].keys.create(:name => @key_name) returns(@key_name) { @k...
github
fog/fog
https://github.com/fog/fog
tests/ibm/models/compute/server_tests.rb
Ruby
mit
4,298
master
2,609
Shindo.tests('Fog::Compute[:ibm] | server', ['ibm']) do tests('success') do # TODO: Fix this for non-mock tests @server = nil @instance_id = nil @name = "fog-test-instance-" + Time.now.to_i.to_s(32) @image_id = "20010001" @instance_type = "BRZ32.1/2048/60*175" ...