Class: ProductSummary

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

ID =
1
NAME =
11
LATESTVERSION =
21
APPLICATIONVERSIONRANGE =
25
GRANTEDBYDEFAULT =
32
ATTRIBUTES =
92
PRODUCTTYPESUMMARY =
93
VALIDUNTIL =
94
VALIDFOR =
95
INSTALLEDTIME =
96
AVAILABILITY =
97
AUTHORID =
98
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  LATESTVERSION => {:type => ::Thrift::Types::I64, :name => 'latestVersion'},
  APPLICATIONVERSIONRANGE => {:type => ::Thrift::Types::STRUCT, :name => 'applicationVersionRange', :class => ::ApplicationVersionRange},
  GRANTEDBYDEFAULT => {:type => ::Thrift::Types::BOOL, :name => 'grantedByDefault'},
  ATTRIBUTES => {:type => ::Thrift::Types::MAP, :name => 'attributes', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
  PRODUCTTYPESUMMARY => {:type => ::Thrift::Types::STRUCT, :name => 'productTypeSummary', :class => ::ProductTypeSummary},
  VALIDUNTIL => {:type => ::Thrift::Types::I64, :name => 'validUntil'},
  VALIDFOR => {:type => ::Thrift::Types::I32, :name => 'validFor'},
  INSTALLEDTIME => {:type => ::Thrift::Types::I64, :name => 'installedTime'},
  AVAILABILITY => {:type => ::Thrift::Types::I32, :name => 'availability', :enum_class => ::P0_a_a_b_a_a_i1},
  AUTHORID => {:type => ::Thrift::Types::STRING, :name => 'authorId'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



10903
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10903

def struct_fields; FIELDS; end

#validateObject



10905
10906
10907
10908
10909
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10905

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