Class: Azure::ServiceFabric::V6_4_0_36::Models::UploadSessionInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/upload_session_info.rb

Overview

Information about an image store upload session. A session is associated with a relative path in the image store.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#expected_rangesArray<UploadChunkRange>

has not received yet.

Returns:



33
34
35
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/upload_session_info.rb', line 33

def expected_ranges
  @expected_ranges
end

#file_sizeString

Returns The size in bytes of the uploading file.

Returns:

  • (String)

    The size in bytes of the uploading file.



29
30
31
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/upload_session_info.rb', line 29

def file_size
  @file_size
end

#modified_dateDateTime

modified.

Returns:

  • (DateTime)

    The date and time when the upload session was last



26
27
28
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/upload_session_info.rb', line 26

def modified_date
  @modified_date
end

#session_idObject

only if the session was committed or removed.

Returns:

  • A unique ID of the upload session. A session ID can be reused



22
23
24
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/upload_session_info.rb', line 22

def session_id
  @session_id
end

#store_relative_pathString

relative to the image store root.

Returns:

  • (String)

    The remote location within image store. This path is



18
19
20
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/upload_session_info.rb', line 18

def store_relative_path
  @store_relative_path
end

Class Method Details

.mapperObject

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



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
93
94
95
96
97
98
99
100
101
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/upload_session_info.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'UploadSessionInfo',
    type: {
      name: 'Composite',
      class_name: 'UploadSessionInfo',
      model_properties: {
        store_relative_path: {
          client_side_validation: true,
          required: false,
          serialized_name: 'StoreRelativePath',
          type: {
            name: 'String'
          }
        },
        session_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'SessionId',
          type: {
            name: 'String'
          }
        },
        modified_date: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ModifiedDate',
          type: {
            name: 'DateTime'
          }
        },
        file_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'FileSize',
          type: {
            name: 'String'
          }
        },
        expected_ranges: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ExpectedRanges',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'UploadChunkRangeElementType',
                type: {
                  name: 'Composite',
                  class_name: 'UploadChunkRange'
                }
            }
          }
        }
      }
    }
  }
end