class Azure::CognitiveServices::Customvisiontraining::V2_2::Models::Image

Image model to be sent as JSON.

Attributes

created[RW]

@return [DateTime] Date the image was created.

height[RW]

@return [Integer] Height of the image.

id[RW]

@return Id of the image.

original_image_uri[RW]

@return [String] The URI to the original uploaded image.

regions[RW]

@return [Array<ImageRegion>] Regions associated with this image.

resized_image_uri[RW]

@return [String] The URI to the (resized) image used for training.

tags[RW]

@return [Array<ImageTag>] Tags associated with this image.

thumbnail_uri[RW]

@return [String] The URI to the thumbnail of the original image.

width[RW]

@return [Integer] Width of the image.

Public Class Methods

mapper() click to toggle source

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

# File lib/2.2/generated/azure_cognitiveservices_customvisiontraining/models/image.rb, line 47
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Image',
    type: {
      name: 'Composite',
      class_name: 'Image',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        created: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'created',
          type: {
            name: 'DateTime'
          }
        },
        width: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'width',
          type: {
            name: 'Number'
          }
        },
        height: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'height',
          type: {
            name: 'Number'
          }
        },
        resized_image_uri: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resizedImageUri',
          type: {
            name: 'String'
          }
        },
        thumbnail_uri: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'thumbnailUri',
          type: {
            name: 'String'
          }
        },
        original_image_uri: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'originalImageUri',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'tags',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ImageTagElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ImageTag'
                }
            }
          }
        },
        regions: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'regions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ImageRegionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ImageRegion'
                }
            }
          }
        }
      }
    }
  }
end