Class: Google::Apis::BaremetalsolutionV2::Network

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

A Network.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Network

Returns a new instance of Network.



827
828
829
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 827

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

Instance Attribute Details

#cidrString

The cidr of the Network. Corresponds to the JSON property cidr

Returns:

  • (String)


765
766
767
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 765

def cidr
  @cidr
end

#idString

An identifier for the Network, generated by the backend. Corresponds to the JSON property id

Returns:

  • (String)


770
771
772
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 770

def id
  @id
end

#ip_addressString

IP address configured. Corresponds to the JSON property ipAddress

Returns:

  • (String)


775
776
777
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 775

def ip_address
  @ip_address
end

#labelsHash<String,String>

Labels as key value pairs. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


780
781
782
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 780

def labels
  @labels
end

#mac_addressArray<String>

List of physical interfaces. Corresponds to the JSON property macAddress

Returns:

  • (Array<String>)


785
786
787
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 785

def mac_address
  @mac_address
end

#nameString

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`

Returns:

  • (String)


793
794
795
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 793

def name
  @name
end

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



800
801
802
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 800

def reservations
  @reservations
end

#services_cidrString

IP range for reserved for services (e.g. NFS). Corresponds to the JSON property servicesCidr

Returns:

  • (String)


805
806
807
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 805

def services_cidr
  @services_cidr
end

#stateString

The Network state. Corresponds to the JSON property state

Returns:

  • (String)


810
811
812
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 810

def state
  @state
end

#typeString

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

Returns:

  • (String)


815
816
817
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 815

def type
  @type
end

#vlan_idString

The vlan id of the Network. Corresponds to the JSON property vlanId

Returns:

  • (String)


820
821
822
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 820

def vlan_id
  @vlan_id
end

#vrfGoogle::Apis::BaremetalsolutionV2::Vrf

A network VRF. Corresponds to the JSON property vrf



825
826
827
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 825

def vrf
  @vrf
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



832
833
834
835
836
837
838
839
840
841
842
843
844
845
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 832

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