Class: Google::Apis::BaremetalsolutionV2::Network
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::Network
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
A Network.
Instance Attribute Summary collapse
-
#cidr ⇒ String
The cidr of the Network.
-
#id ⇒ String
An identifier for the
Network, generated by the backend. -
#ip_address ⇒ String
IP address configured.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#mac_address ⇒ Array<String>
List of physical interfaces.
-
#name ⇒ String
Output only.
-
#reservations ⇒ Array<Google::Apis::BaremetalsolutionV2::NetworkAddressReservation>
List of IP address reservations in this network.
-
#services_cidr ⇒ String
IP range for reserved for services (e.g. NFS).
-
#state ⇒ String
The Network state.
-
#type ⇒ String
The type of this network.
-
#vlan_id ⇒ String
The vlan id of the Network.
-
#vrf ⇒ Google::Apis::BaremetalsolutionV2::Vrf
A network VRF.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Network
constructor
A new instance of Network.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Network
Returns a new instance of Network.
835 836 837 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 835 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cidr ⇒ String
The cidr of the Network.
Corresponds to the JSON property cidr
773 774 775 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 773 def cidr @cidr end |
#id ⇒ String
An identifier for the Network, generated by the backend.
Corresponds to the JSON property id
778 779 780 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 778 def id @id end |
#ip_address ⇒ String
IP address configured.
Corresponds to the JSON property ipAddress
783 784 785 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 783 def ip_address @ip_address end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
788 789 790 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 788 def labels @labels end |
#mac_address ⇒ Array<String>
List of physical interfaces.
Corresponds to the JSON property macAddress
793 794 795 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 793 def mac_address @mac_address end |
#name ⇒ String
Output only. The resource name of this Network. Resource names are
schemeless URIs that follow the conventions in https://cloud.google.com/apis/
design/resource_names. Format: projects/project/locations/location/
networks/network`
Corresponds to the JSON propertyname`
801 802 803 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 801 def name @name end |
#reservations ⇒ Array<Google::Apis::BaremetalsolutionV2::NetworkAddressReservation>
List of IP address reservations in this network. When updating this field, an
error will be generated if a reservation conflicts with an IP address already
allocated to a physical server.
Corresponds to the JSON property reservations
808 809 810 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 808 def reservations @reservations end |
#services_cidr ⇒ String
IP range for reserved for services (e.g. NFS).
Corresponds to the JSON property servicesCidr
813 814 815 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 813 def services_cidr @services_cidr end |
#state ⇒ String
The Network state.
Corresponds to the JSON property state
818 819 820 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 818 def state @state end |
#type ⇒ String
The type of this network.
Corresponds to the JSON property type
823 824 825 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 823 def type @type end |
#vlan_id ⇒ String
The vlan id of the Network.
Corresponds to the JSON property vlanId
828 829 830 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 828 def vlan_id @vlan_id end |
#vrf ⇒ Google::Apis::BaremetalsolutionV2::Vrf
A network VRF.
Corresponds to the JSON property vrf
833 834 835 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 833 def vrf @vrf end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
840 841 842 843 844 845 846 847 848 849 850 851 852 853 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 840 def update!(**args) @cidr = args[:cidr] if args.key?(:cidr) @id = args[:id] if args.key?(:id) @ip_address = args[:ip_address] if args.key?(:ip_address) @labels = args[:labels] if args.key?(:labels) @mac_address = args[:mac_address] if args.key?(:mac_address) @name = args[:name] if args.key?(:name) @reservations = args[:reservations] if args.key?(:reservations) @services_cidr = args[:services_cidr] if args.key?(:services_cidr) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) @vlan_id = args[:vlan_id] if args.key?(:vlan_id) @vrf = args[:vrf] if args.key?(:vrf) end |