Files
PyGithub/github/GithubObjects/Download.py
T
Vincent Jacques 04cde900a0 On the way to code generation instead of meta-description
(lots of useless eratic history squashed together in one commit)
2012-05-03 21:51:19 +01:00

206 lines
5.8 KiB
Python

# WARNING: this file is generated automaticaly.
# Do not modify it manually, your work would be lost.
class Download( object ):
def __init__( self, github, attributes, lazy ):
self.__github = github
self.__completed = False
self.__initAttributes()
self.__useAttributes( attributes )
@property
def accesskeyid( self ):
if self.__accesskeyid is None:
self.__completeIfNeeded()
return self.__accesskeyid
@property
def acl( self ):
if self.__acl is None:
self.__completeIfNeeded()
return self.__acl
@property
def bucket( self ):
if self.__bucket is None:
self.__completeIfNeeded()
return self.__bucket
@property
def content_type( self ):
if self.__content_type is None:
self.__completeIfNeeded()
return self.__content_type
@property
def created_at( self ):
if self.__created_at is None:
self.__completeIfNeeded()
return self.__created_at
@property
def description( self ):
if self.__description is None:
self.__completeIfNeeded()
return self.__description
@property
def download_count( self ):
if self.__download_count is None:
self.__completeIfNeeded()
return self.__download_count
@property
def expirationdate( self ):
if self.__expirationdate is None:
self.__completeIfNeeded()
return self.__expirationdate
@property
def html_url( self ):
if self.__html_url is None:
self.__completeIfNeeded()
return self.__html_url
@property
def id( self ):
if self.__id is None:
self.__completeIfNeeded()
return self.__id
@property
def mime_type( self ):
if self.__mime_type is None:
self.__completeIfNeeded()
return self.__mime_type
@property
def name( self ):
if self.__name is None:
self.__completeIfNeeded()
return self.__name
@property
def path( self ):
if self.__path is None:
self.__completeIfNeeded()
return self.__path
@property
def policy( self ):
if self.__policy is None:
self.__completeIfNeeded()
return self.__policy
@property
def prefix( self ):
if self.__prefix is None:
self.__completeIfNeeded()
return self.__prefix
@property
def redirect( self ):
if self.__redirect is None:
self.__completeIfNeeded()
return self.__redirect
@property
def s3_url( self ):
if self.__s3_url is None:
self.__completeIfNeeded()
return self.__s3_url
@property
def signature( self ):
if self.__signature is None:
self.__completeIfNeeded()
return self.__signature
@property
def size( self ):
if self.__size is None:
self.__completeIfNeeded()
return self.__size
@property
def url( self ):
if self.__url is None:
self.__completeIfNeeded()
return self.__url
def __initAttributes( self ):
self.__accesskeyid = None
self.__acl = None
self.__bucket = None
self.__content_type = None
self.__created_at = None
self.__description = None
self.__download_count = None
self.__expirationdate = None
self.__html_url = None
self.__id = None
self.__mime_type = None
self.__name = None
self.__path = None
self.__policy = None
self.__prefix = None
self.__redirect = None
self.__s3_url = None
self.__signature = None
self.__size = None
self.__url = None
def __completeIfNeeded( self ):
if not self.__completed:
self.__complete()
self.__completed = True
def __complete( self ):
pass
def delete( self ):
pass
def __useAttributes( self, attributes ):
if "accesskeyid" in attributes:
self.__accesskeyid = attributes[ "accesskeyid" ]
if "acl" in attributes:
self.__acl = attributes[ "acl" ]
if "bucket" in attributes:
self.__bucket = attributes[ "bucket" ]
if "content_type" in attributes:
self.__content_type = attributes[ "content_type" ]
if "created_at" in attributes:
self.__created_at = attributes[ "created_at" ]
if "description" in attributes:
self.__description = attributes[ "description" ]
if "download_count" in attributes:
self.__download_count = attributes[ "download_count" ]
if "expirationdate" in attributes:
self.__expirationdate = attributes[ "expirationdate" ]
if "html_url" in attributes:
self.__html_url = attributes[ "html_url" ]
if "id" in attributes:
self.__id = attributes[ "id" ]
if "mime_type" in attributes:
self.__mime_type = attributes[ "mime_type" ]
if "name" in attributes:
self.__name = attributes[ "name" ]
if "path" in attributes:
self.__path = attributes[ "path" ]
if "policy" in attributes:
self.__policy = attributes[ "policy" ]
if "prefix" in attributes:
self.__prefix = attributes[ "prefix" ]
if "redirect" in attributes:
self.__redirect = attributes[ "redirect" ]
if "s3_url" in attributes:
self.__s3_url = attributes[ "s3_url" ]
if "signature" in attributes:
self.__signature = attributes[ "signature" ]
if "size" in attributes:
self.__size = attributes[ "size" ]
if "url" in attributes:
self.__url = attributes[ "url" ]