-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
149 changed files
with
19,319 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
load("//bazel:gapic.bzl", "cc_gapic_library") | ||
|
||
package(default_visibility = ["//visibility:private"]) | ||
|
||
licenses(["notice"]) # Apache 2.0 | ||
|
||
service_dirs = [ | ||
"", | ||
"v2/", | ||
] | ||
|
||
googleapis_deps = [ | ||
"@com_google_googleapis//google/cloud/run/v2:run_cc_grpc", | ||
] | ||
|
||
cc_gapic_library( | ||
name = "run", | ||
googleapis_deps = googleapis_deps, | ||
service_dirs = service_dirs, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright 2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
licenses(["notice"]) # Apache 2.0 | ||
|
||
cc_binary( | ||
name = "quickstart", | ||
srcs = [ | ||
"quickstart.cc", | ||
], | ||
deps = [ | ||
"@google_cloud_cpp//:run", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"api_id": "run.googleapis.com", | ||
"api_shortname": "run", | ||
"client_documentation": "https://cloud.google.com/cpp/docs/reference/run/latest", | ||
"distribution_name": "google-cloud-cpp", | ||
"issue_tracker": "https://issuetracker.google.com/savedsearches/5447537", | ||
"language": "cpp", | ||
"library_type": "GAPIC_AUTO", | ||
"name_pretty": "Cloud Run Admin API", | ||
"product_documentation": "https://cloud.google.com/run/docs", | ||
"release_level": "stable", | ||
"repo": "googleapis/google-cloud-cpp", | ||
"requires_billing": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// https://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// Generated by the Codegen C++ plugin. | ||
// If you make any local changes, they will be lost. | ||
// source: google/cloud/run/v2/execution.proto | ||
|
||
#include "google/cloud/run/v2/executions_client.h" | ||
#include <memory> | ||
#include <utility> | ||
|
||
namespace google { | ||
namespace cloud { | ||
namespace run_v2 { | ||
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN | ||
|
||
ExecutionsClient::ExecutionsClient( | ||
std::shared_ptr<ExecutionsConnection> connection, Options opts) | ||
: connection_(std::move(connection)), | ||
options_( | ||
internal::MergeOptions(std::move(opts), connection_->options())) {} | ||
ExecutionsClient::~ExecutionsClient() = default; | ||
|
||
StatusOr<google::cloud::run::v2::Execution> ExecutionsClient::GetExecution( | ||
std::string const& name, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::run::v2::GetExecutionRequest request; | ||
request.set_name(name); | ||
return connection_->GetExecution(request); | ||
} | ||
|
||
StatusOr<google::cloud::run::v2::Execution> ExecutionsClient::GetExecution( | ||
google::cloud::run::v2::GetExecutionRequest const& request, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->GetExecution(request); | ||
} | ||
|
||
StreamRange<google::cloud::run::v2::Execution> ExecutionsClient::ListExecutions( | ||
std::string const& parent, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::run::v2::ListExecutionsRequest request; | ||
request.set_parent(parent); | ||
return connection_->ListExecutions(request); | ||
} | ||
|
||
StreamRange<google::cloud::run::v2::Execution> ExecutionsClient::ListExecutions( | ||
google::cloud::run::v2::ListExecutionsRequest request, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->ListExecutions(std::move(request)); | ||
} | ||
|
||
future<StatusOr<google::cloud::run::v2::Execution>> | ||
ExecutionsClient::DeleteExecution(std::string const& name, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::run::v2::DeleteExecutionRequest request; | ||
request.set_name(name); | ||
return connection_->DeleteExecution(request); | ||
} | ||
|
||
StatusOr<google::longrunning::Operation> ExecutionsClient::DeleteExecution( | ||
ExperimentalTag, NoAwaitTag, std::string const& name, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::run::v2::DeleteExecutionRequest request; | ||
request.set_name(name); | ||
return connection_->DeleteExecution(ExperimentalTag{}, NoAwaitTag{}, request); | ||
} | ||
|
||
future<StatusOr<google::cloud::run::v2::Execution>> | ||
ExecutionsClient::DeleteExecution( | ||
google::cloud::run::v2::DeleteExecutionRequest const& request, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->DeleteExecution(request); | ||
} | ||
|
||
StatusOr<google::longrunning::Operation> ExecutionsClient::DeleteExecution( | ||
ExperimentalTag, NoAwaitTag, | ||
google::cloud::run::v2::DeleteExecutionRequest const& request, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->DeleteExecution(ExperimentalTag{}, NoAwaitTag{}, request); | ||
} | ||
|
||
future<StatusOr<google::cloud::run::v2::Execution>> | ||
ExecutionsClient::DeleteExecution( | ||
ExperimentalTag, google::longrunning::Operation const& operation, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->DeleteExecution(ExperimentalTag{}, operation); | ||
} | ||
|
||
future<StatusOr<google::cloud::run::v2::Execution>> | ||
ExecutionsClient::CancelExecution(std::string const& name, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::run::v2::CancelExecutionRequest request; | ||
request.set_name(name); | ||
return connection_->CancelExecution(request); | ||
} | ||
|
||
StatusOr<google::longrunning::Operation> ExecutionsClient::CancelExecution( | ||
ExperimentalTag, NoAwaitTag, std::string const& name, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::run::v2::CancelExecutionRequest request; | ||
request.set_name(name); | ||
return connection_->CancelExecution(ExperimentalTag{}, NoAwaitTag{}, request); | ||
} | ||
|
||
future<StatusOr<google::cloud::run::v2::Execution>> | ||
ExecutionsClient::CancelExecution( | ||
google::cloud::run::v2::CancelExecutionRequest const& request, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->CancelExecution(request); | ||
} | ||
|
||
StatusOr<google::longrunning::Operation> ExecutionsClient::CancelExecution( | ||
ExperimentalTag, NoAwaitTag, | ||
google::cloud::run::v2::CancelExecutionRequest const& request, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->CancelExecution(ExperimentalTag{}, NoAwaitTag{}, request); | ||
} | ||
|
||
future<StatusOr<google::cloud::run::v2::Execution>> | ||
ExecutionsClient::CancelExecution( | ||
ExperimentalTag, google::longrunning::Operation const& operation, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->CancelExecution(ExperimentalTag{}, operation); | ||
} | ||
|
||
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END | ||
} // namespace run_v2 | ||
} // namespace cloud | ||
} // namespace google |
Oops, something went wrong.