Class: Airavata::GetAllAccessibleGroups_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 =
4
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



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


14515
14516
14517
14518
14519
14520
14521
14522
# File 'lib/airavata.rb', line 14515

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