ovirt-engine-sdk 4.1.8 → 4.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGES.adoc +21 -0
 - data/README.adoc +47 -20
 - data/ext/ovirtsdk4c/ov_http_client.c +7 -3
 - data/lib/ovirtsdk4/connection.rb +91 -55
 - data/lib/ovirtsdk4/reader.rb +3 -3
 - data/lib/ovirtsdk4/readers.rb +193 -0
 - data/lib/ovirtsdk4/service.rb +65 -30
 - data/lib/ovirtsdk4/services.rb +1131 -559
 - data/lib/ovirtsdk4/types.rb +418 -0
 - data/lib/ovirtsdk4/version.rb +1 -1
 - data/lib/ovirtsdk4/writers.rb +69 -0
 - metadata +2 -2
 
    
        data/lib/ovirtsdk4/types.rb
    CHANGED
    
    | 
         @@ -170,6 +170,9 @@ module OvirtSDK4 
     | 
|
| 
       170 
170 
     | 
    
         
             
              class Ksm < Struct
         
     | 
| 
       171 
171 
     | 
    
         
             
              end
         
     | 
| 
       172 
172 
     | 
    
         | 
| 
      
 173 
     | 
    
         
            +
              class LinkLayerDiscoveryProtocolElement < Identified
         
     | 
| 
      
 174 
     | 
    
         
            +
              end
         
     | 
| 
      
 175 
     | 
    
         
            +
              
         
     | 
| 
       173 
176 
     | 
    
         
             
              class LogicalUnit < Struct
         
     | 
| 
       174 
177 
     | 
    
         
             
              end
         
     | 
| 
       175 
178 
     | 
    
         | 
| 
         @@ -473,6 +476,9 @@ module OvirtSDK4 
     | 
|
| 
       473 
476 
     | 
    
         
             
              class Cluster < Identified
         
     | 
| 
       474 
477 
     | 
    
         
             
              end
         
     | 
| 
       475 
478 
     | 
    
         | 
| 
      
 479 
     | 
    
         
            +
              class ClusterFeature < Identified
         
     | 
| 
      
 480 
     | 
    
         
            +
              end
         
     | 
| 
      
 481 
     | 
    
         
            +
              
         
     | 
| 
       476 
482 
     | 
    
         
             
              class ClusterLevel < Identified
         
     | 
| 
       477 
483 
     | 
    
         
             
              end
         
     | 
| 
       478 
484 
     | 
    
         | 
| 
         @@ -7695,6 +7701,216 @@ module OvirtSDK4 
     | 
|
| 
       7695 
7701 
     | 
    
         | 
| 
       7696 
7702 
     | 
    
         
             
              end
         
     | 
| 
       7697 
7703 
     | 
    
         | 
| 
      
 7704 
     | 
    
         
            +
              class LinkLayerDiscoveryProtocolElement < Identified
         
     | 
| 
      
 7705 
     | 
    
         
            +
                
         
     | 
| 
      
 7706 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7707 
     | 
    
         
            +
                # Returns the value of the `comment` attribute.
         
     | 
| 
      
 7708 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7709 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 7710 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7711 
     | 
    
         
            +
                def comment
         
     | 
| 
      
 7712 
     | 
    
         
            +
                  @comment
         
     | 
| 
      
 7713 
     | 
    
         
            +
                end
         
     | 
| 
      
 7714 
     | 
    
         
            +
                
         
     | 
| 
      
 7715 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7716 
     | 
    
         
            +
                # Sets the value of the `comment` attribute.
         
     | 
| 
      
 7717 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7718 
     | 
    
         
            +
                # @param value [String]
         
     | 
| 
      
 7719 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7720 
     | 
    
         
            +
                def comment=(value)
         
     | 
| 
      
 7721 
     | 
    
         
            +
                  @comment = value
         
     | 
| 
      
 7722 
     | 
    
         
            +
                end
         
     | 
| 
      
 7723 
     | 
    
         
            +
                
         
     | 
| 
      
 7724 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7725 
     | 
    
         
            +
                # Returns the value of the `description` attribute.
         
     | 
| 
      
 7726 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7727 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 7728 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7729 
     | 
    
         
            +
                def description
         
     | 
| 
      
 7730 
     | 
    
         
            +
                  @description
         
     | 
| 
      
 7731 
     | 
    
         
            +
                end
         
     | 
| 
      
 7732 
     | 
    
         
            +
                
         
     | 
| 
      
 7733 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7734 
     | 
    
         
            +
                # Sets the value of the `description` attribute.
         
     | 
| 
      
 7735 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7736 
     | 
    
         
            +
                # @param value [String]
         
     | 
| 
      
 7737 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7738 
     | 
    
         
            +
                def description=(value)
         
     | 
| 
      
 7739 
     | 
    
         
            +
                  @description = value
         
     | 
