class Google::Apis::AdminDirectoryV1::Asp

An application-specific password (ASP) is used with applications that do not accept a verification code when logging into the application on certain devices. The ASP access code is used instead of the login and password you commonly use when accessing an application through a browser. For more information about ASPs and how to create one, see the [help center](https:// support.google.com/a/answer/2537800#asp).

Attributes

code_id[RW]

The unique ID of the ASP. Corresponds to the JSON property `codeId` @return [Fixnum]

creation_time[RW]

The time when the ASP was created. Expressed in [Unix time](en. wikipedia.org/wiki/Epoch_time) format. Corresponds to the JSON property `creationTime` @return [Fixnum]

etag[RW]

ETag of the ASP. Corresponds to the JSON property `etag` @return [String]

kind[RW]

The type of the API resource. This is always `admin#directory#asp`. Corresponds to the JSON property `kind` @return [String]

last_time_used[RW]

The time when the ASP was last used. Expressed in [Unix time](en. wikipedia.org/wiki/Epoch_time) format. Corresponds to the JSON property `lastTimeUsed` @return [Fixnum]

name[RW]

The name of the application that the user, represented by their `userId`, entered when the ASP was created. Corresponds to the JSON property `name` @return [String]

user_key[RW]

The unique ID of the user who issued the ASP. Corresponds to the JSON property `userKey` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/admin_directory_v1/classes.rb, line 146
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/admin_directory_v1/classes.rb, line 151
def update!(**args)
  @code_id = args[:code_id] if args.key?(:code_id)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @last_time_used = args[:last_time_used] if args.key?(:last_time_used)
  @name = args[:name] if args.key?(:name)
  @user_key = args[:user_key] if args.key?(:user_key)
end