Class: OvirtSDK4::SystemService
- Inherits:
-
Service
- Object
- Service
- OvirtSDK4::SystemService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary (collapse)
-
- (AffinityLabelsService) affinity_labels_service
List all known affinity labels.
-
- (BookmarksService) bookmarks_service
Locates the
bookmarks
service. -
- (ClusterLevelsService) cluster_levels_service
Reference to the service that provides information about the cluster levels supported by the system.
-
- (ClustersService) clusters_service
Locates the
clusters
service. -
- (CpuProfilesService) cpu_profiles_service
Locates the
cpu_profiles
service. -
- (DataCentersService) data_centers_service
Locates the
data_centers
service. -
- (DiskProfilesService) disk_profiles_service
Locates the
disk_profiles
service. -
- (DisksService) disks_service
Locates the
disks
service. -
- (DomainsService) domains_service
Locates the
domains
service. -
- (EventsService) events_service
Locates the
events
service. -
- (ExternalHostProvidersService) external_host_providers_service
Locates the
external_host_providers
service. -
- (Api) get(opts = {})
Returns basic information describing the API, like the product name, the version number and a summary of the number of relevant objects.
-
- (GroupsService) groups_service
Locates the
groups
service. -
- (HostsService) hosts_service
Locates the
hosts
service. -
- (IconsService) icons_service
Locates the
icons
service. -
- (InstanceTypesService) instance_types_service
Locates the
instance_types
service. -
- (JobsService) jobs_service
Locates the
jobs
service. -
- (EngineKatelloErrataService) katello_errata_service
Locates the
katello_errata
service. -
- (MacPoolsService) mac_pools_service
Locates the
mac_pools
service. -
- (NetworkFiltersService) network_filters_service
Network filters will enhance the admin ability to manage the network packets traffic from/to the participated VMs.
-
- (NetworksService) networks_service
Locates the
networks
service. -
- (OpenstackImageProvidersService) openstack_image_providers_service
Locates the
openstack_image_providers
service. -
- (OpenstackNetworkProvidersService) openstack_network_providers_service
Locates the
openstack_network_providers
service. -
- (OpenstackVolumeProvidersService) openstack_volume_providers_service
Locates the
openstack_volume_providers
service. -
- (OperatingSystemsService) operating_systems_service
Locates the
operating_systems
service. -
- (SystemPermissionsService) permissions_service
Locates the
permissions
service. -
- (Object) reload_configurations(opts = {})
Executes the
reload_configurations
method. -
- (RolesService) roles_service
Locates the
roles
service. -
- (SchedulingPoliciesService) scheduling_policies_service
Locates the
scheduling_policies
service. -
- (SchedulingPolicyUnitsService) scheduling_policy_units_service
Locates the
scheduling_policy_units
service. -
- (Service) service(path)
Locates the service corresponding to the given path.
-
- (StorageServerConnectionsService) storage_connections_service
Locates the
storage_connections
service. -
- (StorageDomainsService) storage_domains_service
Locates the
storage_domains
service. -
- (TagsService) tags_service
Locates the
tags
service. -
- (TemplatesService) templates_service
Locates the
templates
service. -
- (String) to_s
Returns an string representation of this service.
-
- (UsersService) users_service
Locates the
users
service. -
- (VmPoolsService) vm_pools_service
Locates the
vm_pools
service. -
- (VmsService) vms_service
Locates the
vms
service. -
- (VnicProfilesService) vnic_profiles_service
Locates the
vnic_profiles
service.
Instance Method Details
- (AffinityLabelsService) affinity_labels_service
List all known affinity labels.
20581 20582 20583 |
# File 'lib/ovirtsdk4/services.rb', line 20581 def affinity_labels_service return AffinityLabelsService.new(@connection, "#{@path}/affinitylabels") end |
- (BookmarksService) bookmarks_service
Locates the bookmarks
service.
20589 20590 20591 |
# File 'lib/ovirtsdk4/services.rb', line 20589 def bookmarks_service return BookmarksService.new(@connection, "#{@path}/bookmarks") end |
- (ClusterLevelsService) cluster_levels_service
Reference to the service that provides information about the cluster levels supported by the system.
20597 20598 20599 |
# File 'lib/ovirtsdk4/services.rb', line 20597 def cluster_levels_service return ClusterLevelsService.new(@connection, "#{@path}/clusterlevels") end |
- (ClustersService) clusters_service
Locates the clusters
service.
20605 20606 20607 |
# File 'lib/ovirtsdk4/services.rb', line 20605 def clusters_service return ClustersService.new(@connection, "#{@path}/clusters") end |
- (CpuProfilesService) cpu_profiles_service
Locates the cpu_profiles
service.
20613 20614 20615 |
# File 'lib/ovirtsdk4/services.rb', line 20613 def cpu_profiles_service return CpuProfilesService.new(@connection, "#{@path}/cpuprofiles") end |
- (DataCentersService) data_centers_service
Locates the data_centers
service.
20621 20622 20623 |
# File 'lib/ovirtsdk4/services.rb', line 20621 def data_centers_service return DataCentersService.new(@connection, "#{@path}/datacenters") end |
- (DiskProfilesService) disk_profiles_service
Locates the disk_profiles
service.
20629 20630 20631 |
# File 'lib/ovirtsdk4/services.rb', line 20629 def disk_profiles_service return DiskProfilesService.new(@connection, "#{@path}/diskprofiles") end |
- (DisksService) disks_service
Locates the disks
service.
20637 20638 20639 |
# File 'lib/ovirtsdk4/services.rb', line 20637 def disks_service return DisksService.new(@connection, "#{@path}/disks") end |
- (DomainsService) domains_service
Locates the domains
service.
20645 20646 20647 |
# File 'lib/ovirtsdk4/services.rb', line 20645 def domains_service return DomainsService.new(@connection, "#{@path}/domains") end |
- (EventsService) events_service
Locates the events
service.
20653 20654 20655 |
# File 'lib/ovirtsdk4/services.rb', line 20653 def events_service return EventsService.new(@connection, "#{@path}/events") end |
- (ExternalHostProvidersService) external_host_providers_service
Locates the external_host_providers
service.
20661 20662 20663 |
# File 'lib/ovirtsdk4/services.rb', line 20661 def external_host_providers_service return ExternalHostProvidersService.new(@connection, "#{@path}/externalhostproviders") end |
- (Api) get(opts = {})
Returns basic information describing the API, like the product name, the version number and a summary of the number of relevant objects.
20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 |
# File 'lib/ovirtsdk4/services.rb', line 20537 def get(opts = {}) query = {} request = Request.new(:method => :GET, :path => @path, :query => query) response = @connection.send(request) case response.code when 200 begin reader = XmlReader.new(response.body) return ApiReader.read_one(reader) ensure reader.close end else check_fault(response) end end |
- (GroupsService) groups_service
Locates the groups
service.
20669 20670 20671 |
# File 'lib/ovirtsdk4/services.rb', line 20669 def groups_service return GroupsService.new(@connection, "#{@path}/groups") end |
- (HostsService) hosts_service
Locates the hosts
service.
20677 20678 20679 |
# File 'lib/ovirtsdk4/services.rb', line 20677 def hosts_service return HostsService.new(@connection, "#{@path}/hosts") end |
- (IconsService) icons_service
Locates the icons
service.
20685 20686 20687 |
# File 'lib/ovirtsdk4/services.rb', line 20685 def icons_service return IconsService.new(@connection, "#{@path}/icons") end |
- (InstanceTypesService) instance_types_service
Locates the instance_types
service.
20693 20694 20695 |
# File 'lib/ovirtsdk4/services.rb', line 20693 def instance_types_service return InstanceTypesService.new(@connection, "#{@path}/instancetypes") end |
- (JobsService) jobs_service
Locates the jobs
service.
20701 20702 20703 |
# File 'lib/ovirtsdk4/services.rb', line 20701 def jobs_service return JobsService.new(@connection, "#{@path}/jobs") end |
- (EngineKatelloErrataService) katello_errata_service
Locates the katello_errata
service.
20709 20710 20711 |
# File 'lib/ovirtsdk4/services.rb', line 20709 def katello_errata_service return EngineKatelloErrataService.new(@connection, "#{@path}/katelloerrata") end |
- (MacPoolsService) mac_pools_service
Locates the mac_pools
service.
20717 20718 20719 |
# File 'lib/ovirtsdk4/services.rb', line 20717 def mac_pools_service return MacPoolsService.new(@connection, "#{@path}/macpools") end |
- (NetworkFiltersService) network_filters_service
Network filters will enhance the admin ability to manage the network packets traffic from/to the participated VMs.
20726 20727 20728 |
# File 'lib/ovirtsdk4/services.rb', line 20726 def network_filters_service return NetworkFiltersService.new(@connection, "#{@path}/networkfilters") end |
- (NetworksService) networks_service
Locates the networks
service.
20734 20735 20736 |
# File 'lib/ovirtsdk4/services.rb', line 20734 def networks_service return NetworksService.new(@connection, "#{@path}/networks") end |
- (OpenstackImageProvidersService) openstack_image_providers_service
Locates the openstack_image_providers
service.
20742 20743 20744 |
# File 'lib/ovirtsdk4/services.rb', line 20742 def openstack_image_providers_service return OpenstackImageProvidersService.new(@connection, "#{@path}/openstackimageproviders") end |
- (OpenstackNetworkProvidersService) openstack_network_providers_service
Locates the openstack_network_providers
service.
20750 20751 20752 |
# File 'lib/ovirtsdk4/services.rb', line 20750 def openstack_network_providers_service return OpenstackNetworkProvidersService.new(@connection, "#{@path}/openstacknetworkproviders") end |
- (OpenstackVolumeProvidersService) openstack_volume_providers_service
Locates the openstack_volume_providers
service.
20758 20759 20760 |
# File 'lib/ovirtsdk4/services.rb', line 20758 def openstack_volume_providers_service return OpenstackVolumeProvidersService.new(@connection, "#{@path}/openstackvolumeproviders") end |
- (OperatingSystemsService) operating_systems_service
Locates the operating_systems
service.
20766 20767 20768 |
# File 'lib/ovirtsdk4/services.rb', line 20766 def return OperatingSystemsService.new(@connection, "#{@path}/operatingsystems") end |
- (SystemPermissionsService) permissions_service
Locates the permissions
service.
20774 20775 20776 |
# File 'lib/ovirtsdk4/services.rb', line 20774 def return SystemPermissionsService.new(@connection, "#{@path}/permissions") end |
- (Object) reload_configurations(opts = {})
Executes the reload_configurations
method.
20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 |
# File 'lib/ovirtsdk4/services.rb', line 20557 def reload_configurations(opts = {}) action = Action.new(opts) writer = XmlWriter.new(nil, true) ActionWriter.write_one(action, writer) body = writer.string writer.close request = Request.new({ :method => :POST, :path => "#{@path}/reloadconfigurations", :body => body, }) response = @connection.send(request) case response.code when 200 action = check_action(response) else check_fault(response) end end |
- (RolesService) roles_service
Locates the roles
service.
20782 20783 20784 |
# File 'lib/ovirtsdk4/services.rb', line 20782 def roles_service return RolesService.new(@connection, "#{@path}/roles") end |
- (SchedulingPoliciesService) scheduling_policies_service
Locates the scheduling_policies
service.
20790 20791 20792 |
# File 'lib/ovirtsdk4/services.rb', line 20790 def scheduling_policies_service return SchedulingPoliciesService.new(@connection, "#{@path}/schedulingpolicies") end |
- (SchedulingPolicyUnitsService) scheduling_policy_units_service
Locates the scheduling_policy_units
service.
20798 20799 20800 |
# File 'lib/ovirtsdk4/services.rb', line 20798 def scheduling_policy_units_service return SchedulingPolicyUnitsService.new(@connection, "#{@path}/schedulingpolicyunits") end |
- (Service) service(path)
Locates the service corresponding to the given path.
20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 |
# File 'lib/ovirtsdk4/services.rb', line 20873 def service(path) if path.nil? || path == '' return self end if path == 'affinitylabels' return affinity_labels_service end if path.start_with?('affinitylabels/') return affinity_labels_service.service(path[15..-1]) end if path == 'bookmarks' return bookmarks_service end if path.start_with?('bookmarks/') return bookmarks_service.service(path[10..-1]) end if path == 'clusterlevels' return cluster_levels_service end if path.start_with?('clusterlevels/') return cluster_levels_service.service(path[14..-1]) end if path == 'clusters' return clusters_service end if path.start_with?('clusters/') return clusters_service.service(path[9..-1]) end if path == 'cpuprofiles' return cpu_profiles_service end if path.start_with?('cpuprofiles/') return cpu_profiles_service.service(path[12..-1]) end if path == 'datacenters' return data_centers_service end if path.start_with?('datacenters/') return data_centers_service.service(path[12..-1]) end if path == 'diskprofiles' return disk_profiles_service end if path.start_with?('diskprofiles/') return disk_profiles_service.service(path[13..-1]) end if path == 'disks' return disks_service end if path.start_with?('disks/') return disks_service.service(path[6..-1]) end if path == 'domains' return domains_service end if path.start_with?('domains/') return domains_service.service(path[8..-1]) end if path == 'events' return events_service end if path.start_with?('events/') return events_service.service(path[7..-1]) end if path == 'externalhostproviders' return external_host_providers_service end if path.start_with?('externalhostproviders/') return external_host_providers_service.service(path[22..-1]) end if path == 'groups' return groups_service end if path.start_with?('groups/') return groups_service.service(path[7..-1]) end if path == 'hosts' return hosts_service end if path.start_with?('hosts/') return hosts_service.service(path[6..-1]) end if path == 'icons' return icons_service end if path.start_with?('icons/') return icons_service.service(path[6..-1]) end if path == 'instancetypes' return instance_types_service end if path.start_with?('instancetypes/') return instance_types_service.service(path[14..-1]) end if path == 'jobs' return jobs_service end if path.start_with?('jobs/') return jobs_service.service(path[5..-1]) end if path == 'katelloerrata' return katello_errata_service end if path.start_with?('katelloerrata/') return katello_errata_service.service(path[14..-1]) end if path == 'macpools' return mac_pools_service end if path.start_with?('macpools/') return mac_pools_service.service(path[9..-1]) end if path == 'networkfilters' return network_filters_service end if path.start_with?('networkfilters/') return network_filters_service.service(path[15..-1]) end if path == 'networks' return networks_service end if path.start_with?('networks/') return networks_service.service(path[9..-1]) end if path == 'openstackimageproviders' return openstack_image_providers_service end if path.start_with?('openstackimageproviders/') return openstack_image_providers_service.service(path[24..-1]) end if path == 'openstacknetworkproviders' return openstack_network_providers_service end if path.start_with?('openstacknetworkproviders/') return openstack_network_providers_service.service(path[26..-1]) end if path == 'openstackvolumeproviders' return openstack_volume_providers_service end if path.start_with?('openstackvolumeproviders/') return openstack_volume_providers_service.service(path[25..-1]) end if path == 'operatingsystems' return end if path.start_with?('operatingsystems/') return .service(path[17..-1]) end if path == 'permissions' return end if path.start_with?('permissions/') return .service(path[12..-1]) end if path == 'roles' return roles_service end if path.start_with?('roles/') return roles_service.service(path[6..-1]) end if path == 'schedulingpolicies' return scheduling_policies_service end if path.start_with?('schedulingpolicies/') return scheduling_policies_service.service(path[19..-1]) end if path == 'schedulingpolicyunits' return scheduling_policy_units_service end if path.start_with?('schedulingpolicyunits/') return scheduling_policy_units_service.service(path[22..-1]) end if path == 'storageconnections' return storage_connections_service end if path.start_with?('storageconnections/') return storage_connections_service.service(path[19..-1]) end if path == 'storagedomains' return storage_domains_service end if path.start_with?('storagedomains/') return storage_domains_service.service(path[15..-1]) end if path == 'tags' return end if path.start_with?('tags/') return .service(path[5..-1]) end if path == 'templates' return templates_service end if path.start_with?('templates/') return templates_service.service(path[10..-1]) end if path == 'users' return users_service end if path.start_with?('users/') return users_service.service(path[6..-1]) end if path == 'vmpools' return vm_pools_service end if path.start_with?('vmpools/') return vm_pools_service.service(path[8..-1]) end if path == 'vms' return vms_service end if path.start_with?('vms/') return vms_service.service(path[4..-1]) end if path == 'vnicprofiles' return vnic_profiles_service end if path.start_with?('vnicprofiles/') return vnic_profiles_service.service(path[13..-1]) end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
- (StorageServerConnectionsService) storage_connections_service
Locates the storage_connections
service.
20806 20807 20808 |
# File 'lib/ovirtsdk4/services.rb', line 20806 def storage_connections_service return StorageServerConnectionsService.new(@connection, "#{@path}/storageconnections") end |
- (StorageDomainsService) storage_domains_service
Locates the storage_domains
service.
20814 20815 20816 |
# File 'lib/ovirtsdk4/services.rb', line 20814 def storage_domains_service return StorageDomainsService.new(@connection, "#{@path}/storagedomains") end |
- (TagsService) tags_service
Locates the tags
service.
20822 20823 20824 |
# File 'lib/ovirtsdk4/services.rb', line 20822 def return TagsService.new(@connection, "#{@path}/tags") end |
- (TemplatesService) templates_service
Locates the templates
service.
20830 20831 20832 |
# File 'lib/ovirtsdk4/services.rb', line 20830 def templates_service return TemplatesService.new(@connection, "#{@path}/templates") end |
- (String) to_s
Returns an string representation of this service.
21101 21102 21103 |
# File 'lib/ovirtsdk4/services.rb', line 21101 def to_s return "#<#{SystemService}:#{@path}>" end |
- (UsersService) users_service
Locates the users
service.
20838 20839 20840 |
# File 'lib/ovirtsdk4/services.rb', line 20838 def users_service return UsersService.new(@connection, "#{@path}/users") end |
- (VmPoolsService) vm_pools_service
Locates the vm_pools
service.
20846 20847 20848 |
# File 'lib/ovirtsdk4/services.rb', line 20846 def vm_pools_service return VmPoolsService.new(@connection, "#{@path}/vmpools") end |
- (VmsService) vms_service
Locates the vms
service.
20854 20855 20856 |
# File 'lib/ovirtsdk4/services.rb', line 20854 def vms_service return VmsService.new(@connection, "#{@path}/vms") end |
- (VnicProfilesService) vnic_profiles_service
Locates the vnic_profiles
service.
20862 20863 20864 |
# File 'lib/ovirtsdk4/services.rb', line 20862 def vnic_profiles_service return VnicProfilesService.new(@connection, "#{@path}/vnicprofiles") end |