Class: Google::Apis::BaremetalsolutionV1alpha1::NetworkConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConfig

Returns a new instance of NetworkConfig.



257
258
259
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 257

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)


217
218
219
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 217

def bandwidth
  @bandwidth
end

#cidrString

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

Returns:

  • (String)


222
223
224
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 222

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)


228
229
230
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 228

def id
  @id
end

#locationString

Location where to deploy the network. Corresponds to the JSON property location

Returns:

  • (String)


233
234
235
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 233

def location
  @location
end

#service_cidrString

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

Returns:

  • (String)


238
239
240
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 238

def service_cidr
  @service_cidr
end

#typeString

The type of this network. Corresponds to the JSON property type

Returns:

  • (String)


243
244
245
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 243

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)


249
250
251
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 249

def user_note
  @user_note
end

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



255
256
257
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 255

def vlan_attachments
  @vlan_attachments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



262
263
264
265
266
267
268
269
270
271
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 262

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