Class: Google::Apis::NetworkservicesV1beta1::MeshRouteView

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

MeshRouteView defines view-only resource for Routes to a Mesh

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MeshRouteView

Returns a new instance of MeshRouteView.



3611
3612
3613
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3611

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

Instance Attribute Details

#nameString

Output only. Identifier. Full path name of the MeshRouteView resource. Format: projects/project_number/locations/location/meshes/mesh/routeViews/ route_view Corresponds to the JSON property name

Returns:

  • (String)


3589
3590
3591
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3589

def name
  @name
end

#route_idString

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

Returns:

  • (String)


3594
3595
3596
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3594

def route_id
  @route_id
end

#route_locationString

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

Returns:

  • (String)


3599
3600
3601
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3599

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)


3604
3605
3606
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3604

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)


3609
3610
3611
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3609

def route_type
  @route_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3616
3617
3618
3619
3620
3621
3622
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3616

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