Class: Google::Apis::MemcacheV1::InstanceMessage

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceMessage

Returns a new instance of InstanceMessage.



899
900
901
# File 'lib/google/apis/memcache_v1/classes.rb', line 899

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)


892
893
894
# File 'lib/google/apis/memcache_v1/classes.rb', line 892

def code
  @code
end

#messageString

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

Returns:

  • (String)


897
898
899
# File 'lib/google/apis/memcache_v1/classes.rb', line 897

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



904
905
906
907
# File 'lib/google/apis/memcache_v1/classes.rb', line 904

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