Class: Google::Apis::VaultV1::AddHeldAccountResult

Inherits:
Object
  • Object
show all
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

A status detailing the status of each account creation, and the HeldAccount, if successful.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AddHeldAccountResult

Returns a new instance of AddHeldAccountResult.



119
120
121
# File 'lib/google/apis/vault_v1/classes.rb', line 119

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

Instance Attribute Details

#accountGoogle::Apis::VaultV1::HeldAccount

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. To work with Vault resources, the account must have the required Vault privileges and access to the matter. To access a matter, the account must have created the matter, have the matter shared with them, or have the View All Matters privilege. Corresponds to the JSON property account



107
108
109
# File 'lib/google/apis/vault_v1/classes.rb', line 107

def 
  @account
end

#statusGoogle::Apis::VaultV1::Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property status



117
118
119
# File 'lib/google/apis/vault_v1/classes.rb', line 117

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



124
125
126
127
# File 'lib/google/apis/vault_v1/classes.rb', line 124

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