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.



1112
1113
1114
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1112

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

Instance Attribute Details

#cidrString

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

Returns:

  • (String)


1029
1030
1031
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1029

def cidr
  @cidr
end

#gateway_ipString

Output only. Gateway ip address. Corresponds to the JSON property gatewayIp

Returns:

  • (String)


1034
1035
1036
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1034

def gateway_ip
  @gateway_ip
end

#idString

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

Returns:

  • (String)


1039
1040
1041
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1039

def id
  @id
end

#ip_addressString

IP address configured. Corresponds to the JSON property ipAddress

Returns:

  • (String)


1044
1045
1046
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1044

def ip_address
  @ip_address
end

#jumbo_frames_enabledBoolean Also known as: jumbo_frames_enabled?

Whether network uses standard frames or jumbo ones. Corresponds to the JSON property jumboFramesEnabled

Returns:

  • (Boolean)


1049
1050
1051
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1049

def jumbo_frames_enabled
  @jumbo_frames_enabled
end

#labelsHash<String,String>

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

Returns:

  • (Hash<String,String>)


1055
1056
1057
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1055

def labels
  @labels
end

#mac_addressArray<String>

List of physical interfaces. Corresponds to the JSON property macAddress

Returns:

  • (Array<String>)


1060
1061
1062
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1060

def mac_address
  @mac_address
end

#mount_pointsArray<Google::Apis::BaremetalsolutionV2::NetworkMountPoint>

Input only. List of mount points to attach the network to. Corresponds to the JSON property mountPoints



1065
1066
1067
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1065

def mount_points
  @mount_points
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)


1073
1074
1075
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1073

def name
  @name
end

#podString

Output only. Pod name. Corresponds to the JSON property pod

Returns:

  • (String)


1078
1079
1080
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1078

def pod
  @pod
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



1085
1086
1087
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1085

def reservations
  @reservations
end

#services_cidrString

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

Returns:

  • (String)


1090
1091
1092
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1090

def services_cidr
  @services_cidr
end

#stateString

The Network state. Corresponds to the JSON property state

Returns:

  • (String)


1095
1096
1097
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1095

def state
  @state
end

#typeString

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

Returns:

  • (String)


1100
1101
1102
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1100

def type
  @type
end

#vlan_idString

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

Returns:

  • (String)


1105
1106
1107
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1105

def vlan_id
  @vlan_id
end

#vrfGoogle::Apis::BaremetalsolutionV2::Vrf

A network VRF. Corresponds to the JSON property vrf



1110
1111
1112
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1110

def vrf
  @vrf
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1117

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