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.



1090
1091
1092
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1090

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

Instance Attribute Details

#cloud_storage_workloadGoogle::Apis::CloudbillingV1beta::CloudStorageWorkload

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



1077
1078
1079
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1077

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



1082
1083
1084
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1082

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 must be a maximum of 32 characters. Corresponds to the JSON property name

Returns:

  • (String)


1088
1089
1090
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1088

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1095
1096
1097
1098
1099
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 1095

def update!(**args)
  @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)
end