Class: Google::Apis::CloudsearchV1::GroupId

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Id representing a group that could be a space, a chat, or a direct message space. Which ID is set here will determine which group

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroupId

Returns a new instance of GroupId.



10850
10851
10852
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10850

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

Instance Attribute Details

#dm_idGoogle::Apis::CloudsearchV1::DmId

Unique, immutable ID of the Direct Message Space Corresponds to the JSON property dmId



10843
10844
10845
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10843

def dm_id
  @dm_id
end

#space_idGoogle::Apis::CloudsearchV1::SpaceId

Primary key for Space resource. Corresponds to the JSON property spaceId



10848
10849
10850
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10848

def space_id
  @space_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10855
10856
10857
10858
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10855

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