Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Deployment

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

Overview

Represents a deployment in an environment. A deployment happens when a flow version configured to be active in the environment. You can configure running pre-deployment steps, e.g. running validation test cases, experiment auto- rollout, etc.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3Deployment

Returns a new instance of GoogleCloudDialogflowCxV3Deployment.



1769
1770
1771
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1769

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

Instance Attribute Details

#end_timeString

End time of this deployment. Corresponds to the JSON property endTime

Returns:

  • (String)


1740
1741
1742
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1740

def end_time
  @end_time
end

#flow_versionString

The name of the flow version for this deployment. Format: projects//locations// agents//flows//versions/. Corresponds to the JSON property flowVersion

Returns:

  • (String)


1746
1747
1748
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1746

def flow_version
  @flow_version
end

#nameString

The name of the deployment. Format: projects//locations//agents//environments// deployments/. Corresponds to the JSON property name

Returns:

  • (String)


1752
1753
1754
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1752

def name
  @name
end

#resultGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DeploymentResult

Result of the deployment. Corresponds to the JSON property result



1757
1758
1759
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1757

def result
  @result
end

#start_timeString

Start time of this deployment. Corresponds to the JSON property startTime

Returns:

  • (String)


1762
1763
1764
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1762

def start_time
  @start_time
end

#stateString

The current state of the deployment. Corresponds to the JSON property state

Returns:

  • (String)


1767
1768
1769
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1767

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1774
1775
1776
1777
1778
1779
1780
1781
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 1774

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @flow_version = args[:flow_version] if args.key?(:flow_version)
  @name = args[:name] if args.key?(:name)
  @result = args[:result] if args.key?(:result)
  @start_time = args[:start_time] if args.key?(:start_time)
  @state = args[:state] if args.key?(:state)
end