| 
      
 7740 
     | 
    
         
            +
                end
         
     | 
| 
      
 7741 
     | 
    
         
            +
                
         
     | 
| 
      
 7742 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7743 
     | 
    
         
            +
                # Returns the value of the `id` attribute.
         
     | 
| 
      
 7744 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7745 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 7746 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7747 
     | 
    
         
            +
                def id
         
     | 
| 
      
 7748 
     | 
    
         
            +
                  @id
         
     | 
| 
      
 7749 
     | 
    
         
            +
                end
         
     | 
| 
      
 7750 
     | 
    
         
            +
                
         
     | 
| 
      
 7751 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7752 
     | 
    
         
            +
                # Sets the value of the `id` attribute.
         
     | 
| 
      
 7753 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7754 
     | 
    
         
            +
                # @param value [String]
         
     | 
| 
      
 7755 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7756 
     | 
    
         
            +
                def id=(value)
         
     | 
| 
      
 7757 
     | 
    
         
            +
                  @id = value
         
     | 
| 
      
 7758 
     | 
    
         
            +
                end
         
     | 
| 
      
 7759 
     | 
    
         
            +
                
         
     | 
| 
      
 7760 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7761 
     | 
    
         
            +
                # Returns the value of the `name` attribute.
         
     | 
| 
      
 7762 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7763 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 7764 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7765 
     | 
    
         
            +
                def name
         
     | 
| 
      
 7766 
     | 
    
         
            +
                  @name
         
     | 
| 
      
 7767 
     | 
    
         
            +
                end
         
     | 
| 
      
 7768 
     | 
    
         
            +
                
         
     | 
| 
      
 7769 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7770 
     | 
    
         
            +
                # Sets the value of the `name` attribute.
         
     | 
| 
      
 7771 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7772 
     | 
    
         
            +
                # @param value [String]
         
     | 
| 
      
 7773 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7774 
     | 
    
         
            +
                def name=(value)
         
     | 
| 
      
 7775 
     | 
    
         
            +
                  @name = value
         
     | 
| 
      
 7776 
     | 
    
         
            +
                end
         
     | 
| 
      
 7777 
     | 
    
         
            +
                
         
     | 
| 
      
 7778 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7779 
     | 
    
         
            +
                # Returns the value of the `oui` attribute.
         
     | 
| 
      
 7780 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7781 
     | 
    
         
            +
                # @return [Integer]
         
     | 
| 
      
 7782 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7783 
     | 
    
         
            +
                def oui
         
     | 
| 
      
 7784 
     | 
    
         
            +
                  @oui
         
     | 
| 
      
 7785 
     | 
    
         
            +
                end
         
     | 
| 
      
 7786 
     | 
    
         
            +
                
         
     | 
| 
      
 7787 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7788 
     | 
    
         
            +
                # Sets the value of the `oui` attribute.
         
     | 
| 
      
 7789 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7790 
     | 
    
         
            +
                # @param value [Integer]
         
     | 
| 
      
 7791 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7792 
     | 
    
         
            +
                def oui=(value)
         
     | 
| 
      
 7793 
     | 
    
         
            +
                  @oui = value
         
     | 
| 
      
 7794 
     | 
    
         
            +
                end
         
     | 
| 
      
 7795 
     | 
    
         
            +
                
         
     | 
| 
      
 7796 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7797 
     | 
    
         
            +
                # Returns the value of the `properties` attribute.
         
     | 
| 
      
 7798 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7799 
     | 
    
         
            +
                # @return [Array<Property>]
         
     | 
| 
      
 7800 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7801 
     | 
    
         
            +
                def properties
         
     | 
| 
      
 7802 
     | 
    
         
            +
                  @properties
         
     | 
| 
      
 7803 
     | 
    
         
            +
                end
         
     | 
| 
      
 7804 
     | 
    
         
            +
                
         
     | 
| 
      
 7805 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7806 
     | 
    
         
            +
                # Sets the value of the `properties` attribute.
         
     | 
| 
      
 7807 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7808 
     | 
    
         
            +
                # @param list [Array<Property>]
         
     | 
| 
      
 7809 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7810 
     | 
    
         
            +
                def properties=(list)
         
     | 
| 
      
 7811 
     | 
    
         
            +
                  if list.class == Array
         
     | 
| 
      
 7812 
     | 
    
         
            +
                    list = List.new(list)
         
     | 
| 
      
 7813 
     | 
    
         
            +
                    list.each_with_index do |value, index|
         
     | 
| 
      
 7814 
     | 
    
         
            +
                      if value.is_a?(Hash)
         
     | 
| 
      
 7815 
     | 
    
         
            +
                        list[index] = Property.new(value)
         
     | 
| 
      
 7816 
     | 
    
         
            +
                      end
         
     | 
| 
      
 7817 
     | 
    
         
            +
                    end
         
     | 
