<s> from msrest . pipeline import ClientRawResponse <EOL> import uuid <EOL> from . . import models <EOL> class JobScheduleOperations ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , client , config , serializer , deserializer ) : <EOL> self . _client = client <EOL> self . _serialize = serializer <EOL> self . _deserialize = deserializer <EOL> self . config = config <EOL> def exists ( <EOL> self , job_schedule_id , job_schedule_exists_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> select = None <EOL> if job_schedule_exists_options is not None : <EOL> select = job_schedule_exists_options . select <EOL> timeout = None <EOL> if job_schedule_exists_options is not None : <EOL> timeout = job_schedule_exists_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_exists_options is not None : <EOL> client_request_id = job_schedule_exists_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_exists_options is not None : <EOL> return_client_request_id = job_schedule_exists_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_exists_options is not None : <EOL> ocp_date = job_schedule_exists_options . ocp_date <EOL> if_match = None <EOL> if job_schedule_exists_options is not None : <EOL> if_match = job_schedule_exists_options . if_match <EOL> if_none_match = None <EOL> if job_schedule_exists_options is not None : <EOL> if_none_match = job_schedule_exists_options . if_none_match <EOL> if_modified_since = None <EOL> if job_schedule_exists_options is not None : <EOL> if_modified_since = job_schedule_exists_options . if_modified_since <EOL> if_unmodified_since = None <EOL> if job_schedule_exists_options is not None : <EOL> if_unmodified_since = job_schedule_exists_options . if_unmodified_since <EOL> url = '<STR_LIT>' <EOL> path_format_arguments = { <EOL> '<STR_LIT>' : self . _serialize . url ( "<STR_LIT>" , job_schedule_id , '<STR_LIT:str>' ) <EOL> } <EOL> url = self . _client . format_url ( url , ** path_format_arguments ) <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if select is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , select , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> if if_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_match , '<STR_LIT:str>' ) <EOL> if if_none_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_none_match , '<STR_LIT:str>' ) <EOL> if if_modified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_modified_since , '<STR_LIT>' ) <EOL> if if_unmodified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_unmodified_since , '<STR_LIT>' ) <EOL> request = self . _client . head ( url , query_parameters ) <EOL> response = self . _client . send ( request , header_parameters , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT:200> , <NUM_LIT> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> deserialized = ( response . status_code == <NUM_LIT:200> ) <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( deserialized , response ) <EOL> client_raw_response . add_headers ( { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } ) <EOL> return client_raw_response <EOL> return deserialized <EOL> def delete ( <EOL> self , job_schedule_id , job_schedule_delete_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> timeout = None <EOL> if job_schedule_delete_options is not None : <EOL> timeout = job_schedule_delete_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_delete_options is not None : <EOL> client_request_id = job_schedule_delete_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_delete_options is not None : <EOL> return_client_request_id = job_schedule_delete_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_delete_options is not None : <EOL> ocp_date = job_schedule_delete_options . ocp_date <EOL> if_match = None <EOL> if job_schedule_delete_options is not None : <EOL> if_match = job_schedule_delete_options . if_match <EOL> if_none_match = None <EOL> if job_schedule_delete_options is not None : <EOL> if_none_match = job_schedule_delete_options . if_none_match <EOL> if_modified_since = None <EOL> if job_schedule_delete_options is not None : <EOL> if_modified_since = job_schedule_delete_options . if_modified_since <EOL> if_unmodified_since = None <EOL> if job_schedule_delete_options is not None : <EOL> if_unmodified_since = job_schedule_delete_options . if_unmodified_since <EOL> url = '<STR_LIT>' <EOL> path_format_arguments = { <EOL> '<STR_LIT>' : self . _serialize . url ( "<STR_LIT>" , job_schedule_id , '<STR_LIT:str>' ) <EOL> } <EOL> url = self . _client . format_url ( url , ** path_format_arguments ) <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> if if_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_match , '<STR_LIT:str>' ) <EOL> if if_none_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_none_match , '<STR_LIT:str>' ) <EOL> if if_modified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_modified_since , '<STR_LIT>' ) <EOL> if if_unmodified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_unmodified_since , '<STR_LIT>' ) <EOL> request = self . _client . delete ( url , query_parameters ) <EOL> response = self . _client . send ( request , header_parameters , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( None , response ) <EOL> client_raw_response . add_headers ( { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> } ) <EOL> return client_raw_response <EOL> def get ( <EOL> self , job_schedule_id , job_schedule_get_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> select = None <EOL> if job_schedule_get_options is not None : <EOL> select = job_schedule_get_options . select <EOL> expand = None <EOL> if job_schedule_get_options is not None : <EOL> expand = job_schedule_get_options . expand <EOL> timeout = None <EOL> if job_schedule_get_options is not None : <EOL> timeout = job_schedule_get_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_get_options is not None : <EOL> client_request_id = job_schedule_get_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_get_options is not None : <EOL> return_client_request_id = job_schedule_get_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_get_options is not None : <EOL> ocp_date = job_schedule_get_options . ocp_date <EOL> if_match = None <EOL> if job_schedule_get_options is not None : <EOL> if_match = job_schedule_get_options . if_match <EOL> if_none_match = None <EOL> if job_schedule_get_options is not None : <EOL> if_none_match = job_schedule_get_options . if_none_match <EOL> if_modified_since = None <EOL> if job_schedule_get_options is not None : <EOL> if_modified_since = job_schedule_get_options . if_modified_since <EOL> if_unmodified_since = None <EOL> if job_schedule_get_options is not None : <EOL> if_unmodified_since = job_schedule_get_options . if_unmodified_since <EOL> url = '<STR_LIT>' <EOL> path_format_arguments = { <EOL> '<STR_LIT>' : self . _serialize . url ( "<STR_LIT>" , job_schedule_id , '<STR_LIT:str>' ) <EOL> } <EOL> url = self . _client . format_url ( url , ** path_format_arguments ) <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if select is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , select , '<STR_LIT:str>' ) <EOL> if expand is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , expand , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> if if_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_match , '<STR_LIT:str>' ) <EOL> if if_none_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_none_match , '<STR_LIT:str>' ) <EOL> if if_modified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_modified_since , '<STR_LIT>' ) <EOL> if if_unmodified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_unmodified_since , '<STR_LIT>' ) <EOL> request = self . _client . get ( url , query_parameters ) <EOL> response = self . _client . send ( request , header_parameters , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT:200> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> deserialized = None <EOL> header_dict = { } <EOL> if response . status_code == <NUM_LIT:200> : <EOL> deserialized = self . _deserialize ( '<STR_LIT>' , response ) <EOL> header_dict = { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( deserialized , response ) <EOL> client_raw_response . add_headers ( header_dict ) <EOL> return client_raw_response <EOL> return deserialized <EOL> def patch ( <EOL> self , job_schedule_id , job_schedule_patch_parameter , job_schedule_patch_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> timeout = None <EOL> if job_schedule_patch_options is not None : <EOL> timeout = job_schedule_patch_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_patch_options is not None : <EOL> client_request_id = job_schedule_patch_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_patch_options is not None : <EOL> return_client_request_id = job_schedule_patch_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_patch_options is not None : <EOL> ocp_date = job_schedule_patch_options . ocp_date <EOL> if_match = None <EOL> if job_schedule_patch_options is not None : <EOL> if_match = job_schedule_patch_options . if_match <EOL> if_none_match = None <EOL> if job_schedule_patch_options is not None : <EOL> if_none_match = job_schedule_patch_options . if_none_match <EOL> if_modified_since = None <EOL> if job_schedule_patch_options is not None : <EOL> if_modified_since = job_schedule_patch_options . if_modified_since <EOL> if_unmodified_since = None <EOL> if job_schedule_patch_options is not None : <EOL> if_unmodified_since = job_schedule_patch_options . if_unmodified_since <EOL> url = '<STR_LIT>' <EOL> path_format_arguments = { <EOL> '<STR_LIT>' : self . _serialize . url ( "<STR_LIT>" , job_schedule_id , '<STR_LIT:str>' ) <EOL> } <EOL> url = self . _client . format_url ( url , ** path_format_arguments ) <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> if if_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_match , '<STR_LIT:str>' ) <EOL> if if_none_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_none_match , '<STR_LIT:str>' ) <EOL> if if_modified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_modified_since , '<STR_LIT>' ) <EOL> if if_unmodified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_unmodified_since , '<STR_LIT>' ) <EOL> body_content = self . _serialize . body ( job_schedule_patch_parameter , '<STR_LIT>' ) <EOL> request = self . _client . patch ( url , query_parameters ) <EOL> response = self . _client . send ( <EOL> request , header_parameters , body_content , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT:200> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( None , response ) <EOL> client_raw_response . add_headers ( { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> } ) <EOL> return client_raw_response <EOL> def update ( <EOL> self , job_schedule_id , job_schedule_update_parameter , job_schedule_update_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> timeout = None <EOL> if job_schedule_update_options is not None : <EOL> timeout = job_schedule_update_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_update_options is not None : <EOL> client_request_id = job_schedule_update_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_update_options is not None : <EOL> return_client_request_id = job_schedule_update_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_update_options is not None : <EOL> ocp_date = job_schedule_update_options . ocp_date <EOL> if_match = None <EOL> if job_schedule_update_options is not None : <EOL> if_match = job_schedule_update_options . if_match <EOL> if_none_match = None <EOL> if job_schedule_update_options is not None : <EOL> if_none_match = job_schedule_update_options . if_none_match <EOL> if_modified_since = None <EOL> if job_schedule_update_options is not None : <EOL> if_modified_since = job_schedule_update_options . if_modified_since <EOL> if_unmodified_since = None <EOL> if job_schedule_update_options is not None : <EOL> if_unmodified_since = job_schedule_update_options . if_unmodified_since <EOL> url = '<STR_LIT>' <EOL> path_format_arguments = { <EOL> '<STR_LIT>' : self . _serialize . url ( "<STR_LIT>" , job_schedule_id , '<STR_LIT:str>' ) <EOL> } <EOL> url = self . _client . format_url ( url , ** path_format_arguments ) <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> if if_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_match , '<STR_LIT:str>' ) <EOL> if if_none_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_none_match , '<STR_LIT:str>' ) <EOL> if if_modified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_modified_since , '<STR_LIT>' ) <EOL> if if_unmodified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_unmodified_since , '<STR_LIT>' ) <EOL> body_content = self . _serialize . body ( job_schedule_update_parameter , '<STR_LIT>' ) <EOL> request = self . _client . put ( url , query_parameters ) <EOL> response = self . _client . send ( <EOL> request , header_parameters , body_content , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT:200> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( None , response ) <EOL> client_raw_response . add_headers ( { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> } ) <EOL> return client_raw_response <EOL> def disable ( <EOL> self , job_schedule_id , job_schedule_disable_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> timeout = None <EOL> if job_schedule_disable_options is not None : <EOL> timeout = job_schedule_disable_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_disable_options is not None : <EOL> client_request_id = job_schedule_disable_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_disable_options is not None : <EOL> return_client_request_id = job_schedule_disable_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_disable_options is not None : <EOL> ocp_date = job_schedule_disable_options . ocp_date <EOL> if_match = None <EOL> if job_schedule_disable_options is not None : <EOL> if_match = job_schedule_disable_options . if_match <EOL> if_none_match = None <EOL> if job_schedule_disable_options is not None : <EOL> if_none_match = job_schedule_disable_options . if_none_match <EOL> if_modified_since = None <EOL> if job_schedule_disable_options is not None : <EOL> if_modified_since = job_schedule_disable_options . if_modified_since <EOL> if_unmodified_since = None <EOL> if job_schedule_disable_options is not None : <EOL> if_unmodified_since = job_schedule_disable_options . if_unmodified_since <EOL> url = '<STR_LIT>' <EOL> path_format_arguments = { <EOL> '<STR_LIT>' : self . _serialize . url ( "<STR_LIT>" , job_schedule_id , '<STR_LIT:str>' ) <EOL> } <EOL> url = self . _client . format_url ( url , ** path_format_arguments ) <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> if if_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_match , '<STR_LIT:str>' ) <EOL> if if_none_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_none_match , '<STR_LIT:str>' ) <EOL> if if_modified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_modified_since , '<STR_LIT>' ) <EOL> if if_unmodified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_unmodified_since , '<STR_LIT>' ) <EOL> request = self . _client . post ( url , query_parameters ) <EOL> response = self . _client . send ( request , header_parameters , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( None , response ) <EOL> client_raw_response . add_headers ( { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> } ) <EOL> return client_raw_response <EOL> def enable ( <EOL> self , job_schedule_id , job_schedule_enable_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> timeout = None <EOL> if job_schedule_enable_options is not None : <EOL> timeout = job_schedule_enable_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_enable_options is not None : <EOL> client_request_id = job_schedule_enable_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_enable_options is not None : <EOL> return_client_request_id = job_schedule_enable_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_enable_options is not None : <EOL> ocp_date = job_schedule_enable_options . ocp_date <EOL> if_match = None <EOL> if job_schedule_enable_options is not None : <EOL> if_match = job_schedule_enable_options . if_match <EOL> if_none_match = None <EOL> if job_schedule_enable_options is not None : <EOL> if_none_match = job_schedule_enable_options . if_none_match <EOL> if_modified_since = None <EOL> if job_schedule_enable_options is not None : <EOL> if_modified_since = job_schedule_enable_options . if_modified_since <EOL> if_unmodified_since = None <EOL> if job_schedule_enable_options is not None : <EOL> if_unmodified_since = job_schedule_enable_options . if_unmodified_since <EOL> url = '<STR_LIT>' <EOL> path_format_arguments = { <EOL> '<STR_LIT>' : self . _serialize . url ( "<STR_LIT>" , job_schedule_id , '<STR_LIT:str>' ) <EOL> } <EOL> url = self . _client . format_url ( url , ** path_format_arguments ) <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> if if_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_match , '<STR_LIT:str>' ) <EOL> if if_none_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_none_match , '<STR_LIT:str>' ) <EOL> if if_modified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_modified_since , '<STR_LIT>' ) <EOL> if if_unmodified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_unmodified_since , '<STR_LIT>' ) <EOL> request = self . _client . post ( url , query_parameters ) <EOL> response = self . _client . send ( request , header_parameters , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( None , response ) <EOL> client_raw_response . add_headers ( { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> } ) <EOL> return client_raw_response <EOL> def terminate ( <EOL> self , job_schedule_id , job_schedule_terminate_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> timeout = None <EOL> if job_schedule_terminate_options is not None : <EOL> timeout = job_schedule_terminate_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_terminate_options is not None : <EOL> client_request_id = job_schedule_terminate_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_terminate_options is not None : <EOL> return_client_request_id = job_schedule_terminate_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_terminate_options is not None : <EOL> ocp_date = job_schedule_terminate_options . ocp_date <EOL> if_match = None <EOL> if job_schedule_terminate_options is not None : <EOL> if_match = job_schedule_terminate_options . if_match <EOL> if_none_match = None <EOL> if job_schedule_terminate_options is not None : <EOL> if_none_match = job_schedule_terminate_options . if_none_match <EOL> if_modified_since = None <EOL> if job_schedule_terminate_options is not None : <EOL> if_modified_since = job_schedule_terminate_options . if_modified_since <EOL> if_unmodified_since = None <EOL> if job_schedule_terminate_options is not None : <EOL> if_unmodified_since = job_schedule_terminate_options . if_unmodified_since <EOL> url = '<STR_LIT>' <EOL> path_format_arguments = { <EOL> '<STR_LIT>' : self . _serialize . url ( "<STR_LIT>" , job_schedule_id , '<STR_LIT:str>' ) <EOL> } <EOL> url = self . _client . format_url ( url , ** path_format_arguments ) <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> if if_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_match , '<STR_LIT:str>' ) <EOL> if if_none_match is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_none_match , '<STR_LIT:str>' ) <EOL> if if_modified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_modified_since , '<STR_LIT>' ) <EOL> if if_unmodified_since is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , if_unmodified_since , '<STR_LIT>' ) <EOL> request = self . _client . post ( url , query_parameters ) <EOL> response = self . _client . send ( request , header_parameters , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( None , response ) <EOL> client_raw_response . add_headers ( { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> } ) <EOL> return client_raw_response <EOL> def add ( <EOL> self , cloud_job_schedule , job_schedule_add_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> timeout = None <EOL> if job_schedule_add_options is not None : <EOL> timeout = job_schedule_add_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_add_options is not None : <EOL> client_request_id = job_schedule_add_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_add_options is not None : <EOL> return_client_request_id = job_schedule_add_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_add_options is not None : <EOL> ocp_date = job_schedule_add_options . ocp_date <EOL> url = '<STR_LIT>' <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> body_content = self . _serialize . body ( cloud_job_schedule , '<STR_LIT>' ) <EOL> request = self . _client . post ( url , query_parameters ) <EOL> response = self . _client . send ( <EOL> request , header_parameters , body_content , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> if raw : <EOL> client_raw_response = ClientRawResponse ( None , response ) <EOL> client_raw_response . add_headers ( { <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT:str>' , <EOL> } ) <EOL> return client_raw_response <EOL> def list ( <EOL> self , job_schedule_list_options = None , custom_headers = { } , raw = False , ** operation_config ) : <EOL> """<STR_LIT>""" <EOL> filter = None <EOL> if job_schedule_list_options is not None : <EOL> filter = job_schedule_list_options . filter <EOL> select = None <EOL> if job_schedule_list_options is not None : <EOL> select = job_schedule_list_options . select <EOL> expand = None <EOL> if job_schedule_list_options is not None : <EOL> expand = job_schedule_list_options . expand <EOL> max_results = None <EOL> if job_schedule_list_options is not None : <EOL> max_results = job_schedule_list_options . max_results <EOL> timeout = None <EOL> if job_schedule_list_options is not None : <EOL> timeout = job_schedule_list_options . timeout <EOL> client_request_id = None <EOL> if job_schedule_list_options is not None : <EOL> client_request_id = job_schedule_list_options . client_request_id <EOL> return_client_request_id = None <EOL> if job_schedule_list_options is not None : <EOL> return_client_request_id = job_schedule_list_options . return_client_request_id <EOL> ocp_date = None <EOL> if job_schedule_list_options is not None : <EOL> ocp_date = job_schedule_list_options . ocp_date <EOL> def internal_paging ( next_link = None , raw = False ) : <EOL> if not next_link : <EOL> url = '<STR_LIT>' <EOL> query_parameters = { } <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , self . config . api_version , '<STR_LIT:str>' ) <EOL> if filter is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , filter , '<STR_LIT:str>' ) <EOL> if select is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , select , '<STR_LIT:str>' ) <EOL> if expand is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , expand , '<STR_LIT:str>' ) <EOL> if max_results is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , max_results , '<STR_LIT:int>' ) <EOL> if timeout is not None : <EOL> query_parameters [ '<STR_LIT>' ] = self . _serialize . query ( "<STR_LIT>" , timeout , '<STR_LIT:int>' ) <EOL> else : <EOL> url = next_link <EOL> query_parameters = { } <EOL> header_parameters = { } <EOL> header_parameters [ '<STR_LIT:Content-Type>' ] = '<STR_LIT>' <EOL> if self . config . generate_client_request_id : <EOL> header_parameters [ '<STR_LIT>' ] = str ( uuid . uuid1 ( ) ) <EOL> if custom_headers : <EOL> header_parameters . update ( custom_headers ) <EOL> if self . config . accept_language is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , self . config . accept_language , '<STR_LIT:str>' ) <EOL> if client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , client_request_id , '<STR_LIT:str>' ) <EOL> if return_client_request_id is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , return_client_request_id , '<STR_LIT:bool>' ) <EOL> if ocp_date is not None : <EOL> header_parameters [ '<STR_LIT>' ] = self . _serialize . header ( "<STR_LIT>" , ocp_date , '<STR_LIT>' ) <EOL> request = self . _client . get ( url , query_parameters ) <EOL> response = self . _client . send ( <EOL> request , header_parameters , ** operation_config ) <EOL> if response . status_code not in [ <NUM_LIT:200> ] : <EOL> raise models . BatchErrorException ( self . _deserialize , response ) <EOL> return response <EOL> deserialized = models . CloudJobSchedulePaged ( internal_paging , self . _deserialize . dependencies ) <EOL> if raw : <EOL> header_dict = { } <EOL> client_raw_response = models . CloudJobSchedulePaged ( internal_paging , self . _deserialize . dependencies , header_dict ) <EOL> return client_raw_response <EOL> return deserialized </s>
