Class: Google::Apis::CloudidentityV1beta1::MemberRestriction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#evaluationGoogle::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

#queryString

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

Returns:

  • (String)


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