Class: Google::Apis::TrafficdirectorV3::PathSegment

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

Overview

Specifies the segment in a path to retrieve value from Struct.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PathSegment

Returns a new instance of PathSegment.



1095
1096
1097
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1095

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

Instance Attribute Details

#keyString

If specified, use the key to retrieve the value in a Struct. Corresponds to the JSON property key

Returns:

  • (String)


1093
1094
1095
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1093

def key
  @key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1100
1101
1102
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1100

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