Class: Google::Apis::ServicenetworkingV1beta::Route

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/servicenetworking_v1beta/classes.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb,
lib/google/apis/servicenetworking_v1beta/representations.rb

Overview

Represents a route that was created or discovered by a private access management service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Route

Returns a new instance of Route.



3452
3453
3454
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3452

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

Instance Attribute Details

#dest_rangeString

Destination CIDR range that this route applies to. Corresponds to the JSON property destRange

Returns:

  • (String)


3431
3432
3433
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3431

def dest_range
  @dest_range
end

#nameString

Route name. See https://cloud.google.com/vpc/docs/routes Corresponds to the JSON property name

Returns:

  • (String)


3436
3437
3438
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3436

def name
  @name
end

#networkString

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

Returns:

  • (String)


3443
3444
3445
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3443

def network
  @network
end

#next_hop_gatewayString

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

Returns:

  • (String)


3450
3451
3452
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3450

def next_hop_gateway
  @next_hop_gateway
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3457
3458
3459
3460
3461
3462
# File 'lib/google/apis/servicenetworking_v1beta/classes.rb', line 3457

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