#NEWLINE# def list( self , certificate_list_options = None , custom_headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , raw = False , **operation_config ) : #NEWLINE# #INDENT# '\n        Lists all of the certificates that have been added to the specified\n        account.\n\n        :param certificate_list_options: Additional parameters for the\n         operation\n        :type certificate_list_options: :class:`CertificateListOptions\n         <azure.batch.models.CertificateListOptions>`\n        :param dict custom_headers: headers that will be added to the request\n        :param bool raw: returns the direct response alongside the\n         deserialized response\n        :param operation_config: :ref:`Operation configuration\n         overrides<msrest:optionsforoperations>`.\n        :rtype: :class:`CertificatePaged\n         <azure.batch.models.CertificatePaged>`\n        ' #NEWLINE# filter = None #NEWLINE# if ( certificate_list_options is not None ) : #NEWLINE# #INDENT# filter = certificate_list_options . filter #NEWLINE# #UNINDENT# select = None #NEWLINE# if ( certificate_list_options is not None ) : #NEWLINE# #INDENT# select = certificate_list_options . select #NEWLINE# #UNINDENT# max_results = None #NEWLINE# if ( certificate_list_options is not None ) : #NEWLINE# #INDENT# max_results = certificate_list_options . max_results #NEWLINE# #UNINDENT# timeout = None #NEWLINE# if ( certificate_list_options is not None ) : #NEWLINE# #INDENT# timeout = certificate_list_options . timeout #NEWLINE# #UNINDENT# client_request_id = None #NEWLINE# if ( certificate_list_options is not None ) : #NEWLINE# #INDENT# client_request_id = certificate_list_options . client_request_id #NEWLINE# #UNINDENT# return_client_request_id = None #NEWLINE# if ( certificate_list_options is not None ) : #NEWLINE# #INDENT# return_client_request_id = certificate_list_options . return_client_request_id #NEWLINE# #UNINDENT# ocp_date = None #NEWLINE# if ( certificate_list_options is not None ) : #NEWLINE# #INDENT# ocp_date = certificate_list_options . ocp_date #NEWLINE# #UNINDENT# def internal_paging( next_link = None , raw = False ) : #NEWLINE# #INDENT# if ( not next_link ) : #NEWLINE# #INDENT# url = '/certificates' #NEWLINE# query_parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# query_parameters [ 'api-version' ] = self . _serialize . query ( 'self.config.api_version' , self . config . api_version , 'str' ) #NEWLINE# if ( filter is not None ) : #NEWLINE# #INDENT# query_parameters [ '$filter' ] = self . _serialize . query ( 'filter' , filter , 'str' ) #NEWLINE# #UNINDENT# if ( select is not None ) : #NEWLINE# #INDENT# query_parameters [ '$select' ] = self . _serialize . query ( 'select' , select , 'str' ) #NEWLINE# #UNINDENT# if ( max_results is not None ) : #NEWLINE# #INDENT# query_parameters [ 'maxresults' ] = self . _serialize . query ( 'max_results' , max_results , 'int' ) #NEWLINE# #UNINDENT# if ( timeout is not None ) : #NEWLINE# #INDENT# query_parameters [ 'timeout' ] = self . _serialize . query ( 'timeout' , timeout , 'int' ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# url = next_link #NEWLINE# query_parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# header_parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# header_parameters [ 'Content-Type' ] = 'application/json; odata=minimalmetadata; charset=utf-8' #NEWLINE# if self . config . generate_client_request_id : #NEWLINE# #INDENT# header_parameters [ 'x-ms-client-request-id' ] = str ( uuid . uuid1 ( ) ) #NEWLINE# #UNINDENT# if custom_headers : #NEWLINE# #INDENT# header_parameters . update ( custom_headers ) #NEWLINE# #UNINDENT# if ( self . config . accept_language is not None ) : #NEWLINE# #INDENT# header_parameters [ 'accept-language' ] = self . _serialize . header ( 'self.config.accept_language' , self . config . accept_language , 'str' ) #NEWLINE# #UNINDENT# if ( client_request_id is not None ) : #NEWLINE# #INDENT# header_parameters [ 'client-request-id' ] = self . _serialize . header ( 'client_request_id' , client_request_id , 'str' ) #NEWLINE# #UNINDENT# if ( return_client_request_id is not None ) : #NEWLINE# #INDENT# header_parameters [ 'return-client-request-id' ] = self . _serialize . header ( 'return_client_request_id' , return_client_request_id , 'bool' ) #NEWLINE# #UNINDENT# if ( ocp_date is not None ) : #NEWLINE# #INDENT# header_parameters [ 'ocp-date' ] = self . _serialize . header ( 'ocp_date' , ocp_date , 'rfc-1123' ) #NEWLINE# #UNINDENT# request = self . _client . get ( url , query_parameters ) #NEWLINE# response = self . _client . send ( request , header_parameters , ** operation_config ) #NEWLINE# if ( response . status_code not in [ 200 ] ) : #NEWLINE# #INDENT# raise models . BatchErrorException ( self . _deserialize , response ) #NEWLINE# #UNINDENT# return response #NEWLINE# #UNINDENT# deserialized = models . CertificatePaged ( internal_paging , self . _deserialize . dependencies ) #NEWLINE# if raw : #NEWLINE# #INDENT# header_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# client_raw_response = models . CertificatePaged ( internal_paging , self . _deserialize . dependencies , header_dict ) #NEWLINE# return client_raw_response #NEWLINE# #UNINDENT# return deserialized