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.



272
273
274
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 272

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



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

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



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

def data_stored
  @data_stored
end

#dual_regionGoogle::Apis::CloudbillingV1beta::DualRegional

Area contains dual locations. Corresponds to the JSON property dualRegion



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

def dual_region
  @dual_region
end

#multi_regionGoogle::Apis::CloudbillingV1beta::MultiRegional

Area contains multiple locations. Corresponds to the JSON property multiRegion



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

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



254
255
256
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 254

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



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

def operation_b
  @operation_b
end

#regionGoogle::Apis::CloudbillingV1beta::Regional

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



264
265
266
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 264

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)


270
271
272
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 270

def storage_class
  @storage_class
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



277
278
279
280
281
282
283
284
285
286
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 277

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