Class: Google::Apis::NetworkconnectivityV1::RouteTable
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::RouteTable
- 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
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
An optional description of the route table.
-
#labels ⇒ Hash<String,String>
Optional labels in key-value pair format.
-
#name ⇒ String
Immutable.
-
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouteTable
constructor
A new instance of RouteTable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RouteTable
Returns a new instance of RouteTable.
2745 2746 2747 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2745 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The time the route table was created.
Corresponds to the JSON property createTime
2706 2707 2708 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2706 def create_time @create_time end |
#description ⇒ String
An optional description of the route table.
Corresponds to the JSON property description
2711 2712 2713 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2711 def description @description end |
#labels ⇒ Hash<String,String>
Optional labels in key-value pair format. For more information about labels,
see Requirements for labels.
Corresponds to the JSON property labels
2718 2719 2720 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2718 def labels @labels end |
#name ⇒ String
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`
2725 2726 2727 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2725 def name @name end |
#state ⇒ String
Output only. The current lifecycle state of this route table.
Corresponds to the JSON property state
2730 2731 2732 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2730 def state @state end |
#uid ⇒ String
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
2738 2739 2740 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2738 def uid @uid end |
#update_time ⇒ String
Output only. The time the route table was last updated.
Corresponds to the JSON property updateTime
2743 2744 2745 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2743 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2750 2751 2752 2753 2754 2755 2756 2757 2758 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2750 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 |