Class: Google::Apis::TrafficdirectorV3::Pipe

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Pipe

Returns a new instance of Pipe.



1228
1229
1230
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1228

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

Instance Attribute Details

#modeFixnum

The mode for the Pipe. Not applicable for abstract sockets. Corresponds to the JSON property mode

Returns:

  • (Fixnum)


1218
1219
1220
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1218

def mode
  @mode
end

#pathString

Unix Domain Socket path. On Linux, paths starting with '@' will use the abstract namespace. The starting '@' is replaced by a null byte by Envoy. Paths starting with '@' will result in an error in environments other than Linux. Corresponds to the JSON property path

Returns:

  • (String)


1226
1227
1228
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1226

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1233
1234
1235
1236
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1233

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