Class: Google::Apis::ComputeAlpha::SubnetworkUtilizationDetailsIpv4Utilization

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/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.



75412
75413
75414
# File 'lib/google/apis/compute_alpha/classes.rb', line 75412

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)


75400
75401
75402
# File 'lib/google/apis/compute_alpha/classes.rb', line 75400

def range_name
  @range_name
end

#total_allocated_ipFixnum

Corresponds to the JSON property totalAllocatedIp

Returns:

  • (Fixnum)


75405
75406
75407
# File 'lib/google/apis/compute_alpha/classes.rb', line 75405

def total_allocated_ip
  @total_allocated_ip
end

#total_free_ipFixnum

Corresponds to the JSON property totalFreeIp

Returns:

  • (Fixnum)


75410
75411
75412
# File 'lib/google/apis/compute_alpha/classes.rb', line 75410

def total_free_ip
  @total_free_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



75417
75418
75419
75420
75421
# File 'lib/google/apis/compute_alpha/classes.rb', line 75417

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