Skip to content

Commit

Permalink
Merge pull request #5 from RachelTucker/3_5_autogen
Browse files Browse the repository at this point in the history
PYTHONSDK 75- Update to 3.5.0 API
  • Loading branch information
rpmoore authored Apr 19, 2017
2 parents 53ef89c + 4f7f9b0 commit 484a036
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ds3/ds3.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ def __init__(self):
'ChunkClientProcessingOrderGuarantee' : None,
'CompletedSizeInBytes' : None,
'CreatedAt' : None,
'DeadJobCleanupAllowed' : None,
'ErrorMessage' : None,
'Id' : None,
'ImplicitJobIdResolution' : None,
Expand Down Expand Up @@ -942,10 +943,12 @@ class TapeDrive(object):
def __init__(self):
self.attributes = []
self.elements = {
'CleaningRequired' : None,
'ErrorMessage' : None,
'ForceTapeRemoval' : None,
'Id' : None,
'LastCleaned' : None,
'MfgSerialNumber' : None,
'PartitionId' : None,
'SerialNumber' : None,
'State' : None,
Expand Down Expand Up @@ -7097,12 +7100,14 @@ def __init__(self, tape_id):

class RawImportAllTapesSpectraS3Request(AbstractRequest):

def __init__(self, bucket_id, task_priority=None):
def __init__(self, bucket_id, storage_domain_id=None, task_priority=None):
super(RawImportAllTapesSpectraS3Request, self).__init__()
self.query_params['operation'] = 'import'
self.query_params['bucket_id'] = bucket_id


if storage_domain_id is not None:
self.query_params['storage_domain_id'] = storage_domain_id
if task_priority is not None:
self.query_params['task_priority'] = task_priority

Expand All @@ -7111,13 +7116,15 @@ def __init__(self, bucket_id, task_priority=None):

class RawImportTapeSpectraS3Request(AbstractRequest):

def __init__(self, bucket_id, tape_id, task_priority=None):
def __init__(self, bucket_id, tape_id, storage_domain_id=None, task_priority=None):
super(RawImportTapeSpectraS3Request, self).__init__()
self.tape_id = tape_id
self.query_params['operation'] = 'import'
self.query_params['bucket_id'] = bucket_id


if storage_domain_id is not None:
self.query_params['storage_domain_id'] = storage_domain_id
if task_priority is not None:
self.query_params['task_priority'] = task_priority

Expand Down

0 comments on commit 484a036

Please sign in to comment.