diff --git a/src/ds3.c b/src/ds3.c index 6639a934..1be37730 100644 --- a/src/ds3.c +++ b/src/ds3.c @@ -1218,7 +1218,6 @@ void ds3_tape_partition_response_free(ds3_tape_partition_response* response) { ds3_str_free(response->id); ds3_str_free(response->library_id); ds3_str_free(response->name); - ds3_str_free(response->serial_id); ds3_str_free(response->serial_number); g_free(response); @@ -1680,7 +1679,6 @@ void ds3_detailed_tape_partition_response_free(ds3_detailed_tape_partition_respo ds3_str_free(response->id); ds3_str_free(response->library_id); ds3_str_free(response->name); - ds3_str_free(response->serial_id); ds3_str_free(response->serial_number); for (index = 0; index < response->num_tape_types; index++) { ds3_str_free(response->tape_types[index]); @@ -1781,7 +1779,6 @@ void ds3_named_detailed_tape_partition_response_free(ds3_named_detailed_tape_par ds3_str_free(response->id); ds3_str_free(response->library_id); ds3_str_free(response->name); - ds3_str_free(response->serial_id); ds3_str_free(response->serial_number); for (index = 0; index < response->num_tape_types; index++) { ds3_str_free(response->tape_types[index]); diff --git a/src/ds3.h b/src/ds3.h index e1784701..6cd20378 100644 --- a/src/ds3.h +++ b/src/ds3.h @@ -1239,7 +1239,6 @@ typedef struct { int minimum_write_reserved_drives; ds3_str* name; ds3_quiesced quiesced; - ds3_str* serial_id; ds3_str* serial_number; ds3_tape_partition_state state; }ds3_tape_partition_response; @@ -1516,7 +1515,6 @@ typedef struct { int minimum_write_reserved_drives; ds3_str* name; ds3_quiesced quiesced; - ds3_str* serial_id; ds3_str* serial_number; ds3_tape_partition_state state; ds3_str** tape_types; @@ -1577,7 +1575,6 @@ typedef struct { int minimum_write_reserved_drives; ds3_str* name; ds3_quiesced quiesced; - ds3_str* serial_id; ds3_str* serial_number; ds3_tape_partition_state state; ds3_str** tape_types; @@ -4588,6 +4585,7 @@ LIBRARY_API ds3_error* ds3_modify_tape_drive_spectra_s3_request(const ds3_client * void ds3_request_set_minimum_read_reserved_drives(const ds3_request* request, const int value) * void ds3_request_set_minimum_write_reserved_drives(const ds3_request* request, const int value) * void ds3_request_set_quiesced_ds3_quiesced(const ds3_request* request, const ds3_quiesced value) + * void ds3_request_set_serial_number(const ds3_request* request, const char * const value) */ LIBRARY_API ds3_request* ds3_init_modify_tape_partition_spectra_s3_request(const char *const resource_id); LIBRARY_API ds3_error* ds3_modify_tape_partition_spectra_s3_request(const ds3_client* client, const ds3_request* request, ds3_tape_partition_response** response); diff --git a/src/ds3_requests.c b/src/ds3_requests.c index ba3732ad..c3245f66 100644 --- a/src/ds3_requests.c +++ b/src/ds3_requests.c @@ -4068,8 +4068,6 @@ static ds3_error* _parse_ds3_tape_partition_response(const ds3_client* client, c } response->quiesced = _match_ds3_quiesced(client->log, text); xmlFree(text); - } else if (element_equal(child_node, "SerialId")) { - response->serial_id = xml_get_string(doc, child_node); } else if (element_equal(child_node, "SerialNumber")) { response->serial_number = xml_get_string(doc, child_node); } else if (element_equal(child_node, "State")) { @@ -5350,8 +5348,6 @@ static ds3_error* _parse_ds3_named_detailed_tape_partition_response(const ds3_cl } response->quiesced = _match_ds3_quiesced(client->log, text); xmlFree(text); - } else if (element_equal(child_node, "SerialId")) { - response->serial_id = xml_get_string(doc, child_node); } else if (element_equal(child_node, "SerialNumber")) { response->serial_number = xml_get_string(doc, child_node); } else if (element_equal(child_node, "State")) { @@ -8795,8 +8791,6 @@ static ds3_error* _parse_top_level_ds3_tape_partition_response(const ds3_client* } response->quiesced = _match_ds3_quiesced(client->log, text); xmlFree(text); - } else if (element_equal(child_node, "SerialId")) { - response->serial_id = xml_get_string(doc, child_node); } else if (element_equal(child_node, "SerialNumber")) { response->serial_number = xml_get_string(doc, child_node); } else if (element_equal(child_node, "State")) { @@ -9526,8 +9520,6 @@ static ds3_error* _parse_top_level_ds3_detailed_tape_partition_response(const ds } response->quiesced = _match_ds3_quiesced(client->log, text); xmlFree(text); - } else if (element_equal(child_node, "SerialId")) { - response->serial_id = xml_get_string(doc, child_node); } else if (element_equal(child_node, "SerialNumber")) { response->serial_number = xml_get_string(doc, child_node); } else if (element_equal(child_node, "State")) {