15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_OAUTH2_GOOGLE_CREDENTIALS_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_OAUTH2_GOOGLE_CREDENTIALS_H
18#include "google/cloud/storage/client_options.h"
19#include "google/cloud/storage/oauth2/credentials.h"
20#include "google/cloud/storage/version.h"
21#include "google/cloud/optional.h"
22#include "absl/types/optional.h"
30GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
34
35
36
37
38
39
40
41
42
43
44
45
46
52
53
54
55
58
59
60
61
65
66
67
68
69
70
71
76
77
78
79
80
81
82
89
90
91
92
95
96
97
98
99
100
101
102
103
104
105
106
107
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
137 std::string
const& path, absl::optional<std::set<std::string>> scopes,
138 absl::optional<std::string> subject);
141
142
143
144
145
146
147
148
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
175 std::string
const& path, absl::optional<std::set<std::string>> scopes,
176 absl::optional<std::string> subject,
ChannelOptions const& options = {});
179
180
181
182
183
184
185
186
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
213 std::string
const& path, absl::optional<std::set<std::string>> scopes,
214 absl::optional<std::string> subject,
ChannelOptions const& options = {});
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
266 absl::optional<std::set<std::string>> scopes,
267 absl::optional<std::string> subject,
ChannelOptions const& options = {});
270
271
272
273
274
275
276
277
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
306 std::string
const& contents, absl::optional<std::set<std::string>> scopes,
307 absl::optional<std::string> subject,
ChannelOptions const& options = {});
310
311
312
313
317
318
319
320
322 std::string
const& service_account_email);
327GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Describes the configuration for low-level connection features.
Definition: client_options.h:74
Interface for OAuth 2.0 credentials used to access Google Cloud services.
Definition: credentials.h:47
Authentication components for Google Cloud Storage.
Definition: anonymous_credentials.h:26
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromP12FilePath(std::string const &path)
Creates a ServiceAccountCredentials from a P12 file at the specified path.
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromDefaultPaths(ChannelOptions const &options={})
Produces a ServiceAccountCredentials type by trying to load the standard Application Default Credenti...
StatusOr< std::shared_ptr< Credentials > > GoogleDefaultCredentials(ChannelOptions const &options={})
Produces a Credentials type based on the runtime environment.
std::shared_ptr< Credentials > CreateAnonymousCredentials()
Creates an AnonymousCredentials.
std::shared_ptr< Credentials > CreateComputeEngineCredentials()
Creates a ComputeEngineCredentials for the VM's default service account.
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromJsonContents(std::string const &contents, absl::optional< std::set< std::string > > scopes, absl::optional< std::string > subject, ChannelOptions const &options={})
Creates a ServiceAccountCredentials from a JSON string.
std::shared_ptr< Credentials > CreateComputeEngineCredentials(std::string const &service_account_email)
Creates a ComputeEngineCredentials for the VM's specified service account.
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromJsonFilePath(std::string const &path, absl::optional< std::set< std::string > > scopes, absl::optional< std::string > subject, ChannelOptions const &options={})
Creates a ServiceAccountCredentials from a JSON file at the specified path.
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromDefaultPaths(absl::optional< std::set< std::string > > scopes, absl::optional< std::string > subject, ChannelOptions const &options={})
Produces a ServiceAccountCredentials type by trying to load the standard Application Default Credenti...
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromP12FilePath(std::string const &path, absl::optional< std::set< std::string > > scopes, absl::optional< std::string > subject, ChannelOptions const &options={})
Creates a ServiceAccountCredentials from a P12 file at the specified path.
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromJsonFilePath(std::string const &path)
Creates a ServiceAccountCredentials from a JSON file at the specified path.
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromFilePath(std::string const &path, absl::optional< std::set< std::string > > scopes, absl::optional< std::string > subject)
Creates a ServiceAccountCredentials from a file at the specified path.
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromFilePath(std::string const &path)
Creates a ServiceAccountCredentials from a file at the specified path.
StatusOr< std::shared_ptr< Credentials > > CreateAuthorizedUserCredentialsFromJsonFilePath(std::string const &path)
Creates an AuthorizedUserCredentials from a JSON file at the specified path.
StatusOr< std::shared_ptr< Credentials > > CreateServiceAccountCredentialsFromJsonContents(std::string const &contents, ChannelOptions const &options={})
Creates a ServiceAccountCredentials from a JSON string.
StatusOr< std::shared_ptr< Credentials > > CreateAuthorizedUserCredentialsFromJsonContents(std::string const &contents, ChannelOptions const &options={})
Creates an AuthorizedUserCredentials from a JSON string.
Contains all the Google Cloud Storage C++ client APIs.
Definition: auto_finalize.h:24