Class: Google::Apis::CloudbuildV2::Step

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

Overview

Step embeds the Container type, which allows it to include fields not provided by Container.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Step

Returns a new instance of Step.



2159
2160
2161
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2159

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

Instance Attribute Details

#argsArray<String>

Arguments to the entrypoint. Corresponds to the JSON property args

Returns:

  • (Array<String>)


2117
2118
2119
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2117

def args
  @args
end

#commandArray<String>

Entrypoint array. Corresponds to the JSON property command

Returns:

  • (Array<String>)


2122
2123
2124
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2122

def command
  @command
end

#envArray<Google::Apis::CloudbuildV2::EnvVar>

List of environment variables to set in the container. Corresponds to the JSON property env



2127
2128
2129
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2127

def env
  @env
end

#imageString

Docker image name. Corresponds to the JSON property image

Returns:

  • (String)


2132
2133
2134
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2132

def image
  @image
end

#nameString

Name of the container specified as a DNS_LABEL. Corresponds to the JSON property name

Returns:

  • (String)


2137
2138
2139
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2137

def name
  @name
end

#scriptString

The contents of an executable file to execute. Corresponds to the JSON property script

Returns:

  • (String)


2142
2143
2144
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2142

def script
  @script
end

#timeoutString

Time after which the Step times out. Defaults to never. Corresponds to the JSON property timeout

Returns:

  • (String)


2147
2148
2149
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2147

def timeout
  @timeout
end

#volume_mountsArray<Google::Apis::CloudbuildV2::VolumeMount>

Pod volumes to mount into the container's filesystem. Corresponds to the JSON property volumeMounts



2152
2153
2154
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2152

def volume_mounts
  @volume_mounts
end

#working_dirString

Container's working directory. Corresponds to the JSON property workingDir

Returns:

  • (String)


2157
2158
2159
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2157

def working_dir
  @working_dir
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2164

def update!(**args)
  @args = args[:args] if args.key?(:args)
  @command = args[:command] if args.key?(:command)
  @env = args[:env] if args.key?(:env)
  @image = args[:image] if args.key?(:image)
  @name = args[:name] if args.key?(:name)
  @script = args[:script] if args.key?(:script)
  @timeout = args[:timeout] if args.key?(:timeout)
  @volume_mounts = args[:volume_mounts] if args.key?(:volume_mounts)
  @working_dir = args[:working_dir] if args.key?(:working_dir)
end