Class: Airavata::GetAllDirectlyAccessibleGroups_args
- Inherits:
-
Object
- Object
- Airavata::GetAllDirectlyAccessibleGroups_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
14613 |
# File 'lib/airavata.rb', line 14613 def struct_fields; FIELDS; end |
#validate ⇒ Object
14615 14616 14617 14618 14619 14620 14621 14622 |
# File 'lib/airavata.rb', line 14615 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 |