Skip to content

Commit

Permalink
generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthart committed Jul 18, 2024
1 parent 6fb2cf6 commit 9b26c95
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ DefaultDatasetServiceRestStub::ListDatasets(
rest_internal::DetermineApiVersion("v2", options), "/",
"projects", "/", request.project_id(), "/", "datasets"),
rest_internal::TrimEmptyQueryParameters(
{std::make_pair("page_token", request.page_token()),
{std::make_pair("max_results",
std::to_string(request.max_results().value())),
std::make_pair("page_token", request.page_token()),
std::make_pair("all", request.all() ? "1" : "0"),
std::make_pair("filter", request.filter())}));
}
Expand Down
12 changes: 11 additions & 1 deletion google/cloud/bigquerycontrol/v2/internal/job_rest_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ DefaultJobServiceRestStub::ListJobs(
"projects", "/", request.project_id(), "/", "jobs"),
rest_internal::TrimEmptyQueryParameters(
{std::make_pair("all_users", request.all_users() ? "1" : "0"),
std::make_pair("max_results",
std::to_string(request.max_results().value())),
std::make_pair("min_creation_time",
std::to_string(request.min_creation_time())),
std::make_pair("max_creation_time",
std::to_string(request.max_creation_time().value())),
std::make_pair("page_token", request.page_token()),
std::make_pair("projection", std::to_string(request.projection())),
std::make_pair("parent_job_id", request.parent_job_id())}));
Expand All @@ -125,7 +129,13 @@ DefaultJobServiceRestStub::GetQueryResults(
"projects", "/", request.project_id(), "/", "queries", "/",
request.job_id()),
rest_internal::TrimEmptyQueryParameters(
{std::make_pair("page_token", request.page_token()),
{std::make_pair("start_index",
std::to_string(request.start_index().value())),
std::make_pair("page_token", request.page_token()),
std::make_pair("max_results",
std::to_string(request.max_results().value())),
std::make_pair("timeout_ms",
std::to_string(request.timeout_ms().value())),
std::make_pair("location", request.location())}));
}

Expand Down
4 changes: 3 additions & 1 deletion google/cloud/bigquerycontrol/v2/internal/model_rest_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ DefaultModelServiceRestStub::ListModels(
"projects", "/", request.project_id(), "/", "datasets", "/",
request.dataset_id(), "/", "models"),
rest_internal::TrimEmptyQueryParameters(
{std::make_pair("page_token", request.page_token())}));
{std::make_pair("max_results",
std::to_string(request.max_results().value())),
std::make_pair("page_token", request.page_token())}));
}

StatusOr<google::cloud::bigquery::v2::Model>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ DefaultRoutineServiceRestStub::ListRoutines(
"projects", "/", request.project_id(), "/", "datasets", "/",
request.dataset_id(), "/", "routines"),
rest_internal::TrimEmptyQueryParameters(
{std::make_pair("page_token", request.page_token()),
{std::make_pair("max_results",
std::to_string(request.max_results().value())),
std::make_pair("page_token", request.page_token()),
std::make_pair("filter", request.filter())}));
}

Expand Down
4 changes: 3 additions & 1 deletion google/cloud/bigquerycontrol/v2/internal/table_rest_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ DefaultTableServiceRestStub::ListTables(
"projects", "/", request.project_id(), "/", "datasets", "/",
request.dataset_id(), "/", "tables"),
rest_internal::TrimEmptyQueryParameters(
{std::make_pair("page_token", request.page_token())}));
{std::make_pair("max_results",
std::to_string(request.max_results().value())),
std::make_pair("page_token", request.page_token())}));
}

GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Expand Down

0 comments on commit 9b26c95

Please sign in to comment.