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.



1894
1895
1896
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1894

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



1882
1883
1884
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1882

def network_allowlist
  @network_allowlist
end

#network_modeString

Network egress mode. Corresponds to the JSON property networkMode

Returns:

  • (String)


1887
1888
1889
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1887

def network_mode
  @network_mode
end

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

Corresponds to the JSON property sources



1892
1893
1894
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1892

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1899
1900
1901
1902
1903
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1899

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