19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_CONNECTION_V1_CONNECTION_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_CONNECTION_V1_CONNECTION_CLIENT_H
22#include "google/cloud/bigquery/connection/v1/connection_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
80 return a.connection_ == b.connection_;
108 std::string
const& parent,
110 std::string
const& connection_id,
Options opts
= {});
230 std::string
const& name,
307 std::string
const& resource,
356 std::string
const& resource,
google::iam::v1::Policy
const& policy,
409 std::string
const& resource, std::vector<std::string>
const& permissions,
434 google::iam::v1::TestIamPermissionsRequest
const& request,
442GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Manages external data source connections and credentials.
Definition: connection_client.h:61
Status DeleteConnection(google::cloud::bigquery::connection::v1::DeleteConnectionRequest const &request, Options opts={})
Deletes connection and associated credential.
StatusOr< google::cloud::bigquery::connection::v1::Connection > CreateConnection(google::cloud::bigquery::connection::v1::CreateConnectionRequest const &request, Options opts={})
Creates a new connection.
friend bool operator==(ConnectionServiceClient const &a, ConnectionServiceClient const &b)
Definition: connection_client.h:78
StatusOr< google::cloud::bigquery::connection::v1::Connection > CreateConnection(std::string const &parent, google::cloud::bigquery::connection::v1::Connection const &connection, std::string const &connection_id, Options opts={})
Creates a new connection.
StreamRange< google::cloud::bigquery::connection::v1::Connection > ListConnections(google::cloud::bigquery::connection::v1::ListConnectionsRequest request, Options opts={})
Returns a list of connections in the given project.
StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions(std::string const &resource, std::vector< std::string > const &permissions, Options opts={})
Returns permissions that a caller has on the specified resource.
~ConnectionServiceClient()
StatusOr< google::iam::v1::Policy > SetIamPolicy(std::string const &resource, google::iam::v1::Policy const &policy, Options opts={})
Sets the access control policy on the specified resource.
ConnectionServiceClient & operator=(ConnectionServiceClient const &)=default
StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &request, Options opts={})
Returns permissions that a caller has on the specified resource.
StatusOr< google::iam::v1::Policy > GetIamPolicy(std::string const &resource, google::iam::v1::GetPolicyOptions const &options, Options opts={})
Gets the access control policy for a resource.
StatusOr< google::cloud::bigquery::connection::v1::Connection > GetConnection(std::string const &name, Options opts={})
Returns specified connection.
ConnectionServiceClient(ConnectionServiceClient const &)=default
Status DeleteConnection(std::string const &name, Options opts={})
Deletes connection and associated credential.
StatusOr< google::iam::v1::Policy > GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &request, Options opts={})
Gets the access control policy for a resource.
ConnectionServiceClient & operator=(ConnectionServiceClient &&)=default
StatusOr< google::iam::v1::Policy > SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &request, Options opts={})
Sets the access control policy on the specified resource.
ConnectionServiceClient(ConnectionServiceClient &&)=default
ConnectionServiceClient(std::shared_ptr< ConnectionServiceConnection > connection, Options opts={})
StatusOr< google::cloud::bigquery::connection::v1::Connection > UpdateConnection(google::cloud::bigquery::connection::v1::UpdateConnectionRequest const &request, Options opts={})
Updates the specified connection.
StatusOr< google::cloud::bigquery::connection::v1::Connection > GetConnection(google::cloud::bigquery::connection::v1::GetConnectionRequest const &request, Options opts={})
Returns specified connection.
StatusOr< google::cloud::bigquery::connection::v1::Connection > UpdateConnection(std::string const &name, google::cloud::bigquery::connection::v1::Connection const &connection, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates the specified connection.
StreamRange< google::cloud::bigquery::connection::v1::Connection > ListConnections(std::string const &parent, Options opts={})
Returns a list of connections in the given project.
friend bool operator!=(ConnectionServiceClient const &a, ConnectionServiceClient const &b)
Definition: connection_client.h:82
The ConnectionServiceConnection object for ConnectionServiceClient.
Definition: connection_connection.h:62
Definition: connection_client.h:32
Definition: analytics_hub_client.h:30