Class: Google::Apis::CloudfunctionsV2beta::GoogleCloudFunctionsV2alphaStateMessage

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



1136
1137
1138
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1136

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

Instance Attribute Details

#messageString

The message. Corresponds to the JSON property message

Returns:

  • (String)


1124
1125
1126
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1124

def message
  @message
end

#severityString

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

Returns:

  • (String)


1129
1130
1131
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1129

def severity
  @severity
end

#typeString

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

Returns:

  • (String)


1134
1135
1136
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1134

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1141
1142
1143
1144
1145
# File 'lib/google/apis/cloudfunctions_v2beta/classes.rb', line 1141

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