Class: Google::Apis::CloudbillingV1beta::Workload

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

Specifies usage on a single Google Cloud product over a time frame. Each Google Cloud product has its own message, containing specific product configuration parameters of the product usage amounts along each dimension in which the product is billed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Workload

Returns a new instance of Workload.



1490
1491
1492
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1490

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

Instance Attribute Details

#cloud_cdn_egress_workloadGoogle::Apis::CloudbillingV1beta::CloudCdnEgressWorkload

Specifies usage for Cloud CDN egress. Corresponds to the JSON property cloudCdnEgressWorkload



1433
1434
1435
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1433

def cloud_cdn_egress_workload
  @cloud_cdn_egress_workload
end

#cloud_cdn_workloadGoogle::Apis::CloudbillingV1beta::CloudCdnWorkload

Specifies usage for Cloud CDN resources. Corresponds to the JSON property cloudCdnWorkload



1438
1439
1440
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1438

def cloud_cdn_workload
  @cloud_cdn_workload
end

#cloud_interconnect_egress_workloadGoogle::Apis::CloudbillingV1beta::CloudInterconnectEgressWorkload

The interconnect egress only includes the Interconnect Egress. Please use the standard egress traffic interface to specify your standard egress usage. Corresponds to the JSON property cloudInterconnectEgressWorkload



1444
1445
1446
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1444

def cloud_interconnect_egress_workload
  @cloud_interconnect_egress_workload
end

#cloud_interconnect_workloadGoogle::Apis::CloudbillingV1beta::CloudInterconnectWorkload

Specifies usage for Cloud Interconnect resources. Corresponds to the JSON property cloudInterconnectWorkload



1449
1450
1451
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1449

def cloud_interconnect_workload
  @cloud_interconnect_workload
end

#cloud_storage_egress_workloadGoogle::Apis::CloudbillingV1beta::CloudStorageEgressWorkload

Specification of a network type. Network egress within Google Cloud applies when you move or copy data from one Cloud Storage bucket to another or when another Google Cloud service accesses data in your Cloud Storage bucket.This includes the network egress within Google Cloud and the general network usage. Corresponds to the JSON property cloudStorageEgressWorkload



1457
1458
1459
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1457

def cloud_storage_egress_workload
  @cloud_storage_egress_workload
end

#cloud_storage_workloadGoogle::Apis::CloudbillingV1beta::CloudStorageWorkload

Specifies usage of Cloud Storage resources. Corresponds to the JSON property cloudStorageWorkload



1462
1463
1464
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1462

def cloud_storage_workload
  @cloud_storage_workload
end

#compute_vm_workloadGoogle::Apis::CloudbillingV1beta::ComputeVmWorkload

Specificies usage of a set of identical compute VM instances. Corresponds to the JSON property computeVmWorkload



1467
1468
1469
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1467

def compute_vm_workload
  @compute_vm_workload
end

#nameString

Required. A name for this workload. All workloads in a CostScenario must have a unique name. Each name may be at most 128 characters long. Corresponds to the JSON property name

Returns:

  • (String)


1473
1474
1475
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1473

def name
  @name
end

#premium_tier_egress_workloadGoogle::Apis::CloudbillingV1beta::PremiumTierEgressWorkload

Specify Premium Tier Internet egress networking. Corresponds to the JSON property premiumTierEgressWorkload



1478
1479
1480
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1478

def premium_tier_egress_workload
  @premium_tier_egress_workload
end

#standard_tier_egress_workloadGoogle::Apis::CloudbillingV1beta::StandardTierEgressWorkload

Specify Standard Tier Internet egress networking. Corresponds to the JSON property standardTierEgressWorkload



1483
1484
1485
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1483

def standard_tier_egress_workload
  @standard_tier_egress_workload
end

#vm_to_vm_egress_workloadGoogle::Apis::CloudbillingV1beta::VmToVmEgressWorkload

Specify VM to VM egress. Corresponds to the JSON property vmToVmEgressWorkload



1488
1489
1490
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1488

def vm_to_vm_egress_workload
  @vm_to_vm_egress_workload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1495

def update!(**args)
  @cloud_cdn_egress_workload = args[:cloud_cdn_egress_workload] if args.key?(:cloud_cdn_egress_workload)
  @cloud_cdn_workload = args[:cloud_cdn_workload] if args.key?(:cloud_cdn_workload)
  @cloud_interconnect_egress_workload = args[:cloud_interconnect_egress_workload] if args.key?(:cloud_interconnect_egress_workload)
  @cloud_interconnect_workload = args[:cloud_interconnect_workload] if args.key?(:cloud_interconnect_workload)
  @cloud_storage_egress_workload = args[:cloud_storage_egress_workload] if args.key?(:cloud_storage_egress_workload)
  @cloud_storage_workload = args[:cloud_storage_workload] if args.key?(:cloud_storage_workload)
  @compute_vm_workload = args[:compute_vm_workload] if args.key?(:compute_vm_workload)
  @name = args[:name] if args.key?(:name)
  @premium_tier_egress_workload = args[:premium_tier_egress_workload] if args.key?(:premium_tier_egress_workload)
  @standard_tier_egress_workload = args[:standard_tier_egress_workload] if args.key?(:standard_tier_egress_workload)
  @vm_to_vm_egress_workload = args[:vm_to_vm_egress_workload] if args.key?(:vm_to_vm_egress_workload)
end