Google Cloud Storage C++ Client 2.13.0
A C++ Client Library for Google Cloud Storage
Loading...
Searching...
No Matches
bucket_encryption.h
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_BUCKET_ENCRYPTION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_BUCKET_ENCRYPTION_H
17
18#include "google/cloud/storage/version.h"
19#include <utility>
20
21namespace google {
22namespace cloud {
23namespace storage {
24GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
25
26/**
27 * Describes the default customer managed encryption key for a bucket.
28 *
29 * Customer managed encryption keys (CMEK) are encryption keys selected by the
30 * user and generated by Google Cloud Key Management Service.
31 *
32 * @see https://cloud.google.com/storage/docs/encryption/customer-managed-keys
33 * for a general description of CMEK in Google Cloud Storage.
34 *
35 * @see https://cloud.google.com/kms/ for details about the Cloud Key Management
36 * Service.
37 */
38struct BucketEncryption {
39 std::string default_kms_key_name;
40};
41
42inline bool operator==(BucketEncryption const& lhs,
43 BucketEncryption const& rhs) {
45}
46
47inline bool operator<(BucketEncryption const& lhs,
48 BucketEncryption const& rhs) {
50}
51
52inline bool operator!=(BucketEncryption const& lhs,
53 BucketEncryption const& rhs) {
54 return std::rel_ops::operator!=(lhs, rhs);
55}
56
57inline bool operator>(BucketEncryption const& lhs,
58 BucketEncryption const& rhs) {
59 return std::rel_ops::operator>(lhs, rhs);
60}
61
62inline bool operator<=(BucketEncryption const& lhs,
63 BucketEncryption const& rhs) {
64 return std::rel_ops::operator<=(lhs, rhs);
65}
66
67inline bool operator>=(BucketEncryption const& lhs,
68 BucketEncryption const& rhs) {
69 return std::rel_ops::operator>=(lhs, rhs);
70}
71
72GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
73} // namespace storage
74} // namespace cloud
75} // namespace google
76
77#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_BUCKET_ENCRYPTION_H
Contains all the Google Cloud Storage C++ client APIs.
Definition: auto_finalize.h:24
bool operator<=(BucketEncryption const &lhs, BucketEncryption const &rhs)
Definition: bucket_encryption.h:62
bool operator>(BucketEncryption const &lhs, BucketEncryption const &rhs)
Definition: bucket_encryption.h:57
bool operator>=(BucketEncryption const &lhs, BucketEncryption const &rhs)
Definition: bucket_encryption.h:67
bool operator<(BucketEncryption const &lhs, BucketEncryption const &rhs)
Definition: bucket_encryption.h:47
bool operator==(BucketEncryption const &lhs, BucketEncryption const &rhs)
Definition: bucket_encryption.h:42
bool operator!=(BucketEncryption const &lhs, BucketEncryption const &rhs)
Definition: bucket_encryption.h:52
Describes the default customer managed encryption key for a bucket.
Definition: bucket_encryption.h:38
std::string default_kms_key_name
Definition: bucket_encryption.h:39