| 
      
 7818 
     | 
    
         
            +
                  end
         
     | 
| 
      
 7819 
     | 
    
         
            +
                  @properties = list
         
     | 
| 
      
 7820 
     | 
    
         
            +
                end
         
     | 
| 
      
 7821 
     | 
    
         
            +
                
         
     | 
| 
      
 7822 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7823 
     | 
    
         
            +
                # Returns the value of the `subtype` attribute.
         
     | 
| 
      
 7824 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7825 
     | 
    
         
            +
                # @return [Integer]
         
     | 
| 
      
 7826 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7827 
     | 
    
         
            +
                def subtype
         
     | 
| 
      
 7828 
     | 
    
         
            +
                  @subtype
         
     | 
| 
      
 7829 
     | 
    
         
            +
                end
         
     | 
| 
      
 7830 
     | 
    
         
            +
                
         
     | 
| 
      
 7831 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7832 
     | 
    
         
            +
                # Sets the value of the `subtype` attribute.
         
     | 
| 
      
 7833 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7834 
     | 
    
         
            +
                # @param value [Integer]
         
     | 
| 
      
 7835 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7836 
     | 
    
         
            +
                def subtype=(value)
         
     | 
| 
      
 7837 
     | 
    
         
            +
                  @subtype = value
         
     | 
| 
      
 7838 
     | 
    
         
            +
                end
         
     | 
| 
      
 7839 
     | 
    
         
            +
                
         
     | 
| 
      
 7840 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7841 
     | 
    
         
            +
                # Returns the value of the `type` attribute.
         
     | 
| 
      
 7842 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7843 
     | 
    
         
            +
                # @return [Integer]
         
     | 
| 
      
 7844 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7845 
     | 
    
         
            +
                def type
         
     | 
| 
      
 7846 
     | 
    
         
            +
                  @type
         
     | 
| 
      
 7847 
     | 
    
         
            +
                end
         
     | 
| 
      
 7848 
     | 
    
         
            +
                
         
     | 
| 
      
 7849 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7850 
     | 
    
         
            +
                # Sets the value of the `type` attribute.
         
     | 
| 
      
 7851 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7852 
     | 
    
         
            +
                # @param value [Integer]
         
     | 
| 
      
 7853 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7854 
     | 
    
         
            +
                def type=(value)
         
     | 
| 
      
 7855 
     | 
    
         
            +
                  @type = value
         
     | 
| 
      
 7856 
     | 
    
         
            +
                end
         
     | 
| 
      
 7857 
     | 
    
         
            +
                
         
     | 
| 
      
 7858 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7859 
     | 
    
         
            +
                # Creates a new instance of the {LinkLayerDiscoveryProtocolElement} class.
         
     | 
| 
      
 7860 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7861 
     | 
    
         
            +
                # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
         
     | 
| 
      
 7862 
     | 
    
         
            +
                #   should be symbols corresponding to the names of the attributes. The values of the hash
         
     | 
| 
      
 7863 
     | 
    
         
            +
                #   should be the values of the attributes.
         
     | 
| 
      
 7864 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7865 
     | 
    
         
            +
                # @option opts [String] :comment The value of attribute `comment`.
         
     | 
| 
      
 7866 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7867 
     | 
    
         
            +
                # @option opts [String] :description The value of attribute `description`.
         
     | 
| 
      
 7868 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7869 
     | 
    
         
            +
                # @option opts [String] :id The value of attribute `id`.
         
     | 
| 
      
 7870 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7871 
     | 
    
         
            +
                # @option opts [String] :name The value of attribute `name`.
         
     | 
| 
      
 7872 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7873 
     | 
    
         
            +
                # @option opts [Integer] :oui The value of attribute `oui`.
         
     | 
| 
      
 7874 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7875 
     | 
    
         
            +
                # @option opts [Array<Property>, Array<Hash>] :properties The values of attribute `properties`.
         
     | 
| 
      
 7876 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7877 
     | 
    
         
            +
                # @option opts [Integer] :subtype The value of attribute `subtype`.
         
     | 
| 
      
 7878 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7879 
     | 
    
         
            +
                # @option opts [Integer] :type The value of attribute `type`.
         
     | 
| 
      
 7880 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7881 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7882 
     | 
    
         
            +
                def initialize(opts = {})
         
     | 
| 
      
 7883 
     | 
    
         
            +
                  super(opts)
         
     | 
| 
      
 7884 
     | 
    
         
            +
                  self.oui = opts[:oui]
         
     | 
| 
      
 7885 
     | 
    
         
            +
                  self.properties = opts[:properties]
         
     | 
| 
      
 7886 
     | 
    
         
            +
                  self.subtype = opts[:subtype]
         
     | 
| 
      
 7887 
     | 
    
         
            +
                  self.type = opts[:type]
         
     | 
