# frozen_string_literal: true module API::V2 module Entities class AdminLabelView < API::V2::Entities::Base expose :key, documentation: { type: 'String', desc: 'Label key. [a-z0-9_-]+ should be used. Min - 3, max - 255 characters.' } expose :value, documentation: { type: 'String', desc: 'Label value. [A-Za-z0-9_-] should be used. Min - 3, max - 255 characters.' } expose :scope, documentation: { type: 'String', desc: "Label scope: 'public' or 'private'" } expose :description, documentation: { type: 'String', desc: "Label desc: json string with any additional information" } with_options(format_with: :iso_timestamp) do expose :created_at expose :updated_at end end end end