Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ProjectFileProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file_properties.rb

Overview

Base class for file properties.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#extensionString

have a leading period and must match the extension from filePath.



17
18
19
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file_properties.rb', line 17

def extension
  @extension
end

#file_pathString

be set when creating or updating the file resource.



21
22
23
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file_properties.rb', line 21

def file_path
  @file_path
end

#last_modifiedDateTime



24
25
26
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file_properties.rb', line 24

def last_modified
  @last_modified
end

#media_typeString

reflect the file content type.



28
29
30
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file_properties.rb', line 28

def media_type
  @media_type
end

#sizeInteger



31
32
33
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file_properties.rb', line 31

def size
  @size
end

Class Method Details

.mapperObject

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



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/project_file_properties.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ProjectFileProperties',
    type: {
      name: 'Composite',
      class_name: 'ProjectFileProperties',
      model_properties: {
        extension: {
          client_side_validation: true,
          required: false,
          serialized_name: 'extension',
          type: {
            name: 'String'
          }
        },
        file_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'filePath',
          type: {
            name: 'String'
          }
        },
        last_modified: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'lastModified',
          type: {
            name: 'DateTime'
          }
        },
        media_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'mediaType',
          type: {
            name: 'String'
          }
        },
        size: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'size',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end