Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1EnvironmentConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Configuration for a custom environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1EnvironmentConfig

Returns a new instance of GenaiVertexV1beta1EnvironmentConfig.



2033
2034
2035
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2033

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

Instance Attribute Details

#environment_idString

Optional. The environment ID for the interaction. If specified, the request will update the existing environment instead of creating a new one. Corresponds to the JSON property environmentId

Returns:

  • (String)


2016
2017
2018
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2016

def environment_id
  @environment_id
end

#network_allowlistGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist

Network egress configuration for the environment. Corresponds to the JSON property networkAllowlist



2021
2022
2023
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2021

def network_allowlist
  @network_allowlist
end

#network_modeString

Network egress mode. Corresponds to the JSON property networkMode

Returns:

  • (String)


2026
2027
2028
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2026

def network_mode
  @network_mode
end

#sourcesArray<Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1EnvironmentConfigSource>

Corresponds to the JSON property sources



2031
2032
2033
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2031

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2038
2039
2040
2041
2042
2043
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2038

def update!(**args)
  @environment_id = args[:environment_id] if args.key?(:environment_id)
  @network_allowlist = args[:network_allowlist] if args.key?(:network_allowlist)
  @network_mode = args[:network_mode] if args.key?(:network_mode)
  @sources = args[:sources] if args.key?(:sources)
end