parameters: (self, credentials_details_req, gateway_id, datasource_id, access_token)
return_statement: return api_response
docstring: Makes API call
  
          Args:
              credentials_details_req (CredentialsDetailsRequest): Credentials update request body
              gateway_id (str): Gateway Id
              datasource_id (str): Data source id to encrpt
              access_token (str): Access token to call API
  
          Returns:
              Response: Response from the API call
docstring_summary: Makes API call
docstring_tokens: Makes API call
function: def make_update_datasource_patch_request(self, credentials_details_req, gateway_id, datasource_id, access_token):
          ''' Makes API call
  
          Args:
              credentials_details_req (CredentialsDetailsRequest): Credentials update request body
              gateway_id (str): Gateway Id
              datasource_id (str): Data source id to encrpt
              access_token (str): Access token to call API
  
          Returns:
              Response: Response from the API call
          '''
  
          self.headers = {'Content-Type': 'application/json', 'Authorization': 'Bearer ' + access_token}
  
          # Gateways - Update Datasource Power BI REST API
          # https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource
          endpoint_url = f'https://api.powerbi.com/v1.0/myorg/gateways/{gateway_id}/datasources/{datasource_id}'
  
          api_response = requests.patch(endpoint_url, data=json.dumps(credentials_details_req.__dict__), headers=self.headers)
  
          return api_response
function_tokens: def make_update_datasource_patch_request ( self , credentials_details_req , gateway_id , datasource_id , access_token ) : self . headers = { 'Content-Type' : 'application/json' , 'Authorization' : 'Bearer ' + access_token } # Gateways - Update Datasource Power BI REST API # https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource endpoint_url = f'https://api.powerbi.com/v1.0/myorg/gateways/{gateway_id}/datasources/{datasource_id}' api_response = requests . patch ( endpoint_url , data = json . dumps ( credentials_details_req . __dict__ ) , headers = self . headers ) return api_response