Class: Google::Apis::NetworkservicesV1beta1::GatewayRouteView

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

Overview

GatewayRouteView defines view-only resource for Routes to a Gateway

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GatewayRouteView

Returns a new instance of GatewayRouteView.



1004
1005
1006
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1004

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

Instance Attribute Details

#nameString

Output only. Identifier. Full path name of the GatewayRouteView resource. Format: projects/project_number/locations/location/gateways/gateway/ routeViews/route_view Corresponds to the JSON property name

Returns:

  • (String)


982
983
984
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 982

def name
  @name
end

#route_idString

Output only. The resource id for the route. Corresponds to the JSON property routeId

Returns:

  • (String)


987
988
989
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 987

def route_id
  @route_id
end

#route_locationString

Output only. Location where the route exists. Corresponds to the JSON property routeLocation

Returns:

  • (String)


992
993
994
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 992

def route_location
  @route_location
end

#route_project_numberFixnum

Output only. Project number where the route exists. Corresponds to the JSON property routeProjectNumber

Returns:

  • (Fixnum)


997
998
999
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 997

def route_project_number
  @route_project_number
end

#route_typeString

Output only. Type of the route: HttpRoute,GrpcRoute,TcpRoute, or TlsRoute Corresponds to the JSON property routeType

Returns:

  • (String)


1002
1003
1004
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1002

def route_type
  @route_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1009
1010
1011
1012
1013
1014
1015
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1009

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @route_id = args[:route_id] if args.key?(:route_id)
  @route_location = args[:route_location] if args.key?(:route_location)
  @route_project_number = args[:route_project_number] if args.key?(:route_project_number)
  @route_type = args[:route_type] if args.key?(:route_type)
end