| 
      
 7888 
     | 
    
         
            +
                end
         
     | 
| 
      
 7889 
     | 
    
         
            +
                
         
     | 
| 
      
 7890 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7891 
     | 
    
         
            +
                # Returns `true` if `self` and `other` have the same attributes and values.
         
     | 
| 
      
 7892 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7893 
     | 
    
         
            +
                def ==(other)
         
     | 
| 
      
 7894 
     | 
    
         
            +
                  super &&
         
     | 
| 
      
 7895 
     | 
    
         
            +
                  @oui == other.oui &&
         
     | 
| 
      
 7896 
     | 
    
         
            +
                  @properties == other.properties &&
         
     | 
| 
      
 7897 
     | 
    
         
            +
                  @subtype == other.subtype &&
         
     | 
| 
      
 7898 
     | 
    
         
            +
                  @type == other.type
         
     | 
| 
      
 7899 
     | 
    
         
            +
                end
         
     | 
| 
      
 7900 
     | 
    
         
            +
                
         
     | 
| 
      
 7901 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7902 
     | 
    
         
            +
                # Generates a hash value for this object.
         
     | 
| 
      
 7903 
     | 
    
         
            +
                # 
         
     | 
| 
      
 7904 
     | 
    
         
            +
                def hash
         
     | 
| 
      
 7905 
     | 
    
         
            +
                  super +
         
     | 
| 
      
 7906 
     | 
    
         
            +
                  @oui.hash +
         
     | 
| 
      
 7907 
     | 
    
         
            +
                  @properties.hash +
         
     | 
| 
      
 7908 
     | 
    
         
            +
                  @subtype.hash +
         
     | 
| 
      
 7909 
     | 
    
         
            +
                  @type.hash
         
     | 
| 
      
 7910 
     | 
    
         
            +
                end
         
     | 
| 
      
 7911 
     | 
    
         
            +
                
         
     | 
| 
      
 7912 
     | 
    
         
            +
              end
         
     | 
| 
      
 7913 
     | 
    
         
            +
              
         
     | 
| 
       7698 
7914 
     | 
    
         
             
              class LogicalUnit < Struct
         
     | 
| 
       7699 
7915 
     | 
    
         | 
| 
       7700 
7916 
     | 
    
         
             
                # 
         
     | 
| 
         @@ -28861,6 +29077,32 @@ module OvirtSDK4 
     | 
|
| 
       28861 
29077 
     | 
    
         
             
                  @display = value
         
     | 
| 
       28862 
29078 
     | 
    
         
             
                end
         
     | 
| 
       28863 
29079 
     | 
    
         | 
| 
      
 29080 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29081 
     | 
    
         
            +
                # Returns the value of the `enabled_features` attribute.
         
     | 
| 
      
 29082 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29083 
     | 
    
         
            +
                # @return [Array<ClusterFeature>]
         
     | 
| 
      
 29084 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29085 
     | 
    
         
            +
                def enabled_features
         
     | 
| 
      
 29086 
     | 
    
         
            +
                  @enabled_features
         
     | 
| 
      
 29087 
     | 
    
         
            +
                end
         
     | 
| 
      
 29088 
     | 
    
         
            +
                
         
     | 
| 
      
 29089 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29090 
     | 
    
         
            +
                # Sets the value of the `enabled_features` attribute.
         
     | 
| 
      
 29091 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29092 
     | 
    
         
            +
                # @param list [Array<ClusterFeature>]
         
     | 
| 
      
 29093 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29094 
     | 
    
         
            +
                def enabled_features=(list)
         
     | 
| 
      
 29095 
     | 
    
         
            +
                  if list.class == Array
         
     | 
| 
      
 29096 
     | 
    
         
            +
                    list = List.new(list)
         
     | 
| 
      
 29097 
     | 
    
         
            +
                    list.each_with_index do |value, index|
         
     | 
| 
      
 29098 
     | 
    
         
            +
                      if value.is_a?(Hash)
         
     | 
| 
      
 29099 
     | 
    
         
            +
                        list[index] = ClusterFeature.new(value)
         
     | 
| 
      
 29100 
     | 
    
         
            +
                      end
         
     | 
| 
      
 29101 
     | 
    
         
            +
                    end
         
     | 
| 
      
 29102 
     | 
    
         
            +
                  end
         
     | 
| 
      
 29103 
     | 
    
         
            +
                  @enabled_features = list
         
     | 
| 
      
 29104 
     | 
    
         
            +
                end
         
     | 
| 
      
 29105 
     | 
    
         
            +
                
         
     | 
| 
       28864 
29106 
     | 
    
         
             
                # 
         
     | 
| 
       28865 
29107 
     | 
    
         
             
                # Returns the value of the `error_handling` attribute.
         
     | 
| 
       28866 
