Class: Twilio::REST::Autopilot::V1::RestoreAssistantInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ RestoreAssistantInstance

Initialize the RestoreAssistantInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this RestoreAssistant resource.

  • sid (String)

    The SID of the Call resource to fetch.



98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 98

def initialize(version, payload )
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'account_sid' => payload['account_sid'],
        'sid' => payload['sid'],
        'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
        'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
        'unique_name' => payload['unique_name'],
        'friendly_name' => payload['friendly_name'],
        'needs_model_build' => payload['needs_model_build'],
        'latest_model_build_sid' => payload['latest_model_build_sid'],
        'log_queries' => payload['log_queries'],
        'development_stage' => payload['development_stage'],
        'callback_url' => payload['callback_url'],
        'callback_events' => payload['callback_events'],
    }
end

Instance Method Details

#account_sidString

Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Assistant resource.

Returns:



121
122
123
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 121

def 
    @properties['account_sid']
end

#callback_eventsString

Returns Reserved.

Returns:

  • (String)

    Reserved.



187
188
189
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 187

def callback_events
    @properties['callback_events']
end

#callback_urlString

Returns Reserved.

Returns:

  • (String)

    Reserved.



181
182
183
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 181

def callback_url
    @properties['callback_url']
end

#date_createdTime

Returns The date and time in GMT when the resource was created specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.

Returns:



133
134
135
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 133

def date_created
    @properties['date_created']
end

#date_updatedTime

Returns The date and time in GMT when the resource was last updated specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.

Returns:



139
140
141
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 139

def date_updated
    @properties['date_updated']
end

#development_stageString

Returns A string describing the state of the assistant.

Returns:

  • (String)

    A string describing the state of the assistant.



175
176
177
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 175

def development_stage
    @properties['development_stage']
end

#friendly_nameString

Returns The string that you assigned to describe the resource. It is not unique and can be up to 255 characters long.

Returns:

  • (String)

    The string that you assigned to describe the resource. It is not unique and can be up to 255 characters long.



151
152
153
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 151

def friendly_name
    @properties['friendly_name']
end

#inspectObject

Provide a detailed, user friendly representation



199
200
201
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 199

def inspect
    "<Twilio.Autopilot.V1.RestoreAssistantInstance>"
end

#latest_model_build_sidString

Returns Reserved.

Returns:

  • (String)

    Reserved.



163
164
165
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 163

def latest_model_build_sid
    @properties['latest_model_build_sid']
end

#log_queriesBoolean

Returns Whether queries should be logged and kept after training. Can be: ‘true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.

Returns:

  • (Boolean)

    Whether queries should be logged and kept after training. Can be: ‘true` or `false` and defaults to `true`. If `true`, queries are stored for 30 days, and then deleted. If `false`, no queries are stored.



169
170
171
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 169

def log_queries
    @properties['log_queries']
end

#needs_model_buildBoolean

Returns Whether model needs to be rebuilt.

Returns:

  • (Boolean)

    Whether model needs to be rebuilt.



157
158
159
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 157

def needs_model_build
    @properties['needs_model_build']
end

#sidString

Returns The unique string that we created to identify the Assistant resource.

Returns:

  • (String)

    The unique string that we created to identify the Assistant resource.



127
128
129
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 127

def sid
    @properties['sid']
end

#to_sObject

Provide a user friendly representation



193
194
195
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 193

def to_s
    "<Twilio.Autopilot.V1.RestoreAssistantInstance>"
end

#unique_nameString

Returns An application-defined string that uniquely identifies the resource. It can be used in place of the resource’s ‘sid` in the URL to address the resource.

Returns:

  • (String)

    An application-defined string that uniquely identifies the resource. It can be used in place of the resource’s ‘sid` in the URL to address the resource.



145
146
147
# File 'lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb', line 145

def unique_name
    @properties['unique_name']
end