15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PROJECT_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PROJECT_H
18#include "google/cloud/status_or.h"
19#include "google/cloud/version.h"
28
29
30
31
32
33
34
35
36
37
38
39
43 explicit Project(std::string project_id);
54 std::string
const&
project_id()
const {
return project_id_; }
57
58
59
69 friend std::ostream& operator<<(std::ostream&,
Project const&);
72 std::string project_id_;
76
77
78
This class identifies a Cloud Project.
Definition: project.h:40
Project & operator=(Project &&)=default
Project(std::string project_id)
Constructs a Project object identified by the given project_id.
std::string const & project_id() const
Returns the Project ID.
Definition: project.h:54
Project & operator=(Project const &)=default
Project(Project const &)=default
friend bool operator!=(Project const &a, Project const &b)
std::string FullName() const
Returns the fully qualified project name as a string of the form: "projects/<project-id>".
Project(Project &&)=default
friend bool operator==(Project const &a, Project const &b)
Contains all the Google Cloud C++ Library APIs.
Definition: async_operation.h:23
StatusOr< Project > MakeProject(std::string const &full_name)
Constructs a Project from the given full_name.
Definition: async_operation.h:22
#define GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Definition: version.h:45
#define GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
Definition: version.h:43