Class: Google::Apis::VaultV1::Hold

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

Represents a hold within Vault. A hold restricts purging of artifacts based on the combination of the query and accounts restrictions. A hold can be configured to either apply to an explicitly configured set of accounts, or can be applied to all members of an organizational unit.

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

Returns a new instance of Hold



838
839
840
# File 'generated/google/apis/vault_v1/classes.rb', line 838

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

Instance Attribute Details

#accountsArray<Google::Apis::VaultV1::HeldAccount>

If set, the hold applies to the enumerated accounts and org_unit must be empty. Corresponds to the JSON property accounts



805
806
807
# File 'generated/google/apis/vault_v1/classes.rb', line 805

def accounts
  @accounts
end

#corpusString

The corpus to be searched. Corresponds to the JSON property corpus

Returns:

  • (String)


810
811
812
# File 'generated/google/apis/vault_v1/classes.rb', line 810

def corpus
  @corpus
end

#hold_idString

The unique immutable ID of the hold. Assigned during creation. Corresponds to the JSON property holdId

Returns:

  • (String)


815
816
817
# File 'generated/google/apis/vault_v1/classes.rb', line 815

def hold_id
  @hold_id
end

#nameString

The name of the hold. Corresponds to the JSON property name

Returns:

  • (String)


820
821
822
# File 'generated/google/apis/vault_v1/classes.rb', line 820

def name
  @name
end

#org_unitGoogle::Apis::VaultV1::HeldOrgUnit

A organizational unit being held in a particular hold. This structure is immutable. Corresponds to the JSON property orgUnit



826
827
828
# File 'generated/google/apis/vault_v1/classes.rb', line 826

def org_unit
  @org_unit
end

#queryGoogle::Apis::VaultV1::CorpusQuery

Corpus specific queries. Corresponds to the JSON property query



831
832
833
# File 'generated/google/apis/vault_v1/classes.rb', line 831

def query
  @query
end

#update_timeString

The last time this hold was modified. Corresponds to the JSON property updateTime

Returns:

  • (String)


836
837
838
# File 'generated/google/apis/vault_v1/classes.rb', line 836

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



843
844
845
846
847
848
849
850
851
# File 'generated/google/apis/vault_v1/classes.rb', line 843

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