Class: Google::Apis::CloudsearchV1::SpaceInfo

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

Defines the representation of a single matching space.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpaceInfo

Returns a new instance of SpaceInfo.



5392
5393
5394
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5392

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

Instance Attribute Details

#avatar_infoGoogle::Apis::CloudsearchV1::AvatarInfo

Corresponds to the JSON property avatarInfo



5346
5347
5348
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5346

def avatar_info
  @avatar_info
end

#avatar_urlString

Corresponds to the JSON property avatarUrl

Returns:

  • (String)


5351
5352
5353
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5351

def avatar_url
  @avatar_url
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


5356
5357
5358
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5356

def description
  @description
end

#group_idGoogle::Apis::CloudsearchV1::GroupId

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 Corresponds to the JSON property groupId



5362
5363
5364
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5362

def group_id
  @group_id
end

#inviter_emailString

The email address of the user that invited the calling user to the room, if available. This field will only be populated for direct invites, it will be empty if the user was indirectly invited to the group. Corresponds to the JSON property inviterEmail

Returns:

  • (String)


5369
5370
5371
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5369

def inviter_email
  @inviter_email
end

#is_externalBoolean Also known as: is_external?

Whether this is a space that enables guest access Corresponds to the JSON property isExternal

Returns:

  • (Boolean)


5374
5375
5376
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5374

def is_external
  @is_external
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


5380
5381
5382
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5380

def name
  @name
end

#num_membersFixnum

Corresponds to the JSON property numMembers

Returns:

  • (Fixnum)


5385
5386
5387
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5385

def num_members
  @num_members
end

#user_membership_stateString

searching user's membership state in this space Corresponds to the JSON property userMembershipState

Returns:

  • (String)


5390
5391
5392
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5390

def user_membership_state
  @user_membership_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5397

def update!(**args)
  @avatar_info = args[:avatar_info] if args.key?(:avatar_info)
  @avatar_url = args[:avatar_url] if args.key?(:avatar_url)
  @description = args[:description] if args.key?(:description)
  @group_id = args[:group_id] if args.key?(:group_id)
  @inviter_email = args[:inviter_email] if args.key?(:inviter_email)
  @is_external = args[:is_external] if args.key?(:is_external)
  @name = args[:name] if args.key?(:name)
  @num_members = args[:num_members] if args.key?(:num_members)
  @user_membership_state = args[:user_membership_state] if args.key?(:user_membership_state)
end