@@ -66,7 +66,7 @@ def _target_api_request(
6666 server_access_key : str ,
6767 server_secret_key : str ,
6868 method : str ,
69- content : bytes ,
69+ data : bytes ,
7070 request_path : str ,
7171 base_vws_url : str ,
7272) -> Response :
@@ -80,7 +80,7 @@ def _target_api_request(
8080 server_access_key: A VWS server access key.
8181 server_secret_key: A VWS server secret key.
8282 method: The HTTP method which will be used in the request.
83- content : The request body which will be used in the request.
83+ data : The request body which will be used in the request.
8484 request_path: The path to the endpoint which will be used in the
8585 request.
8686 base_vws_url: The base URL for the VWS API.
@@ -95,7 +95,7 @@ def _target_api_request(
9595 access_key = server_access_key ,
9696 secret_key = server_secret_key ,
9797 method = method ,
98- content = content ,
98+ content = data ,
9999 content_type = content_type ,
100100 date = date_string ,
101101 request_path = request_path ,
@@ -113,7 +113,7 @@ def _target_api_request(
113113 method = method ,
114114 url = url ,
115115 headers = headers ,
116- data = content ,
116+ data = data ,
117117 # We should make the timeout customizable.
118118 timeout = 30 ,
119119 )
@@ -151,7 +151,7 @@ def __init__(
151151 def _make_request (
152152 self ,
153153 method : str ,
154- content : bytes ,
154+ data : bytes ,
155155 request_path : str ,
156156 expected_result_code : str ,
157157 ) -> Response :
@@ -163,7 +163,7 @@ def _make_request(
163163
164164 Args:
165165 method: The HTTP method which will be used in the request.
166- content : The request body which will be used in the request.
166+ data : The request body which will be used in the request.
167167 request_path: The path to the endpoint which will be used in the
168168 request.
169169 expected_result_code: See
@@ -189,7 +189,7 @@ def _make_request(
189189 server_access_key = self ._server_access_key ,
190190 server_secret_key = self ._server_secret_key ,
191191 method = method ,
192- content = content ,
192+ data = data ,
193193 request_path = request_path ,
194194 base_vws_url = self ._base_vws_url ,
195195 )
@@ -309,7 +309,7 @@ def add_target(
309309
310310 response = self ._make_request (
311311 method = HTTPMethod .POST ,
312- content = content ,
312+ data = content ,
313313 request_path = "/targets" ,
314314 expected_result_code = "TargetCreated" ,
315315 )
@@ -346,7 +346,7 @@ def get_target_record(self, target_id: str) -> TargetStatusAndRecord:
346346 """
347347 response = self ._make_request (
348348 method = HTTPMethod .GET ,
349- content = b"" ,
349+ data = b"" ,
350350 request_path = f"/targets/{ target_id } " ,
351351 expected_result_code = "Success" ,
352352 )
@@ -442,7 +442,7 @@ def list_targets(self) -> list[str]:
442442 """
443443 response = self ._make_request (
444444 method = HTTPMethod .GET ,
445- content = b"" ,
445+ data = b"" ,
446446 request_path = "/targets" ,
447447 expected_result_code = "Success" ,
448448 )
@@ -479,7 +479,7 @@ def get_target_summary_report(self, target_id: str) -> TargetSummaryReport:
479479 """
480480 response = self ._make_request (
481481 method = HTTPMethod .GET ,
482- content = b"" ,
482+ data = b"" ,
483483 request_path = f"/summary/{ target_id } " ,
484484 expected_result_code = "Success" ,
485485 )
@@ -522,7 +522,7 @@ def get_database_summary_report(self) -> DatabaseSummaryReport:
522522 """
523523 response = self ._make_request (
524524 method = HTTPMethod .GET ,
525- content = b"" ,
525+ data = b"" ,
526526 request_path = "/summary" ,
527527 expected_result_code = "Success" ,
528528 )
@@ -572,7 +572,7 @@ def delete_target(self, target_id: str) -> None:
572572 """
573573 self ._make_request (
574574 method = HTTPMethod .DELETE ,
575- content = b"" ,
575+ data = b"" ,
576576 request_path = f"/targets/{ target_id } " ,
577577 expected_result_code = "Success" ,
578578 )
@@ -609,7 +609,7 @@ def get_duplicate_targets(self, target_id: str) -> list[str]:
609609 """
610610 response = self ._make_request (
611611 method = HTTPMethod .GET ,
612- content = b"" ,
612+ data = b"" ,
613613 request_path = f"/duplicates/{ target_id } " ,
614614 expected_result_code = "Success" ,
615615 )
@@ -693,7 +693,7 @@ def update_target(
693693
694694 self ._make_request (
695695 method = HTTPMethod .PUT ,
696- content = content ,
696+ data = content ,
697697 request_path = f"/targets/{ target_id } " ,
698698 expected_result_code = "Success" ,
699699 )
0 commit comments