class Azure::CognitiveServices::Customvisiontraining::V3_0::Models::Tag

Represents a Tag.

Attributes

description[RW]

@return [String] Gets or sets the description of the tag.

id[RW]

@return Gets the Tag ID.

image_count[RW]

@return [Integer] Gets the number of images with this tag.

name[RW]

@return [String] Gets or sets the name of the tag.

type[RW]

@return [TagType] Gets or sets the type of the tag. Possible values include: 'Regular', 'Negative'

Private Class Methods

mapper() click to toggle source

Mapper for Tag class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/3.0/generated/azure_cognitiveservices_customvisiontraining/models/tag.rb, line 36
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Tag',
    type: {
      name: 'Composite',
      class_name: 'Tag',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: true,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        image_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'imageCount',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end