1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class File(Model):
"""Properties of the file or directory.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar name: Name of the file.
:vartype name: str
:ivar file_type: Contains information about file type. Possible values
include: 'file', 'directory'
:vartype file_type: str or ~azure.mgmt.batchai.models.FileType
:ivar download_url: Will contain an URL to download the corresponding
file. The downloadUrl is not returned for directories.
:vartype download_url: str
:ivar last_modified: The time at which the file was last modified. The
time at which the file was last modified.
:vartype last_modified: datetime
:ivar content_length: The file size. The file size.
:vartype content_length: long
"""
_validation = {
'name': {'readonly': True},
'file_type': {'readonly': True},
'download_url': {'readonly': True},
'last_modified': {'readonly': True},
'content_length': {'readonly': True},
}
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'file_type': {'key': 'fileType', 'type': 'str'},
'download_url': {'key': 'downloadUrl', 'type': 'str'},
'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'},
'content_length': {'key': 'properties.contentLength', 'type': 'long'},
}
def __init__(self, **kwargs):
super(File, self).__init__(**kwargs)
self.name = None
self.file_type = None
self.download_url = None
self.last_modified = None
self.content_length = None
|