Ejemplo n.º 1
0
 /// <summary>
 ///     Updates account device(s) by their ID(s).
 ///     HTTP Method: put
 ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/device/{deviceId}
 ///     Rate Limit Group: Medium
 ///     App Permission: EditAccounts
 ///     User Permission: EditCompanyDevices
 /// </summary>
 public async Task <GetDeviceInfoResponse> Put(AccountDeviceUpdate accountDeviceUpdate,
                                               UpdateDeviceParameters queryParams = null, RestRequestConfig restRequestConfig = null)
 {
     if (deviceId == null)
     {
         throw new ArgumentException("Parameter cannot be null", nameof(deviceId));
     }
     return(await rc.Put <GetDeviceInfoResponse>(Path(), accountDeviceUpdate, queryParams, restRequestConfig));
 }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
 /// <summary>
 ///     Updates account device(s) by their ID(s).
 ///     HTTP Method: put
 ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/device/{deviceId}
 ///     Rate Limit Group: Medium
 ///     App Permission: EditAccounts
 ///     User Permission: EditCompanyDevices
 /// </summary>
 public async Task <GetDeviceInfoResponse> Put(AccountDeviceUpdate accountDeviceUpdate,
                                               UpdateDeviceParameters queryParams = null, RestRequestConfig restRequestConfig = null)
 {
     return(await rc.Put <GetDeviceInfoResponse>(Path(), accountDeviceUpdate, queryParams, restRequestConfig));
 }