Class: Google::Apis::MemcacheV1beta2::InstanceMessage
- Inherits:
-
Object
- Object
- Google::Apis::MemcacheV1beta2::InstanceMessage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/memcache_v1beta2/classes.rb,
generated/google/apis/memcache_v1beta2/representations.rb,
generated/google/apis/memcache_v1beta2/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InstanceMessage
Returns a new instance of InstanceMessage.
940 941 942 |
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 940 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
933 934 935 |
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 933 def code @code end |
#message ⇒ String
Message on memcached instance which will be exposed to users.
Corresponds to the JSON property message
938 939 940 |
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 938 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
945 946 947 948 |
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 945 def update!(**args) @code = args[:code] if args.key?(:code) @message = args[:message] if args.key?(:message) end |