Class: StoragePreference

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

Constant Summary collapse

STORAGERESOURCEID =
1
LOGINUSERNAME =
2
FILESYSTEMROOTLOCATION =
3
RESOURCESPECIFICCREDENTIALSTORETOKEN =
4
FIELDS =
{
  STORAGERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'storageResourceId'},
  LOGINUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'loginUserName', :optional => true},
  FILESYSTEMROOTLOCATION => {:type => ::Thrift::Types::STRING, :name => 'fileSystemRootLocation', :optional => true},
  RESOURCESPECIFICCREDENTIALSTORETOKEN => {:type => ::Thrift::Types::STRING, :name => 'resourceSpecificCredentialStoreToken', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



115
# File 'lib/gateway_resource_profile_model_types.rb', line 115

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


117
118
119
# File 'lib/gateway_resource_profile_model_types.rb', line 117

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field storageResourceId is unset!') unless @storageResourceId
end