Class: Google::Apis::CloudidentityV1beta1::MemberRestriction
- Inherits:
-
Object
- Object
- Google::Apis::CloudidentityV1beta1::MemberRestriction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudidentity_v1beta1/classes.rb,
lib/google/apis/cloudidentity_v1beta1/representations.rb,
lib/google/apis/cloudidentity_v1beta1/representations.rb
Overview
The definition of MemberRestriction
Instance Attribute Summary collapse
-
#evaluation ⇒ Google::Apis::CloudidentityV1beta1::RestrictionEvaluation
The evaluated state of this restriction.
-
#query ⇒ String
Member Restriction as defined by CEL expression.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MemberRestriction
constructor
A new instance of MemberRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MemberRestriction
Returns a new instance of MemberRestriction.
3170 3171 3172 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3170 def initialize(**args) update!(**args) end |
Instance Attribute Details
#evaluation ⇒ Google::Apis::CloudidentityV1beta1::RestrictionEvaluation
The evaluated state of this restriction.
Corresponds to the JSON property evaluation
3155 3156 3157 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3155 def evaluation @evaluation end |
#query ⇒ String
Member Restriction as defined by CEL expression. Supported restrictions are:
member.customer_id
and member.type
. Valid values for member.type
are 1
,
2
and 3
. They correspond to USER, SERVICE_ACCOUNT, and GROUP respectively.
The value for member.customer_id
only supports groupCustomerId()
currently
which means the customer id of the group will be used for restriction.
Supported operators are &&
, ||
and ==
, corresponding to AND, OR, and
EQUAL. Examples: Allow only service accounts of given customer to be members.
member.type == 2 && member.customer_id == groupCustomerId()
Allow only users
or groups to be members. member.type == 1 || member.type == 3
Corresponds to the JSON property query
3168 3169 3170 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3168 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3175 3176 3177 3178 |
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 3175 def update!(**args) @evaluation = args[:evaluation] if args.key?(:evaluation) @query = args[:query] if args.key?(:query) end |