Class: Tenant
- Inherits:
-
Object
- Object
- Tenant
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/tenant_profile_model_types.rb
Constant Summary collapse
- TENANTID =
1
- TENANTAPPROVALSTATUS =
2
- TENANTNAME =
3
- DOMAIN =
4
- EMAILADDRESS =
5
- TENANTACRONYM =
6
- TENANTURL =
7
- TENANTPUBLICABSTRACT =
8
- REVIEWPROPOSALDESCRIPTION =
9
- DECLINEDREASON =
15
- REQUESTCREATIONTIME =
18
- REQUESTERUSERNAME =
19
- FIELDS =
{ TENANTID => {:type => ::Thrift::Types::STRING, :name => 'tenantId'}, TENANTAPPROVALSTATUS => {:type => ::Thrift::Types::I32, :name => 'tenantApprovalStatus', :enum_class => ::TenantApprovalStatus}, TENANTNAME => {:type => ::Thrift::Types::STRING, :name => 'tenantName', :optional => true}, DOMAIN => {:type => ::Thrift::Types::STRING, :name => 'domain', :optional => true}, EMAILADDRESS => {:type => ::Thrift::Types::STRING, :name => 'emailAddress', :optional => true}, TENANTACRONYM => {:type => ::Thrift::Types::STRING, :name => 'tenantAcronym', :optional => true}, TENANTURL => {:type => ::Thrift::Types::STRING, :name => 'tenantURL', :optional => true}, TENANTPUBLICABSTRACT => {:type => ::Thrift::Types::STRING, :name => 'tenantPublicAbstract', :optional => true}, REVIEWPROPOSALDESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'reviewProposalDescription', :optional => true}, DECLINEDREASON => {:type => ::Thrift::Types::STRING, :name => 'declinedReason', :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_fields ⇒ Object
96 |
# File 'lib/tenant_profile_model_types.rb', line 96 def struct_fields; FIELDS; end |
#validate ⇒ Object
98 99 100 101 102 103 104 |
# File 'lib/tenant_profile_model_types.rb', line 98 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tenantId is unset!') unless @tenantId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field tenantApprovalStatus is unset!') unless @tenantApprovalStatus unless @tenantApprovalStatus.nil? || ::TenantApprovalStatus::VALID_VALUES.include?(@tenantApprovalStatus) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field tenantApprovalStatus!') end end |