29108 
     | 
    
         
             
                # 
         
     | 
| 
         @@ -29526,6 +29768,8 @@ module OvirtSDK4 
     | 
|
| 
       29526 
29768 
     | 
    
         
             
                # 
         
     | 
| 
       29527 
29769 
     | 
    
         
             
                # @option opts [Display, Hash] :display The value of attribute `display`.
         
     | 
| 
       29528 
29770 
     | 
    
         
             
                # 
         
     | 
| 
      
 29771 
     | 
    
         
            +
                # @option opts [Array<ClusterFeature>, Array<Hash>] :enabled_features The values of attribute `enabled_features`.
         
     | 
| 
      
 29772 
     | 
    
         
            +
                # 
         
     | 
| 
       29529 
29773 
     | 
    
         
             
                # @option opts [ErrorHandling, Hash] :error_handling The value of attribute `error_handling`.
         
     | 
| 
       29530 
29774 
     | 
    
         
             
                # 
         
     | 
| 
       29531 
29775 
     | 
    
         
             
                # @option opts [FencingPolicy, Hash] :fencing_policy The value of attribute `fencing_policy`.
         
     | 
| 
         @@ -29594,6 +29838,7 @@ module OvirtSDK4 
     | 
|
| 
       29594 
29838 
     | 
    
         
             
                  self.custom_scheduling_policy_properties = opts[:custom_scheduling_policy_properties]
         
     | 
| 
       29595 
29839 
     | 
    
         
             
                  self.data_center = opts[:data_center]
         
     | 
| 
       29596 
29840 
     | 
    
         
             
                  self.display = opts[:display]
         
     | 
| 
      
 29841 
     | 
    
         
            +
                  self.enabled_features = opts[:enabled_features]
         
     | 
| 
       29597 
29842 
     | 
    
         
             
                  self.error_handling = opts[:error_handling]
         
     | 
| 
       29598 
29843 
     | 
    
         
             
                  self.fencing_policy = opts[:fencing_policy]
         
     | 
| 
       29599 
29844 
     | 
    
         
             
                  self.gluster_hooks = opts[:gluster_hooks]
         
     | 
| 
         @@ -29635,6 +29880,7 @@ module OvirtSDK4 
     | 
|
| 
       29635 
29880 
     | 
    
         
             
                  @custom_scheduling_policy_properties == other.custom_scheduling_policy_properties &&
         
     | 
| 
       29636 
29881 
     | 
    
         
             
                  @data_center == other.data_center &&
         
     | 
| 
       29637 
29882 
     | 
    
         
             
                  @display == other.display &&
         
     | 
| 
      
 29883 
     | 
    
         
            +
                  @enabled_features == other.enabled_features &&
         
     | 
| 
       29638 
29884 
     | 
    
         
             
                  @error_handling == other.error_handling &&
         
     | 
| 
       29639 
29885 
     | 
    
         
             
                  @fencing_policy == other.fencing_policy &&
         
     | 
| 
       29640 
29886 
     | 
    
         
             
                  @gluster_hooks == other.gluster_hooks &&
         
     | 
| 
         @@ -29676,6 +29922,7 @@ module OvirtSDK4 
     | 
|
| 
       29676 
29922 
     | 
    
         
             
                  @custom_scheduling_policy_properties.hash +
         
     | 
| 
       29677 
29923 
     | 
    
         
             
                  @data_center.hash +
         
     | 
| 
       29678 
29924 
     | 
    
         
             
                  @display.hash +
         
     | 
| 
      
 29925 
     | 
    
         
            +
                  @enabled_features.hash +
         
     | 
| 
       29679 
29926 
     | 
    
         
             
                  @error_handling.hash +
         
     | 
| 
       29680 
29927 
     | 
    
         
             
                  @fencing_policy.hash +
         
     | 
| 
       29681 
29928 
     | 
    
         
             
                  @gluster_hooks.hash +
         
     | 
| 
         @@ -29707,8 +29954,174 @@ module OvirtSDK4 
     | 
|
| 
       29707 
29954 
     | 
    
         | 
| 
       29708 
29955 
     | 
    
         
             
              end
         
     | 
| 
       29709 
29956 
     | 
    
         | 
| 
      
 29957 
     | 
    
         
            +
              class ClusterFeature < Identified
         
     | 
| 
      
 29958 
     | 
    
         
            +
                
         
     | 
| 
      
 29959 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29960 
     | 
    
         
            +
                # Returns the value of the `cluster_level` attribute.
         
     | 
| 
      
 29961 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29962 
     | 
    
         
            +
                # @return [ClusterLevel]
         
     | 
| 
      
 29963 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29964 
     | 
    
         
            +
                def cluster_level
         
     | 
| 
      
 29965 
     | 
    
         
            +
                  @cluster_level
         
     | 
| 
      
 29966 
     | 
    
         
            +
                end
         
     | 
