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.
-
#gateway_ip ⇒ String
Output only.
-
#id ⇒ String
An identifier for the
Network, generated by the backend. -
#ip_address ⇒ String
IP address configured.
-
#jumbo_frames_enabled ⇒ Boolean
(also: #jumbo_frames_enabled?)
Whether network uses standard frames or jumbo ones.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#mac_address ⇒ Array<String>
List of physical interfaces.
-
#mount_points ⇒ Array<Google::Apis::BaremetalsolutionV2::NetworkMountPoint>
Input only.
-
#name ⇒ String
Output only.
-
#pod ⇒ 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.
1118 1119 1120 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1118 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cidr ⇒ String
The cidr of the Network.
Corresponds to the JSON property cidr
1035 1036 1037 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1035 def cidr @cidr end |
#gateway_ip ⇒ String
Output only. Gateway ip address.
Corresponds to the JSON property gatewayIp
1040 1041 1042 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1040 def gateway_ip @gateway_ip end |
#id ⇒ String
An identifier for the Network, generated by the backend.
Corresponds to the JSON property id
1045 1046 1047 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1045 def id @id end |
#ip_address ⇒ String
IP address configured.
Corresponds to the JSON property ipAddress
1050 1051 1052 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1050 def ip_address @ip_address end |
#jumbo_frames_enabled ⇒ Boolean Also known as: jumbo_frames_enabled?
Whether network uses standard frames or jumbo ones.
Corresponds to the JSON property jumboFramesEnabled
1055 1056 1057 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1055 def jumbo_frames_enabled @jumbo_frames_enabled end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
1061 1062 1063 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1061 def labels @labels end |
#mac_address ⇒ Array<String>
List of physical interfaces.
Corresponds to the JSON property macAddress
1066 1067 1068 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1066 def mac_address @mac_address end |
#mount_points ⇒ Array<Google::Apis::BaremetalsolutionV2::NetworkMountPoint>
Input only. List of mount points to attach the network to.
Corresponds to the JSON property mountPoints
1071 1072 1073 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1071 def mount_points @mount_points 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`
1079 1080 1081 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1079 def name @name end |
#pod ⇒ String
Output only. Pod name.
Corresponds to the JSON property pod
1084 1085 1086 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1084 def pod @pod 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
1091 1092 1093 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1091 def reservations @reservations end |
#services_cidr ⇒ String
IP range for reserved for services (e.g. NFS).
Corresponds to the JSON property servicesCidr
1096 1097 1098 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1096 def services_cidr @services_cidr end |
#state ⇒ String
The Network state.
Corresponds to the JSON property state
1101 1102 1103 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1101 def state @state end |
#type ⇒ String
The type of this network.
Corresponds to the JSON property type
1106 1107 1108 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1106 def type @type end |
#vlan_id ⇒ String
The vlan id of the Network.
Corresponds to the JSON property vlanId
1111 1112 1113 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1111 def vlan_id @vlan_id end |
#vrf ⇒ Google::Apis::BaremetalsolutionV2::Vrf
A network VRF.
Corresponds to the JSON property vrf
1116 1117 1118 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1116 def vrf @vrf end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1123 def update!(**args) @cidr = args[:cidr] if args.key?(:cidr) @gateway_ip = args[:gateway_ip] if args.key?(:gateway_ip) @id = args[:id] if args.key?(:id) @ip_address = args[:ip_address] if args.key?(:ip_address) @jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled) @labels = args[:labels] if args.key?(:labels) @mac_address = args[:mac_address] if args.key?(:mac_address) @mount_points = args[:mount_points] if args.key?(:mount_points) @name = args[:name] if args.key?(:name) @pod = args[:pod] if args.key?(:pod) @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 |