Class: Google::Apis::ClouddeployV1::TargetsPresentCondition

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

TargetsPresentCondition contains information on any Targets referenced in the Delivery Pipeline that do not actually exist.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TargetsPresentCondition

Returns a new instance of TargetsPresentCondition.



5238
5239
5240
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5238

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

Instance Attribute Details

#missing_targetsArray<String>

The list of Target names that do not exist. For example, projects/project_id /locations/location_name/targets/target_name`. Corresponds to the JSON propertymissingTargets`

Returns:

  • (Array<String>)


5225
5226
5227
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5225

def missing_targets
  @missing_targets
end

#statusBoolean Also known as: status?

True if there aren't any missing Targets. Corresponds to the JSON property status

Returns:

  • (Boolean)


5230
5231
5232
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5230

def status
  @status
end

#update_timeString

Last time the condition was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


5236
5237
5238
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5236

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5243
5244
5245
5246
5247
# File 'lib/google/apis/clouddeploy_v1/classes.rb', line 5243

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