Class: Google::Apis::NetworkconnectivityV1::StateReason

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

Overview

The reason a spoke is inactive.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StateReason

Returns a new instance of StateReason.



2468
2469
2470
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2468

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

Instance Attribute Details

#codeString

The code associated with this reason. Corresponds to the JSON property code

Returns:

  • (String)


2456
2457
2458
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2456

def code
  @code
end

#messageString

Human-readable details about this reason. Corresponds to the JSON property message

Returns:

  • (String)


2461
2462
2463
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2461

def message
  @message
end

#user_detailsString

Additional information provided by the user in the RejectSpoke call. Corresponds to the JSON property userDetails

Returns:

  • (String)


2466
2467
2468
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2466

def user_details
  @user_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2473
2474
2475
2476
2477
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2473

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