Class: OvirtSDK4::Permission
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Permission
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Cluster) cluster
Returns the value of the
cluster
attribute. -
- (Object) cluster=(value)
Sets the value of the
cluster
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (DataCenter) data_center
Returns the value of the
data_center
attribute. -
- (Object) data_center=(value)
Sets the value of the
data_center
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Disk) disk
Returns the value of the
disk
attribute. -
- (Object) disk=(value)
Sets the value of the
disk
attribute. -
- (Group) group
Returns the value of the
group
attribute. -
- (Object) group=(value)
Sets the value of the
group
attribute. -
- (Host) host
Returns the value of the
host
attribute. -
- (Object) host=(value)
Sets the value of the
host
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Permission) initialize(opts = {})
constructor
Creates a new instance of the Permission class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Role) role
Returns the value of the
role
attribute. -
- (Object) role=(value)
Sets the value of the
role
attribute. -
- (StorageDomain) storage_domain
Returns the value of the
storage_domain
attribute. -
- (Object) storage_domain=(value)
Sets the value of the
storage_domain
attribute. -
- (Template) template
Returns the value of the
template
attribute. -
- (Object) template=(value)
Sets the value of the
template
attribute. -
- (User) user
Returns the value of the
user
attribute. -
- (Object) user=(value)
Sets the value of the
user
attribute. -
- (Vm) vm
Returns the value of the
vm
attribute. -
- (Object) vm=(value)
Sets the value of the
vm
attribute. -
- (VmPool) vm_pool
Returns the value of the
vm_pool
attribute. -
- (Object) vm_pool=(value)
Sets the value of the
vm_pool
attribute.
Methods included from Type
Constructor Details
- (Permission) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Permission class.
10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 |
# File 'lib/ovirtsdk4/types.rb', line 10238 def initialize(opts = {}) super(opts) self.cluster = opts[:cluster] self.comment = opts[:comment] self.data_center = opts[:data_center] self.description = opts[:description] self.disk = opts[:disk] self.group = opts[:group] self.host = opts[:host] self.id = opts[:id] self.name = opts[:name] self.role = opts[:role] self.storage_domain = opts[:storage_domain] self.template = opts[:template] self.user = opts[:user] self.vm = opts[:vm] self.vm_pool = opts[:vm_pool] end |
Instance Method Details
- (Cluster) cluster
Returns the value of the cluster
attribute.
9858 9859 9860 |
# File 'lib/ovirtsdk4/types.rb', line 9858 def cluster return @cluster end |
- (Object) cluster=(value)
Sets the value of the cluster
attribute.
The value
parameter can be an instance of Cluster or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
9871 9872 9873 9874 9875 9876 |
# File 'lib/ovirtsdk4/types.rb', line 9871 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
- (String) comment
Returns the value of the comment
attribute.
9883 9884 9885 |
# File 'lib/ovirtsdk4/types.rb', line 9883 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
9892 9893 9894 |
# File 'lib/ovirtsdk4/types.rb', line 9892 def comment=(value) @comment = value end |
- (DataCenter) data_center
Returns the value of the data_center
attribute.
9901 9902 9903 |
# File 'lib/ovirtsdk4/types.rb', line 9901 def data_center return @data_center end |
- (Object) data_center=(value)
Sets the value of the data_center
attribute.
The value
parameter can be an instance of DataCenter or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
9914 9915 9916 9917 9918 9919 |
# File 'lib/ovirtsdk4/types.rb', line 9914 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
- (String) description
Returns the value of the description
attribute.
9926 9927 9928 |
# File 'lib/ovirtsdk4/types.rb', line 9926 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
9935 9936 9937 |
# File 'lib/ovirtsdk4/types.rb', line 9935 def description=(value) @description = value end |
- (Disk) disk
Returns the value of the disk
attribute.
9944 9945 9946 |
# File 'lib/ovirtsdk4/types.rb', line 9944 def disk return @disk end |
- (Object) disk=(value)
Sets the value of the disk
attribute.
The value
parameter can be an instance of Disk or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
9957 9958 9959 9960 9961 9962 |
# File 'lib/ovirtsdk4/types.rb', line 9957 def disk=(value) if value.is_a?(Hash) value = Disk.new(value) end @disk = value end |
- (Group) group
Returns the value of the group
attribute.
9969 9970 9971 |
# File 'lib/ovirtsdk4/types.rb', line 9969 def group return @group end |
- (Object) group=(value)
Sets the value of the group
attribute.
The value
parameter can be an instance of Group or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
9982 9983 9984 9985 9986 9987 |
# File 'lib/ovirtsdk4/types.rb', line 9982 def group=(value) if value.is_a?(Hash) value = Group.new(value) end @group = value end |
- (Host) host
Returns the value of the host
attribute.
9994 9995 9996 |
# File 'lib/ovirtsdk4/types.rb', line 9994 def host return @host end |
- (Object) host=(value)
Sets the value of the host
attribute.
The value
parameter can be an instance of Host or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
10007 10008 10009 10010 10011 10012 |
# File 'lib/ovirtsdk4/types.rb', line 10007 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
- (String) id
Returns the value of the id
attribute.
10019 10020 10021 |
# File 'lib/ovirtsdk4/types.rb', line 10019 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
10028 10029 10030 |
# File 'lib/ovirtsdk4/types.rb', line 10028 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
10037 10038 10039 |
# File 'lib/ovirtsdk4/types.rb', line 10037 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
10046 10047 10048 |
# File 'lib/ovirtsdk4/types.rb', line 10046 def name=(value) @name = value end |
- (Role) role
Returns the value of the role
attribute.
10055 10056 10057 |
# File 'lib/ovirtsdk4/types.rb', line 10055 def role return @role end |
- (Object) role=(value)
Sets the value of the role
attribute.
The value
parameter can be an instance of Role or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
10068 10069 10070 10071 10072 10073 |
# File 'lib/ovirtsdk4/types.rb', line 10068 def role=(value) if value.is_a?(Hash) value = Role.new(value) end @role = value end |
- (StorageDomain) storage_domain
Returns the value of the storage_domain
attribute.
10080 10081 10082 |
# File 'lib/ovirtsdk4/types.rb', line 10080 def storage_domain return @storage_domain end |
- (Object) storage_domain=(value)
Sets the value of the storage_domain
attribute.
The value
parameter can be an instance of StorageDomain or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
10093 10094 10095 10096 10097 10098 |
# File 'lib/ovirtsdk4/types.rb', line 10093 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
- (Template) template
Returns the value of the template
attribute.
10105 10106 10107 |
# File 'lib/ovirtsdk4/types.rb', line 10105 def template return @template end |
- (Object) template=(value)
Sets the value of the template
attribute.
The value
parameter can be an instance of Template or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
10118 10119 10120 10121 10122 10123 |
# File 'lib/ovirtsdk4/types.rb', line 10118 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
- (User) user
Returns the value of the user
attribute.
10130 10131 10132 |
# File 'lib/ovirtsdk4/types.rb', line 10130 def user return @user end |
- (Object) user=(value)
Sets the value of the user
attribute.
The value
parameter can be an instance of User or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
10143 10144 10145 10146 10147 10148 |
# File 'lib/ovirtsdk4/types.rb', line 10143 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |
- (Vm) vm
Returns the value of the vm
attribute.
10155 10156 10157 |
# File 'lib/ovirtsdk4/types.rb', line 10155 def vm return @vm end |
- (Object) vm=(value)
Sets the value of the vm
attribute.
The value
parameter can be an instance of Vm or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
10168 10169 10170 10171 10172 10173 |
# File 'lib/ovirtsdk4/types.rb', line 10168 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
- (VmPool) vm_pool
Returns the value of the vm_pool
attribute.
10180 10181 10182 |
# File 'lib/ovirtsdk4/types.rb', line 10180 def vm_pool return @vm_pool end |
- (Object) vm_pool=(value)
Sets the value of the vm_pool
attribute.
The value
parameter can be an instance of VmPool or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
10193 10194 10195 10196 10197 10198 |
# File 'lib/ovirtsdk4/types.rb', line 10193 def vm_pool=(value) if value.is_a?(Hash) value = VmPool.new(value) end @vm_pool = value end |