Example #1
0
        /// <summary>
        /// create
        /// </summary>
        /// <param name="pathServiceSid"> The service_sid </param>
        /// <param name="pathFunctionSid"> The function_sid </param>
        /// <param name="path"> The path </param>
        /// <param name="visibility"> The visibility </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of FunctionVersion </returns>
        public static FunctionVersionResource Create(string pathServiceSid,
                                                     string pathFunctionSid,
                                                     string path,
                                                     FunctionVersionResource.VisibilityEnum visibility,
                                                     ITwilioRestClient client = null)
        {
            var options = new CreateFunctionVersionOptions(pathServiceSid, pathFunctionSid, path, visibility);

            return(Create(options, client));
        }
Example #2
0
 /// <summary>
 /// Construct a new CreateFunctionVersionOptions
 /// </summary>
 /// <param name="pathServiceSid"> Service Sid. </param>
 /// <param name="pathFunctionSid"> Function Sid. </param>
 /// <param name="path"> The URL-friendly string by which this Function Version can be referenced. </param>
 /// <param name="visibility"> The access control which determines how the Function Version can be accessed. </param>
 public CreateFunctionVersionOptions(string pathServiceSid,
                                     string pathFunctionSid,
                                     string path,
                                     FunctionVersionResource.VisibilityEnum visibility)
 {
     PathServiceSid  = pathServiceSid;
     PathFunctionSid = pathFunctionSid;
     Path            = path;
     Visibility      = visibility;
 }
Example #3
0
        /// <summary>
        /// create
        /// </summary>
        /// <param name="pathServiceSid"> The service_sid </param>
        /// <param name="pathFunctionSid"> The function_sid </param>
        /// <param name="path"> The path </param>
        /// <param name="visibility"> The visibility </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of FunctionVersion </returns>
        public static async System.Threading.Tasks.Task <FunctionVersionResource> CreateAsync(string pathServiceSid,
                                                                                              string pathFunctionSid,
                                                                                              string path,
                                                                                              FunctionVersionResource.VisibilityEnum visibility,
                                                                                              ITwilioRestClient client = null)
        {
            var options = new CreateFunctionVersionOptions(pathServiceSid, pathFunctionSid, path, visibility);

            return(await CreateAsync(options, client));
        }