Class: OvirtSDK4::Permission

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Permission) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Permission class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :cluster (Cluster, Hash)

    The value of attribute cluster.

  • :comment (String)

    The value of attribute comment.

  • :data_center (DataCenter, Hash)

    The value of attribute data_center.

  • :description (String)

    The value of attribute description.

  • :disk (Disk, Hash)

    The value of attribute disk.

  • :group (Group, Hash)

    The value of attribute group.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :role (Role, Hash)

    The value of attribute role.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :template (Template, Hash)

    The value of attribute template.

  • :user (User, Hash)

    The value of attribute user.

  • :vm (Vm, Hash)

    The value of attribute vm.

  • :vm_pool (VmPool, Hash)

    The value of attribute vm_pool.



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.

Returns:



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.

Parameters:



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:

  • value (Disk, Hash)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • value (Host, Hash)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:

  • value (Role, Hash)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:

  • value (User, Hash)


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.

Returns:



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.

Parameters:

  • value (Vm, Hash)


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.

Returns:



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.

Parameters:



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