Class: Google::Apis::ComputeBeta::SubnetworkUtilizationDetailsIpv4Utilization

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

Overview

The IPV4 utilization of a single IP range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubnetworkUtilizationDetailsIpv4Utilization

Returns a new instance of SubnetworkUtilizationDetailsIpv4Utilization.



62350
62351
62352
# File 'lib/google/apis/compute_beta/classes.rb', line 62350

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

Instance Attribute Details

#range_nameString

Will be set for secondary range. Empty for primary IPv4 range. Corresponds to the JSON property rangeName

Returns:

  • (String)


62338
62339
62340
# File 'lib/google/apis/compute_beta/classes.rb', line 62338

def range_name
  @range_name
end

#total_allocated_ipFixnum

Corresponds to the JSON property totalAllocatedIp

Returns:

  • (Fixnum)


62343
62344
62345
# File 'lib/google/apis/compute_beta/classes.rb', line 62343

def total_allocated_ip
  @total_allocated_ip
end

#total_free_ipFixnum

Corresponds to the JSON property totalFreeIp

Returns:

  • (Fixnum)


62348
62349
62350
# File 'lib/google/apis/compute_beta/classes.rb', line 62348

def total_free_ip
  @total_free_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



62355
62356
62357
62358
62359
# File 'lib/google/apis/compute_beta/classes.rb', line 62355

def update!(**args)
  @range_name = args[:range_name] if args.key?(:range_name)
  @total_allocated_ip = args[:total_allocated_ip] if args.key?(:total_allocated_ip)
  @total_free_ip = args[:total_free_ip] if args.key?(:total_free_ip)
end