Class: Google::Apis::BaremetalsolutionV2::NetworkConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



908
909
910
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 908

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

Instance Attribute Details

#bandwidthString

Interconnect bandwidth. Set only when type is CLIENT. Corresponds to the JSON property bandwidth

Returns:

  • (String)


868
869
870
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 868

def bandwidth
  @bandwidth
end

#cidrString

CIDR range of the network. Corresponds to the JSON property cidr

Returns:

  • (String)


873
874
875
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 873

def cidr
  @cidr
end

#idString

A transient unique identifier to identify a volume within an ProvisioningConfig request. Corresponds to the JSON property id

Returns:

  • (String)


879
880
881
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 879

def id
  @id
end

#nameString

Output only. The name of the network config. Corresponds to the JSON property name

Returns:

  • (String)


884
885
886
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 884

def name
  @name
end

#service_cidrString

Service CIDR, if any. Corresponds to the JSON property serviceCidr

Returns:

  • (String)


889
890
891
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 889

def service_cidr
  @service_cidr
end

#typeString

The type of this network, either Client or Private. Corresponds to the JSON property type

Returns:

  • (String)


894
895
896
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 894

def type
  @type
end

#user_noteString

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

Returns:

  • (String)


900
901
902
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 900

def user_note
  @user_note
end

#vlan_attachmentsArray<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



906
907
908
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 906

def vlan_attachments
  @vlan_attachments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



913
914
915
916
917
918
919
920
921
922
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 913

def update!(**args)
  @bandwidth = args[:bandwidth] if args.key?(:bandwidth)
  @cidr = args[:cidr] if args.key?(:cidr)
  @id = args[:id] if args.key?(:id)
  @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)
end