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
spec/fog/vpn_spec.rb
Ruby
mit
4,298
master
425
require "spec_helper" describe Fog::VPN do Fog::VPN.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credentials, {} ...
github
fog/fog
https://github.com/fog/fog
spec/fog/image_spec.rb
Ruby
mit
4,298
master
431
require "spec_helper" describe Fog::Image do Fog::Image.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credentials,...
github
fog/fog
https://github.com/fog/fog
spec/fog/network_spec.rb
Ruby
mit
4,298
master
437
require "spec_helper" describe Fog::Network do Fog::Network.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.stub :credenti...
github
fog/fog
https://github.com/fog/fog
spec/fog/orchestration_spec.rb
Ruby
mit
4,298
master
455
require "spec_helper" describe Fog::Orchestration do Fog::Orchestration.providers.each do |provider| describe "when #{provider} is passed with no available credentials" do it "returns ArgumentError" do # Stub credentials so you still see errors where the tester really has credentials Fog.st...
github
fog/fog
https://github.com/fog/fog
spec/fog/bin/baremetalcloud_spec.rb
Ruby
mit
4,298
master
508
require "spec_helper" require "fog/bin" require "helpers/bin" describe BareMetalCloud do include Fog::BinSpec let(:subject) { BareMetalCloud } describe "#services" do it "includes all services" do assert_includes BareMetalCloud.services, :compute end end describe "#class_for" do describe...
github
fog/fog
https://github.com/fog/fog
spec/fog/bin/aws_spec.rb
Ruby
mit
4,298
master
2,633
require "spec_helper" require "fog/bin" require "helpers/bin" # workaround autoload which doesn't match renested/deprecated classes require "fog/aws/cdn" require "fog/aws/compute" require "fog/aws/dns" require "fog/aws/storage" describe AWS do include Fog::BinSpec let(:subject) { AWS } KEY_CLASS_MAPPING = { ...
github
fog/fog
https://github.com/fog/fog
spec/fog/bin/brightbox_spec.rb
Ruby
mit
4,298
master
715
require "spec_helper" require "fog/bin" require "helpers/bin" describe Brightbox do include Fog::BinSpec let(:subject) { Brightbox } describe "#services" do it "includes all services" do assert_includes Brightbox.services, :compute assert_includes Brightbox.services, :storage end end d...
github
fog/fog
https://github.com/fog/fog
spec/fog/xml/connection_spec.rb
Ruby
mit
4,298
master
932
require "spec_helper" # @note This is going to be part of fog-xml eventually describe Fog::XML::Connection do before do @connection = Fog::XML::Connection.new("http://localhost") end after do Excon.stubs.clear end it "responds to #request" do assert_respond_to @connection, :request end des...
github
fog/fog
https://github.com/fog/fog
spec/vcloud_director/spec_helper.rb
Ruby
mit
4,298
master
311
if ENV["FOG_MOCK"] == "true" Fog.mock! end if Fog.mock? Fog.credentials = { :vcloud_director_host => 'vcloud-director-host', :vcloud_director_password => 'vcloud_director_password', :vcloud_director_username => 'vcd_user@vcd_org_name', }.merge(Fog.credentials) end
github
fog/fog
https://github.com/fog/fog
spec/vcloud_director/requests/compute/instantiate_vapp_template_spec.rb
Ruby
mit
4,298
master
2,232
require './spec/vcloud_director/spec_helper.rb' require 'minitest/autorun' require './lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb' describe Fog::Compute::VcloudDirector::Real do before do Fog.unmock! end let(:xml) do service = Fog::Compute::VcloudDirector.new( { :v...
github
fog/fog
https://github.com/fog/fog
spec/vcloud_director/generators/compute/instantiate_vapp_template_params_spec.rb
Ruby
mit
4,298
master
2,058
require './spec/vcloud_director/spec_helper.rb' require 'minitest/autorun' require 'nokogiri' require './lib/fog/vcloud_director/generators/compute/instantiate_vapp_template_params.rb' describe Fog::Generators::Compute::VcloudDirector::InstantiateVappTemplateParams do let(:xml) do params = { :name => '...
github
fog/fog
https://github.com/fog/fog
benchs/load_times.rb
Ruby
mit
4,298
master
804
require 'benchmark' $LOAD_PATH << File.dirname(__FILE__) + '/../lib' def time_in_fork(&block) read, write = IO.pipe Process.fork do write.puts Benchmark.realtime{ block.call } end Process.wait write.close read.read.tap do read.close end end class Array def avg map(&:to_f).inject(:+) / size...
github
fog/fog
https://github.com/fog/fog
benchs/parse_vs_push.rb
Ruby
mit
4,298
master
1,034
require 'benchmark' require 'rubygems' require 'nokogiri' class Parser < Nokogiri::XML::SAX::Document attr_reader :response def initialize reset end def reset @item = {} @response = { :items => [] } end def characters(string) @value ||= '' @value << string.strip end def start_el...
github
fog/fog
https://github.com/fog/fog
benchs/params.rb
Ruby
mit
4,298
master
875
require 'benchmark' def hash(options) result = "#{options.delete(:name)}" for key, value in options result << " #{key} => #{value} " end result end def optional(name, a = nil, b = nil, c = nil) result = "#{name}" options = { :a => a, :b => b, :c => c } for key, value in options result << " #{key...
github
fog/fog
https://github.com/fog/fog
benchs/fog_vs.rb
Ruby
mit
4,298
master
2,690
require 'rubygems' require 'aws/s3' require 'benchmark' require 'right_aws' require File.join(File.dirname(__FILE__), '..', 'lib', 'fog') data = File.open(File.expand_path('~/.fog')).read config = YAML.load(data)[:default] fog = Fog::AWS::S3.new( :aws_access_key_id => config[:aws_access_key_id], :aws_secret_a...
github
fog/fog
https://github.com/fog/fog
lib/fog.rb
Ruby
mit
4,298
master
1,576
# necessary when requiring fog without rubygems while also # maintaining ruby 1.8.7 support (can't use require_relative) __LIB_DIR__ = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift __LIB_DIR__ unless $LOAD_PATH.include?(__LIB_DIR__) require 'fog/version' # Use core require 'fog/core' # Previously treat...
github
fog/fog
https://github.com/fog/fog
lib/tasks/changelog_task.rb
Ruby
mit
4,298
master
5,854
require "rake" require "rake/tasklib" module Fog module Rake class ChangelogTask < ::Rake::TaskLib def initialize desc "Update the changelog since the last release" task(:changelog) do @changelog = [] @changelog << release_header process_commits @c...
github
fog/fog
https://github.com/fog/fog
lib/tasks/github_release_task.rb
Ruby
mit
4,298
master
1,774
require "rake" require "rake/tasklib" require 'octokit' require 'netrc' module Fog module Rake class GithubReleaseTask < ::Rake::TaskLib def initialize desc "Update the changelog since the last release" task(:github_release) do File.open('CHANGELOG.md', 'r') do |file| ...
github
fog/fog
https://github.com/fog/fog
lib/fog/bin.rb
Ruby
mit
4,298
master
2,477
require 'fog/core/credentials' module Fog class << self def available_providers available_providers ||= Fog.providers.values.select do |provider| Kernel.const_defined?(provider) && Kernel.const_get(provider).try(:available?) end.sort end def registered_providers @registered_pro...
github
fog/fog
https://github.com/fog/fog
lib/fog/aws/service_mapper.rb
Ruby
mit
4,298
master
4,523
module Fog module AWS # @api private # # This is a temporary lookup helper for extracting into external module. # # Cleaner provider/service registration will replace this code. # class ServiceMapper def self.class_for(key) case key when :auto_scaling Fog::A...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/dns.rb
Ruby
mit
4,298
master
3,900
require 'fog/dnsmadeeasy/core' module Fog module DNS class DNSMadeEasy < Fog::Service requires :dnsmadeeasy_api_key, :dnsmadeeasy_secret_key recognizes :host, :path, :port, :scheme, :persistent model_path 'fog/dnsmadeeasy/models/dns' model :record collection :records m...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/list_secondary.rb
Ruby
mit
4,298
master
549
module Fog module DNS class DNSMadeEasy class Real # Returns a list of all secondary entry names for your account. # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * list<~Array> e.g. ["xxx.domain.com", "xxx.domain.com"] # * ...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb
Ruby
mit
4,298
master
1,311
module Fog module DNS class DNSMadeEasy class Real # Modifies a secondary entry with the specified name. Returns errors if name is not valid or conflicts with another domain. # # ==== Parameters # * secondary_name<~String> - secondary name # * ip_addresses<~Array> - L...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/list_domains.rb
Ruby
mit
4,298
master
546
module Fog module DNS class DNSMadeEasy class Real # Returns a list of all domain names for your account. # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * list<~Array> e.g. ["domain1.com","domain2.com", "domain3.com"] # * s...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/create_secondary.rb
Ruby
mit
4,298
master
1,310
module Fog module DNS class DNSMadeEasy class Real # Creates a secondary entry with the specified name. Returns errors if name is not valid or conflicts with another domain. # # ==== Parameters # * secondary_name<~String> - secondary name # * ip_addresses<~Array> - Li...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/update_record.rb
Ruby
mit
4,298
master
2,840
module Fog module DNS class DNSMadeEasy class Real # Updates a record with the representation specified in the request content. Returns errors if record is not valid. # Note that a record ID will be generated by the system with this request and any ID that is sent will be ignored. Records ar...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/list_records.rb
Ruby
mit
4,298
master
1,940
module Fog module DNS class DNSMadeEasy class Real # Returns a list of record objects containing all records for the specified domain # # ==== Parameters # * domain<~String> # * options<~Hash> # * gtdLocation<~String> Global Traffic Director location. Values...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/delete_domain.rb
Ruby
mit
4,298
master
570
module Fog module DNS class DNSMadeEasy class Real # Delete the given domain from your account. # # ==== Parameters # * domain<~String> - domain name # # ==== Returns # * response<~Excon::Response>: # * status<~Integer> 200 - OK, 404 - specif...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/delete_record.rb
Ruby
mit
4,298
master
737
module Fog module DNS class DNSMadeEasy class Real # Deletes the record with the specified id. Note that records are not modifiable for domains that are locked to a template. # # ==== Parameters # * domain<~String> - domain name # * record_id<~String> - record id ...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/get_domain.rb
Ruby
mit
4,298
master
906
module Fog module DNS class DNSMadeEasy class Real # Get the details for a specific domain in your account. # # ==== Parameters # * domain<~String> - domain name # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # ...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/get_record.rb
Ruby
mit
4,298
master
1,731
module Fog module DNS class DNSMadeEasy class Real # Returns a record object representing the record with the specified id. # # ==== Parameters # * domain<~String> # * record_id<~Integer> # ==== Returns # * response<~Excon::Response>: # * bod...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/delete_all_domains.rb
Ruby
mit
4,298
master
461
module Fog module DNS class DNSMadeEasy class Real # Deletes all domains for your account. # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * status<~Integer> - 200 - OK def delete_all_domains request( :expe...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/create_record.rb
Ruby
mit
4,298
master
2,632
module Fog module DNS class DNSMadeEasy class Real # Creates a record with the representation specified in the request content. Returns errors if record is not valid. # Note that a record ID will be generated by the system with this request and any ID that is sent will be ignored. Records ar...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/create_domain.rb
Ruby
mit
4,298
master
1,033
module Fog module DNS class DNSMadeEasy class Real # Creates a domain entry with the specified name. Returns errors if name is not valid or conflicts with another domain. # # ==== Parameters # * domain<~String> - domain name # # ==== Returns # * respon...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/delete_secondary.rb
Ruby
mit
4,298
master
614
module Fog module DNS class DNSMadeEasy class Real # Deletes the specified secondary entry. # # ==== Parameters # * secondary_name<~String> - secondary domain name # # ==== Returns # * response<~Excon::Response>: # * status<~Integer> 200 - OK...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/delete_all_secondary.rb
Ruby
mit
4,298
master
446
module Fog module DNS class DNSMadeEasy class Real # Deletes all secondary entries for your account. # # ==== Returns # * response<~Excon::Response>: # * status<~Integer> 200 - OK def delete_all_secondary request( :expects => 200, ...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/requests/dns/get_secondary.rb
Ruby
mit
4,298
master
992
module Fog module DNS class DNSMadeEasy class Real # Returns the secondary entry object representation of the specified secondary entry. # # ==== Parameters # * secondary_name<~String> - secondary name # # ==== Returns # * response<~Excon::Response>: ...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/models/dns/zones.rb
Ruby
mit
4,298
master
575
require 'fog/core/collection' require 'fog/dnsmadeeasy/models/dns/zone' module Fog module DNS class DNSMadeEasy class Zones < Fog::Collection model Fog::DNS::DNSMadeEasy::Zone def all clear data = service.list_domains.body['list'].map{|domain| {:id => domain}} ...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/models/dns/zone.rb
Ruby
mit
4,298
master
884
require 'fog/core/model' require 'fog/dnsmadeeasy/models/dns/records' module Fog module DNS class DNSMadeEasy class Zone < Fog::Model identity :id attribute :domain, :aliases => 'name' attribute :gtd_enabled, :aliases => 'gtdEnabled' attribute :nameservers, :aliases =>...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/models/dns/records.rb
Ruby
mit
4,298
master
693
require 'fog/core/collection' require 'fog/dnsmadeeasy/models/dns/record' module Fog module DNS class DNSMadeEasy class Records < Fog::Collection attribute :zone model Fog::DNS::DNSMadeEasy::Record def all requires :zone data = service.list_records(zone.identit...
github
fog/fog
https://github.com/fog/fog
lib/fog/dnsmadeeasy/models/dns/record.rb
Ruby
mit
4,298
master
1,960
require 'fog/core/model' module Fog module DNS class DNSMadeEasy class Record < Fog::Model extend Fog::Deprecation deprecate :ip, :value deprecate :ip=, :value= identity :id attribute :name attribute :type attribute :ttl attribute :gtd_locat...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/query.rb
Ruby
mit
4,298
master
1,768
require 'pp' module Fog module VcloudDirector module Query def find_by_query(options={}) type = options.fetch(:type) { self.query_type } results = get_all_results(type, options) data = results.map do |query_record| model_data = {} model_data[:id] = query_record[...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/core.rb
Ruby
mit
4,298
master
2,557
require 'fog/core' require 'fog/xml' module Fog module VcloudDirector extend Fog::Provider module Errors class ServiceError < Fog::Errors::Error attr_reader :minor_error_code attr_reader :major_error_code attr_reader :stack_trace attr_reader :status_code attr_re...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/compute.rb
Ruby
mit
4,298
master
32,514
require 'fog/vcloud_director/core' require 'fog/vcloud_director/query' class VcloudDirectorParser < Fog::Parsers::Base def extract_attributes(attributes_xml) attributes = {} until attributes_xml.empty? if attributes_xml.first.is_a?(Array) until attributes_xml.first.empty? attribute = ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_network.rb
Ruby
mit
4,298
master
2,324
module Fog module Compute class VcloudDirector class Real require 'fog/vcloud_director/parsers/compute/network' # Retrieve an organization network. # # @deprecated Use {#get_network_complete} instead # # @param [String] id Object identifier of the network. ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_network_complete.rb
Ruby
mit
4,298
master
2,642
module Fog module Compute class VcloudDirector class Real # Retrieve an organization network. # # @param [String] id Object identifier of the network. # @return [Excon::Response] # * body<~Hash>: # # @raise [Fog::Compute::VcloudDirector::Forbidden] ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_upload_media.rb
Ruby
mit
4,298
master
4,282
module Fog module Compute class VcloudDirector class Real # Upload a media image. # # The response includes an upload link for the media image. # # @param [String] vdc_id Object identifier of the vDC. # @param [String] name The name of the media image. ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_reboot_vapp.rb
Ruby
mit
4,298
master
1,087
module Fog module Compute class VcloudDirector class Real # Reboot a vApp or VM. # # If used on a vApp, reboots all VMs in the vApp. If used on a VM, # reboots the VM. This operation is available only for a vApp or VM # that is powered on. # # This ope...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_control_access_params_vapp.rb
Ruby
mit
4,298
master
765
module Fog module Compute class VcloudDirector class Real # Retrieve access control information for a vApp. # # @param [String] id Object identifier of the vApp. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topi...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vapp_metadata.rb
Ruby
mit
4,298
master
2,886
module Fog module Compute class VcloudDirector class Real # Retrieve metadata associated with the vApp or VM. # # @param [String] id Object identifier of the vApp or VM. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_operating_system_section.rb
Ruby
mit
4,298
master
1,927
module Fog module Compute class VcloudDirector class Real # Retrieve the operating system section of a VM. # # @param [String] id The object identifier of the VM. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/top...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/put_cpu.rb
Ruby
mit
4,298
master
3,474
module Fog module Compute class VcloudDirector class Real extend Fog::Deprecation deprecate :put_vm_cpu, :put_cpu # Update the RASD item that specifies CPU properties of a VM. # # This operation is asynchronous and returns a task that you can # monitor to tra...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_network_cards_items_list.rb
Ruby
mit
4,298
master
2,300
module Fog module Compute class VcloudDirector class Real # Retrieve all RASD items that specify network card properties of a VM. # # @param [String] id Object identifier of the VM. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vm...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_media_owner.rb
Ruby
mit
4,298
master
2,337
module Fog module Compute class VcloudDirector class Real # Retrieve the owner of a media object. # # @param [String] id Object identifier of the media object. # @return [Excon::Response] # * body<~Hash>: # * :href<~String> - The URI of the media object....
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata.rb
Ruby
mit
4,298
master
885
module Fog module Compute class VcloudDirector class Real extend Fog::Deprecation deprecate :get_vdc_storage_profile_metadata, :get_vdc_storage_class_metadata # Retrieve metadata associated with the vDC storage profile. # # @param [String] id Object identifier of the...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_network_metadata.rb
Ruby
mit
4,298
master
754
module Fog module Compute class VcloudDirector class Real # Retrieve metadata associated with the network. # # @param [String] id Object identifier of the network. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/to...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_product_sections_vapp.rb
Ruby
mit
4,298
master
786
module Fog module Compute class VcloudDirector class Real # Retrieve a list of ProductSection elements from a vApp or VM. # # @param [String] id Object identifier of the vApp or VM. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vm...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_enable_nested_hv.rb
Ruby
mit
4,298
master
873
module Fog module Compute class VcloudDirector class Real # Expose hardware-assisted CPU virtualization to guest OS. # # This operation is asynchronous and returns a task that you can # monitor to track the progress of the request. # # @param [String] id Objec...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_clone_vapp.rb
Ruby
mit
4,298
master
2,484
module Fog module Compute class VcloudDirector class Real # Create a copy of a vApp. # # The response includes a Task element. You can monitor the task to to # track the creation of the vApp template. # # @param [String] vdc_id Object identifier of the vDC. ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_update_disk_metadata.rb
Ruby
mit
4,298
master
1,893
module Fog module Compute class VcloudDirector class Real # Merge the metadata provided in the request with existing metadata. # # @param [String] id Object identifier of the disk. # @param [Hash{String=>Boolean,DateTime,Fixnum,String}] metadata # @return [Excon::Resp...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_disk.rb
Ruby
mit
4,298
master
4,361
module Fog module Compute class VcloudDirector class Real # Retrieve a disk. # # @param [String] id Object identifier of the disk. # @return [Excon::Response] # * body<~Hash>: # * :href<~String> - The URI of the disk. # * :type<~String> - The...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp_template.rb
Ruby
mit
4,298
master
863
module Fog module Compute class VcloudDirector class Real # Consolidate VM snapshots. # # This operation is asynchronous and returns a task that you can # monitor to track the progress of the request. # # @param [String] id Object identifier of the VM. ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb
Ruby
mit
4,298
master
6,647
module Fog module Compute class VcloudDirector class Real # Retrieves a list of VMs in lease by using REST API general # QueryHandler. # # @param [Hash] options # @option options [String] :sortAsc (Sorted by database ID) Sort # results by attribute-name in a...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_catalog_item.rb
Ruby
mit
4,298
master
1,541
module Fog module Compute class VcloudDirector class Real # Retrieve a catalog item. # # @param [String] id Object identifier of the catalog item. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vc...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb
Ruby
mit
4,298
master
2,311
module Fog module Compute class VcloudDirector class Real extend Fog::Deprecation deprecate :post_vm_poweron, :post_power_on_vapp # Power on a vApp or VM. # # If used on a vApp, powers on all VMs in the vApp. If used on a VM, # powers on the VM. This operatio...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_reconfigure_vm.rb
Ruby
mit
4,298
master
4,179
module Fog module Compute class VcloudDirector class Real # Updates VM configuration. # # This operation is asynchronous and returns a task that you can # monitor to track the progress of the request. # # @param [String] id Object identifier of the VM...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_edge_gateway.rb
Ruby
mit
4,298
master
4,549
module Fog module Compute class VcloudDirector class Real # Retrieve an edge gateway. # # @param [String] id Object identifier of the edge gateway. # @return [Excon::Response] # * body<~Hash>: # # @raise [Fog::Compute::VcloudDirector::Forbidden] ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vdc.rb
Ruby
mit
4,298
master
6,912
module Fog module Compute class VcloudDirector class Real # Retrieve a vDC. # # @param [String] id Object identifier of the vDC. # @return [Excon::Response] # * body<~Hash>: # # @raise [Fog::Compute::VcloudDirector::Forbidden] # # @se...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/put_vm_capabilities.rb
Ruby
mit
4,298
master
1,591
module Fog module Compute class VcloudDirector class Real # Update VM's capabilities. # # @param [String] id Object identifier of the VM. # @param [Hash] options # @option options [Boolean] :MemoryHotAddEnabled True if the virtual # machine supports addition...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_org_settings.rb
Ruby
mit
4,298
master
1,382
module Fog module Compute class VcloudDirector class Real # Retrieve settings for this organization. # # Organization settings are divided into categories. This request # retrieves all categories of organization settings. # # @param [String] id Object identiti...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_reset_vapp.rb
Ruby
mit
4,298
master
1,081
module Fog module Compute class VcloudDirector class Real # Reset a vApp or VM. # # If used on a vApp, resets all VMs in the vApp. If used on a VM, # resets the VM. This operation is available only for a vApp or VM that # is powered on. # # This operat...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_update_media_metadata.rb
Ruby
mit
4,298
master
1,904
module Fog module Compute class VcloudDirector class Real # Merge the metadata provided in the request with existing metadata. # # @param [String] id Object identifier of the media object. # @param [Hash{String=>Boolean,DateTime,Fixnum,String}] metadata # @return [Exc...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_cpu_rasd_item.rb
Ruby
mit
4,298
master
1,984
module Fog module Compute class VcloudDirector class Real extend Fog::Deprecation deprecate :get_vm_cpu, :get_cpu_rasd_item # Retrieve the RASD item that specifies CPU properties of a VM. # # @param [String] id Object identifier of the VM. # @return [Excon::R...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/put_network.rb
Ruby
mit
4,298
master
6,152
module Fog module Compute class VcloudDirector class Real require 'fog/vcloud_director/generators/compute/org_vdc_network' # Update an Org vDC network. # # This operation is asynchronous and returns a task that you can # monitor to track the progress of the request. ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vapps_in_lease_from_query.rb
Ruby
mit
4,298
master
4,721
module Fog module Compute class VcloudDirector class Real # Retrieves a list of vApps by using REST API general QueryHandler. # # @param [Hash] options # @option options [String] :sortAsc (Sorted by database ID) Sort # results by attribute-name in ascending order. a...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_deploy_vapp.rb
Ruby
mit
4,298
master
2,127
module Fog module Compute class VcloudDirector class Real # Deploy a vApp or VM. # # Deployment allocates all resources for the vApp and the virtual # machines it contains. # # This operation is asynchronous and returns a task that you can # monitor to...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata.rb
Ruby
mit
4,298
master
795
module Fog module Compute class VcloudDirector class Real # Retrieve metadata associated with the vApp template or VM. # # @param [String] id Object identifier of the vApp template or VM. # @return [Excon::Response] # * body<~Hash>: # # @see http://p...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_users_from_query.rb
Ruby
mit
4,298
master
4,769
module Fog module Compute class VcloudDirector class Real # Retrieves a list of users for organization the org admin belongs to # by using REST API general QueryHandler. # # @param [Hash] options # @option options [String] :sortAsc (Sorted by database ID) Sort ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_login_session.rb
Ruby
mit
4,298
master
1,553
module Fog module Compute class VcloudDirector class Real # Log in and create a Session object. # # @return [Excon::Response] # * body<~Hash>: # * :href<~String> - The URI of the entity. # * :type<~String> - The MIME type of the entity. # ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_disable_nested_hv.rb
Ruby
mit
4,298
master
876
module Fog module Compute class VcloudDirector class Real # Hide hardware-assisted CPU virtualization from guest OS. # # This operation is asynchronous and returns a task that you can # monitor to track the progress of the request. # # @param [String] id Objec...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/delete_disk.rb
Ruby
mit
4,298
master
1,759
module Fog module Compute class VcloudDirector class Real # Delete a disk. # # This operation is asynchronous and returns a task that you can # monitor to track the progress of the request. # # @param [String] id Object identifier of the disk. # @retur...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/delete_catalog_item_metadata_item_metadata.rb
Ruby
mit
4,298
master
863
module Fog module Compute class VcloudDirector class Real # Delete the specified key and its value from catalog item metadata. # # @param [String] id Object identifier of the catalog item. # @param [String] key Key of the metadata item. # @return [Excon::Response] ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_entity.rb
Ruby
mit
4,298
master
1,485
module Fog module Compute class VcloudDirector class Real # Redirects to the URL of an entity with the given VCD ID. # # @param [String] id # @return [Excon:Response] # * body<~Hash>: # * :href<~String> - The URI of the entity. # * :type<~Str...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_request.rb
Ruby
mit
4,298
master
376
module Fog module Compute class VcloudDirector class Real # This is used for manual testing. # # @api private def get_request(uri) request( :expects => 200, :idempotent => true, :method => 'GET', :path => ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_product_sections_vapp_template.rb
Ruby
mit
4,298
master
839
module Fog module Compute class VcloudDirector class Real # Retrieve a list of ProductSection elements from a vApp template or # VM. # # @param [String] id Object identifier of the vApp template or VM. # @return [Excon::Response] # * body<~Hash>: # ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vapp_template.rb
Ruby
mit
4,298
master
729
module Fog module Compute class VcloudDirector class Real # Retrieve a vApp template. # # @param [String] id Object identifier of the vApp template. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware....
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_suspend_vapp.rb
Ruby
mit
4,298
master
1,093
module Fog module Compute class VcloudDirector class Real # Suspend a vApp or VM. # # If used on a vApp, suspends all VMs in the vApp. If used on a VM, # suspends the VM. This operation is available only for a vApp or VM # that is powered on. # # This ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/put_media_metadata_item_metadata.rb
Ruby
mit
4,298
master
1,883
module Fog module Compute class VcloudDirector class Real # Set the value for the specified metadata key to the value provided, # overwriting any existing value. # # @param [String] id Object identifier of the media object. # @param [String] key Key of the metadata it...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_eject_cd_rom.rb
Ruby
mit
4,298
master
1,330
module Fog module Compute class VcloudDirector class Real # Eject virtual media. # # This operation is asynchronous and returns a task that you can # monitor to track the progress of the request. # # @param [String] id Object identifier of the VM. # @p...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_clone_vapp_template.rb
Ruby
mit
4,298
master
1,979
module Fog module Compute class VcloudDirector class Real # Create a copy of a vApp template. # # The response includes a Task element. You can monitor the task to to # track the creation of the vApp template. # # @param [String] vdc_id Object identifier of th...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/delete_catalog_item.rb
Ruby
mit
4,298
master
610
module Fog module Compute class VcloudDirector class Real # Delete a catalog item. # # @param [String] id Object identifier of the catalog item. # @return [Excon::Response] # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb
Ruby
mit
4,298
master
10,547
module Fog module Compute class VcloudDirector class Real # List operating systems available for use on virtual machines owned by # this organization. # # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topic/com.vmw...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_update_catalog_item_metadata.rb
Ruby
mit
4,298
master
1,936
module Fog module Compute class VcloudDirector class Real # Merge the metadata provided in the request with existing catalog item metadata. # # @param [String] id Object identifier of the catalog item. # @param [Hash{String=>Boolean,DateTime,Fixnum,String}] metadata #...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vm_network.rb
Ruby
mit
4,298
master
2,082
module Fog module Compute class VcloudDirector class Real require 'fog/vcloud_director/parsers/compute/vm_network' # Retrieve the network connection section of a VM. # # @deprecated Use {#get_network_connection_system_section_vapp} # instead. # @todo Log de...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_network_section_vapp_template.rb
Ruby
mit
4,298
master
803
module Fog module Compute class VcloudDirector class Real # Retrieve the network section of a vApp template. # # @param [String] id The object identifier of the vApp template. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.c...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_organizations_from_query.rb
Ruby
mit
4,298
master
4,768
module Fog module Compute class VcloudDirector class Real # Retrieves a list of organizations by using REST API general # QueryHandler. # # @param [Hash] options # @option options [String] :sortAsc (Sorted by database ID) Sort # results by attribute-name in ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_catalog_metadata.rb
Ruby
mit
4,298
master
738
module Fog module Compute class VcloudDirector class Real # Retrieve all catalog metadata. # # @param [String] id Object identifier of the catalog. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.v...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_shadow_vm.rb
Ruby
mit
4,298
master
673
module Fog module Compute class VcloudDirector class Real # Retrieve a shadow VM. # # @param [String] id The object identifier of the shadow VM. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vclo...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb
Ruby
mit
4,298
master
2,932
module Fog module Compute class VcloudDirector class Real # Set the value for the specified metadata key to the value provided, # overwriting any existing value. # # @param [String] id Object identifier of the vApp or VM. # @param [String] key Key of the metadata item...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/delete_media.rb
Ruby
mit
4,298
master
5,746
module Fog module Compute class VcloudDirector class Real # Delete a media object. # # This operation is asynchronous and returns a task that you can # monitor to track the progress of the request. # # @param [String] id Object identifier of the media object. ...