Class: Google::Apis::CloudbillingV1beta::InterRegionEgress

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

Overview

Egress traffic between two regions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InterRegionEgress

Returns a new instance of InterRegionEgress.



732
733
734
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 732

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

Instance Attribute Details

#destination_regionString

Which region the egress data goes to. Corresponds to the JSON property destinationRegion

Returns:

  • (String)


719
720
721
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 719

def destination_region
  @destination_region
end

#egress_rateGoogle::Apis::CloudbillingV1beta::Usage

An amount of usage over a time frame. Corresponds to the JSON property egressRate



724
725
726
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 724

def egress_rate
  @egress_rate
end

#source_regionString

Which region the egress data comes from. Corresponds to the JSON property sourceRegion

Returns:

  • (String)


730
731
732
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 730

def source_region
  @source_region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



737
738
739
740
741
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 737

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