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

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

Overview

The template that returns individual ASP (Access Code) data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Asp

Returns a new instance of Asp.



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

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)


106
107
108
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 106

def code_id
  @code_id
end

#creation_timeString

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

Returns:

  • (String)


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

def creation_time
  @creation_time
end

#etagString

ETag of the ASP. Corresponds to the JSON property etag

Returns:

  • (String)


116
117
118
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 116

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)


121
122
123
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 121

def kind
  @kind
end

#last_time_usedString

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

Returns:

  • (String)


126
127
128
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 126

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)


132
133
134
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 132

def name
  @name
end

#user_keyString

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

Returns:

  • (String)


137
138
139
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 137

def user_key
  @user_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



144
145
146
147
148
149
150
151
152
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 144

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