Example #1
0
        /// <summary>
        /// Updates the given properties of a Super SIM instance from your account.
        /// </summary>
        /// <param name="pathSid"> The SID that identifies the resource to update </param>
        /// <param name="uniqueName"> An application-defined string that uniquely identifies the resource </param>
        /// <param name="status"> The new status of the Super SIM </param>
        /// <param name="fleet"> The SID or unique name of the Fleet to which the SIM resource should be assigned </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Sim </returns>
        public static async System.Threading.Tasks.Task <SimResource> UpdateAsync(string pathSid,
                                                                                  string uniqueName = null,
                                                                                  SimResource.StatusUpdateEnum status = null,
                                                                                  string fleet             = null,
                                                                                  ITwilioRestClient client = null)
        {
            var options = new UpdateSimOptions(pathSid)
            {
                UniqueName = uniqueName, Status = status, Fleet = fleet
            };

            return(await UpdateAsync(options, client));
        }
Example #2
0
        /// <summary>
        /// Updates the given properties of a Super SIM instance from your account.
        /// </summary>
        /// <param name="pathSid"> The SID that identifies the resource to update </param>
        /// <param name="uniqueName"> An application-defined string that uniquely identifies the resource </param>
        /// <param name="status"> The new status of the Super SIM </param>
        /// <param name="fleet"> The SID or unique name of the Fleet to which the SIM resource should be assigned </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Sim </returns>
        public static SimResource Update(string pathSid,
                                         string uniqueName = null,
                                         SimResource.StatusUpdateEnum status = null,
                                         string fleet             = null,
                                         ITwilioRestClient client = null)
        {
            var options = new UpdateSimOptions(pathSid)
            {
                UniqueName = uniqueName, Status = status, Fleet = fleet
            };

            return(Update(options, client));
        }
Example #3
0
        /// <summary>
        /// Updates the given properties of a Super SIM instance from your account.
        /// </summary>
        /// <param name="pathSid"> The SID that identifies the resource to update </param>
        /// <param name="uniqueName"> An application-defined string that uniquely identifies the resource </param>
        /// <param name="status"> The new status of the Super SIM </param>
        /// <param name="fleet"> The SID or unique name of the Fleet to which the SIM resource should be assigned </param>
        /// <param name="callbackUrl"> The URL we should call after the update has finished </param>
        /// <param name="callbackMethod"> The HTTP method we should use to call callback_url </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> A single instance of Sim </returns>
        public static SimResource Update(string pathSid,
                                         string uniqueName = null,
                                         SimResource.StatusUpdateEnum status = null,
                                         string fleet    = null,
                                         Uri callbackUrl = null,
                                         Twilio.Http.HttpMethod callbackMethod = null,
                                         ITwilioRestClient client = null)
        {
            var options = new UpdateSimOptions(pathSid)
            {
                UniqueName = uniqueName, Status = status, Fleet = fleet, CallbackUrl = callbackUrl, CallbackMethod = callbackMethod
            };

            return(Update(options, client));
        }
Example #4
0
        /// <summary>
        /// Updates the given properties of a Super SIM instance from your account.
        /// </summary>
        /// <param name="pathSid"> The SID that identifies the resource to update </param>
        /// <param name="uniqueName"> An application-defined string that uniquely identifies the resource </param>
        /// <param name="status"> The new status of the Super SIM </param>
        /// <param name="fleet"> The SID or unique name of the Fleet to which the SIM resource should be assigned </param>
        /// <param name="callbackUrl"> The URL we should call after the update has finished </param>
        /// <param name="callbackMethod"> The HTTP method we should use to call callback_url </param>
        /// <param name="accountSid"> The SID of the Account to which the Sim resource should belong </param>
        /// <param name="client"> Client to make requests to Twilio </param>
        /// <returns> Task that resolves to A single instance of Sim </returns>
        public static async System.Threading.Tasks.Task <SimResource> UpdateAsync(string pathSid,
                                                                                  string uniqueName = null,
                                                                                  SimResource.StatusUpdateEnum status = null,
                                                                                  string fleet    = null,
                                                                                  Uri callbackUrl = null,
                                                                                  Twilio.Http.HttpMethod callbackMethod = null,
                                                                                  string accountSid        = null,
                                                                                  ITwilioRestClient client = null)
        {
            var options = new UpdateSimOptions(pathSid)
            {
                UniqueName = uniqueName, Status = status, Fleet = fleet, CallbackUrl = callbackUrl, CallbackMethod = callbackMethod, AccountSid = accountSid
            };

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