| 
      
 29967 
     | 
    
         
            +
                
         
     | 
| 
      
 29968 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29969 
     | 
    
         
            +
                # Sets the value of the `cluster_level` attribute.
         
     | 
| 
      
 29970 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29971 
     | 
    
         
            +
                # @param value [ClusterLevel, Hash]
         
     | 
| 
      
 29972 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29973 
     | 
    
         
            +
                # The `value` parameter can be an instance of {OvirtSDK4::ClusterLevel} or a hash.
         
     | 
| 
      
 29974 
     | 
    
         
            +
                # If it is a hash then a new instance will be created passing the hash as the 
         
     | 
| 
      
 29975 
     | 
    
         
            +
                # `opts` parameter to the constructor.
         
     | 
| 
      
 29976 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29977 
     | 
    
         
            +
                def cluster_level=(value)
         
     | 
| 
      
 29978 
     | 
    
         
            +
                  if value.is_a?(Hash)
         
     | 
| 
      
 29979 
     | 
    
         
            +
                    value = ClusterLevel.new(value)
         
     | 
| 
      
 29980 
     | 
    
         
            +
                  end
         
     | 
| 
      
 29981 
     | 
    
         
            +
                  @cluster_level = value
         
     | 
| 
      
 29982 
     | 
    
         
            +
                end
         
     | 
| 
      
 29983 
     | 
    
         
            +
                
         
     | 
| 
      
 29984 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29985 
     | 
    
         
            +
                # Returns the value of the `comment` attribute.
         
     | 
| 
      
 29986 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29987 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 29988 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29989 
     | 
    
         
            +
                def comment
         
     | 
| 
      
 29990 
     | 
    
         
            +
                  @comment
         
     | 
| 
      
 29991 
     | 
    
         
            +
                end
         
     | 
| 
      
 29992 
     | 
    
         
            +
                
         
     | 
| 
      
 29993 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29994 
     | 
    
         
            +
                # Sets the value of the `comment` attribute.
         
     | 
| 
      
 29995 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29996 
     | 
    
         
            +
                # @param value [String]
         
     | 
| 
      
 29997 
     | 
    
         
            +
                # 
         
     | 
| 
      
 29998 
     | 
    
         
            +
                def comment=(value)
         
     | 
| 
      
 29999 
     | 
    
         
            +
                  @comment = value
         
     | 
| 
      
 30000 
     | 
    
         
            +
                end
         
     | 
| 
      
 30001 
     | 
    
         
            +
                
         
     | 
| 
      
 30002 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30003 
     | 
    
         
            +
                # Returns the value of the `description` attribute.
         
     | 
| 
      
 30004 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30005 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 30006 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30007 
     | 
    
         
            +
                def description
         
     | 
| 
      
 30008 
     | 
    
         
            +
                  @description
         
     | 
| 
      
 30009 
     | 
    
         
            +
                end
         
     | 
| 
      
 30010 
     | 
    
         
            +
                
         
     | 
| 
      
 30011 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30012 
     | 
    
         
            +
                # Sets the value of the `description` attribute.
         
     | 
| 
      
 30013 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30014 
     | 
    
         
            +
                # @param value [String]
         
     | 
| 
      
 30015 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30016 
     | 
    
         
            +
                def description=(value)
         
     | 
| 
      
 30017 
     | 
    
         
            +
                  @description = value
         
     | 
| 
      
 30018 
     | 
    
         
            +
                end
         
     | 
| 
      
 30019 
     | 
    
         
            +
                
         
     | 
| 
      
 30020 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30021 
     | 
    
         
            +
                # Returns the value of the `id` attribute.
         
     | 
| 
      
 30022 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30023 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 30024 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30025 
     | 
    
         
            +
                def id
         
     | 
| 
      
 30026 
     | 
    
         
            +
                  @id
         
     | 
| 
      
 30027 
     | 
    
         
            +
                end
         
     | 
| 
      
 30028 
     | 
    
         
            +
                
         
     | 
| 
      
 30029 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30030 
     | 
    
         
            +
                # Sets the value of the `id` attribute.
         
     | 
| 
      
 30031 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30032 
     | 
    
         
            +
                # @param value [String]
         
     | 
| 
      
 30033 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30034 
     | 
    
         
            +
                def id=(value)
         
     | 
| 
      
 30035 
     | 
    
         
            +
                  @id = value
         
     | 
| 
      
 30036 
     | 
    
         
            +
                end
         
     | 
| 
      
 30037 
     | 
    
         
            +
                
         
     | 
| 
      
 30038 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30039 
     | 
    
         
            +
                # Returns the value of the `name` attribute.
         
     | 
| 
      
 30040 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30041 
     | 
    
         
            +
                # @return [String]
         
     | 
| 
      
 30042 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30043 
     | 
    
         
            +
                def name
         
     | 
