Class: Google::Apis::VaultV1::HeldOrgUnit

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

The organizational unit covered by a hold. This structure is immutable.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HeldOrgUnit

Returns a new instance of HeldOrgUnit.



1108
1109
1110
# File 'lib/google/apis/vault_v1/classes.rb', line 1108

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

Instance Attribute Details

#hold_timeString

When the organizational unit was put on hold. This property is immutable. Corresponds to the JSON property holdTime

Returns:

  • (String)


1100
1101
1102
# File 'lib/google/apis/vault_v1/classes.rb', line 1100

def hold_time
  @hold_time
end

#org_unit_idString

The organizational unit's immutable ID as provided by the Admin SDK. Corresponds to the JSON property orgUnitId

Returns:

  • (String)


1106
1107
1108
# File 'lib/google/apis/vault_v1/classes.rb', line 1106

def org_unit_id
  @org_unit_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1113
1114
1115
1116
# File 'lib/google/apis/vault_v1/classes.rb', line 1113

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