Class: Google::Apis::NetworkconnectivityV1::DestinationEndpoint
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::DestinationEndpoint
- 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
-
#asn ⇒ Fixnum
Required.
-
#csp ⇒ String
Required.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DestinationEndpoint
constructor
A new instance of DestinationEndpoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#asn ⇒ Fixnum
Required. The ASN of the remote IP prefix.
Corresponds to the JSON property asn
788 789 790 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 788 def asn @asn end |
#csp ⇒ String
Required. The CSP of the remote IP prefix.
Corresponds to the JSON property csp
793 794 795 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 793 def csp @csp end |
#state ⇒ String
Output only. The state of the DestinationEndpoint resource.
Corresponds to the JSON property state
798 799 800 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 798 def state @state end |
#update_time ⇒ String
Output only. Time when the DestinationEndpoint resource was updated.
Corresponds to the JSON property updateTime
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 |