<s> """<STR_LIT>""" <EOL> import argparse <EOL> import datetime <EOL> import json <EOL> from googleapiclient import discovery <EOL> from oauth2client . client import GoogleCredentials <EOL> def main ( description , project_id , day , month , year , hours , minutes , <EOL> source_bucket , sink_bucket ) : <EOL> """<STR_LIT>""" <EOL> credentials = GoogleCredentials . get_application_default ( ) <EOL> storagetransfer = discovery . build ( <EOL> '<STR_LIT>' , '<STR_LIT>' , credentials = credentials ) <EOL> transfer_job = { <EOL> '<STR_LIT:description>' : description , <EOL> '<STR_LIT:status>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : project_id , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : day , <EOL> '<STR_LIT>' : month , <EOL> '<STR_LIT>' : year <EOL> } , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : hours , <EOL> '<STR_LIT>' : minutes <EOL> } <EOL> } , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : source_bucket <EOL> } , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : sink_bucket <EOL> } , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } , <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT>' : '<STR_LIT:true>' <EOL> } <EOL> } <EOL> } <EOL> result = storagetransfer . transferJobs ( ) . create ( body = transfer_job ) . execute ( ) <EOL> print ( '<STR_LIT>' . format ( <EOL> json . dumps ( result , indent = <NUM_LIT:4> ) ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> parser = argparse . ArgumentParser ( <EOL> description = __doc__ , <EOL> formatter_class = argparse . RawDescriptionHelpFormatter ) <EOL> parser . add_argument ( '<STR_LIT:description>' , help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT:date>' , help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT:time>' , help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> args = parser . parse_args ( ) <EOL> date = datetime . datetime . strptime ( args . date , '<STR_LIT>' ) <EOL> time = datetime . datetime . strptime ( args . time , '<STR_LIT>' ) <EOL> main ( <EOL> args . description , <EOL> args . project_id , <EOL> date . year , <EOL> date . month , <EOL> date . day , <EOL> time . hour , <EOL> time . minute , <EOL> args . source_bucket , <EOL> args . sink_bucket ) </s>
