Class: Google::Apis::AccessapprovalV1beta1::AccessReason
- Inherits:
-
Object
- Object
- Google::Apis::AccessapprovalV1beta1::AccessReason
- 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
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccessReason
Returns a new instance of AccessReason.
151 152 153 |
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 151 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
144 145 146 |
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 144 def detail @detail end |
#type ⇒ String
Type of access justification.
Corresponds to the JSON property type
149 150 151 |
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 149 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
156 157 158 159 |
# File 'generated/google/apis/accessapproval_v1beta1/classes.rb', line 156 def update!(**args) @detail = args[:detail] if args.key?(:detail) @type = args[:type] if args.key?(:type) end |