Google Cloud Storage C++ Client  1.31.1
A C++ Client Library for Google Cloud Storage
Classes | Public Member Functions | Friends | List of all members
google::cloud::storage::v1::NativeExpression Class Reference

Represents a google::type::Expr. More...

#include <google/cloud/storage/iam_policy.h>

Classes

struct  Impl
 

Public Member Functions

 NativeExpression (std::string expression, std::string title="", std::string description="", std::string location="")
 Create a NativeExpression. More...
 
 ~NativeExpression ()
 
 NativeExpression (NativeExpression const &other)
 
NativeExpressionoperator= (NativeExpression const &other)
 
 NativeExpression (NativeExpression &&) noexcept
 
NativeExpressionoperator= (NativeExpression &&) noexcept
 
std::string expression () const
 
void set_expression (std::string expression)
 
std::string title () const
 
void set_title (std::string title)
 
std::string description () const
 
void set_description (std::string description)
 
std::string location () const
 
void set_location (std::string location)
 

Friends

class NativeIamPolicy
 
class NativeIamBinding
 

Detailed Description

Represents a google::type::Expr.

This is a textual representation of an expression in Common Expression Language (CEL) syntax.

Definition at line 34 of file iam_policy.h.

Constructor & Destructor Documentation

◆ NativeExpression() [1/3]

google::cloud::storage::v1::NativeExpression::NativeExpression ( std::string  expression,
std::string  title = "",
std::string  description = "",
std::string  location = "" 
)

Create a NativeExpression.

Parameters
expressionthe expression in Common Expression Language.
titlean optional title for the expression, i.e. a short string describing its purpose.
descriptionan optional description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
locationan optional string indicating the location of the expression for error reporting, e.g. a file name and a position in the file.

Definition at line 110 of file iam_policy.cc.

◆ ~NativeExpression()

google::cloud::storage::v1::NativeExpression::~NativeExpression ( )
default

◆ NativeExpression() [2/3]

google::cloud::storage::v1::NativeExpression::NativeExpression ( NativeExpression const &  other)

Definition at line 125 of file iam_policy.cc.

◆ NativeExpression() [3/3]

google::cloud::storage::v1::NativeExpression::NativeExpression ( NativeExpression &&  rhs)
noexcept

Definition at line 138 of file iam_policy.cc.

Member Function Documentation

◆ description()

std::string google::cloud::storage::v1::NativeExpression::description ( ) const

Definition at line 162 of file iam_policy.cc.

◆ expression()

std::string google::cloud::storage::v1::NativeExpression::expression ( ) const

Definition at line 146 of file iam_policy.cc.

◆ location()

std::string google::cloud::storage::v1::NativeExpression::location ( ) const

Definition at line 170 of file iam_policy.cc.

◆ operator=() [1/2]

NativeExpression & google::cloud::storage::v1::NativeExpression::operator= ( NativeExpression &&  rhs)
noexcept

Definition at line 141 of file iam_policy.cc.

◆ operator=() [2/2]

NativeExpression & google::cloud::storage::v1::NativeExpression::operator= ( NativeExpression const &  other)

Definition at line 133 of file iam_policy.cc.

◆ set_description()

void google::cloud::storage::v1::NativeExpression::set_description ( std::string  description)

Definition at line 166 of file iam_policy.cc.

◆ set_expression()

void google::cloud::storage::v1::NativeExpression::set_expression ( std::string  expression)

Definition at line 150 of file iam_policy.cc.

◆ set_location()

void google::cloud::storage::v1::NativeExpression::set_location ( std::string  location)

Definition at line 174 of file iam_policy.cc.

◆ set_title()

void google::cloud::storage::v1::NativeExpression::set_title ( std::string  title)

Definition at line 158 of file iam_policy.cc.

◆ title()

std::string google::cloud::storage::v1::NativeExpression::title ( ) const

Definition at line 154 of file iam_policy.cc.

Friends And Related Function Documentation

◆ NativeIamBinding

friend class NativeIamBinding
friend

Definition at line 75 of file iam_policy.h.

◆ NativeIamPolicy

friend class NativeIamPolicy
friend

Definition at line 74 of file iam_policy.h.