Class NativeIamPolicy (2.33.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
Name Description
bindings std::vector< NativeIamBinding >
etag std::string
version std::int32_t

NativeIamPolicy(NativeIamPolicy const &)

Parameter
Name Description
other NativeIamPolicy const &

Operators

operator=(NativeIamPolicy const &)

Parameter
Name Description
other NativeIamPolicy const &
Returns
Type Description
NativeIamPolicy &

Functions

ToJson() const

Returns
Type Description
std::string

version() const

Returns
Type Description
std::int32_t

set_version(std::int32_t)

Parameter
Name Description
version std::int32_t
Returns
Type Description
void

etag() const

Returns
Type Description
std::string

set_etag(std::string)

Parameter
Name Description
etag std::string
Returns
Type Description
void

bindings()

Returns
Type Description
std::vector< NativeIamBinding > &

bindings() const

Returns
Type Description
std::vector< NativeIamBinding > const &

static CreateFromJson(std::string const &)

Parameter
Name Description
json_rep std::string const &
Returns
Type Description
StatusOr< NativeIamPolicy >