Class: Airavata::GetAllDirectlyAccessibleUsers_args
- Inherits:
-
Object
- Object
- Airavata::GetAllDirectlyAccessibleUsers_args
- 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_fields ⇒ Object
14563 |
# File 'lib/airavata.rb', line 14563 def struct_fields; FIELDS; end |
#validate ⇒ Object
14565 14566 14567 14568 14569 14570 14571 14572 |
# File 'lib/airavata.rb', line 14565 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 |