Class: Google::Apis::DatastreamV1alpha1::Route
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1alpha1::Route
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1alpha1/classes.rb,
lib/google/apis/datastream_v1alpha1/representations.rb,
lib/google/apis/datastream_v1alpha1/representations.rb
Overview
The Route resource is the child of the PrivateConnection resource. It used to define a route for a PrivateConnection setup.
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.
1493 1494 1495 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1493 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
1461 1462 1463 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1461 def create_time @create_time end |
#destination_address ⇒ String
Required. Destination address for connection
Corresponds to the JSON property destinationAddress
1466 1467 1468 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1466 def destination_address @destination_address end |
#destination_port ⇒ Fixnum
Destination port for connection
Corresponds to the JSON property destinationPort
1471 1472 1473 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1471 def destination_port @destination_port end |
#display_name ⇒ String
Required. Display name.
Corresponds to the JSON property displayName
1476 1477 1478 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1476 def display_name @display_name end |
#labels ⇒ Hash<String,String>
Labels.
Corresponds to the JSON property labels
1481 1482 1483 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1481 def labels @labels end |
#name ⇒ String
Output only. The resource's name.
Corresponds to the JSON property name
1486 1487 1488 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1486 def name @name end |
#update_time ⇒ String
Output only. The update time of the resource.
Corresponds to the JSON property updateTime
1491 1492 1493 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1491 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1498 1499 1500 1501 1502 1503 1504 1505 1506 |
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1498 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 |