func (client *Client) CreateRoleContext(
	ctx context.Context, role *graylog.Role,
) (*ErrorInfo, error) {
	if role == nil {
		return nil, fmt.Errorf("role is nil")
	}
	return client.callPost(ctx, client.Endpoints().Roles(), role, role)
}
// CreateRoleContext creates a new role with a context.
CreateRoleContext creates a new role with a context.
// CreateRoleContext creates a new role with a context .
func (client *Client) CreateRoleContext(
	ctx context.Context, role *graylog.Role,
) (*ErrorInfo, error) {
	if role == nil {
		return nil, fmt.Errorf("role is nil")
	}
	return client.callPost(ctx, client.Endpoints().Roles(), role, role)
}
func ( client * Client ) CreateRoleContext ( ctx context . Context , role * graylog . Role , ) ( * ErrorInfo , error ) { if role == nil { return nil , fmt . Errorf ( " " ) } return client . callPost ( ctx , client . Endpoints ( ) . Roles ( ) , role , role ) }
CreateRoleContext creates a new role with a context.
CreateRoleContext creates a new role with a context .