Class: Google::Apis::CloudbillingV1beta::Workload
- Inherits:
-
Object
- Object
- Google::Apis::CloudbillingV1beta::Workload
- 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
-
#cloud_storage_workload ⇒ Google::Apis::CloudbillingV1beta::CloudStorageWorkload
Specifies usage of Cloud Storage resources.
-
#compute_vm_workload ⇒ Google::Apis::CloudbillingV1beta::ComputeVmWorkload
Specificies usage of a set of identical compute VM instances.
-
#name ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Workload
constructor
A new instance of Workload.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_workload ⇒ Google::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_workload ⇒ Google::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 |
#name ⇒ String
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
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 |