Class: Google::Apis::CloudsearchV1::MemberId

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

Eventually this can be updated to a oneOf User, Space (for nested spaces), Bots or Service, as and when these use cases come up.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MemberId

Returns a new instance of MemberId.



13677
13678
13679
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13677

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

Instance Attribute Details

#roster_idGoogle::Apis::CloudsearchV1::RosterId

Primary key for Roster resource. Corresponds to the JSON property rosterId



13670
13671
13672
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13670

def roster_id
  @roster_id
end

#user_idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property userId



13675
13676
13677
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13675

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13682
13683
13684
13685
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13682

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