Class: Google::Apis::MemcacheV1beta2::InstanceMessage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceMessage

Returns a new instance of InstanceMessage.



818
819
820
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 818

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeString

A code that correspond to one type of user-facing message. Corresponds to the JSON property code

Returns:

  • (String)


811
812
813
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 811

def code
  @code
end

#messageString

Message on memcached instance which will be exposed to users. Corresponds to the JSON property message

Returns:

  • (String)


816
817
818
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 816

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



823
824
825
826
# File 'generated/google/apis/memcache_v1beta2/classes.rb', line 823

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