Class CertificateAuthorityServiceConnection (2.34.0-rc)

This interface defines virtual methods for each of the user-facing overload sets in CertificateAuthorityServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type CertificateAuthorityServiceClient.

To create a concrete instance, see MakeCertificateAuthorityServiceConnection().

For mocking, see privateca_v1_mocks::MockCertificateAuthorityServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateCertificate(google::cloud::security::privateca::v1::CreateCertificateRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::CreateCertificateRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::Certificate >

virtual GetCertificate(google::cloud::security::privateca::v1::GetCertificateRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::GetCertificateRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::Certificate >

virtual ListCertificates(google::cloud::security::privateca::v1::ListCertificatesRequest)

Parameter
Name Description
request google::cloud::security::privateca::v1::ListCertificatesRequest
Returns
Type Description
StreamRange< google::cloud::security::privateca::v1::Certificate >

virtual RevokeCertificate(google::cloud::security::privateca::v1::RevokeCertificateRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::RevokeCertificateRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::Certificate >

virtual UpdateCertificate(google::cloud::security::privateca::v1::UpdateCertificateRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::UpdateCertificateRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::Certificate >

virtual ActivateCertificateAuthority(google::cloud::security::privateca::v1::ActivateCertificateAuthorityRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::ActivateCertificateAuthorityRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual ActivateCertificateAuthority(NoAwaitTag, google::cloud::security::privateca::v1::ActivateCertificateAuthorityRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::ActivateCertificateAuthorityRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual ActivateCertificateAuthority(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual CreateCertificateAuthority(google::cloud::security::privateca::v1::CreateCertificateAuthorityRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::CreateCertificateAuthorityRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual CreateCertificateAuthority(NoAwaitTag, google::cloud::security::privateca::v1::CreateCertificateAuthorityRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::CreateCertificateAuthorityRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateCertificateAuthority(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual DisableCertificateAuthority(google::cloud::security::privateca::v1::DisableCertificateAuthorityRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::DisableCertificateAuthorityRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual DisableCertificateAuthority(NoAwaitTag, google::cloud::security::privateca::v1::DisableCertificateAuthorityRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::DisableCertificateAuthorityRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DisableCertificateAuthority(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual EnableCertificateAuthority(google::cloud::security::privateca::v1::EnableCertificateAuthorityRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::EnableCertificateAuthorityRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual EnableCertificateAuthority(NoAwaitTag, google::cloud::security::privateca::v1::EnableCertificateAuthorityRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::EnableCertificateAuthorityRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual EnableCertificateAuthority(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual FetchCertificateAuthorityCsr(google::cloud::security::privateca::v1::FetchCertificateAuthorityCsrRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::FetchCertificateAuthorityCsrRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::FetchCertificateAuthorityCsrResponse >

virtual GetCertificateAuthority(google::cloud::security::privateca::v1::GetCertificateAuthorityRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::GetCertificateAuthorityRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::CertificateAuthority >

virtual ListCertificateAuthorities(google::cloud::security::privateca::v1::ListCertificateAuthoritiesRequest)

Parameter
Name Description
request google::cloud::security::privateca::v1::ListCertificateAuthoritiesRequest
Returns
Type Description
StreamRange< google::cloud::security::privateca::v1::CertificateAuthority >

virtual UndeleteCertificateAuthority(google::cloud::security::privateca::v1::UndeleteCertificateAuthorityRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::UndeleteCertificateAuthorityRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual UndeleteCertificateAuthority(NoAwaitTag, google::cloud::security::privateca::v1::UndeleteCertificateAuthorityRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::UndeleteCertificateAuthorityRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UndeleteCertificateAuthority(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual DeleteCertificateAuthority(google::cloud::security::privateca::v1::DeleteCertificateAuthorityRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::DeleteCertificateAuthorityRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual DeleteCertificateAuthority(NoAwaitTag, google::cloud::security::privateca::v1::DeleteCertificateAuthorityRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::DeleteCertificateAuthorityRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteCertificateAuthority(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual UpdateCertificateAuthority(google::cloud::security::privateca::v1::UpdateCertificateAuthorityRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::UpdateCertificateAuthorityRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual UpdateCertificateAuthority(NoAwaitTag, google::cloud::security::privateca::v1::UpdateCertificateAuthorityRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::UpdateCertificateAuthorityRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateCertificateAuthority(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateAuthority > >

virtual CreateCaPool(google::cloud::security::privateca::v1::CreateCaPoolRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::CreateCaPoolRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CaPool > >

virtual CreateCaPool(NoAwaitTag, google::cloud::security::privateca::v1::CreateCaPoolRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::CreateCaPoolRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateCaPool(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CaPool > >

virtual UpdateCaPool(google::cloud::security::privateca::v1::UpdateCaPoolRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::UpdateCaPoolRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CaPool > >

virtual UpdateCaPool(NoAwaitTag, google::cloud::security::privateca::v1::UpdateCaPoolRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::UpdateCaPoolRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateCaPool(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CaPool > >

virtual GetCaPool(google::cloud::security::privateca::v1::GetCaPoolRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::GetCaPoolRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::CaPool >

virtual ListCaPools(google::cloud::security::privateca::v1::ListCaPoolsRequest)

Parameter
Name Description
request google::cloud::security::privateca::v1::ListCaPoolsRequest
Returns
Type Description
StreamRange< google::cloud::security::privateca::v1::CaPool >

virtual DeleteCaPool(google::cloud::security::privateca::v1::DeleteCaPoolRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::DeleteCaPoolRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::OperationMetadata > >

virtual DeleteCaPool(NoAwaitTag, google::cloud::security::privateca::v1::DeleteCaPoolRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::DeleteCaPoolRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteCaPool(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::OperationMetadata > >

virtual FetchCaCerts(google::cloud::security::privateca::v1::FetchCaCertsRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::FetchCaCertsRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::FetchCaCertsResponse >

virtual GetCertificateRevocationList(google::cloud::security::privateca::v1::GetCertificateRevocationListRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::GetCertificateRevocationListRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::CertificateRevocationList >

virtual ListCertificateRevocationLists(google::cloud::security::privateca::v1::ListCertificateRevocationListsRequest)

Parameter
Name Description
request google::cloud::security::privateca::v1::ListCertificateRevocationListsRequest
Returns
Type Description
StreamRange< google::cloud::security::privateca::v1::CertificateRevocationList >

virtual UpdateCertificateRevocationList(google::cloud::security::privateca::v1::UpdateCertificateRevocationListRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::UpdateCertificateRevocationListRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateRevocationList > >

virtual UpdateCertificateRevocationList(NoAwaitTag, google::cloud::security::privateca::v1::UpdateCertificateRevocationListRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::UpdateCertificateRevocationListRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateCertificateRevocationList(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateRevocationList > >

virtual CreateCertificateTemplate(google::cloud::security::privateca::v1::CreateCertificateTemplateRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::CreateCertificateTemplateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateTemplate > >

virtual CreateCertificateTemplate(NoAwaitTag, google::cloud::security::privateca::v1::CreateCertificateTemplateRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::CreateCertificateTemplateRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual CreateCertificateTemplate(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateTemplate > >

virtual DeleteCertificateTemplate(google::cloud::security::privateca::v1::DeleteCertificateTemplateRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::DeleteCertificateTemplateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::OperationMetadata > >

virtual DeleteCertificateTemplate(NoAwaitTag, google::cloud::security::privateca::v1::DeleteCertificateTemplateRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::DeleteCertificateTemplateRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteCertificateTemplate(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::OperationMetadata > >

virtual GetCertificateTemplate(google::cloud::security::privateca::v1::GetCertificateTemplateRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::GetCertificateTemplateRequest const &
Returns
Type Description
StatusOr< google::cloud::security::privateca::v1::CertificateTemplate >

virtual ListCertificateTemplates(google::cloud::security::privateca::v1::ListCertificateTemplatesRequest)

Parameter
Name Description
request google::cloud::security::privateca::v1::ListCertificateTemplatesRequest
Returns
Type Description
StreamRange< google::cloud::security::privateca::v1::CertificateTemplate >

virtual UpdateCertificateTemplate(google::cloud::security::privateca::v1::UpdateCertificateTemplateRequest const &)

Parameter
Name Description
request google::cloud::security::privateca::v1::UpdateCertificateTemplateRequest const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateTemplate > >

virtual UpdateCertificateTemplate(NoAwaitTag, google::cloud::security::privateca::v1::UpdateCertificateTemplateRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::security::privateca::v1::UpdateCertificateTemplateRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual UpdateCertificateTemplate(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::security::privateca::v1::CertificateTemplate > >

virtual ListLocations(google::cloud::location::ListLocationsRequest)

Parameter
Name Description
request google::cloud::location::ListLocationsRequest
Returns
Type Description
StreamRange< google::cloud::location::Location >

virtual GetLocation(google::cloud::location::GetLocationRequest const &)

Parameter
Name Description
request google::cloud::location::GetLocationRequest const &
Returns
Type Description
StatusOr< google::cloud::location::Location >

virtual SetIamPolicy(google::iam::v1::SetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::SetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual GetIamPolicy(google::iam::v1::GetIamPolicyRequest const &)

Parameter
Name Description
request google::iam::v1::GetIamPolicyRequest const &
Returns
Type Description
StatusOr< google::iam::v1::Policy >

virtual TestIamPermissions(google::iam::v1::TestIamPermissionsRequest const &)

Parameter
Name Description
request google::iam::v1::TestIamPermissionsRequest const &
Returns
Type Description
StatusOr< google::iam::v1::TestIamPermissionsResponse >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status