Class: Google::Apis::CloudfunctionsV2::GoogleCloudFunctionsV2betaStateMessage

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

Returns a new instance of GoogleCloudFunctionsV2betaStateMessage.



1110
1111
1112
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1110

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

Instance Attribute Details

#messageString

The message. Corresponds to the JSON property message

Returns:

  • (String)


1098
1099
1100
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1098

def message
  @message
end

#severityString

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

Returns:

  • (String)


1103
1104
1105
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1103

def severity
  @severity
end

#typeString

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

Returns:

  • (String)


1108
1109
1110
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1108

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1115
1116
1117
1118
1119
# File 'lib/google/apis/cloudfunctions_v2/classes.rb', line 1115

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