Class: Google::Apis::CloudfunctionsV2alpha::GoogleCloudFunctionsV2alphaStateMessage

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

Overview

Informational messages about the state of the Cloud Function or Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudFunctionsV2alphaStateMessage

Returns a new instance of GoogleCloudFunctionsV2alphaStateMessage.



864
865
866
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 864

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

Instance Attribute Details

#messageString

The message. Corresponds to the JSON property message

Returns:

  • (String)


852
853
854
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 852

def message
  @message
end

#severityString

Severity of the state message. Corresponds to the JSON property severity

Returns:

  • (String)


857
858
859
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 857

def severity
  @severity
end

#typeString

One-word CamelCase type of the state message. Corresponds to the JSON property type

Returns:

  • (String)


862
863
864
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 862

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



869
870
871
872
873
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 869

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