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.



36738
36739
36740
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 36738

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>)


36730
36731
36732
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 36730

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>)


36736
36737
36738
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 36736

def requests
  @requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36743
36744
36745
36746
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 36743

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