response=f"{response} and\n Query Parameter: {key} set to '{value}'"
case_:
raiseException(f"ERROR, unexpected attribute '{result}', the attributes expected are "
f"'{expected_parameters}', but received: {kwargs}")
raiseException(f"ERROR: unexpected attribute(s){result}, the attributes expected are "
f"{expected_parameters}, but received: {kwargs}")
returnresponse
@@ -595,7 +595,7 @@ class Requests:
f" and Content-Type set to 'application/ld+json'")
returnresult
else:
raiseException(f"ERROR, expected filename attribute, but received {kwargs}")
raiseException(f"ERROR: expected filename attribute, but received {kwargs}")
@staticmethod
defbatch_update_entities(kwargs)->str:
@@ -608,7 +608,7 @@ class Requests:
f"and Content-Type set to 'application/ld+json'")
returnresult
else:
raiseException(f"ERROR, expected filename attribute, but received {kwargs}")
raiseException(f"ERROR: expected overwrite_option or entities attributes, but received {kwargs}")
@staticmethod
defbatch_upsert_entities(kwargs)->str:
@@ -621,7 +621,7 @@ class Requests:
f"and Content-Type set to 'application/ld+json'")
returnresult
else:
raiseException(f"ERROR, expected filename attribute, but received {kwargs}")
raiseException(f"ERROR: expected update_option or entities_to_be_upserted attributes, but received {kwargs}")
@staticmethod
deflist_contexts(kwargs)->str:
@@ -636,8 +636,8 @@ class Requests:
case'kind':
response=f"{response} and\n Query Parameter: kind set to '{value}'"
case_:
raiseException(f"ERROR, unexpected attribute '{result}', the attributes expected are "
f"'{expected_parameters}', but received: {kwargs}")
raiseException(f"ERROR: unexpected attribute(s){result}, the attributes expected are "
f"{expected_parameters}, but received: {kwargs}")
returnresponse
@@ -665,7 +665,7 @@ class Requests:
f"and payload set to '{kwargs['context_source_registration_payload']}'")
returnresult
else:
raiseException(f"ERROR, expected filename and content_type attributes, but received {kwargs}")
raiseException(f"ERROR: expected context_source_registration_payload attribute, but received {kwargs}")
@staticmethod
defwait_for_notification(kwargs)->str:
@@ -673,7 +673,7 @@ class Requests:
result=f"Waiting for notification with timeout set to '{kwargs['timeout']}'"
returnresult
else:
raiseException(f"ERROR, expected filename and content_type attributes, but received {kwargs}")
raiseException(f"ERROR: expected timeout attribute, but received {kwargs}")
@staticmethod
defsetup_initial_subscriptions(kwargs)->str:
@@ -699,7 +699,7 @@ class Requests:
f"payload defined in file: '{kwargs['filename']}'")
returnresult
else:
raiseException(f"ERROR, expected filename and content_type attributes, but received {kwargs}")
raiseException(f"ERROR: expected filename attribute, but received {kwargs}")
@staticmethod
defbatch_request_entities_from_file(kwargs)->str:
@@ -707,7 +707,7 @@ class Requests:
result=(f"Batch Entity Delete Request with operation set to '{kwargs['operation']}', Content-Type set to 'application/ld+json', and body set to '{kwargs['filename']}")
returnresult
else:
raiseException(f"ERROR, expected content_type attribute, but received {kwargs}")
raiseException(f"ERROR: expected operation and filename attributes, but received {kwargs}")
@staticmethod
defrequest_entity_from_file(kwargs)->str:
@@ -715,7 +715,7 @@ class Requests:
result=f"Request Entity from file with filename set to '{kwargs['filename']}' and content-type set to 'application/ld+json'"
returnresult
else:
raiseException(f"ERROR, expected filename attribute, but received {kwargs}")
raiseException(f"ERROR: expected filename attribute, but received {kwargs}")
@staticmethod
defbatch_create_entities(kwargs)->str:
@@ -724,7 +724,7 @@ class Requests:
f"payload set to a list of entities to be created")
returnresult
else:
raiseException(f"ERROR, expected content_type attribute, but received {kwargs}")
raiseException(f"ERROR: expected content_type attribute, but received {kwargs}")