Class: Google::Apis::MigrationcenterV1alpha1::VirtualMachinePreferencesNetworkCostParameters

Inherits:
Object
  • Object
show all
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

Parameters that affect network cost estimations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VirtualMachinePreferencesNetworkCostParameters

Returns a new instance of VirtualMachinePreferencesNetworkCostParameters.



7394
7395
7396
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7394

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

Instance Attribute Details

#estimated_egress_traffic_percentageFixnum

Optional. An estimated percentage of priced outbound traffic (egress traffic) from the measured outbound traffic. Must be in the interval [0, 100]. Corresponds to the JSON property estimatedEgressTrafficPercentage

Returns:

  • (Fixnum)


7392
7393
7394
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7392

def estimated_egress_traffic_percentage
  @estimated_egress_traffic_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7399
7400
7401
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 7399

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