Class: Airavata::GetAccessibleApplicationDeployments_args

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/airavata.rb

Constant Summary collapse

AUTHZTOKEN =
1
GATEWAYID =
2
PERMISSIONTYPE =
3
FIELDS =
{
  AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
  PERMISSIONTYPE => {:type => ::Thrift::Types::I32, :name => 'permissionType', :enum_class => ::ResourcePermissionType}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


9617
9618
9619
9620
9621
9622
9623
9624
# File 'lib/airavata.rb', line 9617

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 gatewayId is unset!') unless @gatewayId
  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