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.



299
300
301
# File 'lib/google/apis/notebooks_v2/classes.rb', line 299

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)


291
292
293
# File 'lib/google/apis/notebooks_v2/classes.rb', line 291

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)


297
298
299
# File 'lib/google/apis/notebooks_v2/classes.rb', line 297

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



304
305
306
307
# File 'lib/google/apis/notebooks_v2/classes.rb', line 304

def update!(**args)
  @repository = args[:repository] if args.key?(:repository)
  @tag = args[:tag] if args.key?(:tag)
end