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.



37601
37602
37603
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37601

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



37588
37589
37590
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37588

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



37593
37594
37595
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37593

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



37599
37600
37601
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37599

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37606
37607
37608
37609
37610
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37606

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