-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(aiplatform): add new service proto file (#13325)
- Loading branch information
Showing
34 changed files
with
3,373 additions
and
0 deletions.
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
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
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
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
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
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
115 changes: 115 additions & 0 deletions
115
google/cloud/aiplatform/v1/deployment_resource_pool_client.cc
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,115 @@ | ||
// 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/aiplatform/v1/deployment_resource_pool_service.proto | ||
|
||
#include "google/cloud/aiplatform/v1/deployment_resource_pool_client.h" | ||
#include <memory> | ||
|
||
namespace google { | ||
namespace cloud { | ||
namespace aiplatform_v1 { | ||
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN | ||
|
||
DeploymentResourcePoolServiceClient::DeploymentResourcePoolServiceClient( | ||
std::shared_ptr<DeploymentResourcePoolServiceConnection> connection, | ||
Options opts) | ||
: connection_(std::move(connection)), | ||
options_( | ||
internal::MergeOptions(std::move(opts), connection_->options())) {} | ||
DeploymentResourcePoolServiceClient::~DeploymentResourcePoolServiceClient() = | ||
default; | ||
|
||
future<StatusOr<google::cloud::aiplatform::v1::DeploymentResourcePool>> | ||
DeploymentResourcePoolServiceClient::CreateDeploymentResourcePool( | ||
std::string const& parent, | ||
google::cloud::aiplatform::v1::DeploymentResourcePool const& | ||
deployment_resource_pool, | ||
std::string const& deployment_resource_pool_id, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest request; | ||
request.set_parent(parent); | ||
*request.mutable_deployment_resource_pool() = deployment_resource_pool; | ||
request.set_deployment_resource_pool_id(deployment_resource_pool_id); | ||
return connection_->CreateDeploymentResourcePool(request); | ||
} | ||
|
||
future<StatusOr<google::cloud::aiplatform::v1::DeploymentResourcePool>> | ||
DeploymentResourcePoolServiceClient::CreateDeploymentResourcePool( | ||
google::cloud::aiplatform::v1::CreateDeploymentResourcePoolRequest const& | ||
request, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->CreateDeploymentResourcePool(request); | ||
} | ||
|
||
StatusOr<google::cloud::aiplatform::v1::DeploymentResourcePool> | ||
DeploymentResourcePoolServiceClient::GetDeploymentResourcePool( | ||
std::string const& name, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::aiplatform::v1::GetDeploymentResourcePoolRequest request; | ||
request.set_name(name); | ||
return connection_->GetDeploymentResourcePool(request); | ||
} | ||
|
||
StatusOr<google::cloud::aiplatform::v1::DeploymentResourcePool> | ||
DeploymentResourcePoolServiceClient::GetDeploymentResourcePool( | ||
google::cloud::aiplatform::v1::GetDeploymentResourcePoolRequest const& | ||
request, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->GetDeploymentResourcePool(request); | ||
} | ||
|
||
StreamRange<google::cloud::aiplatform::v1::DeploymentResourcePool> | ||
DeploymentResourcePoolServiceClient::ListDeploymentResourcePools( | ||
std::string const& parent, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::aiplatform::v1::ListDeploymentResourcePoolsRequest request; | ||
request.set_parent(parent); | ||
return connection_->ListDeploymentResourcePools(request); | ||
} | ||
|
||
StreamRange<google::cloud::aiplatform::v1::DeploymentResourcePool> | ||
DeploymentResourcePoolServiceClient::ListDeploymentResourcePools( | ||
google::cloud::aiplatform::v1::ListDeploymentResourcePoolsRequest request, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->ListDeploymentResourcePools(std::move(request)); | ||
} | ||
|
||
future<StatusOr<google::cloud::aiplatform::v1::DeleteOperationMetadata>> | ||
DeploymentResourcePoolServiceClient::DeleteDeploymentResourcePool( | ||
std::string const& name, Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest request; | ||
request.set_name(name); | ||
return connection_->DeleteDeploymentResourcePool(request); | ||
} | ||
|
||
future<StatusOr<google::cloud::aiplatform::v1::DeleteOperationMetadata>> | ||
DeploymentResourcePoolServiceClient::DeleteDeploymentResourcePool( | ||
google::cloud::aiplatform::v1::DeleteDeploymentResourcePoolRequest const& | ||
request, | ||
Options opts) { | ||
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_)); | ||
return connection_->DeleteDeploymentResourcePool(request); | ||
} | ||
|
||
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END | ||
} // namespace aiplatform_v1 | ||
} // namespace cloud | ||
} // namespace google |
Oops, something went wrong.