Class NativeIamPolicy (2.21.0)

Represent the result of a GetIamPolicy or SetIamPolicy request.

See Also

https://cloud.google.com/resource-manager/reference/rest/Shared.Types/Policy for more information about IAM policies.

See Also

https://tools.ietf.org/html/rfc7232#section-2.3 for more information about ETags. Compared to IamPolicy, NativeIamPolicy is a more future-proof solution - it gracefully tolerates changes in the underlying protocol. If IamPolicy is extended with additional fields in the future, NativeIamPolicy will preserve them (contrary to IamPolicy).

Constructors

NativeIamPolicy(std::vector< NativeIamBinding >, std::string, std::int32_t)

Parameters
NameDescription
bindings std::vector< NativeIamBinding >
etag std::string
version std::int32_t

NativeIamPolicy(NativeIamPolicy const &)

Parameter
NameDescription
other NativeIamPolicy const &

Operators

operator=(NativeIamPolicy const &)

Parameter
NameDescription
other NativeIamPolicy const &
Returns
TypeDescription
NativeIamPolicy &

Functions

ToJson() const

Returns
TypeDescription
std::string

version() const

Returns
TypeDescription
std::int32_t

set_version(std::int32_t)

Parameter
NameDescription
version std::int32_t
Returns
TypeDescription
void

etag() const

Returns
TypeDescription
std::string

set_etag(std::string)

Parameter
NameDescription
etag std::string
Returns
TypeDescription
void

bindings()

Returns
TypeDescription
std::vector< NativeIamBinding > &

bindings() const

Returns
TypeDescription
std::vector< NativeIamBinding > const &

static CreateFromJson(std::string const &)

Parameter
NameDescription
json_rep std::string const &
Returns
TypeDescription
StatusOr< NativeIamPolicy >