Example #1
0
        // Operation: Update Device
        // Http Put /restapi/v1.0/account/{accountId}/device/{deviceId}
        public async Task <RingCentral.DeviceResource> Put(RingCentral.AccountDeviceUpdate accountDeviceUpdate)
        {
            if (this.deviceId == null)
            {
                throw new System.ArgumentNullException("deviceId");
            }

            return(await rc.Put <RingCentral.DeviceResource>(this.Path(), accountDeviceUpdate));
        }
Example #2
0
        /// <summary>
        /// Operation: Update Device
        /// HTTP Method: PUT
        /// Endpoint: /restapi/v1.0/account/{accountId}/device/{deviceId}
        /// Rate Limit Group: Medium
        /// App Permission: EditAccounts
        /// User Permission: EditCompanyDevices
        /// </summary>
        public async Task <RingCentral.GetDeviceInfoResponse> Put(RingCentral.AccountDeviceUpdate accountDeviceUpdate,
                                                                  UpdateDeviceParameters queryParams = null, CancellationToken?cancellationToken = null)
        {
            if (this.deviceId == null)
            {
                throw new System.ArgumentNullException("deviceId");
            }

            return(await rc.Put <RingCentral.GetDeviceInfoResponse>(this.Path(), accountDeviceUpdate, queryParams,
                                                                    cancellationToken));
        }