2015-04-17 00:28:38 +00:00
|
|
|
<% if cls.type == 'object' -%>
|
|
|
|
|
|
|
|
class <%= cls.generated_class_name %>
|
|
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
<% for child_class in cls.properties.values -%>
|
|
|
|
<% if child_class._ref.nil? -%>
|
|
|
|
<%= indent(include('representation_stub', :cls => child_class), 2) -%>
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|
2016-02-25 22:37:00 +00:00
|
|
|
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
2015-04-17 00:28:38 +00:00
|
|
|
end
|
|
|
|
<% elsif cls.items && cls.items._ref.nil? -%>
|
|
|
|
<%= include('representation_stub', :cls => cls.items, :api => api) -%>
|
|
|
|
<% elsif cls.additional_properties && cls.additional_properties._ref.nil? -%>
|
|
|
|
<%= include('representation_stub', :cls => cls.additional_properties, :api => api) -%>
|
|
|
|
<% end -%>
|