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.



1719
1720
1721
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1719

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

Instance Attribute Details

#network_allowlistGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1EnvironmentConfigEnvironmentNetworkEgressAllowlist

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



1707
1708
1709
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1707

def network_allowlist
  @network_allowlist
end

#network_modeString

Network egress mode. Corresponds to the JSON property networkMode

Returns:

  • (String)


1712
1713
1714
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1712

def network_mode
  @network_mode
end

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

Corresponds to the JSON property sources



1717
1718
1719
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1717

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1724
1725
1726
1727
1728
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1724

def update!(**args)
  @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