Class: Google::Apis::AdminDirectoryV1::VerificationCode

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

JSON template for verification codes in Directory API. STEPLADDER: Generated unstable field number for field 'kind'. (See http://go/stepladder-help# fieldNumber) STEPLADDER: Generated unstable field number for field 'etag'. ( See http://go/stepladder-help#fieldNumber)

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) ⇒ VerificationCode

Returns a new instance of VerificationCode.


4223
4224
4225
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4223

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)

4205
4206
4207
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4205

def etag
  @etag
end

#kindString

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

Returns:

  • (String)

4210
4211
4212
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4210

def kind
  @kind
end

#user_idString

The obfuscated unique ID of the user. Corresponds to the JSON property userId

Returns:

  • (String)

4215
4216
4217
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4215

def user_id
  @user_id
end

#verification_codeString

A current verification code for the user. Invalidated or used verification codes are not returned as part of the result. Corresponds to the JSON property verificationCode

Returns:

  • (String)

4221
4222
4223
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4221

def verification_code
  @verification_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


4228
4229
4230
4231
4232
4233
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 4228

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @user_id = args[:user_id] if args.key?(:user_id)
  @verification_code = args[:verification_code] if args.key?(:verification_code)
end