Class: Google::Apis::CloudbillingV1beta::CloudStorageWorkload

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 of Cloud Storage resources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudStorageWorkload

Returns a new instance of CloudStorageWorkload.



258
259
260
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 258

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

Instance Attribute Details

#data_retrievalGoogle::Apis::CloudbillingV1beta::Usage

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



220
221
222
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 220

def data_retrieval
  @data_retrieval
end

#data_storedGoogle::Apis::CloudbillingV1beta::Usage

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



225
226
227
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 225

def data_stored
  @data_stored
end

#dual_regionGoogle::Apis::CloudbillingV1beta::DualRegional

Area contains dual locations. Corresponds to the JSON property dualRegion



230
231
232
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 230

def dual_region
  @dual_region
end

#multi_regionGoogle::Apis::CloudbillingV1beta::MultiRegional

Area contains multiple locations. Corresponds to the JSON property multiRegion



235
236
237
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 235

def multi_region
  @multi_region
end

#operation_aGoogle::Apis::CloudbillingV1beta::Usage

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



240
241
242
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 240

def operation_a
  @operation_a
end

#operation_bGoogle::Apis::CloudbillingV1beta::Usage

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



245
246
247
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 245

def operation_b
  @operation_b
end

#regionGoogle::Apis::CloudbillingV1beta::Regional

Area contains only one location. Corresponds to the JSON property region



250
251
252
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 250

def region
  @region
end

#storage_classString

The storage class of the data and operation. For example: "standard" and "nearline". Corresponds to the JSON property storageClass

Returns:

  • (String)


256
257
258
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 256

def storage_class
  @storage_class
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



263
264
265
266
267
268
269
270
271
272
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 263

def update!(**args)
  @data_retrieval = args[:data_retrieval] if args.key?(:data_retrieval)
  @data_stored = args[:data_stored] if args.key?(:data_stored)
  @dual_region = args[:dual_region] if args.key?(:dual_region)
  @multi_region = args[:multi_region] if args.key?(:multi_region)
  @operation_a = args[:operation_a] if args.key?(:operation_a)
  @operation_b = args[:operation_b] if args.key?(:operation_b)
  @region = args[:region] if args.key?(:region)
  @storage_class = args[:storage_class] if args.key?(:storage_class)
end