Class: Google::Apis::MemcacheV1::InstanceMessage
- Inherits:
-
Object
- Object
- Google::Apis::MemcacheV1::InstanceMessage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/memcache_v1/classes.rb,
lib/google/apis/memcache_v1/representations.rb,
lib/google/apis/memcache_v1/representations.rb
Instance Attribute Summary collapse
-
#code ⇒ String
A code that correspond to one type of user-facing message.
-
#message ⇒ String
Message on memcached instance which will be exposed to users.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceMessage
constructor
A new instance of InstanceMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceMessage
Returns a new instance of InstanceMessage.
1109 1110 1111 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1109 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
A code that correspond to one type of user-facing message.
Corresponds to the JSON property code
1102 1103 1104 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1102 def code @code end |
#message ⇒ String
Message on memcached instance which will be exposed to users.
Corresponds to the JSON property message
1107 1108 1109 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1107 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1114 1115 1116 1117 |
# File 'lib/google/apis/memcache_v1/classes.rb', line 1114 def update!(**args) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) end |