Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment

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

Overview

Represents an agent environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2Environment

Returns a new instance of GoogleCloudDialogflowV2Environment.



791
792
793
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 791

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

Instance Attribute Details

#agent_versionString

Optional. The agent version loaded into this environment. Format: projects/<Project ID>/agent/versions/<Version ID>. Corresponds to the JSON property agentVersion

Returns:

  • (String)


763
764
765
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 763

def agent_version
  @agent_version
end

#descriptionString

Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected. Corresponds to the JSON property description

Returns:

  • (String)


769
770
771
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 769

def description
  @description
end

#nameString

Output only. The unique identifier of this agent environment. Format: projects/<Project ID>/agent/environments/<Environment ID>. Corresponds to the JSON property name

Returns:

  • (String)


775
776
777
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 775

def name
  @name
end

#stateString

Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods. Corresponds to the JSON property state

Returns:

  • (String)


782
783
784
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 782

def state
  @state
end

#update_timeString

Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods. Corresponds to the JSON property updateTime

Returns:

  • (String)


789
790
791
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 789

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



796
797
798
799
800
801
802
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 796

def update!(**args)
  @agent_version = args[:agent_version] if args.key?(:agent_version)
  @description = args[:description] if args.key?(:description)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end