Class: SSHAccountProvisioner

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/account_provisioning_model_types.rb

Constant Summary collapse

NAME =
1
CANCREATEACCOUNT =
2
CANINSTALLSSHKEY =
3
CONFIGPARAMS =
4
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  CANCREATEACCOUNT => {:type => ::Thrift::Types::BOOL, :name => 'canCreateAccount'},
  CANINSTALLSSHKEY => {:type => ::Thrift::Types::BOOL, :name => 'canInstallSSHKey'},
  CONFIGPARAMS => {:type => ::Thrift::Types::LIST, :name => 'configParams', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SSHAccountProvisionerConfigParam}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



58
# File 'lib/account_provisioning_model_types.rb', line 58

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


60
61
62
63
64
65
# File 'lib/account_provisioning_model_types.rb', line 60

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field name is unset!') unless @name
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field canCreateAccount is unset!') if @canCreateAccount.nil?
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field canInstallSSHKey is unset!') if @canInstallSSHKey.nil?
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field configParams is unset!') unless @configParams
end