# File lib/fog/aws/requests/compute/modify_subnet_attribute.rb, line 35
        def modify_subnet_attribute(subnet_id, options={})
          Excon::Response.new.tap do |response|
            subnet = self.data[:subnets].detect { |v| v['subnetId'] == subnet_id }            
            if subnet
              subnet['mapPublicIpOnLaunch'] = options['MapPublicIpOnLaunch']

              response.status = 200
              
              response.body = {
                'requestId' => Fog::AWS::Mock.request_id,
                'return'    => true
              }
            else
              response.status = 404
              response.body = {
                'Code' => 'InvalidParameterValue'
              }
            end
          end
        end