Class: Google::Apis::NetworkservicesV1beta1::TlsRouteRouteDestination

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

Describe the destination for traffic to be routed to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TlsRouteRouteDestination

Returns a new instance of TlsRouteRouteDestination.



3466
3467
3468
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3466

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

Instance Attribute Details

#service_nameString

Required. The URL of a BackendService to route traffic to. Corresponds to the JSON property serviceName

Returns:

  • (String)


3456
3457
3458
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3456

def service_name
  @service_name
end

#weightFixnum

Optional. Specifies the proportion of requests forwareded to the backend referenced by the service_name field. This is computed as: - weight/Sum( weights in destinations) Weights in all destinations does not need to sum up to 100. Corresponds to the JSON property weight

Returns:

  • (Fixnum)


3464
3465
3466
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3464

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3471
3472
3473
3474
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 3471

def update!(**args)
  @service_name = args[:service_name] if args.key?(:service_name)
  @weight = args[:weight] if args.key?(:weight)
end