Class: Google::Apis::CloudcontrolspartnerV1::AccessReason

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

Overview

Reason for the access.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccessReason

Returns a new instance of AccessReason.



79
80
81
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 79

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)


72
73
74
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 72

def detail
  @detail
end

#typeString

Type of access justification. Corresponds to the JSON property type

Returns:

  • (String)


77
78
79
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 77

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



84
85
86
87
# File 'lib/google/apis/cloudcontrolspartner_v1/classes.rb', line 84

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