Class: Google::Apis::AdminDirectoryV1::Asp

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

Overview

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Asp

Returns a new instance of Asp.



146
147
148
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 146

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

Instance Attribute Details

#code_idFixnum

The unique ID of the ASP. Corresponds to the JSON property codeId

Returns:

  • (Fixnum)


111
112
113
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 111

def code_id
  @code_id
end

#creation_timeFixnum

The time when the ASP was created. Expressed in Unix time format. Corresponds to the JSON property creationTime

Returns:

  • (Fixnum)


117
118
119
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 117

def creation_time
  @creation_time
end

#etagString

ETag of the ASP. Corresponds to the JSON property etag

Returns:

  • (String)


122
123
124
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 122

def etag
  @etag
end

#kindString

The type of the API resource. This is always admin#directory#asp. Corresponds to the JSON property kind

Returns:

  • (String)


127
128
129
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 127

def kind
  @kind
end

#last_time_usedFixnum

The time when the ASP was last used. Expressed in Unix time format. Corresponds to the JSON property lastTimeUsed

Returns:

  • (Fixnum)


133
134
135
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 133

def last_time_used
  @last_time_used
end

#nameString

The name of the application that the user, represented by their userId, entered when the ASP was created. Corresponds to the JSON property name

Returns:

  • (String)


139
140
141
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 139

def name
  @name
end

#user_keyString

The unique ID of the user who issued the ASP. Corresponds to the JSON property userKey

Returns:

  • (String)


144
145
146
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 144

def user_key
  @user_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



151
152
153
154
155
156
157
158
159
# 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