Class: Google::Apis::BaremetalsolutionV1alpha1::NetworkConfig
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::NetworkConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
Configuration parameters for a new network.
Instance Attribute Summary collapse
-
#bandwidth ⇒ String
Interconnect bandwidth.
-
#cidr ⇒ String
CIDR range of the network.
-
#id ⇒ String
A transient unique identifier to identify a volume within an ProvisioningConfig request.
-
#location ⇒ String
Location where to deploy the network.
-
#service_cidr ⇒ String
Service CIDR, if any.
-
#type ⇒ String
The type of this network.
-
#user_note ⇒ String
User note field, it can be used by customers to add additional information for the BMS Ops team (b/194021617).
-
#vlan_attachments ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::VlanAttachment>
List of VLAN attachments.
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.
589 590 591 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 589 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
549 550 551 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 549 def bandwidth @bandwidth end |
#cidr ⇒ String
CIDR range of the network.
Corresponds to the JSON property cidr
554 555 556 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 554 def cidr @cidr end |
#id ⇒ String
A transient unique identifier to identify a volume within an
ProvisioningConfig request.
Corresponds to the JSON property id
560 561 562 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 560 def id @id end |
#location ⇒ String
Location where to deploy the network.
Corresponds to the JSON property location
565 566 567 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 565 def location @location end |
#service_cidr ⇒ String
Service CIDR, if any.
Corresponds to the JSON property serviceCidr
570 571 572 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 570 def service_cidr @service_cidr end |
#type ⇒ String
The type of this network.
Corresponds to the JSON property type
575 576 577 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 575 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 (b/194021617).
Corresponds to the JSON property userNote
581 582 583 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 581 def user_note @user_note end |
#vlan_attachments ⇒ Array<Google::Apis::BaremetalsolutionV1alpha1::VlanAttachment>
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
587 588 589 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 587 def @vlan_attachments end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
594 595 596 597 598 599 600 601 602 603 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 594 def update!(**args) @bandwidth = args[:bandwidth] if args.key?(:bandwidth) @cidr = args[:cidr] if args.key?(:cidr) @id = args[:id] if args.key?(:id) @location = args[:location] if args.key?(:location) @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) end |