Class: Airavata::UserHasAccess_args

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

Constant Summary collapse

AUTHZTOKEN =
1
RESOURCEID =
2
PERMISSIONTYPE =
3
FIELDS =
{
  AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken},
  RESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'resourceId'},
  PERMISSIONTYPE => {:type => ::Thrift::Types::I32, :name => 'permissionType', :enum_class => ::ResourcePermissionType}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



14663
# File 'lib/airavata.rb', line 14663

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


14665
14666
14667
14668
14669
14670
14671
14672
# File 'lib/airavata.rb', line 14665

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field authzToken is unset!') unless @authzToken
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resourceId is unset!') unless @resourceId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field permissionType is unset!') unless @permissionType
  unless @permissionType.nil? || ::ResourcePermissionType::VALID_VALUES.include?(@permissionType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field permissionType!')
  end
end