Class: Google::Apis::BaremetalsolutionV2::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::NetworkConfig
- 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
Configuration parameters for a new network.
Instance Attribute Summary collapse
-
#bandwidth ⇒ String
Interconnect bandwidth.
-
#cidr ⇒ String
CIDR range of the network.
-
#gcp_service ⇒ String
The GCP service of the network.
-
#id ⇒ String
A transient unique identifier to identify a volume within an ProvisioningConfig request.
-
#jumbo_frames_enabled ⇒ Boolean
(also: #jumbo_frames_enabled?)
The JumboFramesEnabled option for customer to set.
-
#name ⇒ String
Output only.
-
#service_cidr ⇒ String
Service CIDR, if any.
-
#type ⇒ String
The type of this network, either Client or Private.
-
#user_note ⇒ String
User note field, it can be used by customers to add additional information for the BMS Ops team .
-
#vlan_attachments ⇒ Array<Google::Apis::BaremetalsolutionV2::IntakeVlanAttachment>
List of VLAN attachments.
-
#vlan_same_project ⇒ Boolean
(also: #vlan_same_project?)
Whether the VLAN attachment pair is located in the same project.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConfig
constructor
A new instance of NetworkConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkConfig
Returns a new instance of NetworkConfig.
1318 1319 1320 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1318 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bandwidth ⇒ String
Interconnect bandwidth. Set only when type is CLIENT.
Corresponds to the JSON property bandwidth
1260 1261 1262 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1260 def bandwidth @bandwidth end |
#cidr ⇒ String
CIDR range of the network.
Corresponds to the JSON property cidr
1265 1266 1267 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1265 def cidr @cidr end |
#gcp_service ⇒ String
The GCP service of the network. Available gcp_service are in https://cloud.
google.com/bare-metal/docs/bms-planning.
Corresponds to the JSON property gcpService
1271 1272 1273 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1271 def gcp_service @gcp_service end |
#id ⇒ String
A transient unique identifier to identify a volume within an
ProvisioningConfig request.
Corresponds to the JSON property id
1277 1278 1279 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1277 def id @id end |
#jumbo_frames_enabled ⇒ Boolean Also known as: jumbo_frames_enabled?
The JumboFramesEnabled option for customer to set.
Corresponds to the JSON property jumboFramesEnabled
1282 1283 1284 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1282 def jumbo_frames_enabled @jumbo_frames_enabled end |
#name ⇒ String
Output only. The name of the network config.
Corresponds to the JSON property name
1288 1289 1290 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1288 def name @name end |
#service_cidr ⇒ String
Service CIDR, if any.
Corresponds to the JSON property serviceCidr
1293 1294 1295 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1293 def service_cidr @service_cidr end |
#type ⇒ String
The type of this network, either Client or Private.
Corresponds to the JSON property type
1298 1299 1300 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1298 def type @type end |
#user_note ⇒ String
User note field, it can be used by customers to add additional information for
the BMS Ops team .
Corresponds to the JSON property userNote
1304 1305 1306 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1304 def user_note @user_note end |
#vlan_attachments ⇒ Array<Google::Apis::BaremetalsolutionV2::IntakeVlanAttachment>
List of VLAN attachments. As of now there are always 2 attachments, but it is
going to change in the future (multi vlan).
Corresponds to the JSON property vlanAttachments
1310 1311 1312 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1310 def @vlan_attachments end |
#vlan_same_project ⇒ Boolean Also known as: vlan_same_project?
Whether the VLAN attachment pair is located in the same project.
Corresponds to the JSON property vlanSameProject
1315 1316 1317 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1315 def vlan_same_project @vlan_same_project end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1323 def update!(**args) @bandwidth = args[:bandwidth] if args.key?(:bandwidth) @cidr = args[:cidr] if args.key?(:cidr) @gcp_service = args[:gcp_service] if args.key?(:gcp_service) @id = args[:id] if args.key?(:id) @jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled) @name = args[:name] if args.key?(:name) @service_cidr = args[:service_cidr] if args.key?(:service_cidr) @type = args[:type] if args.key?(:type) @user_note = args[:user_note] if args.key?(:user_note) @vlan_attachments = args[:vlan_attachments] if args.key?(:vlan_attachments) @vlan_same_project = args[:vlan_same_project] if args.key?(:vlan_same_project) end |