Class: Google::Apis::ClouddeployV1::BuildArtifact

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

Overview

Description of an a image to use during Skaffold rendering.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuildArtifact

Returns a new instance of BuildArtifact.



935
936
937
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 935

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

Instance Attribute Details

#imageString

Image name in Skaffold configuration. Corresponds to the JSON property image

Returns:

  • (String)


927
928
929
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 927

def image
  @image
end

#tagString

Image tag to use. This will generally be the full path to an image, such as " gcr.io/my-project/busybox:1.2.3" or "gcr.io/my-project/busybox@sha256:abc123". Corresponds to the JSON property tag

Returns:

  • (String)


933
934
935
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 933

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



940
941
942
943
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 940

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