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.
984 985 986 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 984 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
967 968 969 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 967 def asn @asn end |
#csp ⇒ String
Required. The CSP of the remote IP prefix.
Corresponds to the JSON property csp
972 973 974 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 972 def csp @csp end |
#state ⇒ String
Output only. The state of the DestinationEndpoint resource.
Corresponds to the JSON property state
977 978 979 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 977 def state @state end |
#update_time ⇒ String
Output only. Time when the DestinationEndpoint resource was updated.
Corresponds to the JSON property updateTime
982 983 984 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 982 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
989 990 991 992 993 994 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 989 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 |