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.



1795
1796
1797
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1795

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)


1778
1779
1780
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1778

def environment_id
  @environment_id
end

#network_allowlistGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist

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



1783
1784
1785
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1783

def network_allowlist
  @network_allowlist
end

#network_modeString

Network egress mode. Corresponds to the JSON property networkMode

Returns:

  • (String)


1788
1789
1790
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1788

def network_mode
  @network_mode
end

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

Corresponds to the JSON property sources



1793
1794
1795
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1793

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1800
1801
1802
1803
1804
1805
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1800

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