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.



70
71
72
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 70

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



32
33
34
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 32

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



37
38
39
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 37

def data_stored
  @data_stored
end

#dual_regionGoogle::Apis::CloudbillingV1beta::DualRegional

Area contains dual locations. Corresponds to the JSON property dualRegion



42
43
44
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 42

def dual_region
  @dual_region
end

#multi_regionGoogle::Apis::CloudbillingV1beta::MultiRegional

Area contains multiple locations. Corresponds to the JSON property multiRegion



47
48
49
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 47

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



52
53
54
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 52

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



57
58
59
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 57

def operation_b
  @operation_b
end

#regionGoogle::Apis::CloudbillingV1beta::Regional

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



62
63
64
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 62

def region
  @region
end

#storage_classString

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

Returns:

  • (String)


68
69
70
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 68

def storage_class
  @storage_class
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



75
76
77
78
79
80
81
82
83
84
# File 'lib/google/apis/cloudbilling_v1beta/classes.rb', line 75

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