Class: Google::Apis::ClouddeployV1::PostdeployJobRun

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

PostdeployJobRun contains information specific to a postdeploy JobRun.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostdeployJobRun

Returns a new instance of PostdeployJobRun.



2317
2318
2319
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2317

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

Instance Attribute Details

#buildString

Output only. The resource name of the Cloud Build Build object that is used to execute the custom actions associated with the postdeploy Job. Format is projects/project/locations/location/builds/build. Corresponds to the JSON property build

Returns:

  • (String)


2304
2305
2306
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2304

def build
  @build
end

#failure_causeString

Output only. The reason the postdeploy failed. This will always be unspecified while the postdeploy is in progress or if it succeeded. Corresponds to the JSON property failureCause

Returns:

  • (String)


2310
2311
2312
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2310

def failure_cause
  @failure_cause
end

#failure_messageString

Output only. Additional information about the postdeploy failure, if available. Corresponds to the JSON property failureMessage

Returns:

  • (String)


2315
2316
2317
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2315

def failure_message
  @failure_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2322
2323
2324
2325
2326
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 2322

def update!(**args)
  @build = args[:build] if args.key?(:build)
  @failure_cause = args[:failure_cause] if args.key?(:failure_cause)
  @failure_message = args[:failure_message] if args.key?(:failure_message)
end