Class: Google::Apis::VaultV1::HeldAccount

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

Overview

An account being held in a particular hold. This structure is immutable. This can be either a single user or a google group, depending on the corpus.

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

Returns a new instance of HeldAccount



648
649
650
# File 'generated/google/apis/vault_v1/classes.rb', line 648

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

Instance Attribute Details

#account_idString

The account's ID as provided by the Admin SDK. Corresponds to the JSON property accountId

Returns:

  • (String)


625
626
627
# File 'generated/google/apis/vault_v1/classes.rb', line 625

def 
  @account_id
end

#emailString

The primary email address of the account. If used as an input, this takes precedence over account ID. Corresponds to the JSON property email

Returns:

  • (String)


631
632
633
# File 'generated/google/apis/vault_v1/classes.rb', line 631

def email
  @email
end

#first_nameString

Output only. The first name of the account holder. Corresponds to the JSON property firstName

Returns:

  • (String)


636
637
638
# File 'generated/google/apis/vault_v1/classes.rb', line 636

def first_name
  @first_name
end

#hold_timeString

Output only. When the account was put on hold. Corresponds to the JSON property holdTime

Returns:

  • (String)


641
642
643
# File 'generated/google/apis/vault_v1/classes.rb', line 641

def hold_time
  @hold_time
end

#last_nameString

Output only. The last name of the account holder. Corresponds to the JSON property lastName

Returns:

  • (String)


646
647
648
# File 'generated/google/apis/vault_v1/classes.rb', line 646

def last_name
  @last_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



653
654
655
656
657
658
659
# File 'generated/google/apis/vault_v1/classes.rb', line 653

def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @email = args[:email] if args.key?(:email)
  @first_name = args[:first_name] if args.key?(:first_name)
  @hold_time = args[:hold_time] if args.key?(:hold_time)
  @last_name = args[:last_name] if args.key?(:last_name)
end