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.



11091
11092
11093
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11091

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



11084
11085
11086
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11084

def roster_id
  @roster_id
end

#user_idGoogle::Apis::CloudsearchV1::UserId

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



11089
11090
11091
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11089

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11096
11097
11098
11099
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11096

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