Skip to content

Commit

Permalink
Merge pull request #233 from RachelTucker/update-5-4
Browse files Browse the repository at this point in the history
Generated 5.4 BP API from contract commit 2742576
  • Loading branch information
david-limbach authored Oct 7, 2021
2 parents b013ff8 + 280ed04 commit b0a32ae
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project(libds3)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/")

set (DS3SDK_VERSION_MAJOR 5)
set (DS3SDK_VERSION_MINOR 3)
set (DS3SDK_VERSION_MINOR 4)
set (DS3SDK_VERSION_PATCH 0)

add_subdirectory(src)
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,13 @@ int main (int args, char * argv[]) {
The structure of the code is very similar to the previous examples. Setup the client, setup the call, perform the call. Every request follows this same pattern.
Additional examples are available here: [samples](sample)
Creating a New Release
----------------------
Update the version of the SDK before creating a new release. The format is `<major>.<minor>.<patch>`, where the
`<major>.<minor>` numbers must match the version of BP. The `<patch>` is an incrementing number that increments with
each SDK release for a given major/minor release.
The version is specified in `CMakeLists.txt`.
6 changes: 6 additions & 0 deletions src/ds3.h
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,10 @@ typedef struct {
ds3_bool default_verify_data_prior_to_import;
ds3_str* id;
ds3_str* instance_id;
float iom_cache_limitation_percent;
ds3_bool iom_enabled;
ds3_str* last_heartbeat;
int max_aggregated_blobs_per_chunk;
int partially_verify_last_percent_of_tapes;
ds3_unavailable_media_usage_policy unavailable_media_policy;
int unavailable_pool_max_job_retry_in_mins;
Expand Down Expand Up @@ -2558,6 +2560,7 @@ LIBRARY_API void ds3_request_set_implicit_job_id_resolution(const ds3_request* r
LIBRARY_API void ds3_request_set_import_export_configuration_ds3_import_export_configuration(const ds3_request* request, const ds3_import_export_configuration value);
LIBRARY_API void ds3_request_set_include_physical_placement(const ds3_request* request, ds3_bool value);
LIBRARY_API void ds3_request_set_initial_data_placement_ds3_s3_initial_data_placement_policy(const ds3_request* request, const ds3_s3_initial_data_placement_policy value);
LIBRARY_API void ds3_request_set_iom_cache_limitation_percent(const ds3_request* request, const float value);
LIBRARY_API void ds3_request_set_iom_enabled(const ds3_request* request, ds3_bool value);
LIBRARY_API void ds3_request_set_isolation_level_ds3_data_isolation_level(const ds3_request* request, const ds3_data_isolation_level value);
LIBRARY_API void ds3_request_set_job(const ds3_request* request, const char * const value);
Expand All @@ -2572,6 +2575,7 @@ LIBRARY_API void ds3_request_set_library_id(const ds3_request* request, const ch
LIBRARY_API void ds3_request_set_ltfs_file_naming_ds3_ltfs_file_naming_mode(const ds3_request* request, const ds3_ltfs_file_naming_mode value);
LIBRARY_API void ds3_request_set_management_url(const ds3_request* request, const char * const value);
LIBRARY_API void ds3_request_set_marker(const ds3_request* request, const char * const value);
LIBRARY_API void ds3_request_set_max_aggregated_blobs_per_chunk(const ds3_request* request, const int value);
LIBRARY_API void ds3_request_set_max_blob_part_size_in_bytes(const ds3_request* request, const uint64_t value);
LIBRARY_API void ds3_request_set_max_buckets(const ds3_request* request, const int value);
LIBRARY_API void ds3_request_set_max_capacity_in_bytes(const ds3_request* request, const uint64_t value);
Expand Down Expand Up @@ -2960,7 +2964,9 @@ LIBRARY_API ds3_error* ds3_get_data_planner_blob_store_tasks_spectra_s3_request(
* void ds3_request_set_cache_available_retry_after_in_seconds(const ds3_request* request, const int value)
* void ds3_request_set_default_verify_data_after_import_ds3_priority(const ds3_request* request, const ds3_priority value)
* void ds3_request_set_default_verify_data_prior_to_import(const ds3_request* request, ds3_bool value)
* void ds3_request_set_iom_cache_limitation_percent(const ds3_request* request, const float value)
* void ds3_request_set_iom_enabled(const ds3_request* request, ds3_bool value)
* void ds3_request_set_max_aggregated_blobs_per_chunk(const ds3_request* request, const int value)
* void ds3_request_set_partially_verify_last_percent_of_tapes(const ds3_request* request, const int value)
* void ds3_request_set_unavailable_media_policy_ds3_unavailable_media_usage_policy(const ds3_request* request, const ds3_unavailable_media_usage_policy value)
* void ds3_request_set_unavailable_pool_max_job_retry_in_mins(const ds3_request* request, const int value)
Expand Down
8 changes: 8 additions & 0 deletions src/ds3_init_requests.c
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,10 @@ void ds3_request_set_include_physical_placement(const ds3_request* request, ds3_
void ds3_request_set_initial_data_placement_ds3_s3_initial_data_placement_policy(const ds3_request* request, const ds3_s3_initial_data_placement_policy value) {
_set_query_param(request, "initial_data_placement", (const char*)_get_ds3_s3_initial_data_placement_policy_str(value));

}
void ds3_request_set_iom_cache_limitation_percent(const ds3_request* request, const float value) {
_set_query_param_float(request, "iom_cache_limitation_percent", value);

}
void ds3_request_set_iom_enabled(const ds3_request* request, ds3_bool value) {
_set_query_param_flag(request, "iom_enabled", value);
Expand Down Expand Up @@ -1268,6 +1272,10 @@ void ds3_request_set_management_url(const ds3_request* request, const char * con
void ds3_request_set_marker(const ds3_request* request, const char * const value) {
_set_query_param(request, "marker", value);

}
void ds3_request_set_max_aggregated_blobs_per_chunk(const ds3_request* request, const int value) {
_set_query_param_int(request, "max_aggregated_blobs_per_chunk", value);

}
void ds3_request_set_max_blob_part_size_in_bytes(const ds3_request* request, const uint64_t value) {
_set_query_param_uint64_t(request, "max_blob_part_size_in_bytes", value);
Expand Down
4 changes: 4 additions & 0 deletions src/ds3_requests.c
Original file line number Diff line number Diff line change
Expand Up @@ -6535,10 +6535,14 @@ static ds3_error* _parse_top_level_ds3_data_path_backend_response(const ds3_clie
response->id = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "InstanceId")) {
response->instance_id = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "IomCacheLimitationPercent")) {
response->iom_cache_limitation_percent = xml_get_uint64(doc, child_node);
} else if (element_equal(child_node, "IomEnabled")) {
response->iom_enabled = xml_get_bool(client->log, doc, child_node);
} else if (element_equal(child_node, "LastHeartbeat")) {
response->last_heartbeat = xml_get_string(doc, child_node);
} else if (element_equal(child_node, "MaxAggregatedBlobsPerChunk")) {
response->max_aggregated_blobs_per_chunk = xml_get_uint16(doc, child_node);
} else if (element_equal(child_node, "PartiallyVerifyLastPercentOfTapes")) {
response->partially_verify_last_percent_of_tapes = xml_get_uint16(doc, child_node);
} else if (element_equal(child_node, "UnavailableMediaPolicy")) {
Expand Down

0 comments on commit b0a32ae

Please sign in to comment.