Class: CadenceThrift::DomainInfo

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

Constant Summary collapse

NAME =
10
STATUS =
20
DESCRIPTION =
30
OWNEREMAIL =
40
DATA =
50
UUID =
60
FIELDS =
{
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
  STATUS => {:type => ::Thrift::Types::I32, :name => 'status', :optional => true, :enum_class => ::CadenceThrift::DomainStatus},
  DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
  OWNEREMAIL => {:type => ::Thrift::Types::STRING, :name => 'ownerEmail', :optional => true},
  DATA => {:type => ::Thrift::Types::MAP, :name => 'data', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true},
  UUID => {:type => ::Thrift::Types::STRING, :name => 'uuid', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



2803
# File 'lib/gen/thrift/shared_types.rb', line 2803

def struct_fields; FIELDS; end

#validateObject



2805
2806
2807
2808
2809
# File 'lib/gen/thrift/shared_types.rb', line 2805

def validate
  unless @status.nil? || ::CadenceThrift::DomainStatus::VALID_VALUES.include?(@status)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field status!')
  end
end