# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::NetApp::Mgmt::V2019_06_01 module Models # # Snapshot of a Volume # class Snapshot include MsRestAzure # @return [String] Resource location attr_accessor :location # @return [String] Resource Id attr_accessor :id # @return [String] Resource name attr_accessor :name # @return [String] Resource type attr_accessor :type # @return Resource tags attr_accessor :tags # @return [String] snapshotId. UUID v4 used to identify the Snapshot attr_accessor :snapshot_id # @return [String] fileSystemId. UUID v4 used to identify the FileSystem attr_accessor :file_system_id # @return [DateTime] name. The creation date of the snapshot attr_accessor :creation_date # @return [String] Azure lifecycle management attr_accessor :provisioning_state # # Mapper for Snapshot class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'snapshot', type: { name: 'Composite', class_name: 'Snapshot', model_properties: { location: { client_side_validation: true, required: true, serialized_name: 'location', type: { name: 'String' } }, id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, tags: { client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Object' } }, snapshot_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.snapshotId', constraints: { MaxLength: 36, MinLength: 36, Pattern: '^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$' }, type: { name: 'String' } }, file_system_id: { client_side_validation: true, required: false, serialized_name: 'properties.fileSystemId', constraints: { MaxLength: 36, MinLength: 36, Pattern: '^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$' }, type: { name: 'String' } }, creation_date: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationDate', type: { name: 'DateTime' } }, provisioning_state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } } } } } end end end end