Google Cloud BigQuery C++ Client 2.11.0
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection Class Reference

A class to mock DataPolicyServiceConnection. More...

#include <google/cloud/bigquery/datapolicies/v1/mocks/mock_data_policy_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >, CreateDataPolicy,(google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >, UpdateDataPolicy,(google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >, RenameDataPolicy,(google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteDataPolicy,(google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >, GetDataPolicy,(google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy >, ListDataPolicies,(google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, GetIamPolicy,(google::iam::v1::GetIamPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::Policy >, SetIamPolicy,(google::iam::v1::SetIamPolicyRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::iam::v1::TestIamPermissionsResponse >, TestIamPermissions,(google::iam::v1::TestIamPermissionsRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > CreateDataPolicy (google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > UpdateDataPolicy (google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > RenameDataPolicy (google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &request)
 
virtual Status DeleteDataPolicy (google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > GetDataPolicy (google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy > ListDataPolicies (google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest request)
 
virtual StatusOr< google::iam::v1::Policy > GetIamPolicy (google::iam::v1::GetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::Policy > SetIamPolicy (google::iam::v1::SetIamPolicyRequest const &request)
 
virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > TestIamPermissions (google::iam::v1::TestIamPermissionsRequest const &request)
 

Detailed Description

A class to mock DataPolicyServiceConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type DataPolicyServiceClient. To do so, construct an object of type DataPolicyServiceClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See also
This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Member Function Documentation

◆ CreateDataPolicy()

virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::CreateDataPolicy ( google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &  request)
virtualinherited

◆ DeleteDataPolicy()

virtual Status google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::DeleteDataPolicy ( google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &  request)
virtualinherited

◆ GetDataPolicy()

virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::GetDataPolicy ( google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &  request)
virtualinherited

◆ GetIamPolicy()

virtual StatusOr< google::iam::v1::Policy > google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::GetIamPolicy ( google::iam::v1::GetIamPolicyRequest const &  request)
virtualinherited

◆ ListDataPolicies()

virtual StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy > google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::ListDataPolicies ( google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest  request)
virtualinherited

◆ MOCK_METHOD() [1/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( Status  ,
DeleteDataPolicy  ,
(google::cloud::bigquery::datapolicies::v1::DeleteDataPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >  ,
CreateDataPolicy  ,
(google::cloud::bigquery::datapolicies::v1::CreateDataPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >  ,
GetDataPolicy  ,
(google::cloud::bigquery::datapolicies::v1::GetDataPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >  ,
RenameDataPolicy  ,
(google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy >  ,
UpdateDataPolicy  ,
(google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
GetIamPolicy  ,
(google::iam::v1::GetIamPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( StatusOr< google::iam::v1::Policy >  ,
SetIamPolicy  ,
(google::iam::v1::SetIamPolicyRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( StatusOr< google::iam::v1::TestIamPermissionsResponse >  ,
TestIamPermissions  ,
(google::iam::v1::TestIamPermissionsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/10]

google::cloud::bigquery_datapolicies_v1_mocks::MockDataPolicyServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::datapolicies::v1::DataPolicy >  ,
ListDataPolicies  ,
(google::cloud::bigquery::datapolicies::v1::ListDataPoliciesRequest request)  ,
(override)   
)

◆ options()

virtual Options google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::options ( )
inlinevirtualinherited

◆ RenameDataPolicy()

virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::RenameDataPolicy ( google::cloud::bigquery::datapolicies::v1::RenameDataPolicyRequest const &  request)
virtualinherited

◆ SetIamPolicy()

virtual StatusOr< google::iam::v1::Policy > google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::SetIamPolicy ( google::iam::v1::SetIamPolicyRequest const &  request)
virtualinherited

◆ TestIamPermissions()

virtual StatusOr< google::iam::v1::TestIamPermissionsResponse > google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::TestIamPermissions ( google::iam::v1::TestIamPermissionsRequest const &  request)
virtualinherited

◆ UpdateDataPolicy()

virtual StatusOr< google::cloud::bigquery::datapolicies::v1::DataPolicy > google::cloud::bigquery_datapolicies_v1::DataPolicyServiceConnection::UpdateDataPolicy ( google::cloud::bigquery::datapolicies::v1::UpdateDataPolicyRequest const &  request)
virtualinherited