Class: Google::Apis::DatastreamV1::Route

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Route

Returns a new instance of Route.



2130
2131
2132
# File 'lib/google/apis/datastream_v1/classes.rb', line 2130

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

Instance Attribute Details

#create_timeString

Output only. The create time of the resource. Corresponds to the JSON property createTime

Returns:

  • (String)


2098
2099
2100
# File 'lib/google/apis/datastream_v1/classes.rb', line 2098

def create_time
  @create_time
end

#destination_addressString

Required. Destination address for connection Corresponds to the JSON property destinationAddress

Returns:

  • (String)


2103
2104
2105
# File 'lib/google/apis/datastream_v1/classes.rb', line 2103

def destination_address
  @destination_address
end

#destination_portFixnum

Destination port for connection Corresponds to the JSON property destinationPort

Returns:

  • (Fixnum)


2108
2109
2110
# File 'lib/google/apis/datastream_v1/classes.rb', line 2108

def destination_port
  @destination_port
end

#display_nameString

Required. Display name. Corresponds to the JSON property displayName

Returns:

  • (String)


2113
2114
2115
# File 'lib/google/apis/datastream_v1/classes.rb', line 2113

def display_name
  @display_name
end

#labelsHash<String,String>

Labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2118
2119
2120
# File 'lib/google/apis/datastream_v1/classes.rb', line 2118

def labels
  @labels
end

#nameString

Output only. The resource's name. Corresponds to the JSON property name

Returns:

  • (String)


2123
2124
2125
# File 'lib/google/apis/datastream_v1/classes.rb', line 2123

def name
  @name
end

#update_timeString

Output only. The update time of the resource. Corresponds to the JSON property updateTime

Returns:

  • (String)


2128
2129
2130
# File 'lib/google/apis/datastream_v1/classes.rb', line 2128

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2135
2136
2137
2138
2139
2140
2141
2142
2143
# File 'lib/google/apis/datastream_v1/classes.rb', line 2135

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