Class: OvirtSDK4::Ssh

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

- (Ssh) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Ssh 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):

  • :authentication_method (String)

    The value of attribute authentication_method.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :fingerprint (String)

    The value of attribute fingerprint.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :port (Integer)

    The value of attribute port.

  • :user (User, Hash)

    The value of attribute user.



14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
# File 'lib/ovirtsdk4/types.rb', line 14307

def initialize(opts = {})
  super(opts)
  self.authentication_method = opts[:authentication_method]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.fingerprint = opts[:fingerprint]
  self.id = opts[:id]
  self.name = opts[:name]
  self.port = opts[:port]
  self.user = opts[:user]
end

Instance Method Details

- (String) authentication_method

Returns the value of the authentication_method attribute.

Returns:

  • (String)


14137
14138
14139
# File 'lib/ovirtsdk4/types.rb', line 14137

def authentication_method
  return @authentication_method
end

- (Object) authentication_method=(value)

Sets the value of the authentication_method attribute.

Parameters:

  • value (String)


14146
14147
14148
# File 'lib/ovirtsdk4/types.rb', line 14146

def authentication_method=(value)
  @authentication_method = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


14155
14156
14157
# File 'lib/ovirtsdk4/types.rb', line 14155

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


14164
14165
14166
# File 'lib/ovirtsdk4/types.rb', line 14164

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


14173
14174
14175
# File 'lib/ovirtsdk4/types.rb', line 14173

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


14182
14183
14184
# File 'lib/ovirtsdk4/types.rb', line 14182

def description=(value)
  @description = value
end

- (String) fingerprint

Returns the value of the fingerprint attribute.

Returns:

  • (String)


14191
14192
14193
# File 'lib/ovirtsdk4/types.rb', line 14191

def fingerprint
  return @fingerprint
end

- (Object) fingerprint=(value)

Sets the value of the fingerprint attribute.

Parameters:

  • value (String)


14200
14201
14202
# File 'lib/ovirtsdk4/types.rb', line 14200

def fingerprint=(value)
  @fingerprint = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


14209
14210
14211
# File 'lib/ovirtsdk4/types.rb', line 14209

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


14218
14219
14220
# File 'lib/ovirtsdk4/types.rb', line 14218

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


14227
14228
14229
# File 'lib/ovirtsdk4/types.rb', line 14227

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


14236
14237
14238
# File 'lib/ovirtsdk4/types.rb', line 14236

def name=(value)
  @name = value
end

- (Integer) port

Returns the value of the port attribute.

Returns:

  • (Integer)


14245
14246
14247
# File 'lib/ovirtsdk4/types.rb', line 14245

def port
  return @port
end

- (Object) port=(value)

Sets the value of the port attribute.

Parameters:

  • value (Integer)


14254
14255
14256
# File 'lib/ovirtsdk4/types.rb', line 14254

def port=(value)
  @port = value
end

- (User) user

Returns the value of the user attribute.

Returns:



14263
14264
14265
# File 'lib/ovirtsdk4/types.rb', line 14263

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)


14276
14277
14278
14279
14280
14281
# File 'lib/ovirtsdk4/types.rb', line 14276

def user=(value)
  if value.is_a?(Hash)
    value = User.new(value)
  end
  @user = value
end