#NEWLINE# def get( self , application_id , application_get_options = None , custom_headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , raw = False , **operation_config ) : #NEWLINE# #INDENT# '\n        Gets information about the specified application.\n\n        :param application_id: The id of the application.\n        :type application_id: str\n        :param application_get_options: Additional parameters for the\n         operation\n        :type application_get_options: :class:`ApplicationGetOptions\n         <azure.batch.models.ApplicationGetOptions>`\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:`ApplicationSummary\n         <azure.batch.models.ApplicationSummary>`\n        :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`\n         if raw=true\n        ' #NEWLINE# timeout = None #NEWLINE# if ( application_get_options is not None ) : #NEWLINE# #INDENT# timeout = application_get_options . timeout #NEWLINE# #UNINDENT# client_request_id = None #NEWLINE# if ( application_get_options is not None ) : #NEWLINE# #INDENT# client_request_id = application_get_options . client_request_id #NEWLINE# #UNINDENT# return_client_request_id = None #NEWLINE# if ( application_get_options is not None ) : #NEWLINE# #INDENT# return_client_request_id = application_get_options . return_client_request_id #NEWLINE# #UNINDENT# ocp_date = None #NEWLINE# if ( application_get_options is not None ) : #NEWLINE# #INDENT# ocp_date = application_get_options . ocp_date #NEWLINE# #UNINDENT# url = '/applications/{applicationId}' #NEWLINE# path_format_arguments = { #NEWLINE# #INDENT# 'applicationId' : self . _serialize . url ( 'application_id' , application_id , 'str' ) , #NEWLINE# #UNINDENT# } #NEWLINE# url = self . _client . format_url ( url , ** path_format_arguments ) #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 ( timeout is not None ) : #NEWLINE# #INDENT# query_parameters [ 'timeout' ] = self . _serialize . query ( 'timeout' , timeout , 'int' ) #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# deserialized = None #NEWLINE# header_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( response . status_code == 200 ) : #NEWLINE# #INDENT# deserialized = self . _deserialize ( 'ApplicationSummary' , response ) #NEWLINE# header_dict = { #NEWLINE# #INDENT# 'client-request-id' : 'str' , #NEWLINE# 'request-id' : 'str' , #NEWLINE# 'ETag' : 'str' , #NEWLINE# 'Last-Modified' : 'rfc-1123' , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# if raw : #NEWLINE# #INDENT# client_raw_response = ClientRawResponse ( deserialized , response ) #NEWLINE# client_raw_response . add_headers ( header_dict ) #NEWLINE# return client_raw_response #NEWLINE# #UNINDENT# return deserialized