Class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2StateMessage

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudfunctions_v2/classes.rb,
lib/google/apis/cloudfunctions_v2/representations.rb,
lib/google/apis/cloudfunctions_v2/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.



961
962
963
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 961

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

Instance Attribute Details

#messageString

The message. Corresponds to the JSON property message

Returns:

  • (String)


949
950
951
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 949

def message
  @message
end

#severityString

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

Returns:

  • (String)


954
955
956
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 954

def severity
  @severity
end

#typeString

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

Returns:

  • (String)


959
960
961
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 959

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



966
967
968
969
970
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 966

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