Exemplo n.º 1
0
 /**
  * Sets ip configuration
  *
  * @param   array|InterfaceIpConfigurationsData $ipConfiguration
  * @return  PublicIpAddressProperties
  */
 public function setIpConfiguration($ipConfiguration = null)
 {
     if (!$ipConfiguration instanceof InterfaceIpConfigurationsData) {
         $ipConfiguration = InterfaceIpConfigurationsData::initArray($ipConfiguration);
     }
     return $this->__call(__FUNCTION__, [$ipConfiguration]);
 }
Exemplo n.º 2
0
 /**
  * Sets ipConfigurations
  *
  * @param   array|InterfaceIpConfigurationsList $ipConfigurations
  * @return  InterfaceProperties
  */
 public function setIpConfigurations($ipConfigurations = null)
 {
     if (!$ipConfigurations instanceof InterfaceIpConfigurationsList) {
         $ipConfigurationList = new InterfaceIpConfigurationsList();
         foreach ($ipConfigurations as $ipConfiguration) {
             if (!$ipConfiguration instanceof InterfaceIpConfigurationsData) {
                 $ipConfigurationData = InterfaceIpConfigurationsData::initArray($ipConfiguration);
             } else {
                 $ipConfigurationData = $ipConfiguration;
             }
             $ipConfigurationList->append($ipConfigurationData);
         }
     } else {
         $ipConfigurationList = $ipConfigurations;
     }
     return $this->__call(__FUNCTION__, [$ipConfigurationList]);
 }