Class: Google::Apis::NetworkconnectivityV1alpha1::Hub
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1alpha1::Hub
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1alpha1/classes.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb,
lib/google/apis/networkconnectivity_v1alpha1/representations.rb
Overview
Network Connectivity Center is a hub-and-spoke abstraction for network connectivity management in Google Cloud. It reduces operational complexity through a simple, centralized connectivity management model. Following is the resource message of a hub.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Time when the Hub was created.
-
#description ⇒ String
Short description of the hub resource.
-
#labels ⇒ Hash<String,String>
User-defined labels.
-
#name ⇒ String
Immutable.
-
#spokes ⇒ Array<String>
Output only.
-
#state ⇒ String
Output only.
-
#unique_id ⇒ String
Output only.
-
#update_time ⇒ String
Time when the Hub was updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Hub
constructor
A new instance of Hub.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Hub
Returns a new instance of Hub.
821 822 823 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 821 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Time when the Hub was created.
Corresponds to the JSON property createTime
782 783 784 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 782 def create_time @create_time end |
#description ⇒ String
Short description of the hub resource.
Corresponds to the JSON property description
787 788 789 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 787 def description @description end |
#labels ⇒ Hash<String,String>
User-defined labels.
Corresponds to the JSON property labels
792 793 794 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 792 def labels @labels end |
#name ⇒ String
Immutable. The name of a Hub resource.
Corresponds to the JSON property name
797 798 799 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 797 def name @name end |
#spokes ⇒ Array<String>
Output only. A list of the URIs of all attached spokes
Corresponds to the JSON property spokes
802 803 804 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 802 def spokes @spokes end |
#state ⇒ String
Output only. The current lifecycle state of this Hub.
Corresponds to the JSON property state
807 808 809 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 807 def state @state end |
#unique_id ⇒ String
Output only. Google-generated UUID for this resource. This is unique across
all Hub resources. If a Hub resource is deleted and another with the same name
is created, it gets a different unique_id.
Corresponds to the JSON property uniqueId
814 815 816 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 814 def unique_id @unique_id end |
#update_time ⇒ String
Time when the Hub was updated.
Corresponds to the JSON property updateTime
819 820 821 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 819 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
826 827 828 829 830 831 832 833 834 835 |
# File 'lib/google/apis/networkconnectivity_v1alpha1/classes.rb', line 826 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) @spokes = args[:spokes] if args.key?(:spokes) @state = args[:state] if args.key?(:state) @unique_id = args[:unique_id] if args.key?(:unique_id) @update_time = args[:update_time] if args.key?(:update_time) end |