Class: Google::Apis::LanguageV1beta2::RamMetric
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::RamMetric
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Instance Attribute Summary collapse
-
#gib_sec ⇒ Fixnum
Required.
-
#machine_spec ⇒ String
Required.
-
#memories ⇒ Float
Required.
-
#ram_type ⇒ String
Required.
-
#tracking_labels ⇒ Hash<String,String>
Billing tracking labels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RamMetric
constructor
A new instance of RamMetric.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RamMetric
Returns a new instance of RamMetric.
1112 1113 1114 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1112 def initialize(**args) update!(**args) end |
Instance Attribute Details
#gib_sec ⇒ Fixnum
Required. VM memory in Gigabyte second, e.g. 3600. Using int64 type to match
billing metrics definition.
Corresponds to the JSON property gibSec
1087 1088 1089 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1087 def gib_sec @gib_sec end |
#machine_spec ⇒ String
Required. Machine spec, e.g. N1_STANDARD_4.
Corresponds to the JSON property machineSpec
1092 1093 1094 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1092 def machine_spec @machine_spec end |
#memories ⇒ Float
Required. VM memory in gb.
Corresponds to the JSON property memories
1097 1098 1099 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1097 def memories @memories end |
#ram_type ⇒ String
Required. Type of ram.
Corresponds to the JSON property ramType
1102 1103 1104 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1102 def ram_type @ram_type end |
#tracking_labels ⇒ Hash<String,String>
Billing tracking labels. They do not contain any user data but only the labels
set by Vertex Core Infra itself. Tracking labels' keys are defined with
special format: goog-[\pLl
\pN
]+ E.g. "key": "goog-k8s-cluster-name","value"
: "us-east1-b4rk"
Corresponds to the JSON property trackingLabels
1110 1111 1112 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1110 def tracking_labels @tracking_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1117 1118 1119 1120 1121 1122 1123 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 1117 def update!(**args) @gib_sec = args[:gib_sec] if args.key?(:gib_sec) @machine_spec = args[:machine_spec] if args.key?(:machine_spec) @memories = args[:memories] if args.key?(:memories) @ram_type = args[:ram_type] if args.key?(:ram_type) @tracking_labels = args[:tracking_labels] if args.key?(:tracking_labels) end |