Class: Google::Apis::VmwareengineV1::Subnet
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::Subnet
- 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
-
#gateway_ip ⇒ String
The IP address of the gateway of this subnet.
-
#ip_cidr_range ⇒ String
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#type ⇒ String
Output only.
-
#vlan_id ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Subnet
constructor
A new instance of Subnet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Subnet
Returns a new instance of Subnet.
3744 3745 3746 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3744 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gateway_ip ⇒ String
The IP address of the gateway of this subnet. Must fall within the IP prefix
defined above.
Corresponds to the JSON property gatewayIp
3714 3715 3716 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3714 def gateway_ip @gateway_ip end |
#ip_cidr_range ⇒ String
The IP address range of the subnet in CIDR format '10.0.0.0/24'.
Corresponds to the JSON property ipCidrRange
3719 3720 3721 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3719 def ip_cidr_range @ip_cidr_range end |
#name ⇒ String
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
3727 3728 3729 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3727 def name @name end |
#state ⇒ String
Output only. The state of the resource.
Corresponds to the JSON property state
3732 3733 3734 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3732 def state @state end |
#type ⇒ String
Output only. The type of the subnet. For example "management" or "userDefined".
Corresponds to the JSON property type
3737 3738 3739 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3737 def type @type end |
#vlan_id ⇒ Fixnum
Output only. VLAN ID of the VLAN on which the subnet is configured
Corresponds to the JSON property vlanId
3742 3743 3744 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3742 def vlan_id @vlan_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3749 3750 3751 3752 3753 3754 3755 3756 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 3749 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 |