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.



9023
9024
9025
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9023

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)


9021
9022
9023
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9021

def estimated_egress_traffic_percentage
  @estimated_egress_traffic_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9028
9029
9030
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 9028

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