Class: Google::Apis::NotebooksV1::ContainerImage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/notebooks_v1/classes.rb,
generated/google/apis/notebooks_v1/representations.rb,
generated/google/apis/notebooks_v1/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.



153
154
155
# File 'generated/google/apis/notebooks_v1/classes.rb', line 153

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)


145
146
147
# File 'generated/google/apis/notebooks_v1/classes.rb', line 145

def repository
  @repository
end

#tagString

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

Returns:

  • (String)


151
152
153
# File 'generated/google/apis/notebooks_v1/classes.rb', line 151

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



158
159
160
161
# File 'generated/google/apis/notebooks_v1/classes.rb', line 158

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