class Azure::CognitiveServices::Face::V1_0::Models::UpdateSnapshotRequest

Request body for updating a snapshot, with a combination of user defined apply scope and user specified data.

Attributes

apply_scope[RW]

@return Array of the target Face subscription ids for the snapshot, specified by the user who created the snapshot when calling Snapshot - Take. For each snapshot, only subscriptions included in the applyScope of Snapshot - Take can apply it.

user_data[RW]

@return [String] User specified data about the snapshot for any purpose. Length should not exceed 16KB.

Private Class Methods

mapper() click to toggle source

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

# File lib/1.0/generated/azure_cognitiveservices_face/models/update_snapshot_request.rb, line 31
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'UpdateSnapshotRequest',
    type: {
      name: 'Composite',
      class_name: 'UpdateSnapshotRequest',
      model_properties: {
        apply_scope: {
          client_side_validation: true,
          required: false,
          serialized_name: 'applyScope',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'UuidElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        user_data: {
          client_side_validation: true,
          required: false,
          serialized_name: 'userData',
          constraints: {
            MaxLength: 16384
          },
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end