Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1EnvironmentConfigSource

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

A source to be mounted into the environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1EnvironmentConfigSource

Returns a new instance of GenaiVertexV1beta1EnvironmentConfigSource.



1810
1811
1812
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1810

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

Instance Attribute Details

#contentString

The inline content if type is INLINE. Corresponds to the JSON property content

Returns:

  • (String)


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

def content
  @content
end

#encodingString

Optional encoding for inline content (e.g. base64). Corresponds to the JSON property encoding

Returns:

  • (String)


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

def encoding
  @encoding
end

#sourceString

The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub path. Corresponds to the JSON property source

Returns:

  • (String)


1798
1799
1800
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1798

def source
  @source
end

#targetString

Where the source should appear in the environment. Corresponds to the JSON property target

Returns:

  • (String)


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

def target
  @target
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


1808
1809
1810
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1808

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1815
1816
1817
1818
1819
1820
1821
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1815

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @encoding = args[:encoding] if args.key?(:encoding)
  @source = args[:source] if args.key?(:source)
  @target = args[:target] if args.key?(:target)
  @type = args[:type] if args.key?(:type)
end