Class: Google::Apis::DatastreamV1::Route
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::Route
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
The route resource is the child of the private connection resource, used for defining a route for a private connection.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#destination_address ⇒ String
Required.
-
#destination_port ⇒ Fixnum
Destination port for connection Corresponds to the JSON property
destinationPort. -
#display_name ⇒ String
Required.
-
#labels ⇒ Hash<String,String>
Labels.
-
#name ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Route
constructor
A new instance of Route.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Route
Returns a new instance of Route.
2161 2162 2163 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2161 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The create time of the resource.
Corresponds to the JSON property createTime
2129 2130 2131 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2129 def create_time @create_time end |
#destination_address ⇒ String
Required. Destination address for connection
Corresponds to the JSON property destinationAddress
2134 2135 2136 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2134 def destination_address @destination_address end |
#destination_port ⇒ Fixnum
Destination port for connection
Corresponds to the JSON property destinationPort
2139 2140 2141 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2139 def destination_port @destination_port end |
#display_name ⇒ String
Required. Display name.
Corresponds to the JSON property displayName
2144 2145 2146 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2144 def display_name @display_name end |
#labels ⇒ Hash<String,String>
Labels.
Corresponds to the JSON property labels
2149 2150 2151 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2149 def labels @labels end |
#name ⇒ String
Output only. The resource's name.
Corresponds to the JSON property name
2154 2155 2156 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2154 def name @name end |
#update_time ⇒ String
Output only. The update time of the resource.
Corresponds to the JSON property updateTime
2159 2160 2161 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2159 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2166 2167 2168 2169 2170 2171 2172 2173 2174 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 2166 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @destination_address = args[:destination_address] if args.key?(:destination_address) @destination_port = args[:destination_port] if args.key?(:destination_port) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end |