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.



249
250
251
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 249

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

Instance Attribute Details

#detailString

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

Returns:

  • (String)


242
243
244
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 242

def detail
  @detail
end

#typeString

Type of access reason. Corresponds to the JSON property type

Returns:

  • (String)


247
248
249
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 247

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



254
255
256
257
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 254

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