Class: Google::Apis::CloudidentityV1beta1::DynamicGroupQuery

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

Defines a query on a resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DynamicGroupQuery

Returns a new instance of DynamicGroupQuery.



1024
1025
1026
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 1024

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

Instance Attribute Details

#queryString

Query that determines the memberships of the dynamic group. Examples: All users with at least one organizations.department of engineering. user. organizations.exists(org, org.department=='engineering') All users with at least one location that has area of foo and building_id of bar. user. locations.exists(loc, loc.area=='foo' && loc.building_id=='bar') All users with any variation of the name John Doe (case-insensitive queries add equalsIgnoreCase() to the value being queried). user.name.value. equalsIgnoreCase('jOhn DoE') Corresponds to the JSON property query

Returns:

  • (String)


1017
1018
1019
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 1017

def query
  @query
end

#resource_typeString

Corresponds to the JSON property resourceType

Returns:

  • (String)


1022
1023
1024
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 1022

def resource_type
  @resource_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1029
1030
1031
1032
# File 'lib/google/apis/cloudidentity_v1beta1/classes.rb', line 1029

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