Class: Google::Apis::NetworkconnectivityV1::DestinationEndpoint

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 metadata for a DestinationEndpoint resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DestinationEndpoint

Returns a new instance of DestinationEndpoint.



805
806
807
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 805

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

Instance Attribute Details

#asnFixnum

Required. The ASN of the remote IP prefix. Corresponds to the JSON property asn

Returns:

  • (Fixnum)


788
789
790
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 788

def asn
  @asn
end

#cspString

Required. The CSP of the remote IP prefix. Corresponds to the JSON property csp

Returns:

  • (String)


793
794
795
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 793

def csp
  @csp
end

#stateString

Output only. The state of the DestinationEndpoint resource. Corresponds to the JSON property state

Returns:

  • (String)


798
799
800
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 798

def state
  @state
end

#update_timeString

Output only. Time when the DestinationEndpoint resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


803
804
805
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 803

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



810
811
812
813
814
815
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 810

def update!(**args)
  @asn = args[:asn] if args.key?(:asn)
  @csp = args[:csp] if args.key?(:csp)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end