Revision d136f262 src/oca/ruby/OpenNebula/Image.rb

View differences:

src/oca/ruby/OpenNebula/Image.rb
62 62
        # XML-RPC Methods for the Image Object
63 63
        #######################################################################
64 64

  
65
        # Retrieves the information of the given Image.
65 66
        def info()
66 67
            super(IMAGE_METHODS[:info], 'IMAGE')
67 68
        end
68 69

  
70
        # Allocates a new Image in OpenNebula
71
        #
72
        # +description+ A string containing the template of the Image.
69 73
        def allocate(description)
70 74
            super(IMAGE_METHODS[:allocate],description)
71 75
        end
72 76

  
77
        # Modifies an image attribute
78
        #
79
        # +name+ Name of the attribute to be changed
80
        #
81
        # +value+ New value for the attribute
73 82
        def update(name, value)
74 83
            super(IMAGE_METHODS[:update], name, value)
75 84
        end
76 85

  
86
        # Deletes an Image attribute
87
        #
88
        # +name+ Name of the attribute to be deleted
77 89
        def remove_attr(name)
78 90
            do_rm_attr(name)
79 91
        end
80 92

  
93
        # Enables an Image
81 94
        def enable
82 95
            set_enabled(true)
83 96
        end
84 97

  
98
        # Disables an Image
85 99
        def disable
86 100
            set_enabled(false)
87 101
        end
88 102

  
103
        # Publishes the Image, to be used by other users
89 104
        def publish
90 105
            set_publish(true)
91 106
        end
92 107

  
108
        # Unplubishes the Image
93 109
        def unpublish
94 110
            set_publish(false)
95 111
        end
96 112

  
113
        # Deletes the Image
97 114
        def delete()
98 115
            super(IMAGE_METHODS[:delete])
99 116
        end

Also available in: Unified diff