Class: Google::Apis::VaultV1::AddHeldAccountsRequest

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

Add a list of accounts to a hold.

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

Returns a new instance of AddHeldAccountsRequest.


92
93
94
# File 'generated/google/apis/vault_v1/classes.rb', line 92

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

Instance Attribute Details

#account_idsArray<String>

Account IDs to identify which accounts to add. Only account_ids or only emails should be specified, but not both. Corresponds to the JSON property accountIds

Returns:

  • (Array<String>)

84
85
86
# File 'generated/google/apis/vault_v1/classes.rb', line 84

def 
  @account_ids
end

#emailsArray<String>

Emails to identify which accounts to add. Only emails or only account_ids should be specified, but not both. Corresponds to the JSON property emails

Returns:

  • (Array<String>)

90
91
92
# File 'generated/google/apis/vault_v1/classes.rb', line 90

def emails
  @emails
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


97
98
99
100
# File 'generated/google/apis/vault_v1/classes.rb', line 97

def update!(**args)
  @account_ids = args[:account_ids] if args.key?(:account_ids)
  @emails = args[:emails] if args.key?(:emails)
end