Class: Google::Apis::OndemandscanningV1beta1::Layer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ondemandscanning_v1beta1/classes.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb

Overview

Layer holds metadata specific to a layer of a Docker image.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Layer

Returns a new instance of Layer.



1243
1244
1245
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1243

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#argumentsString

The recovered arguments to the Dockerfile directive. Corresponds to the JSON property arguments

Returns:

  • (String)


1235
1236
1237
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1235

def arguments
  @arguments
end

#directiveString

Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information. Corresponds to the JSON property directive

Returns:

  • (String)


1241
1242
1243
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1241

def directive
  @directive
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1248
1249
1250
1251
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1248

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