Class: Google::Apis::MigrationcenterV1alpha1::NetworkAddress
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::NetworkAddress
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
Details of network address.
Instance Attribute Summary collapse
-
#assignment ⇒ String
Whether DHCP is used to assign addresses.
-
#bcast ⇒ String
Broadcast address.
-
#fqdn ⇒ String
Fully qualified domain name.
-
#ip_address ⇒ String
Assigned or configured IP Address.
-
#subnet_mask ⇒ String
Subnet mask.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkAddress
constructor
A new instance of NetworkAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkAddress
Returns a new instance of NetworkAddress.
2930 2931 2932 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2930 def initialize(**args) update!(**args) end |
Instance Attribute Details
#assignment ⇒ String
Whether DHCP is used to assign addresses.
Corresponds to the JSON property assignment
2908 2909 2910 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2908 def assignment @assignment end |
#bcast ⇒ String
Broadcast address.
Corresponds to the JSON property bcast
2913 2914 2915 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2913 def bcast @bcast end |
#fqdn ⇒ String
Fully qualified domain name.
Corresponds to the JSON property fqdn
2918 2919 2920 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2918 def fqdn @fqdn end |
#ip_address ⇒ String
Assigned or configured IP Address.
Corresponds to the JSON property ipAddress
2923 2924 2925 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2923 def ip_address @ip_address end |
#subnet_mask ⇒ String
Subnet mask.
Corresponds to the JSON property subnetMask
2928 2929 2930 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2928 def subnet_mask @subnet_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2935 2936 2937 2938 2939 2940 2941 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2935 def update!(**args) @assignment = args[:assignment] if args.key?(:assignment) @bcast = args[:bcast] if args.key?(:bcast) @fqdn = args[:fqdn] if args.key?(:fqdn) @ip_address = args[:ip_address] if args.key?(:ip_address) @subnet_mask = args[:subnet_mask] if args.key?(:subnet_mask) end |