Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment

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

The customized sandbox runtime environment for BYOC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment

Returns a new instance of GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerEnvironment.



34633
34634
34635
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34633

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

Instance Attribute Details

#custom_container_specGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentTemplateCustomContainerSpec

Specification for deploying from a custom container image. Corresponds to the JSON property customContainerSpec



34620
34621
34622
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34620

def custom_container_spec
  @custom_container_spec
end

#portsArray<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentTemplateNetworkPort>

Ports to expose from the container. Corresponds to the JSON property ports



34625
34626
34627
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34625

def ports
  @ports
end

#resourcesGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1SandboxEnvironmentTemplateResourceRequirements

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



34631
34632
34633
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34631

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34638
34639
34640
34641
34642
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34638

def update!(**args)
  @custom_container_spec = args[:custom_container_spec] if args.key?(:custom_container_spec)
  @ports = args[:ports] if args.key?(:ports)
  @resources = args[:resources] if args.key?(:resources)
end