| 
      
 30044 
     | 
    
         
            +
                  @name
         
     | 
| 
      
 30045 
     | 
    
         
            +
                end
         
     | 
| 
      
 30046 
     | 
    
         
            +
                
         
     | 
| 
      
 30047 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30048 
     | 
    
         
            +
                # Sets the value of the `name` attribute.
         
     | 
| 
      
 30049 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30050 
     | 
    
         
            +
                # @param value [String]
         
     | 
| 
      
 30051 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30052 
     | 
    
         
            +
                def name=(value)
         
     | 
| 
      
 30053 
     | 
    
         
            +
                  @name = value
         
     | 
| 
      
 30054 
     | 
    
         
            +
                end
         
     | 
| 
      
 30055 
     | 
    
         
            +
                
         
     | 
| 
      
 30056 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30057 
     | 
    
         
            +
                # Creates a new instance of the {ClusterFeature} class.
         
     | 
| 
      
 30058 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30059 
     | 
    
         
            +
                # @param opts [Hash] A hash containing the attributes of the object. The keys of the hash
         
     | 
| 
      
 30060 
     | 
    
         
            +
                #   should be symbols corresponding to the names of the attributes. The values of the hash
         
     | 
| 
      
 30061 
     | 
    
         
            +
                #   should be the values of the attributes.
         
     | 
| 
      
 30062 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30063 
     | 
    
         
            +
                # @option opts [ClusterLevel, Hash] :cluster_level The value of attribute `cluster_level`.
         
     | 
| 
      
 30064 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30065 
     | 
    
         
            +
                # @option opts [String] :comment The value of attribute `comment`.
         
     | 
| 
      
 30066 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30067 
     | 
    
         
            +
                # @option opts [String] :description The value of attribute `description`.
         
     | 
| 
      
 30068 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30069 
     | 
    
         
            +
                # @option opts [String] :id The value of attribute `id`.
         
     | 
| 
      
 30070 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30071 
     | 
    
         
            +
                # @option opts [String] :name The value of attribute `name`.
         
     | 
| 
      
 30072 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30073 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30074 
     | 
    
         
            +
                def initialize(opts = {})
         
     | 
| 
      
 30075 
     | 
    
         
            +
                  super(opts)
         
     | 
| 
      
 30076 
     | 
    
         
            +
                  self.cluster_level = opts[:cluster_level]
         
     | 
| 
      
 30077 
     | 
    
         
            +
                end
         
     | 
| 
      
 30078 
     | 
    
         
            +
                
         
     | 
| 
      
 30079 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30080 
     | 
    
         
            +
                # Returns `true` if `self` and `other` have the same attributes and values.
         
     | 
| 
      
 30081 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30082 
     | 
    
         
            +
                def ==(other)
         
     | 
| 
      
 30083 
     | 
    
         
            +
                  super &&
         
     | 
| 
      
 30084 
     | 
    
         
            +
                  @cluster_level == other.cluster_level
         
     | 
| 
      
 30085 
     | 
    
         
            +
                end
         
     | 
| 
      
 30086 
     | 
    
         
            +
                
         
     | 
| 
      
 30087 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30088 
     | 
    
         
            +
                # Generates a hash value for this object.
         
     | 
| 
      
 30089 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30090 
     | 
    
         
            +
                def hash
         
     | 
| 
      
 30091 
     | 
    
         
            +
                  super +
         
     | 
| 
      
 30092 
     | 
    
         
            +
                  @cluster_level.hash
         
     | 
| 
      
 30093 
     | 
    
         
            +
                end
         
     | 
| 
      
 30094 
     | 
    
         
            +
                
         
     | 
| 
      
 30095 
     | 
    
         
            +
              end
         
     | 
| 
      
 30096 
     | 
    
         
            +
              
         
     | 
| 
       29710 
30097 
     | 
    
         
             
              class ClusterLevel < Identified
         
     | 
| 
       29711 
30098 
     | 
    
         | 
| 
      
 30099 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30100 
     | 
    
         
            +
                # Returns the value of the `cluster_features` attribute.
         
     | 
| 
      
 30101 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30102 
     | 
    
         
            +
                # @return [Array<ClusterFeature>]
         
     | 
| 
      
 30103 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30104 
     | 
    
         
            +
                def cluster_features
         
     | 
| 
      
 30105 
     | 
    
         
            +
                  @cluster_features
         
     | 
| 
      
 30106 
     | 
    
         
            +
                end
         
     | 
| 
      
 30107 
     | 
    
         
            +
                
         
     | 
| 
      
 30108 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30109 
     | 
    
         
            +
                # Sets the value of the `cluster_features` attribute.
         
     | 
| 
      
 30110 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30111 
     | 
    
         
            +
                # @param list [Array<ClusterFeature>]
         
     | 
