Class: Google::Apis::ClouddeployV1::TargetsTypeCondition

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

TargetsTypeCondition contains information on whether the Targets defined in the Delivery Pipeline are of the same type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetsTypeCondition

Returns a new instance of TargetsTypeCondition.



5996
5997
5998
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5996

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

Instance Attribute Details

#error_detailsString

Human readable error message. Corresponds to the JSON property errorDetails

Returns:

  • (String)


5986
5987
5988
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5986

def error_details
  @error_details
end

#statusBoolean Also known as: status?

True if the targets are all a comparable type. For example this is true if all targets are GKE clusters. This is false if some targets are Cloud Run targets and others are GKE clusters. Corresponds to the JSON property status

Returns:

  • (Boolean)


5993
5994
5995
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5993

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6001
6002
6003
6004
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 6001

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