Class: Google::Apis::CloudbuildV2::GoogleDevtoolsCloudbuildV2Condition

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

Conditions defines a readiness condition for a Knative resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV2Condition

Returns a new instance of GoogleDevtoolsCloudbuildV2Condition.



756
757
758
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 756

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

Instance Attribute Details

#last_transition_timeString

LastTransitionTime is the last time the condition transitioned from one status to another. Corresponds to the JSON property lastTransitionTime

Returns:

  • (String)


729
730
731
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 729

def last_transition_time
  @last_transition_time
end

#messageString

A human readable message indicating details about the transition. Corresponds to the JSON property message

Returns:

  • (String)


734
735
736
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 734

def message
  @message
end

#reasonString

The reason for the condition's last transition. Corresponds to the JSON property reason

Returns:

  • (String)


739
740
741
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 739

def reason
  @reason
end

#severityString

Severity with which to treat failures of this type of condition. Corresponds to the JSON property severity

Returns:

  • (String)


744
745
746
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 744

def severity
  @severity
end

#statusString

Status of the condition. Corresponds to the JSON property status

Returns:

  • (String)


749
750
751
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 749

def status
  @status
end

#typeString

Type of condition. Corresponds to the JSON property type

Returns:

  • (String)


754
755
756
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 754

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



761
762
763
764
765
766
767
768
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 761

def update!(**args)
  @last_transition_time = args[:last_transition_time] if args.key?(:last_transition_time)
  @message = args[:message] if args.key?(:message)
  @reason = args[:reason] if args.key?(:reason)
  @severity = args[:severity] if args.key?(:severity)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end