Class: Google::Apis::VaultV1::AddHeldAccountsRequest
- Inherits:
-
Object
- Object
- Google::Apis::VaultV1::AddHeldAccountsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vault_v1/classes.rb,
lib/google/apis/vault_v1/representations.rb,
lib/google/apis/vault_v1/representations.rb
Overview
Add a list of accounts to a hold.
Instance Attribute Summary collapse
-
#account_ids ⇒ Array<String>
A comma-separated list of the account IDs of the accounts to add to the hold.
-
#emails ⇒ Array<String>
A comma-separated list of the emails of the accounts to add to the hold.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddHeldAccountsRequest
constructor
A new instance of AddHeldAccountsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AddHeldAccountsRequest
Returns a new instance of AddHeldAccountsRequest.
145 146 147 |
# File 'lib/google/apis/vault_v1/classes.rb', line 145 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_ids ⇒ Array<String>
A comma-separated list of the account IDs of the accounts to add to the hold.
Specify either emails or account_ids, but not both.
Corresponds to the JSON property accountIds
137 138 139 |
# File 'lib/google/apis/vault_v1/classes.rb', line 137 def account_ids @account_ids end |
#emails ⇒ Array<String>
A comma-separated list of the emails of the accounts to add to the hold.
Specify either emails or account_ids, but not both.
Corresponds to the JSON property emails
143 144 145 |
# File 'lib/google/apis/vault_v1/classes.rb', line 143 def emails @emails end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
150 151 152 153 |
# File 'lib/google/apis/vault_v1/classes.rb', line 150 def update!(**args) @account_ids = args[:account_ids] if args.key?(:account_ids) @emails = args[:emails] if args.key?(:emails) end |