# -*- coding: utf-8 -*-

###############################################################################
#
# InsertRecords
# Inserts records into your Zoho CRM account.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
# either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
#
#
###############################################################################

from temboo.core.choreography import Choreography
from temboo.core.choreography import InputSet
from temboo.core.choreography import ResultSet
from temboo.core.choreography import ChoreographyExecution

import json

class InsertRecords(Choreography):

    def __init__(self, temboo_session):
        """
        Create a new instance of the InsertRecords Choreo. A TembooSession object, containing a valid
        set of Temboo credentials, must be supplied.
        """
        super(InsertRecords, self).__init__(temboo_session, '/Library/Zoho/CRM/InsertRecords')


    def new_input_set(self):
        return InsertRecordsInputSet()

    def _make_result_set(self, result, path):
        return InsertRecordsResultSet(result, path)

    def _make_execution(self, session, exec_id, path):
        return InsertRecordsChoreographyExecution(session, exec_id, path)

class InsertRecordsInputSet(InputSet):
    """
    An InputSet with methods appropriate for specifying the inputs to the InsertRecords
    Choreo. The InputSet object is used to specify input parameters when executing this Choreo.
    """
    def set_AnnualRevenue(self, value):
        """
        Set the value of the AnnualRevenue input for this Choreo. ((optional, string) Corresponds to the Annual Revenue field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('AnnualRevenue', value)
    def set_AuthenticationToken(self, value):
        """
        Set the value of the AuthenticationToken input for this Choreo. ((required, string) A valid authentication token. Permanent authentication tokens can be generated by the GenerateAuthToken Choreo.)
        """
        super(InsertRecordsInputSet, self)._set_input('AuthenticationToken', value)
    def set_CampaignSource(self, value):
        """
        Set the value of the CampaignSource input for this Choreo. ((optional, string) Corresponds to the Campaign Source field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('CampaignSource', value)
    def set_City(self, value):
        """
        Set the value of the City input for this Choreo. ((optional, string) Corresponds to the City field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('City', value)
    def set_Company(self, value):
        """
        Set the value of the Company input for this Choreo. ((optional, string) Corresponds to the Company field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('Company', value)
    def set_Country(self, value):
        """
        Set the value of the Country input for this Choreo. ((optional, string) Corresponds to the Country field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('Country', value)
    def set_Description(self, value):
        """
        Set the value of the Description input for this Choreo. ((optional, string) Corresponds to the Description field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('Description', value)
    def set_EmailOptOut(self, value):
        """
        Set the value of the EmailOptOut input for this Choreo. ((optional, boolean) Corresponds to the Email Opt Out field in Zoho. Defaults to 0 for false.)
        """
        super(InsertRecordsInputSet, self)._set_input('EmailOptOut', value)
    def set_Email(self, value):
        """
        Set the value of the Email input for this Choreo. ((optional, string) Corresponds to the Email field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('Email', value)
    def set_Fax(self, value):
        """
        Set the value of the Fax input for this Choreo. ((optional, string) Corresponds to the Fax field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('Fax', value)
    def set_FirstName(self, value):
        """
        Set the value of the FirstName input for this Choreo. ((optional, string) Corresponds to the First Name field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('FirstName', value)
    def set_Industry(self, value):
        """
        Set the value of the Industry input for this Choreo. ((optional, string) Corresponds to the Industry field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('Industry', value)
    def set_LastName(self, value):
        """
        Set the value of the LastName input for this Choreo. ((required, string) Corresponds to the Last Name field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('LastName', value)
    def set_LeadOwner(self, value):
        """
        Set the value of the LeadOwner input for this Choreo. ((optional, string) Corresponds to the Lead Owner field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('LeadOwner', value)
    def set_LeadSource(self, value):
        """
        Set the value of the LeadSource input for this Choreo. ((optional, string) Corresponds to the Lead Source field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('LeadSource', value)
    def set_LeadStatus(self, value):
        """
        Set the value of the LeadStatus input for this Choreo. ((optional, string) Corresponds to the Lead Status field in Zoho)
        """
        super(InsertRecordsInputSet, self)._set_input('LeadStatus', value)
    def set_Mobile(self, value):
        """
        Set the value of the Mobile input for this Choreo. ((optional, string) Corresponds to the Mobile field in Zoho)
        """