Class: Google::Apis::NetworkmanagementV1beta1::HybridSubnetInfo

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

Overview

For display only. Metadata associated with a hybrid subnet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HybridSubnetInfo

Returns a new instance of HybridSubnetInfo.



1628
1629
1630
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1628

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

Instance Attribute Details

#display_nameString

Name of a hybrid subnet. Corresponds to the JSON property displayName

Returns:

  • (String)


1615
1616
1617
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1615

def display_name
  @display_name
end

#regionString

Name of a Google Cloud region where the hybrid subnet is configured. Corresponds to the JSON property region

Returns:

  • (String)


1620
1621
1622
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1620

def region
  @region
end

#uriString

URI of the hybrid subnet. Format: projects/project_id/regions/region/ subnetworks/subnetwork_id` Corresponds to the JSON propertyuri`

Returns:

  • (String)


1626
1627
1628
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1626

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1633
1634
1635
1636
1637
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1633

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @region = args[:region] if args.key?(:region)
  @uri = args[:uri] if args.key?(:uri)
end