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.



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

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)


1864
1865
1866
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1864

def content
  @content
end

#encodingString

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

Returns:

  • (String)


1869
1870
1871
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1869

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)


1875
1876
1877
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1875

def source
  @source
end

#targetString

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

Returns:

  • (String)


1880
1881
1882
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1880

def target
  @target
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


1885
1886
1887
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 1885

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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