public class ShowSecurityResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.showSecurity(ShowSecurityRequest)
.Modifier and Type | Class and Description |
---|---|
static class |
ShowSecurityResponse.Types
Map of user/role name to the type of that user/role.
|
Constructor and Description |
---|
ShowSecurityResponse()
Constructs a ShowSecurityResponse object with default parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
Map<String,String> |
getInfo() |
Map<String,List<Map<String,String>>> |
getPermissions() |
Map<String,String> |
getResourceGroups() |
Map<String,List<String>> |
getRoles() |
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
Map<String,String> |
getTypes() |
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
ShowSecurityResponse |
setInfo(Map<String,String> info) |
ShowSecurityResponse |
setPermissions(Map<String,List<Map<String,String>>> permissions) |
ShowSecurityResponse |
setResourceGroups(Map<String,String> resourceGroups) |
ShowSecurityResponse |
setRoles(Map<String,List<String>> roles) |
ShowSecurityResponse |
setTypes(Map<String,String> types) |
String |
toString() |
public ShowSecurityResponse()
public static org.apache.avro.Schema getClassSchema()
public Map<String,String> getTypes()
INTERNAL_USER
: A user whose credentials are managed by the
database system.
EXTERNAL_USER
: A user whose credentials are managed by an
external LDAP.
ROLE
: A
role.
public ShowSecurityResponse setTypes(Map<String,String> types)
types
- Map of user/role name to the type of that user/role.
Valid values are:
INTERNAL_USER
: A user whose credentials are managed by
the database system.
EXTERNAL_USER
: A user whose credentials are managed by an
external LDAP.
ROLE
:
A role.
this
to mimic the builder pattern.public Map<String,List<String>> getRoles()
public ShowSecurityResponse setRoles(Map<String,List<String>> roles)
roles
- Map of user/role name to a list of names of roles of which
that user/role is a member.this
to mimic the builder pattern.public Map<String,List<Map<String,String>>> getPermissions()
public ShowSecurityResponse setPermissions(Map<String,List<Map<String,String>>> permissions)
permissions
- Map of user/role name to a list of permissions
directly granted to that user/role.this
to mimic the builder pattern.public Map<String,String> getResourceGroups()
public ShowSecurityResponse setResourceGroups(Map<String,String> resourceGroups)
resourceGroups
- Map of user name to resource group name.this
to mimic the builder pattern.public ShowSecurityResponse setInfo(Map<String,String> info)
info
- Additional information.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2020. All rights reserved.