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/vcloud_director/requests/compute/post_consolidate_vm_vapp.rb
Ruby
mit
4,298
master
838
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_runtime_info_section_type.rb
Ruby
mit
4,298
master
1,756
module Fog module Compute class VcloudDirector class Real # Retrieve the runtime info section of a VM. # # @param [String] id Object identifier of the VM. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topic/com.v...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_network_metadata_item_metadata.rb
Ruby
mit
4,298
master
879
module Fog module Compute class VcloudDirector class Real # Retrieve the value of the specified key from network metadata. # # @param [String] id Object identifier of the network. # @param [String] key Key of the metadata. # @return [Excon::Response] # * bod...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_exit_maintenance_mode.rb
Ruby
mit
4,298
master
649
module Fog module Compute class VcloudDirector class Real # Take the vApp out of maintenance mode. # # @param [String] id Object identifier of the vApp. # @return [Excon::Response] # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.do...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vcloud.rb
Ruby
mit
4,298
master
3,122
module Fog module Compute class VcloudDirector class Real # Retrieve an administrative view of a cloud. # # The VCloud element provides access to cloud-wide namespace of objects # that an administrator can view and, in most cases, modify. # # @return [Excon:Re...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/put_product_sections.rb
Ruby
mit
4,298
master
1,873
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 # @param [Array] sections List of sections hashes ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_catalogs_from_query.rb
Ruby
mit
4,298
master
4,726
module Fog module Compute class VcloudDirector class Real # Retrieves a list of Catalogs 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...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_detach_disk.rb
Ruby
mit
4,298
master
1,315
module Fog module Compute class VcloudDirector class Real # Detach a disk from a VM. # # 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/post_upload_disk.rb
Ruby
mit
4,298
master
5,365
module Fog module Compute class VcloudDirector class Real # Create a disk. # # @param [String] id Object identifier of the vDC. # @param [String] name The name of the disk. # @param [Integer] size Size of the disk. For modify operation this is # required onl...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_upgrade_hw_version.rb
Ruby
mit
4,298
master
954
module Fog module Compute class VcloudDirector class Real # Upgrade the virtual hardware version of a VM to the highest supported # virtual hardware version of the vDC that contains it. # # This operation is asynchronous and returns a task that you can # monitor to tr...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vdcs_from_query.rb
Ruby
mit
4,298
master
4,702
module Fog module Compute class VcloudDirector class Real # Retrieves a list of vdcs in the organization. # # @param [Hash] options # @option options [String] :sortAsc (Sorted by database ID) Sort # results by attribute-name in ascending order. attribute-name cannot...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb
Ruby
mit
4,298
master
6,194
require 'builder' module Fog module Compute class VcloudDirector class Real require 'fog/vcloud_director/generators/compute/instantiate_vapp_template_params' # Create a vApp from a vApp template. # # The response includes a Task element. You can monitor the task to to ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp_template.rb
Ruby
mit
4,298
master
825
module Fog module Compute class VcloudDirector class Real # Retrieves the lease settings section of a vApp template. # # @param [String] id Object identifier of the vApp template. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmwa...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp_template.rb
Ruby
mit
4,298
master
836
module Fog module Compute class VcloudDirector class Real # Retrieve the network connection 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/t...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_compose_vapp.rb
Ruby
mit
4,298
master
2,126
module Fog module Compute class VcloudDirector class Real require 'fog/vcloud_director/generators/compute/compose_vapp' # Compose a vApp from existing virtual machines. # # This operation is asynchronous and returns a task that you can # monitor to track the progress ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/put_network_connection_system_section_vapp.rb
Ruby
mit
4,298
master
6,458
module Fog module Compute class VcloudDirector class Real extend Fog::Deprecation deprecate :put_vm_network, :put_network_connection_system_section_vapp # Update the network connection section of a VM. # # This operation is asynchronous and returns a task that you ca...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_attach_disk.rb
Ruby
mit
4,298
master
1,933
module Fog module Compute class VcloudDirector class Real # Attach a disk to a VM. # # 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/post_configure_edge_gateway_services.rb
Ruby
mit
4,298
master
2,932
module Fog module Compute class VcloudDirector class Real require 'fog/vcloud_director/generators/compute/edge_gateway_service_configuration' # Configure edge gateway services like firewall, nat and load balancer. # # The response includes a Task element. You can monitor the...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/delete_media_metadata_item_metadata.rb
Ruby
mit
4,298
master
844
module Fog module Compute class VcloudDirector class Real # Delete the specified key and its value from media object metadata. # # @param [String] id Object identifier of the media object. # @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/put_metadata_value.rb
Ruby
mit
4,298
master
923
module Fog module Compute class VcloudDirector class Real # deprecated Use {#put_vapp_metadata_item_metadata} instead. def put_metadata_value(vm_id, metadata_key, metadata_value) Fog::Logger.deprecation("#{self} => ##{put_metadata_value} is deprecated, use ##{put_vapp_metadata_item...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/delete_logout.rb
Ruby
mit
4,298
master
434
module Fog module Compute class VcloudDirector class Real # @return [Excon::Response] # # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/operations/DELETE-Logout.html def delete_logout request( :expects => 204, ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vdc_storage_class.rb
Ruby
mit
4,298
master
3,496
module Fog module Compute class VcloudDirector class Real extend Fog::Deprecation deprecate :get_vdc_storage_profile, :get_vdc_storage_class # Returns storage class referred by the Id. All properties of the # storage classes are visible to vcloud user, except for VDC Storage...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/post_create_catalog_item.rb
Ruby
mit
4,298
master
2,119
module Fog module Compute class VcloudDirector class Real # Add an item to a catalog. # # @param [String] id Object identifier of the catalog. # @param [String] name The name of the entity. # @param [Hash] entity A reference to a VAppTemplate or Media object. ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vdc_metadata.rb
Ruby
mit
4,298
master
733
module Fog module Compute class VcloudDirector class Real # Retrieve metadata associated with a vDC. # # @param [String] id Object identifier of the vDC. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmware.com/vcd-51/topic/com.vm...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_serial_ports_items_list.rb
Ruby
mit
4,298
master
806
module Fog module Compute class VcloudDirector class Real # Retrieve all RASD items that specify serial port properties of a VM. # # @param [String] id Object identifier of the VM. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.vmw...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_template_vms.rb
Ruby
mit
4,298
master
1,208
module Fog module Compute class VcloudDirector class Real require 'fog/vcloud_director/parsers/compute/vms' # Retrieve a vApp or VM. # # @note This should probably be deprecated. # # @param [String] id Object identifier of the vApp or VM. # @return [E...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp_template.rb
Ruby
mit
4,298
master
829
module Fog module Compute class VcloudDirector class Real # Retrieve the network config section of a vApp template. # # @param [String] id The object identifier of the vApp template. # @return [Excon::Response] # * body<~Hash>: # # @see http://pubs.v...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/requests/compute/get_vapp_template_ovf_descriptor.rb
Ruby
mit
4,298
master
753
module Fog module Compute class VcloudDirector class Real # Retrieve the OVF descriptor of a vApp template. # # @param [String] id Object identifier of the vAppTemplate. # @return [Excon::Response] # * body<~String> - the OVF descriptor. # # @see htt...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/disks.rb
Ruby
mit
4,298
master
7,240
module Fog module Generators module Compute module VcloudDirector # This is the data structure it accepts, this is the output of # #get_vm_disks: # # {:disks=> # [{:address=>0, # :description=>"SCSI Controller", # :name=>"SCSI Controller...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb
Ruby
mit
4,298
master
10,656
module Fog module Generators module Compute module VcloudDirector class EdgeGatewayServiceConfiguration def initialize(configuration={}) @configuration = configuration end def generate_xml Nokogiri::XML::Builder.new do |xml| xml.Ed...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/instantiate_vapp_template_params.rb
Ruby
mit
4,298
master
780
require 'fog/vcloud_director/generators/compute/compose_common' module Fog module Generators module Compute module VcloudDirector # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/types/VAppType.html class InstantiateVappTemplateParams attr_read...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/vapp.rb
Ruby
mit
4,298
master
756
module Fog module Generators module Compute module VcloudDirector # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/types/VAppType.html class Vapp attr_reader :name, :options def initialize(name, options={}) @name = name ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/compose_vapp.rb
Ruby
mit
4,298
master
602
require 'fog/vcloud_director/generators/compute/compose_common' module Fog module Generators module Compute module VcloudDirector # @see http://pubs.vmware.com/vcd-51/index.jsp#types/ComposeVAppParamsType.html class ComposeVapp include ComposeCommon def generate_xml ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/compose_common.rb
Ruby
mit
4,298
master
5,947
module Fog module Generators module Compute module VcloudDirector module ComposeCommon def initialize(configuration={}) @configuration = configuration end private def vapp_attrs attrs = { :xmlns => 'http://www.vmware.co...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/create_snapshot.rb
Ruby
mit
4,298
master
750
module Fog module Generators module Compute module VcloudDirector # @see http://pubs.vmware.com/vcd-56/topic/com.vmware.ICbase/PDF/vcd_56_api_guide.pdf @page 121 class CreateSnapshot attr_reader :attrs def initialize(attrs={}) @attrs = attrs end ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/vm.rb
Ruby
mit
4,298
master
998
module Fog module Generators module Compute module VcloudDirector # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/types/VmType.html class Vm attr_reader :attrs def initialize(attrs={}) @attrs = attrs end ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/recompose_vapp.rb
Ruby
mit
4,298
master
872
require 'fog/vcloud_director/generators/compute/compose_common' module Fog module Generators module Compute module VcloudDirector # @see http://pubs.vmware.com/vcd-51/index.jsp#types/RecomposeVAppParamsType.html class RecomposeVapp include ComposeCommon def generate_xm...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/customization.rb
Ruby
mit
4,298
master
4,628
module Fog module Generators module Compute module VcloudDirector # This is the data structure it accepts, this is the output of # #get_vm_customization: # # {:type=>"application/vnd.vmware.vcloud.guestCustomizationSection+xml", # :href=> # "https://e...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/metadata.rb
Ruby
mit
4,298
master
3,359
module Fog module Generators module Compute module VcloudDirector # {:metadata=> # {"buenas si"=>"no tanto ya", # "hola"=>"adios"}, # :type=>"application/vnd.vmware.vcloud.metadata+xml", # :href=> # "https://example.com/api/vApp/vm-18545e82-...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/network_config_section.rb
Ruby
mit
4,298
master
3,165
module Fog module Generators module Compute module VcloudDirector # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/types/NetworkConfigSectionType.html class NetworkConfigSection attr_reader :options def initialize(options={}) ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/org_vdc_network.rb
Ruby
mit
4,298
master
3,780
module Fog module Generators module Compute module VcloudDirector # @see http://pubs.vmware.com/vcd-51/topic/com.vmware.vcloud.api.reference.doc_51/doc/types/OrgVdcNetworkType.html class OrgVdcNetwork attr_reader :options def initialize(options={}) @options =...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/generators/compute/vm_network.rb
Ruby
mit
4,298
master
4,842
module Fog module Generators module Compute module VcloudDirector # This is the data structure it accepts, this is the output of # #get_vm_network # # {:type=>"application/vnd.vmware.vcloud.networkConnectionSection+xml", # :href=> # "https://example.c...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/tag.rb
Ruby
mit
4,298
master
740
require 'fog/core/model' module Fog module Compute class VcloudDirector class Tag < Model identity :id attribute :value def value=(new_value) has_changed = ( value != new_value ) not_first_set = !value.nil? attributes[:value] = new_value if ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/template_vms.rb
Ruby
mit
4,298
master
831
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/vm' module Fog module Compute class VcloudDirector class TemplateVms < Collection include Fog::VcloudDirector::Query model Fog::Compute::VcloudDirector::TemplateVm attribute :vapp_template def get...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vdc.rb
Ruby
mit
4,298
master
1,389
require 'fog/core/model' module Fog module Compute class VcloudDirector class Vdc < Model identity :id attribute :name attribute :type attribute :href attribute :description, :aliases => :Description attribute :available_networks, :aliases => :AvailableNetw...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/disk.rb
Ruby
mit
4,298
master
1,572
require 'fog/core/model' module Fog module Compute class VcloudDirector class Disk < Model # there is no lazy_load in disks identity :id attribute :address attribute :description attribute :name attribute :resource_sub_type attribute :resource_type ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/catalog.rb
Ruby
mit
4,298
master
476
require 'fog/core/model' module Fog module Compute class VcloudDirector class Catalog < Model identity :id attribute :name attribute :type attribute :href attribute :description, :aliases => :Description attribute :is_published, :aliases => :IsPublished, :t...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vm.rb
Ruby
mit
4,298
master
5,855
require 'fog/core/model' require 'fog/vcloud_director/models/compute/vm_customization' module Fog module Compute class VcloudDirector class Vm < Model identity :id attribute :vapp_id attribute :vapp_name attribute :name attribute :type attribute :descriptio...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vapps.rb
Ruby
mit
4,298
master
1,031
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/vapp' module Fog module Compute class VcloudDirector class Vapps < Collection include Fog::VcloudDirector::Query model Fog::Compute::VcloudDirector::Vapp attribute :vdc def query_type "vA...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vms.rb
Ruby
mit
4,298
master
951
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/vm' module Fog module Compute class VcloudDirector class Vms < Collection include Fog::VcloudDirector::Query model Fog::Compute::VcloudDirector::Vm attribute :vapp def get_by_metadata(key, value) ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/networks.rb
Ruby
mit
4,298
master
2,015
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/network' module Fog module Compute class VcloudDirector class Networks < Collection include Fog::VcloudDirector::Query model Fog::Compute::VcloudDirector::Network attribute :organization attribute :...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vm_networks.rb
Ruby
mit
4,298
master
383
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/vm_network' module Fog module Compute class VcloudDirector class VmNetworks < Collection model Fog::Compute::VcloudDirector::VmNetwork attribute :vm def get(id) data = service.get_vm_network(id).bo...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/organization.rb
Ruby
mit
4,298
master
758
require 'fog/core/model' module Fog module Compute class VcloudDirector class Organization < Model identity :id attribute :name attribute :type attribute :href attribute :description, :aliases => :Description attribute :full_name, :aliases => :FullName ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/catalog_items.rb
Ruby
mit
4,298
master
943
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/catalog_item' module Fog module Compute class VcloudDirector class CatalogItems < Collection model Fog::Compute::VcloudDirector::CatalogItem attribute :catalog private def item_list data =...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/custom_field.rb
Ruby
mit
4,298
master
278
require 'fog/core/model' module Fog module Compute class VcloudDirector class CustomField < Model identity :id attribute :value attribute :type attribute :password attribute :user_configurable end end end end
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vapp_templates.rb
Ruby
mit
4,298
master
1,072
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/vapp' module Fog module Compute class VcloudDirector class VappTemplates < Collection include Fog::VcloudDirector::Query model Fog::Compute::VcloudDirector::VappTemplate attribute :vdc def query_ty...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/tags.rb
Ruby
mit
4,298
master
922
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/tag' module Fog module Compute class VcloudDirector class Tags < Collection model Fog::Compute::VcloudDirector::Tag attribute :vm def get_by_name(tag_name) get(tag_name) end def ge...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/template_vm.rb
Ruby
mit
4,298
master
1,219
require 'fog/core/model' require 'fog/vcloud_director/models/compute/vm_customization' module Fog module Compute class VcloudDirector class TemplateVm < Model identity :id attribute :vapp_template_id attribute :vapp_template_name attribute :name attribute :type ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/task.rb
Ruby
mit
4,298
master
1,799
require 'fog/core/model' module Fog module Compute class VcloudDirector class Task < Fog::Model identity :id attribute :href attribute :type attribute :name attribute :end_time, :aliases => :endTime, :type => :time attribute :expiry_time, :aliases => :expir...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/disks.rb
Ruby
mit
4,298
master
1,242
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/disk' module Fog module Compute class VcloudDirector class Disks < Collection model Fog::Compute::VcloudDirector::Disk attribute :vm def create(size) item_list unless @disks data = Fog::G...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/network.rb
Ruby
mit
4,298
master
530
require 'fog/core/model' module Fog module Compute class VcloudDirector class Network < Model identity :id attribute :name attribute :type attribute :href attribute :description attribute :is_inherited attribute :is_shared attribute :fence_m...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vm_network.rb
Ruby
mit
4,298
master
667
require 'fog/core/model' module Fog module Compute class VcloudDirector class VmNetwork < Model identity :id attribute :type attribute :href attribute :info attribute :primary_network_connection_index attribute :network attribute :needs_customizatio...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vdcs.rb
Ruby
mit
4,298
master
916
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/vdc' module Fog module Compute class VcloudDirector class Vdcs < Collection include Fog::VcloudDirector::Query model Fog::Compute::VcloudDirector::Vdc attribute :organization def query_type ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/custom_fields.rb
Ruby
mit
4,298
master
2,030
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/custom_field' module Fog module Compute class VcloudDirector class CustomFields < Collection model Fog::Compute::VcloudDirector::CustomField attribute :vapp def get_by_id(item_id) item_list.detect...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vapp.rb
Ruby
mit
4,298
master
4,648
require 'fog/core/model' module Fog module Compute class VcloudDirector class Vapp < Model identity :id attribute :name attribute :type attribute :href attribute :description, :aliases => :Description attribute :deployed, :type => :boolean attribute...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/tasks.rb
Ruby
mit
4,298
master
765
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/task' module Fog module Compute class VcloudDirector class Tasks < Collection include Fog::VcloudDirector::Query model Fog::Compute::VcloudDirector::Task attribute :organization def query_type ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/organizations.rb
Ruby
mit
4,298
master
648
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/organization' module Fog module Compute class VcloudDirector class Organizations < Collection model Fog::Compute::VcloudDirector::Organization private def get_by_id(org_id) org = service.get_organi...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vapp_template.rb
Ruby
mit
4,298
master
749
require 'fog/core/model' module Fog module Compute class VcloudDirector class VappTemplate < Model identity :id attribute :name attribute :type attribute :href attribute :description, :aliases => :Description attribute :status attribute :lease_setti...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vm_customization.rb
Ruby
mit
4,298
master
1,088
require 'fog/core/model' module Fog module Compute class VcloudDirector class VmCustomization < Model identity :id attribute :type attribute :href attribute :enabled attribute :change_sid attribute :join_domain_enabled attribute :use_org_settings ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/catalog_item.rb
Ruby
mit
4,298
master
796
require 'fog/core/model' module Fog module Compute class VcloudDirector class CatalogItem < Model identity :id attribute :name attribute :type attribute :href attribute :description, :aliases => :Description attribute :vapp_template_id def...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/vm_customizations.rb
Ruby
mit
4,298
master
828
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/vm_customization' module Fog module Compute class VcloudDirector class VmCustomizations < Collection model Fog::Compute::VcloudDirector::VmCustomization attribute :vm private def get_by_id(item_id) ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/medias.rb
Ruby
mit
4,298
master
2,363
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/media' module Fog module Compute class VcloudDirector class Medias < Collection model Fog::Compute::VcloudDirector::Media attribute :vdc # @param [String] name The name of the entity. # @param [#read...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/catalogs.rb
Ruby
mit
4,298
master
822
require 'fog/core/collection' require 'fog/vcloud_director/models/compute/catalog' module Fog module Compute class VcloudDirector class Catalogs < Collection model Fog::Compute::VcloudDirector::Catalog attribute :organization private def get_by_id(item_id) item ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/models/compute/media.rb
Ruby
mit
4,298
master
603
require 'fog/core/model' module Fog module Compute class VcloudDirector class Media < Model identity :id attribute :href attribute :type attribute :name attribute :status, :type => :integer attribute :image_type, :aliases => :imageType attribute :si...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/metadata.rb
Ruby
mit
4,298
master
3,464
module Fog module Parsers module Compute module VcloudDirector # # <Metadata xmlns="http://www.vmware.com/vcloud/v1.5" type="application/vnd.vmware.vcloud.metadata+xml" href="https://example.com/api/vApp/vm-18545e82-d919-4071-ae7e-d1300d9d8112/metadata" xmlns:xsi="http://www.w3.org/2001/XMLS...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/network.rb
Ruby
mit
4,298
master
4,637
module Fog module Parsers module Compute module VcloudDirector # #{:xmlns=>"http://www.vmware.com/vcloud/v1.5", # :xmlns_xsi=>"http://www.w3.org/2001/XMLSchema-instance", # :name=>"DevOps - Dev Network Connection", # :id=>"urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/vm.rb
Ruby
mit
4,298
master
2,871
require 'fog/vcloud_director/parsers/compute/vm_parser_helper' module Fog module Parsers module Compute module VcloudDirector class Vm < VcloudDirectorParser include VmParserHelper def reset @in_operating_system = false @in_children = false @...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/vms_by_metadata.rb
Ruby
mit
4,298
master
1,518
module Fog module Parsers module Compute module VcloudDirector class VmsByMetadata < VcloudDirectorParser def reset @response = { :vm_records => [] } end def start_element(name, attributes) super case name when 'QueryResu...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/vms.rb
Ruby
mit
4,298
master
1,980
require 'fog/vcloud_director/parsers/compute/vm_parser_helper' module Fog module Parsers module Compute module VcloudDirector class Vms < VcloudDirectorParser include VmParserHelper def reset @vm = { :ip_address => '' } @in_operating_system = false ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/disks.rb
Ruby
mit
4,298
master
1,555
module Fog module Parsers module Compute module VcloudDirector class Disks < VcloudDirectorParser def reset @disk = {} @response = { :disks => [] } @host_resource = nil end def start_element(name, attributes) super ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/vm_network.rb
Ruby
mit
4,298
master
4,908
module Fog module Parsers module Compute module VcloudDirector # #{:xmlns=>"http://www.vmware.com/vcloud/v1.5", # :xmlns_xsi=>"http://www.w3.org/2001/XMLSchema-instance", # :name=>"DevOps - Dev Network Connection", # :id=>"urn:vcloud:network:d5f47bbf-de27-4cf5-aaaa-56...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/vm_parser_helper.rb
Ruby
mit
4,298
master
1,993
module Fog module Parsers module Compute module VcloudDirector module VmParserHelper def parse_end_element(name, vm) case name when 'IpAddress' vm[:ip_address] = value when 'Description' if @in_operating_system ...
github
fog/fog
https://github.com/fog/fog
lib/fog/vcloud_director/parsers/compute/vm_customization.rb
Ruby
mit
4,298
master
2,114
module Fog module Parsers module Compute module VcloudDirector class VmCustomization < VcloudDirectorParser def reset @response = { } end def start_element(name, attributes) super case name when 'GuestCustomizationSection...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/core.rb
Ruby
mit
4,298
master
1,070
require 'fog/core' require 'fog/json' module Fog module Clodo extend Fog::Provider service(:compute, 'Compute') def self.authenticate(options) clodo_auth_url = options[:clodo_auth_url] || "api.clodo.ru" url = clodo_auth_url.match(/^https?:/) ? \ clodo_auth_url : 'https://' +...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/compute.rb
Ruby
mit
4,298
master
4,502
require 'fog/clodo/core' module Fog module Compute class Clodo < Fog::Service requires :clodo_api_key, :clodo_username recognizes :clodo_auth_url, :persistent recognizes :clodo_auth_token, :clodo_management_url model_path 'fog/clodo/models/compute' model :image collecti...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/reboot_server.rb
Ruby
mit
4,298
master
349
module Fog module Compute class Clodo class Real def reboot_server(id, type) body = {'reboot' => {}} server_action(id, body) end end class Mock def reboot_server(id, type) body = {'reboot' => {}} server_action(id, body) end...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/delete_ip_address.rb
Ruby
mit
4,298
master
1,173
module Fog module Compute class Clodo class Real # Delete IP-address from specified server # ==== Parameters # * server_id<~Integer> - Id of server to delete IP from # * ip<~String> - IP-address to delete # # ==== Returns # * response<~Excon::Response>...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/get_server_details.rb
Ruby
mit
4,298
master
1,420
module Fog module Compute class Clodo class Real # Get details about a server # # ==== Parameters # * server_id<~Integer> - Id of server to get details for # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'serve...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/start_server.rb
Ruby
mit
4,298
master
333
module Fog module Compute class Clodo class Real def start_server(id) body = {'start' => {}} server_action(id, body) end end class Mock def start_server(id) body = {'start' => {}} server_action(id, body) end end e...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/delete_server.rb
Ruby
mit
4,298
master
1,072
module Fog module Compute class Clodo class Real # Delete an existing server # # ==== Parameters # * id<~Integer> - Id of server to delete # def delete_server(server_id) request( :expects => 204, :method => 'DELETE', ...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/list_images_detail.rb
Ruby
mit
4,298
master
1,875
module Fog module Compute class Clodo class Real # List all images # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'os_type'<~String> - OS distribution # * 'os_bits'<~Integer> - OS bits # * 'os_hvm'<~Integer>...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/create_server.rb
Ruby
mit
4,298
master
3,995
module Fog module Compute class Clodo class Real # Input: # vps_title - VDS title to display in VDS list # vps_type - VDS type (VirtualServer,ScaleServer) # vps_memory - memory size in megabytes (for ScaleServer - low limit) # vps_memory_max - maximum number of ScaleS...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/list_servers_detail.rb
Ruby
mit
4,298
master
1,333
module Fog module Compute class Clodo class Real # List all servers details # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'servers'<~Array>: # * 'id'<~Integer> - Id of server # * 'name<~String> - Name of serv...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/get_image_details.rb
Ruby
mit
4,298
master
438
module Fog module Compute class Clodo class Real def get_image_details(image_id) request(:expects => [200,203], :method => 'GET', :path => "images/#{image_id}") end end class Mock def get_image_details(image_id) resp...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/add_ip_address.rb
Ruby
mit
4,298
master
1,299
module Fog module Compute class Clodo class Real # Bye new IP-address for specified server # ==== Parameters # * server_id<~Integer> - Id of server to bye IP for # # ==== Returns # * response<~Excon::Response> # def add_ip_address(server_id) ...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/server_action.rb
Ruby
mit
4,298
master
601
module Fog module Compute class Clodo class Real def server_action(id, action) request( :body => Fog::JSON.encode(action), :expects => [204], :method => 'POST', :path => "servers/#{id}/action") end ...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/rebuild_server.rb
Ruby
mit
4,298
master
549
module Fog module Compute class Clodo class Real def rebuild_server(id, image_id, vps_isp = nil) body = {'rebuild' => {'imageId' => image_id}} body['rebuild']['vps_isp'] = vps_isp if vps_isp server_action(id, body) end end class Mock def reb...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/list_servers.rb
Ruby
mit
4,298
master
1,512
module Fog module Compute class Clodo class Real # List all servers (IDs and names only) # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'servers'<~Array>: # * 'id'<~String> - Id of server # * 'name'<~String> -...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/stop_server.rb
Ruby
mit
4,298
master
329
module Fog module Compute class Clodo class Real def stop_server(id) body = {'stop' => {}} server_action(id, body) end end class Mock def stop_server(id) body = {'stop' => {}} server_action(id, body) end end end ...
github
fog/fog
https://github.com/fog/fog
lib/fog/clodo/requests/compute/list_images.rb
Ruby
mit
4,298
master
1,318
module Fog module Compute class Clodo class Real # List all images (IDs and names only) # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'id'<~Integer> - Id of the image # * 'name'<~String> - Name of the image # ...