Class: Google::Apis::AppengineV1::Resources

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1/classes.rb,
generated/google/apis/appengine_v1/representations.rb,
generated/google/apis/appengine_v1/representations.rb

Overview

Machine resources for a version.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Resources

Returns a new instance of Resources.


2206
2207
2208
# File 'generated/google/apis/appengine_v1/classes.rb', line 2206

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

Instance Attribute Details

#cpuFloat

Number of CPU cores needed. Corresponds to the JSON property cpu

Returns:

  • (Float)

2183
2184
2185
# File 'generated/google/apis/appengine_v1/classes.rb', line 2183

def cpu
  @cpu
end

#disk_gbFloat

Disk size (GB) needed. Corresponds to the JSON property diskGb

Returns:

  • (Float)

2188
2189
2190
# File 'generated/google/apis/appengine_v1/classes.rb', line 2188

def disk_gb
  @disk_gb
end

#kms_key_referenceString

The name of the encryption key that is stored in Google Cloud KMS. Only should be used by Cloud Composer to encrypt the vm disk Corresponds to the JSON property kmsKeyReference

Returns:

  • (String)

2194
2195
2196
# File 'generated/google/apis/appengine_v1/classes.rb', line 2194

def kms_key_reference
  @kms_key_reference
end

#memory_gbFloat

Memory (GB) needed. Corresponds to the JSON property memoryGb

Returns:

  • (Float)

2199
2200
2201
# File 'generated/google/apis/appengine_v1/classes.rb', line 2199

def memory_gb
  @memory_gb
end

#volumesArray<Google::Apis::AppengineV1::Volume>

User specified volumes. Corresponds to the JSON property volumes


2204
2205
2206
# File 'generated/google/apis/appengine_v1/classes.rb', line 2204

def volumes
  @volumes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2211
2212
2213
2214
2215
2216
2217
# File 'generated/google/apis/appengine_v1/classes.rb', line 2211

def update!(**args)
  @cpu = args[:cpu] if args.key?(:cpu)
  @disk_gb = args[:disk_gb] if args.key?(:disk_gb)
  @kms_key_reference = args[:kms_key_reference] if args.key?(:kms_key_reference)
  @memory_gb = args[:memory_gb] if args.key?(:memory_gb)
  @volumes = args[:volumes] if args.key?(:volumes)
end