Class: Airavata::GetAllAccessibleUsers_args
- Inherits:
-
Object
- Object
- Airavata::GetAllAccessibleUsers_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
14463 |
# File 'lib/airavata.rb', line 14463 def struct_fields; FIELDS; end |
#validate ⇒ Object
14465 14466 14467 14468 14469 14470 14471 14472 |
# File 'lib/airavata.rb', line 14465 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 |