Class: Google::Apis::NotebooksV2::ContainerImage
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV2::ContainerImage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/notebooks_v2/classes.rb,
lib/google/apis/notebooks_v2/representations.rb,
lib/google/apis/notebooks_v2/representations.rb
Overview
Definition of a container image for starting a notebook instance with the environment installed in a container.
Instance Attribute Summary collapse
-
#repository ⇒ String
Required.
-
#tag ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContainerImage
constructor
A new instance of ContainerImage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContainerImage
Returns a new instance of ContainerImage.
322 323 324 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 322 def initialize(**args) update!(**args) end |
Instance Attribute Details
#repository ⇒ String
Required. The path to the container image repository. For example: gcr.io/
project_id/
image_name`
Corresponds to the JSON property
repository`
314 315 316 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 314 def repository @repository end |
#tag ⇒ String
Optional. The tag of the container image. If not specified, this defaults to
the latest tag.
Corresponds to the JSON property tag
320 321 322 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 320 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
327 328 329 330 |
# File 'lib/google/apis/notebooks_v2/classes.rb', line 327 def update!(**args) @repository = args[:repository] if args.key?(:repository) @tag = args[:tag] if args.key?(:tag) end |