Class: Google::Apis::SqladminV1beta4::PreCheckResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1beta4/classes.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb,
lib/google/apis/sqladmin_v1beta4/representations.rb

Overview

Structured PreCheckResponse containing message, type, and required actions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PreCheckResponse

Returns a new instance of PreCheckResponse.



4787
4788
4789
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4787

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

Instance Attribute Details

#actions_requiredArray<String>

The actions that the user needs to take. Use repeated for multiple actions. Corresponds to the JSON property actionsRequired

Returns:

  • (Array<String>)


4775
4776
4777
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4775

def actions_required
  @actions_required
end

#messageString

The message to be displayed to the user. Corresponds to the JSON property message

Returns:

  • (String)


4780
4781
4782
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4780

def message
  @message
end

#message_typeString

The type of message whether it is an info, warning, or error. Corresponds to the JSON property messageType

Returns:

  • (String)


4785
4786
4787
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4785

def message_type
  @message_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4792
4793
4794
4795
4796
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 4792

def update!(**args)
  @actions_required = args[:actions_required] if args.key?(:actions_required)
  @message = args[:message] if args.key?(:message)
  @message_type = args[:message_type] if args.key?(:message_type)
end