Sha256: 97dda37ba22ab1db0a9e2051b271c5cd3bf637033e9ad184f09f8cc1ebae4d06

Contents?: true

Size: 670 Bytes

Versions: 177

Compression:

Stored size: 670 Bytes

Contents

<% 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 -%>

  include Google::Apis::Core::JsonObjectSupport
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 -%>

Version data entries

177 entries across 177 versions & 4 rubygems

Version Path
google-apis-generator-0.15.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.14.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.13.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.13.0 lib/google/apis/generator/templates/_representation_stub.tmpl
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/google-apis-generator-0.12.0/lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.12.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.11.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.11.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.10.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.9.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.8.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.7.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.6.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.5.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.4.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.4.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.3.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-apis-generator-0.2.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.52.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.51.0 lib/google/apis/generator/templates/_representation_stub.tmpl