Class: Google::Apis::NotebooksV2::ContainerImage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#repositoryString

Required. The path to the container image repository. For example: gcr.io/ project_id/image_name` Corresponds to the JSON propertyrepository`

Returns:

  • (String)


314
315
316
# File 'lib/google/apis/notebooks_v2/classes.rb', line 314

def repository
  @repository
end

#tagString

Optional. The tag of the container image. If not specified, this defaults to the latest tag. Corresponds to the JSON property tag

Returns:

  • (String)


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