Class: Google::Apis::ServicenetworkingV1::Route
- Inherits:
-
Object
- Object
- Google::Apis::ServicenetworkingV1::Route
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/servicenetworking_v1/classes.rb,
lib/google/apis/servicenetworking_v1/representations.rb,
lib/google/apis/servicenetworking_v1/representations.rb
Overview
Represents a route that was created or discovered by a private access management service.
Instance Attribute Summary collapse
-
#dest_range ⇒ String
Destination CIDR range that this route applies to.
-
#name ⇒ String
Route name.
-
#network ⇒ String
Fully-qualified URL of the VPC network in the producer host tenant project that this route applies to.
-
#next_hop_gateway ⇒ String
Fully-qualified URL of the gateway that should handle matching packets that this route applies to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Route
constructor
A new instance of Route.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Route
Returns a new instance of Route.
4180 4181 4182 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4180 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dest_range ⇒ String
Destination CIDR range that this route applies to.
Corresponds to the JSON property destRange
4159 4160 4161 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4159 def dest_range @dest_range end |
#name ⇒ String
Route name. See https://cloud.google.com/vpc/docs/routes
Corresponds to the JSON property name
4164 4165 4166 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4164 def name @name end |
#network ⇒ String
Fully-qualified URL of the VPC network in the producer host tenant project
that this route applies to. For example: projects/123456/global/networks/host-
network
Corresponds to the JSON property network
4171 4172 4173 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4171 def network @network end |
#next_hop_gateway ⇒ String
Fully-qualified URL of the gateway that should handle matching packets that
this route applies to. For example: projects/123456/global/gateways/default-
internet-gateway
Corresponds to the JSON property nextHopGateway
4178 4179 4180 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4178 def next_hop_gateway @next_hop_gateway end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4185 4186 4187 4188 4189 4190 |
# File 'lib/google/apis/servicenetworking_v1/classes.rb', line 4185 def update!(**args) @dest_range = args[:dest_range] if args.key?(:dest_range) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway) end |