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.



34592
34593
34594
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34592

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



34579
34580
34581
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34579

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



34584
34585
34586
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34584

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



34590
34591
34592
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34590

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



34597
34598
34599
34600
34601
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34597

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