Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements

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

Overview

Message to define resource requests and limits (mirroring Kubernetes) for each sandbox instance created from this template.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements

Returns a new instance of GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements.



34748
34749
34750
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34748

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

Instance Attribute Details

#limitsHash<String,String>

Optional. The maximum amounts of compute resources allowed. Keys are resource names (e.g., "cpu", "memory"). Values are quantities (e.g., "500m", "1Gi"). Corresponds to the JSON property limits

Returns:

  • (Hash<String,String>)


34740
34741
34742
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34740

def limits
  @limits
end

#requestsHash<String,String>

Optional. The requested amounts of compute resources. Keys are resource names ( e.g., "cpu", "memory"). Values are quantities (e.g., "250m", "512Mi"). Corresponds to the JSON property requests

Returns:

  • (Hash<String,String>)


34746
34747
34748
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34746

def requests
  @requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34753
34754
34755
34756
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34753

def update!(**args)
  @limits = args[:limits] if args.key?(:limits)
  @requests = args[:requests] if args.key?(:requests)
end