Class: Gateway

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

Constant Summary collapse

AIRAVATAINTERNALGATEWAYID =
1
GATEWAYID =
2
GATEWAYAPPROVALSTATUS =
3
GATEWAYNAME =
4
DOMAIN =
5
EMAILADDRESS =
6
GATEWAYACRONYM =
7
GATEWAYURL =
8
GATEWAYPUBLICABSTRACT =
9
REVIEWPROPOSALDESCRIPTION =
10
GATEWAYADMINFIRSTNAME =
11
GATEWAYADMINLASTNAME =
12
GATEWAYADMINEMAIL =
13
IDENTITYSERVERUSERNAME =
14
IDENTITYSERVERPASSWORDTOKEN =
15
DECLINEDREASON =
16
OAUTHCLIENTID =
17
OAUTHCLIENTSECRET =
18
REQUESTCREATIONTIME =
19
REQUESTERUSERNAME =
20
FIELDS =
{
  AIRAVATAINTERNALGATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'airavataInternalGatewayId', :optional => true},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
  GATEWAYAPPROVALSTATUS => {:type => ::Thrift::Types::I32, :name => 'gatewayApprovalStatus', :enum_class => ::GatewayApprovalStatus},
  GATEWAYNAME => {:type => ::Thrift::Types::STRING, :name => 'gatewayName', :optional => true},
  DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true},
  EMAILADDRESS => {:type => ::Thrift::Types::STRING, :name => 'emailAddress', :optional => true},
  GATEWAYACRONYM => {:type => ::Thrift::Types::STRING, :name => 'gatewayAcronym', :optional => true},
  GATEWAYURL => {:type => ::Thrift::Types::STRING, :name => 'gatewayURL', :optional => true},
  GATEWAYPUBLICABSTRACT => {:type => ::Thrift::Types::STRING, :name => 'gatewayPublicAbstract', :optional => true},
  REVIEWPROPOSALDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'reviewProposalDescription', :optional => true},
  GATEWAYADMINFIRSTNAME => {:type => ::Thrift::Types::STRING, :name => 'gatewayAdminFirstName', :optional => true},
  GATEWAYADMINLASTNAME => {:type => ::Thrift::Types::STRING, :name => 'gatewayAdminLastName', :optional => true},
  GATEWAYADMINEMAIL => {:type => ::Thrift::Types::STRING, :name => 'gatewayAdminEmail', :optional => true},
  IDENTITYSERVERUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'identityServerUserName', :optional => true},
  IDENTITYSERVERPASSWORDTOKEN => {:type => ::Thrift::Types::STRING, :name => 'identityServerPasswordToken', :optional => true},
  DECLINEDREASON => {:type => ::Thrift::Types::STRING, :name => 'declinedReason', :optional => true},
  OAUTHCLIENTID => {:type => ::Thrift::Types::STRING, :name => 'oauthClientId', :optional => true},
  OAUTHCLIENTSECRET => {:type => ::Thrift::Types::STRING, :name => 'oauthClientSecret', :optional => true},
  REQUESTCREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'requestCreationTime', :optional => true},
  REQUESTERUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'requesterUsername', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



159
# File 'lib/workspace_model_types.rb', line 159

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


161
162
163
164
165
166
167
# File 'lib/workspace_model_types.rb', line 161

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayApprovalStatus is unset!') unless @gatewayApprovalStatus
  unless @gatewayApprovalStatus.nil? || ::GatewayApprovalStatus::VALID_VALUES.include?(@gatewayApprovalStatus)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field gatewayApprovalStatus!')
  end
end