class Google::Apis::VaultV1::Hold

A hold. A hold prevents the specified Google Workspace service from purging data for specific accounts or all members of an organizational unit. To work with Vault resources, the account must have the [required Vault privileges] ( support.google.com/vault/answer/2799699) 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.

Attributes

accounts[RW]

If set, the hold applies to the specified accounts and orgUnit must be empty. Corresponds to the JSON property `accounts` @return [Array<Google::Apis::VaultV1::HeldAccount>]

corpus[RW]

The service to be searched. Corresponds to the JSON property `corpus` @return [String]

hold_id[RW]

The unique immutable ID of the hold. Assigned during creation. Corresponds to the JSON property `holdId` @return [String]

name[RW]

The name of the hold. Corresponds to the JSON property `name` @return [String]

org_unit[RW]

The organizational unit covered by a hold. This structure is immutable. Corresponds to the JSON property `orgUnit` @return [Google::Apis::VaultV1::HeldOrgUnit]

query[RW]

Service-specific options for holds. Corresponds to the JSON property `query` @return [Google::Apis::VaultV1::CorpusQuery]

update_time[RW]

The last time this hold was modified. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vault_v1/classes.rb, line 1069
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vault_v1/classes.rb, line 1074
def update!(**args)
  @accounts = args[:accounts] if args.key?(:accounts)
  @corpus = args[:corpus] if args.key?(:corpus)
  @hold_id = args[:hold_id] if args.key?(:hold_id)
  @name = args[:name] if args.key?(:name)
  @org_unit = args[:org_unit] if args.key?(:org_unit)
  @query = args[:query] if args.key?(:query)
  @update_time = args[:update_time] if args.key?(:update_time)
end