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.



5247
5248
5249
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5247

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

Instance Attribute Details

#avatar_infoGoogle::Apis::CloudsearchV1::AvatarInfo

Corresponds to the JSON property avatarInfo



5208
5209
5210
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5208

def avatar_info
  @avatar_info
end

#avatar_urlString

Corresponds to the JSON property avatarUrl

Returns:

  • (String)


5213
5214
5215
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5213

def avatar_url
  @avatar_url
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


5218
5219
5220
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5218

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



5224
5225
5226
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5224

def group_id
  @group_id
end

#is_externalBoolean Also known as: is_external?

Whether this is an external space outside of user's organization Corresponds to the JSON property isExternal

Returns:

  • (Boolean)


5229
5230
5231
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5229

def is_external
  @is_external
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


5235
5236
5237
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5235

def name
  @name
end

#num_membersFixnum

Corresponds to the JSON property numMembers

Returns:

  • (Fixnum)


5240
5241
5242
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5240

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)


5245
5246
5247
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5245

def user_membership_state
  @user_membership_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5252

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)
  @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