Class: Google::Apis::GmailpostmastertoolsV2::User

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gmailpostmastertools_v2/classes.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb,
lib/google/apis/gmailpostmastertools_v2/representations.rb

Overview

Developer Preview: Information about a user's access to a domain.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.



955
956
957
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 955

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

Instance Attribute Details

#access_granterString

Output only. The user that added the current user. Corresponds to the JSON property accessGranter

Returns:

  • (String)


932
933
934
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 932

def access_granter
  @access_granter
end

#create_timeString

Output only. The time the user was granted access. Corresponds to the JSON property createTime

Returns:

  • (String)


937
938
939
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 937

def create_time
  @create_time
end

#nameString

Identifier. The resource name of the user. Format: users/user Note: user is the user's email address. Corresponds to the JSON property name

Returns:

  • (String)


943
944
945
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 943

def name
  @name
end

#permissionString

The permission level that the user has for the specified domain. Corresponds to the JSON property permission

Returns:

  • (String)


948
949
950
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 948

def permission
  @permission
end

#userString

The user's email address. Corresponds to the JSON property user

Returns:

  • (String)


953
954
955
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 953

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



960
961
962
963
964
965
966
# File 'lib/google/apis/gmailpostmastertools_v2/classes.rb', line 960

def update!(**args)
  @access_granter = args[:access_granter] if args.key?(:access_granter)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @permission = args[:permission] if args.key?(:permission)
  @user = args[:user] if args.key?(:user)
end