Class: Google::Apis::CloudidentityV1::MemberRestriction

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudidentity_v1/classes.rb,
lib/google/apis/cloudidentity_v1/representations.rb,
lib/google/apis/cloudidentity_v1/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.



1991
1992
1993
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1991

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#evaluationGoogle::Apis::CloudidentityV1::RestrictionEvaluation

The evaluated state of this restriction. Corresponds to the JSON property evaluation



1976
1977
1978
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1976

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)


1989
1990
1991
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1989

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1996
1997
1998
1999
# File 'lib/google/apis/cloudidentity_v1/classes.rb', line 1996

def update!(**args)
  @evaluation = args[:evaluation] if args.key?(:evaluation)
  @query = args[:query] if args.key?(:query)
end