Class: Google::Apis::AccessapprovalV1::AccessReason

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/accessapproval_v1/classes.rb,
lib/google/apis/accessapproval_v1/representations.rb,
lib/google/apis/accessapproval_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessReason

Returns a new instance of AccessReason.



189
190
191
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 189

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

Instance Attribute Details

#detail ⇒ String

More detail about certain reason types. See comments for each type above. Corresponds to the JSON property detail

Returns:

  • (String)


182
183
184
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 182

def detail
  @detail
end

#type ⇒ String

Type of access justification. Corresponds to the JSON property type

Returns:

  • (String)


187
188
189
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 187

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



194
195
196
197
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 194

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