Class: Google::Apis::AccessapprovalV1beta1::AccessReason

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

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

Returns a new instance of AccessReason



137
138
139
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 137

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)


130
131
132
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 130

def detail
  @detail
end

#typeString

Type of access justification. Corresponds to the JSON property type

Returns:

  • (String)


135
136
137
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 135

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



142
143
144
145
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 142

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