| 
      
 30112 
     | 
    
         
            +
                # 
         
     | 
| 
      
 30113 
     | 
    
         
            +
                def cluster_features=(list)
         
     | 
| 
      
 30114 
     | 
    
         
            +
                  if list.class == Array
         
     | 
| 
      
 30115 
     | 
    
         
            +
                    list = List.new(list)
         
     | 
| 
      
 30116 
     | 
    
         
            +
                    list.each_with_index do |value, index|
         
     | 
| 
      
 30117 
     | 
    
         
            +
                      if value.is_a?(Hash)
         
     | 
| 
      
 30118 
     | 
    
         
            +
                        list[index] = ClusterFeature.new(value)
         
     | 
| 
      
 30119 
     | 
    
         
            +
                      end
         
     | 
| 
      
 30120 
     | 
    
         
            +
                    end
         
     | 
| 
      
 30121 
     | 
    
         
            +
                  end
         
     | 
| 
      
 30122 
     | 
    
         
            +
                  @cluster_features = list
         
     | 
| 
      
 30123 
     | 
    
         
            +
                end
         
     | 
| 
      
 30124 
     | 
    
         
            +
                
         
     | 
| 
       29712 
30125 
     | 
    
         
             
                # 
         
     | 
| 
       29713 
30126 
     | 
    
         
             
                # Returns the value of the `comment` attribute.
         
     | 
| 
       29714 
30127 
     | 
    
         
             
                # 
         
     | 
| 
         @@ -29840,6 +30253,8 @@ module OvirtSDK4 
     | 
|
| 
       29840 
30253 
     | 
    
         
             
                #   should be symbols corresponding to the names of the attributes. The values of the hash
         
     | 
| 
       29841 
30254 
     | 
    
         
             
                #   should be the values of the attributes.
         
     | 
| 
       29842 
30255 
     | 
    
         
             
                # 
         
     | 
| 
      
 30256 
     | 
    
         
            +
                # @option opts [Array<ClusterFeature>, Array<Hash>] :cluster_features The values of attribute `cluster_features`.
         
     | 
| 
      
 30257 
     | 
    
         
            +
                # 
         
     | 
| 
       29843 
30258 
     | 
    
         
             
                # @option opts [String] :comment The value of attribute `comment`.
         
     | 
| 
       29844 
30259 
     | 
    
         
             
                # 
         
     | 
| 
       29845 
30260 
     | 
    
         
             
                # @option opts [Array<CpuType>, Array<Hash>] :cpu_types The values of attribute `cpu_types`.
         
     | 
| 
         @@ -29855,6 +30270,7 @@ module OvirtSDK4 
     | 
|
| 
       29855 
30270 
     | 
    
         
             
                # 
         
     | 
| 
       29856 
30271 
     | 
    
         
             
                def initialize(opts = {})
         
     | 
| 
       29857 
30272 
     | 
    
         
             
                  super(opts)
         
     | 
| 
      
 30273 
     | 
    
         
            +
                  self.cluster_features = opts[:cluster_features]
         
     | 
| 
       29858 
30274 
     | 
    
         
             
                  self.cpu_types = opts[:cpu_types]
         
     | 
| 
       29859 
30275 
     | 
    
         
             
                  self.permits = opts[:permits]
         
     | 
| 
       29860 
30276 
     | 
    
         
             
                end
         
     | 
| 
         @@ -29864,6 +30280,7 @@ module OvirtSDK4 
     | 
|
| 
       29864 
30280 
     | 
    
         
             
                # 
         
     | 
| 
       29865 
30281 
     | 
    
         
             
                def ==(other)
         
     | 
| 
       29866 
30282 
     | 
    
         
             
                  super &&
         
     | 
| 
      
 30283 
     | 
    
         
            +
                  @cluster_features == other.cluster_features &&
         
     | 
| 
       29867 
30284 
     | 
    
         
             
                  @cpu_types == other.cpu_types &&
         
     | 
| 
       29868 
30285 
     | 
    
         
             
                  @permits == other.permits
         
     | 
| 
       29869 
30286 
     | 
    
         
             
                end
         
     | 
| 
         @@ -29873,6 +30290,7 @@ module OvirtSDK4 
     | 
|
| 
       29873 
30290 
     | 
    
         
             
                # 
         
     | 
| 
       29874 
30291 
     | 
    
         
             
                def hash
         
     | 
| 
       29875 
30292 
     | 
    
         
             
                  super +
         
     | 
| 
      
 30293 
     | 
    
         
            +
                  @cluster_features.hash +
         
     | 
| 
       29876 
30294 
     | 
    
         
             
                  @cpu_types.hash +
         
     | 
| 
       29877 
30295 
     | 
    
         
             
                  @permits.hash
         
     | 
| 
       29878 
30296 
     | 
    
         
             
                end
         
     |