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.



37807
37808
37809
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37807

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



37794
37795
37796
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37794

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



37799
37800
37801
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37799

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



37805
37806
37807
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37805

def resources
  @resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



37812
37813
37814
37815
37816
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 37812

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