Class: Google::Apis::CloudsearchV1::SessionContext

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SessionContext

Returns a new instance of SessionContext.



18543
18544
18545
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18543

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

Instance Attribute Details

#auth_timeFixnum

Time at which this activity's session was authenticated, in seconds since the epoch. Corresponds to the JSON property authTime

Returns:

  • (Fixnum)


18514
18515
18516
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18514

def auth_time
  @auth_time
end

#delegate_user_idFixnum

Gaia ID of the authenticated user when delegate access is active. In such sessions the main gaia ID is that of the delegator, i.e. the account being accessed. Corresponds to the JSON property delegateUserId

Returns:

  • (Fixnum)


18521
18522
18523
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18521

def delegate_user_id
  @delegate_user_id
end

#dusiString

Device User Session ID, see go/dusi. Corresponds to the JSON property dusi

Returns:

  • (String)


18526
18527
18528
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18526

def dusi
  @dusi
end

#imap_session_contextGoogle::Apis::CloudsearchV1::ImapSessionContext

Imap session context for Bond/Gmail integration Corresponds to the JSON property imapSessionContext



18531
18532
18533
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18531

def imap_session_context
  @imap_session_context
end

#oauth_login_idFixnum

OAuth login ID. Corresponds to the JSON property oauthLoginId

Returns:

  • (Fixnum)


18536
18537
18538
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18536

def 
  @oauth_login_id
end

#oauth_project_idFixnum

The devconsole project ID of the developer who authenticated with OAuth. Corresponds to the JSON property oauthProjectId

Returns:

  • (Fixnum)


18541
18542
18543
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18541

def oauth_project_id
  @oauth_project_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18548
18549
18550
18551
18552
18553
18554
18555
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18548

def update!(**args)
  @auth_time = args[:auth_time] if args.key?(:auth_time)
  @delegate_user_id = args[:delegate_user_id] if args.key?(:delegate_user_id)
  @dusi = args[:dusi] if args.key?(:dusi)
  @imap_session_context = args[:imap_session_context] if args.key?(:imap_session_context)
  @oauth_login_id = args[:oauth_login_id] if args.key?(:oauth_login_id)
  @oauth_project_id = args[:oauth_project_id] if args.key?(:oauth_project_id)
end