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.



10236
10237
10238
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10236

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



10229
10230
10231
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10229

def dm_id
  @dm_id
end

#space_idGoogle::Apis::CloudsearchV1::SpaceId

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



10234
10235
10236
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10234

def space_id
  @space_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10241
10242
10243
10244
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10241

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