Class: Google::Apis::CloudfunctionsV2alpha::GoogleCloudFunctionsV2StateMessage

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) ⇒ GoogleCloudFunctionsV2StateMessage

Returns a new instance of GoogleCloudFunctionsV2StateMessage.



914
915
916
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 914

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

Instance Attribute Details

#messageString

The message. Corresponds to the JSON property message

Returns:

  • (String)


902
903
904
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 902

def message
  @message
end

#severityString

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

Returns:

  • (String)


907
908
909
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 907

def severity
  @severity
end

#typeString

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

Returns:

  • (String)


912
913
914
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 912

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



919
920
921
922
923
# File 'lib/google/apis/cloudfunctions_v2alpha/classes.rb', line 919

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