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.



3519
3520
3521
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3519

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

Instance Attribute Details

#codeString

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

Returns:

  • (String)


3507
3508
3509
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3507

def code
  @code
end

#messageString

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

Returns:

  • (String)


3512
3513
3514
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3512

def message
  @message
end

#user_detailsString

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

Returns:

  • (String)


3517
3518
3519
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3517

def user_details
  @user_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3524
3525
3526
3527
3528
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 3524

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