Example #1
0
 /// <summary>
 ///     Updates switch. Partial update is not supported, all switch parameters should be specified. If null value is
 ///     received or parameter is missing, its value is removed.
 ///     HTTP Method: put
 ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches/{switchId}
 ///     Rate Limit Group: Heavy
 ///     App Permission: EditAccounts
 ///     User Permission: ConfigureEmergencyMaps
 /// </summary>
 public async Task <SwitchInfo> Put(UpdateSwitchInfo updateSwitchInfo, RestRequestConfig restRequestConfig = null)
 {
     if (switchId == null)
     {
         throw new ArgumentException("Parameter cannot be null", nameof(switchId));
     }
     return(await rc.Put <SwitchInfo>(Path(), updateSwitchInfo, null, restRequestConfig));
 }
Example #2
0
 /// <summary>
 ///     Updates switch. Partial update is not supported, all switch parameters should be specified. If null value is
 ///     received or parameter is missing, its value is removed.
 ///     HTTP Method: put
 ///     Endpoint: /restapi/{apiVersion}/account/{accountId}/emergency-address-auto-update/switches/{switchId}
 ///     Rate Limit Group: Heavy
 ///     App Permission: EditAccounts
 ///     User Permission: ConfigureEmergencyMaps
 /// </summary>
 public async Task <SwitchInfo> Put(UpdateSwitchInfo updateSwitchInfo, RestRequestConfig restRequestConfig = null)
 {
     return(await rc.Put <SwitchInfo>(Path(), updateSwitchInfo, null, restRequestConfig));
 }