Class: Google::Apis::VmwareengineV1::Subnet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmwareengine_v1/classes.rb,
lib/google/apis/vmwareengine_v1/representations.rb,
lib/google/apis/vmwareengine_v1/representations.rb

Overview

Subnet in a private cloud. Either management subnets (such as vMotion) that are read-only, or userDefined, which can also be updated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Subnet

Returns a new instance of Subnet.



3090
3091
3092
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3090

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

Instance Attribute Details

#gateway_ipString

The IP address of the gateway of this subnet. Must fall within the IP prefix defined above. Corresponds to the JSON property gatewayIp

Returns:

  • (String)


3060
3061
3062
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3060

def gateway_ip
  @gateway_ip
end

#ip_cidr_rangeString

The IP address range of the subnet in CIDR format '10.0.0.0/24'. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


3065
3066
3067
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3065

def ip_cidr_range
  @ip_cidr_range
end

#nameString

Output only. Identifier. The resource name of this subnet. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/ design/resource_names. For example: projects/my-project/locations/us-central1- a/privateClouds/my-cloud/subnets/my-subnet Corresponds to the JSON property name

Returns:

  • (String)


3073
3074
3075
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3073

def name
  @name
end

#stateString

Output only. The state of the resource. Corresponds to the JSON property state

Returns:

  • (String)


3078
3079
3080
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3078

def state
  @state
end

#typeString

Output only. The type of the subnet. For example "management" or "userDefined". Corresponds to the JSON property type

Returns:

  • (String)


3083
3084
3085
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3083

def type
  @type
end

#vlan_idFixnum

Output only. VLAN ID of the VLAN on which the subnet is configured Corresponds to the JSON property vlanId

Returns:

  • (Fixnum)


3088
3089
3090
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3088

def vlan_id
  @vlan_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3095
3096
3097
3098
3099
3100
3101
3102
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3095

def update!(**args)
  @gateway_ip = args[:gateway_ip] if args.key?(:gateway_ip)
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @type = args[:type] if args.key?(:type)
  @vlan_id = args[:vlan_id] if args.key?(:vlan_id)
end