Google Cloud C++ Client
2.7.0
C++ Client Library for Google Cloud Platform
|
This class identifies a Google Cloud KMS Key. More...
#include <google/cloud/kms_key_name.h>
Public Member Functions | |
KmsKeyName (std::string const &project_id, std::string const &location, std::string const &key_ring, std::string const &kms_key_name) | |
Constructs a KmsKeyName object identified by the given project_id , location , key_ring , and kms_key_name . More... | |
std::string const & | FullName () const |
Returns the fully qualified KMS Key name as a string of the form: "projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys\
/<kms_key_name>". More... | |
Copy and move | |
KmsKeyName (KmsKeyName const &)=default | |
KmsKeyName & | operator= (KmsKeyName const &)=default |
KmsKeyName (KmsKeyName &&)=default | |
KmsKeyName & | operator= (KmsKeyName &&)=default |
Friends | |
std::ostream & | operator<< (std::ostream &, KmsKeyName const &) |
Output the FullName() format. More... | |
Equality operators | |
bool | operator== (KmsKeyName const &a, KmsKeyName const &b) |
bool | operator!= (KmsKeyName const &a, KmsKeyName const &b) |
This class identifies a Google Cloud KMS Key.
A KMS key is identified by its project_id
, location
, key_ring
, and kms_key_name
.
See https://cloud.google.com/kms/docs for more information on KMS.
Definition at line 40 of file kms_key_name.h.
google::cloud::KmsKeyName::KmsKeyName | ( | std::string const & | project_id, |
std::string const & | location, | ||
std::string const & | key_ring, | ||
std::string const & | kms_key_name | ||
) |
Constructs a KmsKeyName object identified by the given project_id
, location
, key_ring
, and kms_key_name
.
|
default |
|
default |
|
inline |
Returns the fully qualified KMS Key name as a string of the form: "projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys\ /<kms_key_name>".
Definition at line 62 of file kms_key_name.h.
|
default |
|
default |
|
friend |
Definition at line 67 of file kms_key_name.h.
|
friend |
Output the FullName()
format.
|
friend |