lib/fog/azurerm/models/network/network_interface.rb in far-gem-0.5.1 vs lib/fog/azurerm/models/network/network_interface.rb in far-gem-0.5.2

- old
+ new

@@ -21,10 +21,11 @@ attribute :dns_servers attribute :applied_dns_servers attribute :internal_dns_name_label attribute :internal_fqd attribute :tags + attribute :enable_accelerated_networking def self.parse(nic) hash = {} hash['id'] = nic.id hash['name'] = nic.name @@ -52,20 +53,21 @@ hash['dns_servers'] = nic_dns_settings.dns_servers hash['applied_dns_servers'] = nic_dns_settings.applied_dns_servers hash['internal_dns_name_label'] = nic_dns_settings.internal_dns_name_label hash['internal_fqd'] = nic_dns_settings.internal_fqdn end + hash['enable_accelerated_networking'] = nic.enable_accelerated_networking hash end def save requires :name requires :location requires :resource_group requires :subnet_id requires :ip_configuration_name requires :private_ip_allocation_method - nic = service.create_or_update_network_interface(resource_group, name, location, subnet_id, public_ip_address_id, network_security_group_id, ip_configuration_name, private_ip_allocation_method, private_ip_address, load_balancer_backend_address_pools_ids, load_balancer_inbound_nat_rules_ids, tags) + nic = service.create_or_update_network_interface(resource_group, name, location, subnet_id, public_ip_address_id, network_security_group_id, ip_configuration_name, private_ip_allocation_method, private_ip_address, load_balancer_backend_address_pools_ids, load_balancer_inbound_nat_rules_ids, tags, enable_accelerated_networking) merge_attributes(Fog::Network::AzureRM::NetworkInterface.parse(nic)) end def update(updated_attributes = {}) validate_update_attributes!(updated_attributes)