Class: Google::Apis::AccessapprovalV1::AccessReason
- Inherits:
-
Object
- Object
- Google::Apis::AccessapprovalV1::AccessReason
- 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
-
#detail ⇒ String
More detail about certain reason types.
-
#type ⇒ String
Type of access justification.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessReason
constructor
A new instance of AccessReason.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccessReason
Returns a new instance of AccessReason.
212 213 214 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 212 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
205 206 207 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 205 def detail @detail end |
#type ⇒ String
Type of access justification.
Corresponds to the JSON property type
210 211 212 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 210 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
217 218 219 220 |
# File 'lib/google/apis/accessapproval_v1/classes.rb', line 217 def update!(**args) @detail = args[:detail] if args.key?(:detail) @type = args[:type] if args.key?(:type) end |