Class: Google::Apis::CloudfunctionsV1::GoogleCloudFunctionsV2betaStateMessage

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

Returns a new instance of GoogleCloudFunctionsV2betaStateMessage.



1254
1255
1256
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 1254

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

Instance Attribute Details

#messageString

The message. Corresponds to the JSON property message

Returns:

  • (String)


1242
1243
1244
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 1242

def message
  @message
end

#severityString

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

Returns:

  • (String)


1247
1248
1249
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 1247

def severity
  @severity
end

#typeString

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

Returns:

  • (String)


1252
1253
1254
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 1252

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1259
1260
1261
1262
1263
# File 'lib/google/apis/cloudfunctions_v1/classes.rb', line 1259

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