Class: Google::Apis::NetworkconnectivityV1::RouteTable

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RouteTable

Returns a new instance of RouteTable.



2462
2463
2464
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2462

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

Instance Attribute Details

#create_timeString

Output only. The time the route table was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2423
2424
2425
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2423

def create_time
  @create_time
end

#descriptionString

An optional description of the route table. Corresponds to the JSON property description

Returns:

  • (String)


2428
2429
2430
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2428

def description
  @description
end

#labelsHash<String,String>

Optional labels in key-value pair format. For more information about labels, see Requirements for labels. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


2435
2436
2437
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2435

def labels
  @labels
end

#nameString

Immutable. The name of the route table. Route table names must be unique. They use the following form: projects/project_number/locations/global/hubs/hub/ routeTables/route_table_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


2442
2443
2444
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2442

def name
  @name
end

#stateString

Output only. The current lifecycle state of this route table. Corresponds to the JSON property state

Returns:

  • (String)


2447
2448
2449
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2447

def state
  @state
end

#uidString

Output only. The Google-generated UUID for the route table. This value is unique across all route table resources. If a route table is deleted and another with the same name is created, the new route table is assigned a different uid. Corresponds to the JSON property uid

Returns:

  • (String)


2455
2456
2457
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2455

def uid
  @uid
end

#update_timeString

Output only. The time the route table was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2460
2461
2462
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2460

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2467
2468
2469
2470
2471
2472
2473
2474
2475
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2467

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @uid = args[:uid] if args.key?(:uid)
  @update_time = args[:update_time] if args.key?(:update_time)
end