19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_INSTANCE_ADMIN_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_SPANNER_ADMIN_MOCKS_MOCK_INSTANCE_ADMIN_CONNECTION_H
22#include "google/cloud/spanner/admin/instance_admin_connection.h"
23#include <gmock/gmock.h>
28GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
31
32
33
34
35
36
37
38
39
40
41
42
43
44
50 MOCK_METHOD(StreamRange<
google::spanner::admin::instance::v1::InstanceConfig>,
52 (
google::spanner::admin::instance::v1::ListInstanceConfigsRequest
57 StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>,
59 (
google::spanner::admin::instance::v1::GetInstanceConfigRequest
const&
64 future<StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>>,
66 (
google::spanner::admin::instance::v1::CreateInstanceConfigRequest
const&
71 future<StatusOr<
google::spanner::admin::instance::v1::InstanceConfig>>,
73 (
google::spanner::admin::instance::v1::UpdateInstanceConfigRequest
const&
78 Status, DeleteInstanceConfig,
79 (
google::spanner::admin::instance::v1::DeleteInstanceConfigRequest
const&
84 StreamRange<
google::longrunning::Operation>, ListInstanceConfigOperations,
85 (
google::spanner::admin::instance::v1::ListInstanceConfigOperationsRequest
90 StreamRange<
google::spanner::admin::instance::v1::Instance>,
92 (
google::spanner::admin::instance::v1::ListInstancesRequest request),
96 StatusOr<
google::spanner::admin::instance::v1::Instance>, GetInstance,
97 (
google::spanner::admin::instance::v1::GetInstanceRequest
const& request),
101 future<StatusOr<
google::spanner::admin::instance::v1::Instance>>,
103 (
google::spanner::admin::instance::v1::CreateInstanceRequest
const&
108 future<StatusOr<
google::spanner::admin::instance::v1::Instance>>,
110 (
google::spanner::admin::instance::v1::UpdateInstanceRequest
const&
116 (
google::spanner::admin::instance::v1::DeleteInstanceRequest
const&
120 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, SetIamPolicy,
121 (
google::iam::v1::SetIamPolicyRequest
const& request),
124 MOCK_METHOD(StatusOr<
google::iam::v1::Policy>, GetIamPolicy,
125 (
google::iam::v1::GetIamPolicyRequest
const& request),
128 MOCK_METHOD(StatusOr<
google::iam::v1::TestIamPermissionsResponse>,
130 (
google::iam::v1::TestIamPermissionsRequest
const& request),
134GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
friend friend class future
The InstanceAdminConnection object for InstanceAdminClient.
Definition: instance_admin_connection.h:64
A class to mock InstanceAdminConnection.
Definition: mock_instance_admin_connection.h:46
Definition: mock_database_admin_connection.h:27
Definition: database_admin_client.h:34